<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" 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:drools="http://www.jboss.org/drools" id="_Alp9kEcMEeG-Z8AhuVIXaA" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">
  <bpmn2:itemDefinition id="_xItem" structureRef="String"/>
  <bpmn2:process id="CompensateIntermediateThrowEvent" drools:packageName="com.sample" name="Compensate Intermediate Throw Event Process" isExecutable="true">
    <bpmn2:extensionElements>
      <drools:import name="java.util.List"/>
      <drools:import name="java.util.ArrayList"/>
    </bpmn2:extensionElements>
    <bpmn2:property id="x" itemSubjectRef="_xItem"/>
    <bpmn2:startEvent id="_17C796EB-AAF9-4A04-AFEF-0816CD82D0AC" name="StartProcess">
      <bpmn2:outgoing>_61681C72-F271-4E3A-8056-5C33A913C696</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:scriptTask id="_FFB96FA6-7673-4920-82C4-B89C1BA73A2D" name="Task" scriptFormat="http://www.java.com/java">
      <bpmn2:incoming>_61681C72-F271-4E3A-8056-5C33A913C696</bpmn2:incoming>
      <bpmn2:outgoing>_79ECCE33-0121-4531-AFCF-E4331C0614CC</bpmn2:outgoing>
      <bpmn2:script>System.out.println(&quot;Executing task&quot;);</bpmn2:script>
    </bpmn2:scriptTask>
    <bpmn2:intermediateThrowEvent id="_E85D6B6E-0F0E-4DC4-B2DC-D3318B105A5E" name="CompensateEvent">
      <bpmn2:incoming>_79ECCE33-0121-4531-AFCF-E4331C0614CC</bpmn2:incoming>
      <bpmn2:outgoing>_3326D2F4-8450-4ED2-A417-E82F672BDC38</bpmn2:outgoing>
      <bpmn2:compensateEventDefinition id="_Alp9kUcMEeG-Z8AhuVIXaA" drools:actrefname="Task" activityRef="_FFB96FA6-7673-4920-82C4-B89C1BA73A2D"/>
    </bpmn2:intermediateThrowEvent>
    <bpmn2:endEvent id="_728BD86A-C49D-4D52-86CC-D15CCF03F5F2" name="EndEvent">
      <bpmn2:incoming>_3326D2F4-8450-4ED2-A417-E82F672BDC38</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:scriptTask id="_89288ED6-DA46-467B-8DAA-AAF54060C287" name="Compensate" scriptFormat="http://www.java.com/java">
      <bpmn2:incoming>_81D680C3-CFB3-43A7-83E1-E20431E46D3F</bpmn2:incoming>
      <bpmn2:outgoing>_B872B374-9362-403D-8442-A3A370A1D970</bpmn2:outgoing>
      <bpmn2:script>System.out.println(&quot;Compensating task&quot;);</bpmn2:script>
    </bpmn2:scriptTask>
    <bpmn2:endEvent id="_86578D68-B802-4B09-BD43-7151FE3084E8" name="EndEvent">
      <bpmn2:incoming>_B872B374-9362-403D-8442-A3A370A1D970</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="_61681C72-F271-4E3A-8056-5C33A913C696" sourceRef="_17C796EB-AAF9-4A04-AFEF-0816CD82D0AC" targetRef="_FFB96FA6-7673-4920-82C4-B89C1BA73A2D"/>
    <bpmn2:sequenceFlow id="_79ECCE33-0121-4531-AFCF-E4331C0614CC" sourceRef="_FFB96FA6-7673-4920-82C4-B89C1BA73A2D" targetRef="_E85D6B6E-0F0E-4DC4-B2DC-D3318B105A5E"/>
    <bpmn2:sequenceFlow id="_3326D2F4-8450-4ED2-A417-E82F672BDC38" sourceRef="_E85D6B6E-0F0E-4DC4-B2DC-D3318B105A5E" targetRef="_728BD86A-C49D-4D52-86CC-D15CCF03F5F2"/>
    <bpmn2:sequenceFlow id="_81D680C3-CFB3-43A7-83E1-E20431E46D3F" sourceRef="_A9B835CB-0503-42AE-9067-58ACF1754465" targetRef="_89288ED6-DA46-467B-8DAA-AAF54060C287"/>
    <bpmn2:sequenceFlow id="_B872B374-9362-403D-8442-A3A370A1D970" sourceRef="_89288ED6-DA46-467B-8DAA-AAF54060C287" targetRef="_86578D68-B802-4B09-BD43-7151FE3084E8"/>
    <bpmn2:boundaryEvent id="_A9B835CB-0503-42AE-9067-58ACF1754465" name="CompensateEvent" attachedToRef="_FFB96FA6-7673-4920-82C4-B89C1BA73A2D">
      <bpmn2:outgoing>_81D680C3-CFB3-43A7-83E1-E20431E46D3F</bpmn2:outgoing>
      <bpmn2:compensateEventDefinition id="_Alp9kkcMEeG-Z8AhuVIXaA"/>
    </bpmn2:boundaryEvent>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="_Alp9k0cMEeG-Z8AhuVIXaA">
    <bpmndi:BPMNPlane id="_Alp9lEcMEeG-Z8AhuVIXaA" bpmnElement="CompensateIntermediateThrowEvent">
      <bpmndi:BPMNShape id="_Alp9lUcMEeG-Z8AhuVIXaA" bpmnElement="_17C796EB-AAF9-4A04-AFEF-0816CD82D0AC">
        <dc:Bounds height="30.0" width="30.0" x="25.0" y="25.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_Alp9lkcMEeG-Z8AhuVIXaA" bpmnElement="_FFB96FA6-7673-4920-82C4-B89C1BA73A2D">
        <dc:Bounds height="48.0" width="80.0" x="96.0" y="16.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_Alp9l0cMEeG-Z8AhuVIXaA" bpmnElement="_E85D6B6E-0F0E-4DC4-B2DC-D3318B105A5E">
        <dc:Bounds height="30.0" width="30.0" x="272.0" y="25.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_Alp9mEcMEeG-Z8AhuVIXaA" bpmnElement="_728BD86A-C49D-4D52-86CC-D15CCF03F5F2">
        <dc:Bounds height="28.0" width="28.0" x="414.0" y="25.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_Alp9mUcMEeG-Z8AhuVIXaA" bpmnElement="_89288ED6-DA46-467B-8DAA-AAF54060C287">
        <dc:Bounds height="48.0" width="117.0" x="102.0" y="138.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_Alp9mkcMEeG-Z8AhuVIXaA" bpmnElement="_86578D68-B802-4B09-BD43-7151FE3084E8">
        <dc:Bounds height="28.0" width="28.0" x="282.0" y="146.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="_Alp9m0cMEeG-Z8AhuVIXaA" bpmnElement="_61681C72-F271-4E3A-8056-5C33A913C696">
        <di:waypoint xsi:type="dc:Point" x="40.0" y="40.0"/>
        <di:waypoint xsi:type="dc:Point" x="136.0" y="40.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="_Alp9nEcMEeG-Z8AhuVIXaA" bpmnElement="_79ECCE33-0121-4531-AFCF-E4331C0614CC">
        <di:waypoint xsi:type="dc:Point" x="136.0" y="40.0"/>
        <di:waypoint xsi:type="dc:Point" x="287.0" y="40.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="_Alp9nUcMEeG-Z8AhuVIXaA" bpmnElement="_3326D2F4-8450-4ED2-A417-E82F672BDC38">
        <di:waypoint xsi:type="dc:Point" x="287.0" y="40.0"/>
        <di:waypoint xsi:type="dc:Point" x="428.0" y="39.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="_Alp9nkcMEeG-Z8AhuVIXaA" bpmnElement="_81D680C3-CFB3-43A7-83E1-E20431E46D3F">
        <di:waypoint xsi:type="dc:Point" x="142.0" y="64.0"/>
        <di:waypoint xsi:type="dc:Point" x="160.5" y="162.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="_Alp9n0cMEeG-Z8AhuVIXaA" bpmnElement="_B872B374-9362-403D-8442-A3A370A1D970">
        <di:waypoint xsi:type="dc:Point" x="160.5" y="162.0"/>
        <di:waypoint xsi:type="dc:Point" x="296.0" y="160.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_Alp9oEcMEeG-Z8AhuVIXaA" bpmnElement="_A9B835CB-0503-42AE-9067-58ACF1754465">
        <dc:Bounds height="30.0" width="30.0" x="127.0" y="49.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="_Alp9oUcMEeG-Z8AhuVIXaA" bpmnElement="_A9B835CB-0503-42AE-9067-58ACF1754465">
        <di:waypoint xsi:type="dc:Point" x="46.0" y="46.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
