[jboss-user] [JBoss jBPM] - Re: nulpointer in slightly complicated process

kukeltje do-not-reply at jboss.com
Fri Dec 19 08:18:55 EST 2008


What I get from your picture:
- You want 5 to only execute if 1 and 2 have finished
- You want 3 and 4 to execute if 1 has finished, but 2 might not have

What you do is use the join on the right as a milestone... A join is a kind of milestone, but a very specific one. Instead of a join create a 'dummy' state node that does nothing (e.g. call it 'wait for 1 to finish' or milestone or whatever). Create a small javaclass that on node-leave for node 1, signals this dummy node to continue to 5. That is the correct way of doing it. In jBPM 4 things might change and this pattern might be supported out of the box either with a more flexible join or with options to signal other nodes so you do not have to write some small reusable additional java classes. 

How to signal or do something else from java in one node, related to another node see http://planetjbpm.wordpress.com/2008/10/01/implementing-milestones-in-jbpm/


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197627#4197627

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197627



More information about the jboss-user mailing list