<?xml version="1.0" encoding="UTF-8"?> 
<process xmlns="http://drools.org/drools-5.0/process"
         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
         xs:schemaLocation="http://drools.org/drools-5.0/process drools-processes-5.0.xsd"
         type="RuleFlow" name="flow" id="testVariables" package-name="org.drools.examples" >

  <header>
    <variables>
      <variable name="var1" >
        <type name="org.jbpm.process.core.datatype.impl.type.ObjectDataType" className="org.jbpm.persistence.session.objects.MyEntity" />
      </variable>
      <variable name="var2" >
        <type name="org.jbpm.process.core.datatype.impl.type.ObjectDataType" className="org.jbpm.persistence.session.objects.MyVariableSerializable" />
      </variable>
    </variables>
  </header>

  <nodes>
    <start id="1" name="Start" x="147" y="32" width="80" height="40" />
 
    <workItem id="2" name="Log1" x="147" y="191" width="80" height="40" >
      <work name="Log" >
       
      </work>
      <mapping type="in" from="var1" to="var1" />
      <mapping type="in" from="var2" to="var2" />
      <mapping type="out" from="var1" to="var1" />
      <mapping type="out" from="var2" to="var2" />
    </workItem>
    <actionNode id="3" name="Action1" x="146" y="117" width="80" height="40" >
        <action type="expression" dialect="mvel" >
            System.out.println("Variable Value: "+kcontext.getVariable("var1"));
            System.out.println("Variable Value: "+kcontext.getVariable("var2"));
        </action>
    </actionNode>
    <actionNode id="4" name="Action2" x="147" y="268" width="80" height="40" >
        <action type="expression" dialect="mvel" >
            System.out.println("Variable Value: "+kcontext.getVariable("var1"));
            System.out.println("Variable Value: "+kcontext.getVariable("var2"));
        </action>
    </actionNode>
    <workItem id="5" name="Log2" x="146" y="345" width="80" height="40" >
      <work name="Log" >
      
      </work>
     <mapping type="in" from="var1" to="var1" />
      <mapping type="in" from="var2" to="var2" />
      <mapping type="out" from="var1" to="var1" />
      <mapping type="out" from="var2" to="var2" />
    </workItem>
    <actionNode id="6" name="Action3" x="144" y="422" width="80" height="40" >
        <action type="expression" dialect="mvel" >
            System.out.println("Variable Value: "+kcontext.getVariable("var1"));
            System.out.println("Variable Value: "+kcontext.getVariable("var2"));
        </action>
    </actionNode>
    <workItem id="7" name="Log3" x="146" y="345" width="80" height="40" >
      <work name="Log" >
        
      </work>
      <mapping type="in" from="var1" to="var1" />
      <mapping type="in" from="var2" to="var2" />
      <mapping type="out" from="var1" to="var1" />
      <mapping type="out" from="var2" to="var2" />
    </workItem>
    <end id="8" name="End" x="145" y="494" width="80" height="40" />
  </nodes>

  <connections>
    <connection from="3" to="2" />
    <connection from="1" to="3" />
    <connection from="2" to="4" />
    <connection from="4" to="5" />
    <connection from="5" to="6" />
    <connection from="6" to="7" />
    <connection from="7" to="8" />
  </connections>

</process>
