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&...]