ritesh adval [http://community.jboss.org/people/riteshadval] created the 
discussion

"jbpm5 not able to run multiple instances of a process"

To view the discussion, visit: http://community.jboss.org/message/580755#580755

--------------------------------------------------------------
I ran the sample tests in jbpm-bpmn2 source directory to test if multiple 
process instance can be run where each instance is not yet finished. It is not 
working for me. What I observed is that each new instance of a process is 
getting 1 as the process instance id?

This is what I did:

(1) I configured persistence.xml to use mysql. 
(2) I start an instance of process ( 
https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-EventBasedSplit.bpmn2
 BPMN2-EventBasedSplit.bpmn2) by running testEventBasedSplit() of 
org/jbpm/bpmn2/StandaloneBPMNProcessTest, and run it till just before sending 
Yes signal.
(3) I create another instance of above process and do the same as step (2),

So at this point there should be two process instance which are not yet 
completed.What I am observing is that two process instance in 
PROCESSINSTANCELOG have same process instance id. I tried creating one session 
StatefulKnowledgeSession with two instance and they are getting same instance 
id. 

So when I recreate StatefulKnowledgeSession by using existing sessionid of 
database, I only get one process instance from the api which returns list of 
process instance.

Other thing I have noticed is that PROCESSINSTANCEINFO is always empty and no 
row is inserted there, could this be an issue?

I was able to configure history log to start saving , NODEINSTANCELOG, variable 
and PROCESSINSTANCELO, I am not sure why PROCESSINSTANCELOG is empty?

Maybe I am missing something, I am new to jbpm and trying to evaluate if we 
should use jbpm5 or stick to jbpm4.4 for sometime.

-Ritesh.
--------------------------------------------------------------

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

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

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to