[jboss-user] [JBoss jBPM] - Ensure consistency of logging

Thomas.Kriechbaum do-not-reply at jboss.com
Thu Apr 9 04:15:17 EDT 2009

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

More information about the jboss-user mailing list