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 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
