Thanks Rainer, I do understand that you are a busy man and many many thanks for you time.
The code in question implements parallel split. When process execution reaches the split node, threads are created for running each token separately (the main thread runs one of the token, the remanning n-1 are executed in new threads). Each thread (including the main) simply calls token.signal(transitionName) or if no transition name is specified token.signal() until the token ends (the code ends the token when it reaches the join state). Before and after singnalling, the process instance is saved using the persistPI method. When all tokens end the code sets the join state on the parent token and execution returns to the main thread (i.e., parent token). By the way, I have changed my code not to create/use execution context, but simply use token. FYI: The split and join code mimics jbpm Fork and Join code. Again, many thanks for you time and help and please reply when ever you have time. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922358#3922358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922358 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user