JBoss Community

Re: Restart JBPM5 Process after system crash

created by hansi007 in jBPM - View the full discussion

Another option could be to remember the work_item / work_item_id that you stopped at without completing it. Than you can continue that process by completing that workitem:

 

int workitemId = ... //From the work item that you remembered.
StatefulKnowledgeSession ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, config, env );
WorkItemManager wManager =  ksession.getWorkItemManager();
wManager.completeWorkItem(workitemId,null);

Reply to this message by going to Community

Start a new discussion in jBPM at Community