How can I ensure, that the logging service is notified consistently? 

jBPM notifies the Logging Service at the context's auto save phase, that means 
that I have to register the appropriate process instance for auto save in 
advance.

JbpmContext context = ...;
  | ProcessInstance pi = ...;
  | context.addAutoSaveProcessInstance(pi);
  | ...
  | // auto save is performed and logging service gets invoked
  | context.close();
  | 
In the following sample the logging service is not invoked, because the task 
instance is loaded and ended within a separate context without registering the 
appropriate process instance.

JbpmContext context = ...;
  | TaskInstance task = context.getTaskInstance(id);
  | task.end();
  | context.close();

Do I really have to register all affected process instances to get logging done 
right? How can this work with complex process definitions (e.g. process 
definition with several subprocesses)? 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224574#4224574

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224574
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to