This content has been marked as final.
Show 2 replies
-
1. Re: how i can continue the execution of a previous instance in jbpm5
jsvitak Sep 10, 2012 9:42 AM (in response to lifegood)1 of 1 people found this helpfulHello,
you can use the process persistence to persist the state of your session to database and then load the process session on another day. It depends how you want to pause the flow of your business process - persistence works only in safe points, you can use timer or your own service task for that. Or you may simply split your workflow into two business processes. The second process can be supplied with the variables which can be used from the previous business process.
Regards
Jiri Svitak
-
2. Re: how i can continue the execution of a previous instance in jbpm5
hansi007 Sep 10, 2012 11:31 AM (in response to lifegood)1 of 1 people found this helpfulAnother 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);