0 Replies Latest reply on Nov 6, 2007 9:15 AM by Marcus Schmidke

    Node which executes Script and continues

    Marcus Schmidke Newbie

      Hello,

      how can I create a node which is not a wait state?

      I want to create a node which executes a script and then immediately continues to the next node, but I am having problems.

      There seems to be no node type which automatically follows his transition, is there?

      I've tried node type "node", but even this needs a signal to continue. And this signal is a problem. I've tried following:

      <node name="Node1">
       <script>
       <expression>
       index=index+1;
       token.signal();
       </expression>
       <variable name="index" access="read,write" />
       </script>
       <transition to="Node2" name="next" />
      </node>
      


      The node's only purpose is to simply update a process variable, but what happens?

      The "signal()" call runs synchronously to the next wait state, executing events and decisions, times before the script variable is written back to the context, so my variable modification will not be seen by the upcoming events and decisions.

      This is cleary not what I want ...

      What can I do???


      Marcus.