1 Reply Latest reply on Nov 1, 2007 11:01 PM by Peter Aloysius

    script problem

    Peter Aloysius Newbie

      Hi, this is part of my processdefinition.xml

      <task-node name="Administration">



      amount = amount + 10;
      System.out.println("The amount is "+ amount);


      </task-node>

      amount is a process variable.

      for example initial value of amount is 10
      when script is executed. it printed the right value of amount (added 10), but when entering next task node, the amount is is going back to 10.

      How can I make change to amount that persist to next node?
      I know I can use and to do that, but the problem is it's not possible to enter the and via JBPM jpdl designer.
      JBPM jpdl designer only give me option to input the script only, not the variable and expression.

      I'm using the latest JBPM 3.2.2 and JBPM jpdl Designer 3.1.0 SP1

      Thanks for any help

        • 1. Re: script problem
          Peter Aloysius Newbie

          sorry, looks like some parts of my message somehow missing

          Hi, this is part of my processdefinition.xml

          <task-node name="Administration">
           <event type='node-enter'>
           <script>
           amount = amount + 10;
           System.out.println(amount);
           </script>
           </event>
          </task-node>


          amount is a process variable.

          for example initial value of amount is 10
          when script is executed. it printed the right value of amount (added 10), but when entering next task node, the amount is is going back to 10.

          How can I make change to amount that persist to next node?
          I know I can use variable and expression to do that, but the problem is it's not possible to enter variable and expression via JBPM jpdl designer.
          JBPM jpdl designer only give me option to input the script only, not the variable and expression.

          I'm using the latest JBPM 3.2.2 and JBPM jpdl Designer 3.1.0 SP1

          Thanks for any help