[jboss-user] [jBPM] - Parallel gateways really parallel?

Tobias Wittur do-not-reply at jboss.com
Fri Sep 23 17:18:05 EDT 2011

Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion

"Parallel gateways really parallel?"

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


I was trying to throw and catch a message while also running a count down timer, that terminates the process in case a message is not received within a certain time.

I therefore used a parallel gateway. I ran into some issues and wonder now, are the different branches running in parallel or randomly sequential?

In this process, my service task on the top throws a message, which the intermediate message catch event receives and successfully executes.The service task asks the user per command line, if a message should be thrown.
 http://community.jboss.org/servlet/JiveServlet/showImage/2-628338-17049/Capture3.GIF  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-628338-17049/450-118/Capture3.GIF 

I then tried to introduce the timer as a thrid branch. However, the timer is never started. It never "runs into check if message received within time frame".
 http://community.jboss.org/servlet/JiveServlet/showImage/2-628338-17050/Capture2.GIF  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-628338-17050/450-217/Capture2.GIF 
I then remodelled the process. Here, suddenly the intermediate catch event is never executed.
 http://community.jboss.org/servlet/JiveServlet/showImage/2-628338-17048/Capture1.GIF  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-628338-17048/450-239/Capture1.GIF 
Are those parallel gateways executed sequentially or do they run in separate threads and are executed in parallel?

I know usually I would use an intermediate catch. However, I have to present my process to my boss next week and I have to show, how easily I can introduce change in a modeler to a process and execute it. So subprocesses and event based splits are not an option for this model.

Best regards,


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110923/82c2833a/attachment.html 

More information about the jboss-user mailing list