<?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="_CtFBQEcFEeGlwN3uhdkD7g" 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"/>
  <bpmn2:process id="CompensateEndEvent" drools:packageName="defaultPackage" name="Compensate End 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="_D0F6F9ED-2513-4DF8-B144-CA17634DA71B" name="StartProcess">
      <bpmn2:outgoing>_C0DD222A-CD1B-4FF1-AF47-D27C669E8EA6</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:scriptTask id="_691144A2-E3F4-448A-B4EB-9DAD8FE033B4" name="Task" scriptFormat="http://www.java.com/java">
      <bpmn2:incoming>_C0DD222A-CD1B-4FF1-AF47-D27C669E8EA6</bpmn2:incoming>
      <bpmn2:outgoing>_EE172173-3D7F-4CF3-87AE-D58188785ECF</bpmn2:outgoing>
      <bpmn2:script>System.out.println(&quot;Executing task&quot;);</bpmn2:script>
    </bpmn2:scriptTask>
    <bpmn2:endEvent id="_A37948C0-B7A7-430C-A404-011CAB419188" name="CompensateEvent">
      <bpmn2:incoming>_EE172173-3D7F-4CF3-87AE-D58188785ECF</bpmn2:incoming>
      <bpmn2:compensateEventDefinition id="_CtFBQUcFEeGlwN3uhdkD7g" drools:actrefname="Task" activityRef="_691144A2-E3F4-448A-B4EB-9DAD8FE033B4"/>
    </bpmn2:endEvent>
    <bpmn2:scriptTask id="_66D16CC2-2699-4D0D-B90F-B88DEE078257" name="Compensate" scriptFormat="http://www.java.com/java">
      <bpmn2:incoming>_AD36A57A-9FEE-4D1D-B31B-A6F07EB3B625</bpmn2:incoming>
      <bpmn2:outgoing>_CC55EC58-0D2F-4065-87D1-D90409A7A3FD</bpmn2:outgoing>
      <bpmn2:script>System.out.println(&quot;Compensating task&quot;);</bpmn2:script>
    </bpmn2:scriptTask>
    <bpmn2:endEvent id="_9F6A7828-5EFB-4AE1-87B2-B0530CC18D4B" name="EndEvent">
      <bpmn2:incoming>_CC55EC58-0D2F-4065-87D1-D90409A7A3FD</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="_C0DD222A-CD1B-4FF1-AF47-D27C669E8EA6" sourceRef="_D0F6F9ED-2513-4DF8-B144-CA17634DA71B" targetRef="_691144A2-E3F4-448A-B4EB-9DAD8FE033B4"/>
    <bpmn2:sequenceFlow id="_EE172173-3D7F-4CF3-87AE-D58188785ECF" sourceRef="_691144A2-E3F4-448A-B4EB-9DAD8FE033B4" targetRef="_A37948C0-B7A7-430C-A404-011CAB419188"/>
    <bpmn2:sequenceFlow id="_AD36A57A-9FEE-4D1D-B31B-A6F07EB3B625" sourceRef="_572D7143-E028-47BA-902B-FE2792D26D07" targetRef="_66D16CC2-2699-4D0D-B90F-B88DEE078257"/>
    <bpmn2:sequenceFlow id="_CC55EC58-0D2F-4065-87D1-D90409A7A3FD" sourceRef="_66D16CC2-2699-4D0D-B90F-B88DEE078257" targetRef="_9F6A7828-5EFB-4AE1-87B2-B0530CC18D4B"/>
    <bpmn2:boundaryEvent id="_572D7143-E028-47BA-902B-FE2792D26D07" name="CompensateEvent" attachedToRef="_691144A2-E3F4-448A-B4EB-9DAD8FE033B4">
      <bpmn2:outgoing>_AD36A57A-9FEE-4D1D-B31B-A6F07EB3B625</bpmn2:outgoing>
      <bpmn2:compensateEventDefinition id="_CtFBQkcFEeGlwN3uhdkD7g"/>
    </bpmn2:boundaryEvent>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="_CtFBQ0cFEeGlwN3uhdkD7g">
    <bpmndi:BPMNPlane id="_CtFBREcFEeGlwN3uhdkD7g" bpmnElement="CompensateEndEvent">
      <bpmndi:BPMNShape id="_CtFBRUcFEeGlwN3uhdkD7g" bpmnElement="_D0F6F9ED-2513-4DF8-B144-CA17634DA71B">
        <dc:Bounds height="30.0" width="30.0" x="25.0" y="25.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_CtFBRkcFEeGlwN3uhdkD7g" bpmnElement="_691144A2-E3F4-448A-B4EB-9DAD8FE033B4">
        <dc:Bounds height="48.0" width="80.0" x="96.0" y="16.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_CtFBR0cFEeGlwN3uhdkD7g" bpmnElement="_A37948C0-B7A7-430C-A404-011CAB419188">
        <dc:Bounds height="28.0" width="28.0" x="217.0" y="25.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_CtFBSEcFEeGlwN3uhdkD7g" bpmnElement="_66D16CC2-2699-4D0D-B90F-B88DEE078257">
        <dc:Bounds height="48.0" width="126.0" x="96.0" y="96.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_CtFBSUcFEeGlwN3uhdkD7g" bpmnElement="_9F6A7828-5EFB-4AE1-87B2-B0530CC18D4B">
        <dc:Bounds height="28.0" width="28.0" x="262.0" y="104.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="_CtFBSkcFEeGlwN3uhdkD7g" bpmnElement="_C0DD222A-CD1B-4FF1-AF47-D27C669E8EA6">
        <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="_CtFBS0cFEeGlwN3uhdkD7g" bpmnElement="_EE172173-3D7F-4CF3-87AE-D58188785ECF">
        <di:waypoint xsi:type="dc:Point" x="136.0" y="40.0"/>
        <di:waypoint xsi:type="dc:Point" x="231.0" y="39.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="_CtFBTEcFEeGlwN3uhdkD7g" bpmnElement="_AD36A57A-9FEE-4D1D-B31B-A6F07EB3B625">
        <di:waypoint xsi:type="dc:Point" x="40.0" y="120.0"/>
        <di:waypoint xsi:type="dc:Point" x="159.0" y="120.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="_CtFBTUcFEeGlwN3uhdkD7g" bpmnElement="_CC55EC58-0D2F-4065-87D1-D90409A7A3FD">
        <di:waypoint xsi:type="dc:Point" x="159.0" y="120.0"/>
        <di:waypoint xsi:type="dc:Point" x="276.0" y="118.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_CtFBTkcFEeGlwN3uhdkD7g" bpmnElement="_572D7143-E028-47BA-902B-FE2792D26D07">
        <dc:Bounds height="30.0" width="30.0" x="25.0" y="105.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="_CtFBT0cFEeGlwN3uhdkD7g" bpmnElement="_572D7143-E028-47BA-902B-FE2792D26D07">
        <di:waypoint xsi:type="dc:Point" x="-81.0" y="-1.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
