1 Reply Latest reply on Jul 31, 2006 11:41 PM by unome

    could somebody paste a script example for fork

    luowp

      I just want to add a piece of script to customerize my fork. It need get value from a process varible a. If a==true, the fork goes to three transitions, otherwise, just goes to two transitions. I am trying to using expression in transition.



      a


      it throws exceptions.

      Has anybody a small piece of example script? Thanks in advance!

        • 1. Re: could somebody paste a script example for fork
          unome

          You probably need a decision node with conditional transitions.

          
          <decision name="forkTest">
          <transition name="to_three_fork">
          <condition expression="#{contextInstance.variables['a'] == true}"/>
          </transition>
          <transition name="to_two_fork">
          <condition expression="#{contextInstance.variables['a'] == false}"/>
          </transition>
          </decision