5 Replies Latest reply on Nov 4, 2005 8:43 AM by Jerome BIABIANY

    script tag in

    Jerome BIABIANY Newbie

      Hi,
      After reading the Fork node source code, i've try to put a script tag in the fork tag.

      <fork name="AJob" >
       <script>
       <variable name='a' access='read' />
       <expression>
       a = executionContext.getVariable("dynamicForkTransition");
       </expression>
      </script>
      <transition name="trans10" to="nextStep1" />
      <transition name="trans11" to="nextStep2" />
      </fork>
      


      It works fine, and the fork continues its path following the order specified in the Collection 'a'.

      But when i try this trick with a process Definition from the Database it doesn't work anymore. The fork node is executed as if i'had no script tag.

      Is there a way to solve this ?

      Thank You
      Regards,
      Jerôme