JBoss Community

Re: How to reconnect a StatefulKnowledgeSession to a process and continue the flow using jBPM5 and BRMS ?

created by lyman liu in jBPM Development - View the full discussion

I  have solved the problem ,

using  WorkItem after completing the task :

    long proID = task.getProcessInstanceId();

    workItemID = getWorkItemIdbyTaskId(task.getId());

    ksession.getWorkItemManager().completeWorkItem(workItemID, null);

then  It will work properly.



Reply to this message by going to Community

Start a new discussion in jBPM Development at Community