2 Replies Latest reply on Feb 28, 2006 8:50 AM by Tom Baeyens

    Fork not leaving all transitions

    Mats N Newbie

      Sorry, I messed up the XML

      <process-definition name="process" encoding="ISO-8859-1">
      
       <start-state name="New process">
       <transition to="phase_fork"/>
       </start-state>
      
       <!-- start fork -->
      
       <fork name="phase_fork">
       <transition to="phase1"/>
       <transition to="phase2"/>
       </fork>
      
       <join name="phase_join">
       <transition to="end"/>
       </join>
      
       <fork name="phase1">
       <transition to="group1"/>
       <transition to="group2"/>
       </fork>
      
       <join name="phase1_join">
       <transition to="phase_join"/>
       </join>
      
       <fork name="phase2">
       <transition to="group3"/>
       <transition to="group4"/>
       </fork>
      
       <join name="phase2_join">
       <transition to="phase_join"/>
       </join>
      
       <task-node name="group1">
       <task name="task1"/>
       <task name="task2"/>
       <transition to="phase1_join"/>
       </task-node>
      
       <task-node name="group2">
       <task name="task3"/>
       <task name="task4"/>
       <transition to="phase1_join"/>
       </task-node>
      
       <task-node name="group3">
       <task name="task5"/>
       <task name="task6"/>
       <transition to="phase2_join"/>
       </task-node>
      
       <task-node name="group4">
       <task name="task7"/>
       <task name="task8"/>
       <transition to="phase2_join"/>
       </task-node>
      

      I would have thought that when I created a new instance I would automatically get 8 new tasks when I did instance.signal().
      What happens is that I get 2 new tasks:
      task1 and task2.

      Doesn't the fork create a token for each transition?

      /Mats