1 Reply Latest reply on Dec 19, 2008 8:12 AM by Ronald van Kuijk

    variable in process definition

    Sascha Janz Master

      is it possible to define a variable and its value in a process definition?

      for example something like

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.2"
       name="simple">
       <variable name="var1" value="text" />
       <start-state name="start">
       <transition name="to_state" to="first">
       <action name="action" class="com.sample.action.MessageActionHandler">
       <message>Going to the first state!</message>
       </action>
       </transition>
       </start-state>
       <state name="first">
       <transition name="to_end" to="end">
       <action name="action" class="com.sample.action.MessageActionHandler">
       <message>About to finish!</message>
       </action>
       </transition>
       </state>
       <end-state name="end"></end-state>
      </process-definition>