2 Replies Latest reply on Nov 28, 2006 3:45 AM by Ronald van Kuijk

    Jbpm Process Designer Expression support

    Luca Fiscato Newbie

      Hi,

      I'm using the current version of the jbpm process designer in order to model my workflow process. Unfortunately I need to create a variable and assign it a value at design time. Reading the jbpm documentation I found that this operation can be done using the expressions.

      Example:

      <task-node name="node1">




      taskInstance.setVariable("var1", "value");
      taskInstance.setVariable("var2", "value");





      </task-node>

      Unfortunately I have to insert this sintax directly into the process xml description.
      My question are:
      - there are some plans to add the expression support into the plugin ? (for example making an 'insert expression' directly from the gui )
      - there is another way to create a variable and assign it a value at design time ?
      - If not why jbpm doesn't allow to define a variable and assign a value into the process definition ? (other workflow engines do that)

      Cheers
      Luca

        • 1. Re: Jbpm Process Designer Expression support
          Luca Fiscato Newbie

          Sorry I have forgotten to insert the code tag so the xml doesn't appear:
          Hope this time it will be shown:

          
          <task-node name="node1"><task name="node_task1" swimlane="/swim">
           <event type="task-create">
           <script>
           <expression>
           taskInstance.setVariable("var1", "value");
           taskInstance.setVariable("var2", "value");
           </expression>
           </script>
           </event>
           </task>
           <transition name="" to="join1"></transition>
           </task-node>
          
          


          Cheers
          Luca

          • 2. Re: Jbpm Process Designer Expression support
            Ronald van Kuijk Master

            1: Not on the short roadmap. If it is not in the Jira, create an issue and it will (eventually) be assigned a version.

            2: A generic java based actionhandler which takes it's input as normal actionhandlers do and sets the variables

            3: As you can see, jbpm has 2 ways to set a value designtime. Maybe not the way you like it, but the functionality is there