ObjectMessage message = (ObjectMessage)omessage;
FaultParameter faultParameter = (FaultParameter)message.getObject();
String instanceId = faultParameter.getInstanceId();
tracingTag = faultParameter.getTracingTag();
UEngineException fault = faultParameter.getFault();
pmb = new ProcessManagerBean();
pmb.setSessionContext(null);
try{
instance = pmb.getProcessInstance(instanceId);
}catch(Exception e){
throw new UEngineException("Fault has been occurred during a new instance initiates.", fault);
}
System.out.println("FaultProcessorBean::onMessage: fault is " + fault + "\n detail is " + fault.getDetails());
//TODO: because of Oracle's max size of varchar
fault.setDetails(null);
//
instance.fireFault(tracingTag, fault);
pmb.applyChanges();