2 Replies Latest reply on Aug 27, 2009 3:21 PM by Jim Dwyer

    Exit from fork without join

    Eugene Kisly Newbie

      Hello
      Sometimes I need to exit from fork without join. For example here is my code:

      <fork name="fork">
       <transition name="verifier1" to="verifier1"/>
       <transition name="verifier2" to="verifier2"/>
       </fork>
      
       <task-node name="verifier1">
       <task name="verifier1">
       <assignment actor-id="verifier1"/>
       </task>
       <transition to="joinyes" name="yes"/>
       <transition to="finalno" name="no"/>
       </task-node>
      
       <task-node name="verifier2">
       <task name="verifier2">
       <assignment actor-id="verifier2"/>
       </task>
       <transition to="joinyes" name="yes"/>
       <transition to="finalno" name="no"/>
       </task-node>
      
       <join name="joinyes">
       <transition name="" to="finalyes"/>
       </join>
      
       <join name="joinno">
       <transition name="" to="finalno"/>
       </join>
      
       <task-node name="finalyes">
       <task name="finalyes">
       <assignment actor-id="final"/>
       </task>
       <transition to="done" name=""/>
       </task-node>
      
       <task-node name="finalno">
       <task name="finalno">
       <assignment actor-id="finalno"/>
       </task>
       <transition to="done" name=""/>
       </task-node>


      I need transition to "finalno" if at least one of verifier1 or verifier2 say 'no'.
      Now i can only transit to this if they are both say 'yes' or 'no'.