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

jbarrez do-not-reply at jboss.com
Thu Apr 9 04:27:40 EDT 2009

Simply call the jBPMContext.save(processInstance) operation before the close() method is invoked.

The logging for the process instance, including the subprocesses, will be stored in the log table.

For a task, you should do

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

Or, better, use the jBPM command service. The commands automatically save the process instance (and closes the context):

  | TaskEndCommand command = new TaskEndCommand(taskId);
  | commandService.execute(command);

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

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224579

More information about the jboss-user mailing list