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

  <itemDefinition id="_listItem"  structureRef="java.util.List"/>

  <itemDefinition id="_2_multiInstanceItemType" structureRef="String" />

  <process processType="Private" isExecutable="true" id="MultiInstanceLoopCharacteristicsProcess" name="MultiInstanceLoopCharacteristics SubProcess" >

    <!-- process variables -->
    <property id="list" itemSubjectRef="_listItem"/>

    <!-- nodes -->
    <startEvent id="_1" name="StartProcess" />
    <subProcess id="_2" name="Hello"  >
      <ioSpecification>
        <dataInput id="_2_input" name="MultiInstanceInput" />
        <inputSet/>
        <outputSet/>
      </ioSpecification>
      <dataInputAssociation>
        <sourceRef>list</sourceRef>
        <targetRef>_2_input</targetRef>
      </dataInputAssociation>
      <multiInstanceLoopCharacteristics>
        <loopDataInputRef>_2_input</loopDataInputRef>
        <inputDataItem id="item" itemSubjectRef="_2_multiInstanceItemType"/>
      </multiInstanceLoopCharacteristics>
    <!-- nodes -->
    <startEvent id="_2-1" name="StartSubProcess" />
    <scriptTask id="_2-2" name="Hello" >
      <script>System.out.println("item = " + item);</script>
    </scriptTask>
    <endEvent id="_2-3" name="EndSubProcess" />
    <!-- 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>
    <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="MultiInstanceLoopCharacteristicsProcess" >
      <bpmndi:BPMNShape bpmnElement="_1" >
        <dc:Bounds x="16" y="67" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2" >
        <dc:Bounds x="96" y="16" width="200" height="150" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-1" >
        <dc:Bounds x="114" y="41" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-2" >
        <dc:Bounds x="199" y="42" width="80" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2-3" >
        <dc:Bounds x="216" y="109" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_3" >
        <dc:Bounds x="328" y="67" width="92" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_4" >
        <dc:Bounds x="440" y="67" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_2-1-_2-2" >
        <di:waypoint x="43" y="49" />
        <di:waypoint x="143" y="50" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-2-_2-3" >
        <di:waypoint x="143" y="50" />
        <di:waypoint x="144" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_1-_2" >
        <di:waypoint x="40" y="91" />
        <di:waypoint x="196" y="91" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_3" >
        <di:waypoint x="196" y="91" />
        <di:waypoint x="374" y="91" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_3-_4" >
        <di:waypoint x="374" y="91" />
        <di:waypoint x="464" y="91" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</definitions>