[jboss-user] [jBPM] - Is the simple fork/join with async execution paths broken in jBPM 4.0

Johan Dykström do-not-reply at jboss.com
Wed Apr 28 06:56:07 EDT 2010

Johan Dykström [http://community.jboss.org/people/jody4711] replied to the discussion

"Is the simple fork/join with async execution paths broken in jBPM 4.0"

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

Thanks for your answer! I have now found the time to try out your example project. Both scenarios worked.

However, I used the Job Executor to execute jobs, while you execute them programmatically. In my previous test I also had test activities that executed for some time, not just printing a line to stdout. I apologize for not attaching the full source code of my example from the start!

When I modified your test project to use the Job Executor, and having activities that execute for a while, X0504Exclusive2Test failed in the same way as my own test project. The Join activity is started three times, but the End activity is never started. I attach my modified project with this post.

One difference you can notice is that when you use the Job Executor, the activities are executed by different threads. When you execute jobs programmatically, the activities are actually executed in sequence by the main thread, even though you have specified in the process that they should be executed in parallel. I attach log files from the two different runs as well.

Regards, Johan


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/20100428/cdcc5106/attachment.html 

More information about the jboss-user mailing list