JBoss Community

Pattern of using StatefulKnowledgeSession in web application

created by wqe wqe in jBPM - View the full discussion

Suppose the current flow stop at a human task , we have to call StatefulKnowledgeSession.getWorkItemManager().completeWorkItem(workItemId , null) to complete this human task manually. What is the difference when using StatefulKnowledgeSession in the following cases?  

 

1.  Use StatefulKnowledgeSession which create this process to complete this human task

2. Use a new StatefulKnowledgeSession  to complete this human task

 

I found that result of both the above approach seems to be the same.

Reply to this message by going to Community

Start a new discussion in jBPM at Community