<?xml version="1.0" encoding="UTF-8"?> 
<definitions id="Definition"
             typeLanguage="http://www.java.com/javaTypes"
             expressionLanguage="http://www.mvel.org/2.0"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
             xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
             xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
             xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
             xmlns:tns="http://www.jboss.org/drools">

  <itemDefinition id="_xItem" />

  <process processType="Private" isExecutable="true" id="com.sample.test" name="Test" >

    <!-- process variables -->
    <property id="x" itemSubjectRef="_xItem"/>

    <!-- nodes -->
    <startEvent id="_1" name="Start" />
    <inclusiveGateway id="_2" name="Split" gatewayDirection="Diverging" />
    <scriptTask id="_3" name="Script1" >
      <script>System.out.println("path1");</script>
    </scriptTask>
    <scriptTask id="_4" name="Script2" >
      <script>System.out.println("path2");</script>
    </scriptTask>
    <scriptTask id="_5" name="Script3" >
      <script>System.out.println("path3");</script>
    </scriptTask>
    <endEvent id="_6" name="End" />
    <endEvent id="_7" name="End" />
    <endEvent id="_8" name="End" />

    <!-- connections -->
    <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
    <sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" >
      <conditionExpression xsi:type="tFormalExpression" >return x &gt; 0;</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="_2-_4" sourceRef="_2" targetRef="_4" >
      <conditionExpression xsi:type="tFormalExpression" >return x &gt; 10;</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="_2-_5" sourceRef="_2" targetRef="_5" >
      <conditionExpression xsi:type="tFormalExpression" >return x &gt; 20;</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="_3-_6" sourceRef="_3" targetRef="_6" />
    <sequenceFlow id="_4-_7" sourceRef="_4" targetRef="_7" />
    <sequenceFlow id="_5-_8" sourceRef="_5" targetRef="_8" />

  </process>

  <bpmndi:BPMNDiagram>
    <bpmndi:BPMNPlane bpmnElement="com.sample.test" >
      <bpmndi:BPMNShape bpmnElement="_1" >
        <dc:Bounds x="16" y="96" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2" >
        <dc:Bounds x="96" y="96" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_3" >
        <dc:Bounds x="177" y="16" width="80" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_4" >
        <dc:Bounds x="177" y="96" width="80" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_5" >
        <dc:Bounds x="177" y="176" width="80" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_6" >
        <dc:Bounds x="289" y="16" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_7" >
        <dc:Bounds x="289" y="96" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_8" >
        <dc:Bounds x="289" y="176" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_1-_2" >
        <di:waypoint x="40" y="120" />
        <di:waypoint x="120" y="120" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_3" >
        <di:waypoint x="120" y="120" />
        <di:waypoint x="217" y="40" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_4" >
        <di:waypoint x="120" y="120" />
        <di:waypoint x="217" y="120" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_5" >
        <di:waypoint x="120" y="120" />
        <di:waypoint x="217" y="200" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_3-_6" >
        <di:waypoint x="217" y="40" />
        <di:waypoint x="313" y="40" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_4-_7" >
        <di:waypoint x="217" y="120" />
        <di:waypoint x="313" y="120" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_5-_8" >
        <di:waypoint x="217" y="200" />
        <di:waypoint x="313" y="200" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</definitions>