<?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:g="http://www.jboss.org/drools/flow/gpd"
             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">

  <process processType="Private" isExecutable="true" id="AdHocSubProcess" name="AdHoc SubProcess" >

    <!-- nodes -->
    <startEvent id="_1" name="StartProcess" />
    <adHocSubProcess id="_2" name="Hello"  ordering="Parallel" >
    <!-- nodes -->
    <scriptTask id="_2-1" name="Hello1" >
      <script>System.out.println("Hello World 1");</script>
    </scriptTask>
    <scriptTask id="_2-2" name="Hello2" >
      <script>System.out.println("Hello World 2");</script>
    </scriptTask>
    <userTask id="_2-3" name="Hello" >
      <ioSpecification>
        <inputSet>
        </inputSet>
        <outputSet>
        </outputSet>
      </ioSpecification>
    </userTask>
    <!-- connections -->
    <sequenceFlow id="_2-2-_2-3" sourceRef="_2-2" targetRef="_2-3" />
    </adHocSubProcess>
    <scriptTask id="_3" name="Goodbye" >
      <script>System.out.println("Goodbye World");</script>
    </scriptTask>
    <endEvent id="_4" name="EndProcess" >
        <terminateEventDefinition/>
    </endEvent>

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

  </process>

  <bpmndi:BPMNDiagram>
    <bpmndi:BPMNPlane bpmnElement="AdHocSubProcess" >
      <bpmndi:BPMNShape bpmnElement="_1" >
        <dc:Bounds x="18" y="74" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2" >
        <dc:Bounds x="96" y="16" width="223" height="161" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-1" >
        <dc:Bounds x="107" y="60" width="80" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-2" >
        <dc:Bounds x="105" y="118" width="80" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-3" >
        <dc:Bounds x="207" y="118" width="100" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_3" >
        <dc:Bounds x="343" y="71" width="97" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_4" >
        <dc:Bounds x="459" y="71" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_2-2-_2-3" >
        <di:waypoint x="49" y="126" />
        <di:waypoint x="161" y="126" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_1-_2" >
        <di:waypoint x="42" y="98" />
        <di:waypoint x="207" y="96" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_3" >
        <di:waypoint x="207" y="96" />
        <di:waypoint x="391" y="95" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_3-_4" >
        <di:waypoint x="391" y="95" />
        <di:waypoint x="483" y="95" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</definitions>