2 Replies Latest reply on Jul 20, 2006 12:45 PM by Chris OBrien

    Multiple Transitions to a fork

    Chris OBrien Novice

      I was creating a sample workflow just to use, and I tried having two task-nodes go to the same fork. Once a fork already has one incoming transition, it will not allow me to add a second one.

      Example: I have a decision node that can go to one of two task-nodes. After either path, the flow will fork:

       xmlns="urn:jbpm.org:jpdl-3.1" name="123">
       <start-state name="start">
       <transition name="" to="decision1"></transition>
       <fork name="fork1">
       <decision name="decision1">
       <transition name="" to="task1"></transition>
       <transition name="tr2" to="task2"></transition>
       <task-node name="task1">
       <transition name="" to="fork1"></transition>
       <task-node name="task2">
       <transition name="" to="fork1"></transition>

      You can force it in XML, but sometimes that works in the GPD, but other times the GPD gets confused and has transitions floating out to nowhere.

      Is there some reason there should not be multiple transitions to the same fork? I realize you can just put a 'NO-OP' node between the fork and the two task-nodes, but that just clutters up the graph.