<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" 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:tns="http://www.jboss.org/drools" 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="Definitions_1" targetNamespace="http://www.jboss.org/drools">
  <bpmn2:process id="BPMN2-EmbeddedSubProcessWithExclusiveSplit" tns:version="1" tns:packageName="defaultPackage" name="Default Process">
    <bpmn2:subProcess id="SubProcess_1" name="SubProcess">
      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
      <bpmn2:startEvent id="StartEvent_2" name="start subprocess">
        <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
      </bpmn2:startEvent>
      <bpmn2:exclusiveGateway id="ExclusiveGateway_1" name="split" gatewayDirection="Diverging">
        <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
        <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
      </bpmn2:exclusiveGateway>
      <bpmn2:sequenceFlow id="SequenceFlow_3" tns:priority="1" name="sb started" sourceRef="StartEvent_2" targetRef="ExclusiveGateway_1"/>
      <bpmn2:sequenceFlow id="SequenceFlow_5" tns:priority="1" name="right" sourceRef="ExclusiveGateway_1" targetRef="ScriptTask_1"/>
      <bpmn2:exclusiveGateway id="ExclusiveGateway_2" name="join" gatewayDirection="Converging">
        <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
        <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
      </bpmn2:exclusiveGateway>
      <bpmn2:endEvent id="EndEvent_2" name="sb end">
        <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
      </bpmn2:endEvent>
      <bpmn2:sequenceFlow id="SequenceFlow_8" tns:priority="1" name="joined" sourceRef="ExclusiveGateway_2" targetRef="EndEvent_2"/>
      <bpmn2:scriptTask id="ScriptTask_1" name="Script 2">
        <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
      </bpmn2:scriptTask>
      <bpmn2:sequenceFlow id="SequenceFlow_7" tns:priority="1" name="after 2" sourceRef="ScriptTask_1" targetRef="ExclusiveGateway_2"/>
      <bpmn2:sequenceFlow id="SequenceFlow_10" tns:priority="1" name="left" sourceRef="ExclusiveGateway_1" targetRef="ScriptTask_2"/>
      <bpmn2:scriptTask id="ScriptTask_2" name="Script 1">
        <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
      </bpmn2:scriptTask>
      <bpmn2:sequenceFlow id="SequenceFlow_11" tns:priority="1" name="after 1" sourceRef="ScriptTask_2" targetRef="ExclusiveGateway_2"/>
    </bpmn2:subProcess>
    <bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" name="completed" sourceRef="SubProcess_1" targetRef="EndEvent_1"/>
    <bpmn2:startEvent id="StartEvent_1" name="start">
      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_2" tns:priority="1" name="started" sourceRef="StartEvent_1" targetRef="SubProcess_1"/>
    <bpmn2:endEvent id="EndEvent_1" name="end">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
    </bpmn2:endEvent>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Default Process Diagram">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="BPMN2-EmbeddedSubProcessWithExclusiveSplit">
      <bpmndi:BPMNShape id="BPMNShape_SubProcess_1" bpmnElement="SubProcess_1" isExpanded="true">
        <dc:Bounds height="300.0" width="505.0" x="145.0" y="40.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_1" bpmnElement="StartEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="60.0" y="172.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_2" bpmnElement="EndEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="760.0" y="174.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_2">
        <dc:Bounds height="36.0" width="36.0" x="198.0" y="162.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_1" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
        <dc:Bounds height="50.0" width="50.0" x="284.0" y="155.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1">
        <dc:Bounds height="50.0" width="110.0" x="360.0" y="240.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_2" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
        <dc:Bounds height="50.0" width="50.0" x="490.0" y="166.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_2">
        <dc:Bounds height="36.0" width="36.0" x="590.0" y="173.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ScriptTask_2" bpmnElement="ScriptTask_2">
        <dc:Bounds height="50.0" width="110.0" x="360.0" y="80.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_SubProcess_1" targetElement="BPMNShape_2">
        <di:waypoint xsi:type="dc:Point" x="650.0" y="190.0"/>
        <di:waypoint xsi:type="dc:Point" x="760.0" y="192.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_1" targetElement="BPMNShape_SubProcess_1">
        <di:waypoint xsi:type="dc:Point" x="96.0" y="190.0"/>
        <di:waypoint xsi:type="dc:Point" x="145.0" y="190.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ExclusiveGateway_1">
        <di:waypoint xsi:type="dc:Point" x="234.0" y="180.0"/>
        <di:waypoint xsi:type="dc:Point" x="284.0" y="180.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ScriptTask_1">
        <di:waypoint xsi:type="dc:Point" x="309.0" y="206.0"/>
        <di:waypoint xsi:type="dc:Point" x="309.0" y="264.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="265.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_ExclusiveGateway_2">
        <di:waypoint xsi:type="dc:Point" x="470.0" y="265.0"/>
        <di:waypoint xsi:type="dc:Point" x="514.0" y="264.0"/>
        <di:waypoint xsi:type="dc:Point" x="515.0" y="217.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_EndEvent_1">
        <di:waypoint xsi:type="dc:Point" x="541.0" y="191.0"/>
        <di:waypoint xsi:type="dc:Point" x="590.0" y="191.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ScriptTask_2">
        <di:waypoint xsi:type="dc:Point" x="309.0" y="155.0"/>
        <di:waypoint xsi:type="dc:Point" x="309.0" y="105.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="105.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="BPMNShape_ScriptTask_2" targetElement="BPMNShape_ExclusiveGateway_2">
        <di:waypoint xsi:type="dc:Point" x="470.0" y="105.0"/>
        <di:waypoint xsi:type="dc:Point" x="514.0" y="105.0"/>
        <di:waypoint xsi:type="dc:Point" x="515.0" y="166.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>