Sukumaran Raghavan [https://community.jboss.org/people/suku_1983] created the 
discussion

"Re: Is SessionID & ProcessID required to complete WorkItem ?"

To view the discussion, visit: https://community.jboss.org/message/732798#732798

--------------------------------------------------------------
Hi Vikas, 

I have been using JBPM 5.2 in a similar environment. My understanding is as 
follows
  - Session ID: The session is a global repository where you store common data 
across processes. This comes into play only when you are using Rule (Which is 
why is is a knowledge repository). If you are using JBPM purely for execution 
of workflow (i.e. just graph execution), the JBPM session ID is not of much 
relavence. I would still recommend you use the same session ID to complete a 
work item (Just to keep the JBPM data consistent). 
 - Process ID - This is a unique ID for each process instance. The nodes 
execute in the context of a process. Hence this is of relavence. When you 
complete a work item, the work item id is sufficient. This is because, the work 
item Tables in JBPM DB have a reference to the Process instance id. hence this 
is known to JBPM. 
 - Work Item ID : Self explanatory i guess. 

Regarding how KSession works in a clustered environment. There are multipe 
approaches to this. What i have opted for is to use a separate KSession for 
each process instance. (Purely because i do not use any rules). Other 
approaches i have come across in the forums are to use a specific KSession for 
each server instance in your cluster. All processes that execute in a server 
will use the same ksession. Their process instances will be different. 

The approach you take should be based on how you are using JBPM. 

Happy working.. Its always hard for the first few who start using a new 
Technology. But i am sure its worth the effort  :)  

Cheers !
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/732798#732798]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to