<?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="TestProcess" id="org.drools.test.TestProcess" package-name="org.drools.test" >

  <header>
  </header>

  <nodes>
    <start id="1" name="Start" />
    <workItem id="2" name="WorkItem1" >
      <work name="MyWork" >
      </work>
    </workItem>
    <actionNode id="9" name="Action3">
        <action type="expression" dialect="java" >System.out.println("Executed WorkItem1");</action>
    </actionNode>
    <eventNode id="3" name="Message" >
      <eventFilters>
        <eventFilter type="eventType" eventType="MyEvent1" />
      </eventFilters>
    </eventNode>
    <actionNode id="4" name="Action1" >
        <action type="expression" dialect="java" >System.out.println("Executed action1");</action>
    </actionNode>
    <eventNode id="5" name="Message" >
      <eventFilters>
        <eventFilter type="eventType" eventType="MyEvent2" />
      </eventFilters>
    </eventNode>
    <actionNode id="6" name="Action2" >
        <action type="expression" dialect="java" >System.out.println("Executed action2");</action>
    </actionNode>
    <join id="7" name="AND" type="1" />
    <actionNode id="10" name="Action4">
        <action type="expression" dialect="java" >System.out.println("After AND");</action>
    </actionNode>
    <end id="8" name="End" />
  </nodes>

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

</process>