<?xml version="1.0" encoding="UTF-8"?>
<definitions id="Definition"
             targetNamespace="http://www.example.org/MinimalExample"
             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:g="http://www.jboss.org/drools/flow/gpd"
             xmlns:tns="http://www.example.org/MinimalExample">

  <process id="Composite" name="Composite Process" >

    <!-- nodes -->
    <startEvent id="_1" name="StartProcess" />
    <subProcess id="_2" name="Sub-Process" >
      <!-- nodes -->
      <startEvent id="_2-1" name="Start" />
      <scriptTask id="_2-2" name="Script" >
        <script>System.out.println("Hello World");</script>
      </scriptTask>
      <endEvent id="_2-3" name="End" />
      <!-- connections -->
      <sequenceFlow id="_2-1-_2-2" sourceRef="_2-1" targetRef="_2-2" />
      <sequenceFlow id="_2-2-_2-3" sourceRef="_2-2" targetRef="_2-3" />
    </subProcess>
    <endEvent id="_3" name="EndProcess" >
        <terminateEventDefinition/>
    </endEvent>

    <!-- connections -->
    <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
    <sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" />

  </process>

  <bpmndi:BPMNDiagram id="CompositeDiagram">
    <bpmndi:BPMNPlane bpmnElement="Composite">
      <bpmndi:BPMNShape bpmnElement="_1">
        <dc:Bounds x="16" y="101" width="48" height="48"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2">
        <dc:Bounds x="96" y="16" width="243" height="218"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-1">
        <dc:Bounds x="113" y="54" width="48" height="48"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-2">
        <dc:Bounds x="207" y="55" width="80" height="48"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-3">
        <dc:Bounds x="118" y="147" width="48" height="48"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_3">
        <dc:Bounds x="371" y="101" width="48" height="48"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_1-_2">
        <di:waypoint x="40" y="125"/>
        <di:waypoint x="217" y="125"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-1-_2-2">
        <di:waypoint x="137" y="78"/>
        <di:waypoint x="247" y="79"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-2-_2-3">
        <di:waypoint x="247" y="79"/>
        <di:waypoint x="247" y="171"/>
        <di:waypoint x="142" y="171"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_3">
        <di:waypoint x="217" y="125"/>
        <di:waypoint x="395" y="125"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</definitions>
