[jboss-user] [JBoss jBPM] - Re: Possible bug in fork-joins

jits_1998 do-not-reply at jboss.com
Tue Sep 5 15:04:38 EDT 2006


Hi,

The fork and join work in tandem, the join expects exact number of incoming transitions as the fork sent out.

In the code above you have fork 1 giving out 2 and fork 2 splitting one into 2 and all three then meeting into the single join.

To get this to work it will need another join to be added after fork2 and the output from it will go into join1.

something like:



  | public static ProcessDefinition createForkJoinProcessDefinition() {
  |     ProcessDefinition pd = new ProcessDefinition(
  |       new String[]{"start-state start",
  |                    "fork f1",
  |                    "state s1",
  |                    "fork f2",
  |                    "state s2",
  |                    "join j1",
  |                    "join j2",
  |                    "state s3",
  |                    "end-state end"},
  |       new String[]{"start --> f1", "f1 --to_s1--> s1", "f1 --to_j1_1--> j1",
  |                    "s1 --> f2", "f2 --to_j2_1--> j2", "f2 --to_s2--> s2",
  |                    "s2 --to_j2_2--> j2","j2 --to_j1_2-->j1", "j1 --> s3", "s3 --> end"});
  |     return pd;
  |   }
  | 

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

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



More information about the jboss-user mailing list