[jboss-user] [jBPM] - Recover async activities after jBPM4 restart
Michael Wohlfart
do-not-reply at jboss.com
Mon Jul 26 05:31:42 EDT 2010
Michael Wohlfart [http://community.jboss.org/people/mwohlf] replied to the discussion
"Recover async activities after jBPM4 restart"
To view the discussion, visit: http://community.jboss.org/message/554363#554363
--------------------------------------------------------------
hmm... what about something like this:
ManagementService managementService = processEngine.getManagementService();
List<ProcessInstance> list = processEngine.getExecutionService().createProcessInstanceQuery().list();
for (ProcessInstance processInstance : list) {
Job job = managementService.createJobQuery().processInstanceId(processInstance.getId()).uniqueResult();
managementService.executeJob(job.getId());
}
but what I don't understand is this:
shouldn't the job executor pick up this anyways in its next cycle, why do we need to do this manually?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554363#554363]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100726/c8584ac4/attachment-0001.html
More information about the jboss-user
mailing list