<?xml version="1.0" encoding="UTF-8"?>
<!-- origin at X=0.0 Y=0.0 -->
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmn20="http://www.omg.org/bpmn20" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" 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" xmlns="http://www.jboss.org/drools" xmlns:ns="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="_KigS0FylEeqndsSY5Qaz_A" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.3.Final-v20180418-1358-B1" targetNamespace="http://www.omg.org/bpmn20">
  <bpmn2:itemDefinition id="_exceptionItem" isCollection="false" structureRef="java.lang.Exception"/>
  <bpmn2:itemDefinition id="__67BBED99-1CDF-409C-8D72-B421A365A713_errorOutputXItem" isCollection="false" structureRef="java.lang.Exception"/>
  <bpmn2:error id="org.jbpm.workflow.instance.WorkflowRuntimeException"/>
  <bpmn2:process id="ExceptionHandling.ScriptMainProcess" drools:packageName="com" drools:version="1.0" drools:adHoc="false" name="ScriptMainProcess" isExecutable="true">
    <bpmn2:property id="exception" itemSubjectRef="_exceptionItem" name="exception"/>
    <bpmn2:sequenceFlow id="_C07D8B6A-00CC-4D2D-8CB9-9DA356343D90" sourceRef="_28DDE487-2DE6-4D0B-B026-8D04E2C0C268" targetRef="_97690ECE-27B9-4495-BC8A-0D26DAC10D03">
      <bpmn2:extensionElements>
        <drools:metaData name="isAutoConnection.source">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
        <drools:metaData name="isAutoConnection.target">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="_C8633717-CD20-4DD8-B6EB-C65604CAAA60" sourceRef="_67BBED99-1CDF-409C-8D72-B421A365A713" targetRef="_BC6847D7-36B3-4623-A1DC-2507A5BAB9DB">
      <bpmn2:extensionElements>
        <drools:metaData name="isAutoConnection.source">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
        <drools:metaData name="isAutoConnection.target">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="_6EB287C3-2C58-4DD8-AB61-E994840C8046" sourceRef="_BC6847D7-36B3-4623-A1DC-2507A5BAB9DB" targetRef="_4D3B51DC-09A5-4BCB-AC02-6344CEB7DE34">
      <bpmn2:extensionElements>
        <drools:metaData name="isAutoConnection.source">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
        <drools:metaData name="isAutoConnection.target">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="_C6163BA9-B8D0-46CF-8BCF-E0A58BAD1848" sourceRef="_F7B358F5-2EF0-4AD8-A39E-7CB447FD0ECD" targetRef="_28DDE487-2DE6-4D0B-B026-8D04E2C0C268">
      <bpmn2:extensionElements>
        <drools:metaData name="isAutoConnection.source">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
        <drools:metaData name="isAutoConnection.target">
          <drools:metaValue><![CDATA[true]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
    </bpmn2:sequenceFlow>
    <bpmn2:endEvent id="_97690ECE-27B9-4495-BC8A-0D26DAC10D03" >
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:incoming>_C07D8B6A-00CC-4D2D-8CB9-9DA356343D90</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:callActivity id="_28DDE487-2DE6-4D0B-B026-8D04E2C0C268" drools:independent="false" drools:waitForCompletion="true" name="Sub-process" calledElement="ExceptionHandling.ScriptSubprocess">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[Sub-process]]></drools:metaValue>
        </drools:metaData>
        <drools:metaData name="customAbortParent">
          <drools:metaValue><![CDATA[false]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:incoming>_C6163BA9-B8D0-46CF-8BCF-E0A58BAD1848</bpmn2:incoming>
      <bpmn2:outgoing>_C07D8B6A-00CC-4D2D-8CB9-9DA356343D90</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:scriptTask id="_BC6847D7-36B3-4623-A1DC-2507A5BAB9DB" name="Task" scriptFormat="http://www.java.com/java">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[Task]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:incoming>_C8633717-CD20-4DD8-B6EB-C65604CAAA60</bpmn2:incoming>
      <bpmn2:outgoing>_6EB287C3-2C58-4DD8-AB61-E994840C8046</bpmn2:outgoing>
      <bpmn2:script><![CDATA[System.out.println("Exception: " + kcontext.getVariable("exception"));]]> </bpmn2:script>
    </bpmn2:scriptTask>
    <bpmn2:endEvent id="_4D3B51DC-09A5-4BCB-AC02-6344CEB7DE34">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:terminateEventDefinition id="TerminateEventDefinition_1"/>
      <bpmn2:incoming>_6EB287C3-2C58-4DD8-AB61-E994840C8046</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:startEvent id="_F7B358F5-2EF0-4AD8-A39E-7CB447FD0ECD">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:outgoing>_C6163BA9-B8D0-46CF-8BCF-E0A58BAD1848</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:boundaryEvent id="_67BBED99-1CDF-409C-8D72-B421A365A713" drools:boundaryca="true" drools:dockerinfo="8.0^73.0|" attachedToRef="_28DDE487-2DE6-4D0B-B026-8D04E2C0C268">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:outgoing>_C8633717-CD20-4DD8-B6EB-C65604CAAA60</bpmn2:outgoing>
      <bpmn2:dataOutput id="_67BBED99-1CDF-409C-8D72-B421A365A713_errorOutputX" drools:dtype="org.jbpm.workflow.instance.WorkflowRuntimeException" itemSubjectRef="__67BBED99-1CDF-409C-8D72-B421A365A713_errorOutputXItem" name="error"/>
      <bpmn2:dataOutputAssociation id="_KigS0lylEeqndsSY5Qaz_A">
        <bpmn2:sourceRef>_67BBED99-1CDF-409C-8D72-B421A365A713_errorOutputX</bpmn2:sourceRef>
        <bpmn2:targetRef>exception</bpmn2:targetRef>
      </bpmn2:dataOutputAssociation>
      <bpmn2:outputSet id="_KigS0VylEeqndsSY5Qaz_A">
        <bpmn2:dataOutputRefs>_67BBED99-1CDF-409C-8D72-B421A365A713_errorOutputX</bpmn2:dataOutputRefs>
      </bpmn2:outputSet>
      <bpmn2:errorEventDefinition id="_KigS01ylEeqndsSY5Qaz_A" drools:erefname="org.jbpm.workflow.instance.WorkflowRuntimeException" errorRef="org.jbpm.workflow.instance.WorkflowRuntimeException"/>
    </bpmn2:boundaryEvent>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="_KigS1FylEeqndsSY5Qaz_A">
    <bpmndi:BPMNPlane id="_KigS1VylEeqndsSY5Qaz_A" bpmnElement="ExceptionHandling.ScriptMainProcess">
      <bpmndi:BPMNShape id="shape__F7B358F5-2EF0-4AD8-A39E-7CB447FD0ECD" bpmnElement="_F7B358F5-2EF0-4AD8-A39E-7CB447FD0ECD">
        <dc:Bounds height="56.0" width="56.0" x="145.0" y="50.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape__4D3B51DC-09A5-4BCB-AC02-6344CEB7DE34" bpmnElement="_4D3B51DC-09A5-4BCB-AC02-6344CEB7DE34">
        <dc:Bounds height="56.0" width="56.00003" x="479.71347" y="231.5"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape__BC6847D7-36B3-4623-A1DC-2507A5BAB9DB" bpmnElement="_BC6847D7-36B3-4623-A1DC-2507A5BAB9DB">
        <dc:Bounds height="102.0" width="153.99998" x="245.71349" y="208.5"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.0" width="31.0" x="306.0" y="250.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape__28DDE487-2DE6-4D0B-B026-8D04E2C0C268" bpmnElement="_28DDE487-2DE6-4D0B-B026-8D04E2C0C268" isExpanded="true">
        <dc:Bounds height="101.0" width="153.0" x="281.5" y="27.5"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.0" width="84.0" x="315.0" y="68.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape__97690ECE-27B9-4495-BC8A-0D26DAC10D03" bpmnElement="_97690ECE-27B9-4495-BC8A-0D26DAC10D03">
        <dc:Bounds height="56.0" width="56.0" x="514.0" y="50.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape__67BBED99-1CDF-409C-8D72-B421A365A713" bpmnElement="_67BBED99-1CDF-409C-8D72-B421A365A713">
        <dc:Bounds height="56.0" width="56.0" x="289.5" y="100.5"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="edge_shape__F7B358F5-2EF0-4AD8-A39E-7CB447FD0ECD_to_shape__28DDE487-2DE6-4D0B-B026-8D04E2C0C268" bpmnElement="_C6163BA9-B8D0-46CF-8BCF-E0A58BAD1848" sourceElement="shape__F7B358F5-2EF0-4AD8-A39E-7CB447FD0ECD" targetElement="shape__28DDE487-2DE6-4D0B-B026-8D04E2C0C268">
        <di:waypoint xsi:type="dc:Point" x="201.0" y="78.0"/>
        <di:waypoint xsi:type="dc:Point" x="281.5" y="78.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge_shape__BC6847D7-36B3-4623-A1DC-2507A5BAB9DB_to_shape__4D3B51DC-09A5-4BCB-AC02-6344CEB7DE34" bpmnElement="_6EB287C3-2C58-4DD8-AB61-E994840C8046" sourceElement="shape__BC6847D7-36B3-4623-A1DC-2507A5BAB9DB" targetElement="shape__4D3B51DC-09A5-4BCB-AC02-6344CEB7DE34">
        <di:waypoint xsi:type="dc:Point" x="399.71347" y="259.5"/>
        <di:waypoint xsi:type="dc:Point" x="479.71347" y="259.5"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge_shape__67BBED99-1CDF-409C-8D72-B421A365A713_to_shape__BC6847D7-36B3-4623-A1DC-2507A5BAB9DB" bpmnElement="_C8633717-CD20-4DD8-B6EB-C65604CAAA60" sourceElement="shape__67BBED99-1CDF-409C-8D72-B421A365A713" targetElement="shape__BC6847D7-36B3-4623-A1DC-2507A5BAB9DB">
        <di:waypoint xsi:type="dc:Point" x="345.5" y="128.5"/>
        <di:waypoint xsi:type="dc:Point" x="245.71349" y="259.5"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge_shape__28DDE487-2DE6-4D0B-B026-8D04E2C0C268_to_shape__97690ECE-27B9-4495-BC8A-0D26DAC10D03" bpmnElement="_C07D8B6A-00CC-4D2D-8CB9-9DA356343D90" sourceElement="shape__28DDE487-2DE6-4D0B-B026-8D04E2C0C268" targetElement="shape__97690ECE-27B9-4495-BC8A-0D26DAC10D03">
        <di:waypoint xsi:type="dc:Point" x="434.5" y="78.0"/>
        <di:waypoint xsi:type="dc:Point" x="514.0" y="78.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>