4 Replies Latest reply on Apr 23, 2007 1:26 PM by Ronald van Kuijk

    how to create variables with Expression in processdefinition

    cy chen Newbie

      I want to create a variable -"var1" ;
      processdefinition.xml:

       <start-state name="start">
       <transition name="" to="task1"></transition>
       </start-state>
       <task-node name="task1">
       <event type="node-enter">
       <script>
       <expression>
       #{contextInstance.createVariable("var1","value1")}
       </expression>
       </script>
       </event>
       <transition name="" to="end1"></transition>
       </task-node>
       <end-state name="end1"></end-state>
      

      but i get errors :
      Sourced file: inline evaluation of: ``#{contextInstance.createVariable("var1","value1")};'' Token Parsing Error: Lexical error at line 1, column 2. Encountered: "{" (123), after : "#": <at unknown location>
      
       at bsh.Interpreter.eval(Unknown Source)
       at bsh.Interpreter.eval(Unknown Source)
       at bsh.Interpreter.eval(Unknown Source)
      

      can anyone help me?