<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions
  xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
  targetNamespace="http://bpmn.io/schema/bpmn"
  id="Definitions_1" 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">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:participant id="Participant_1" name="Order-to-Cash" processRef="Process_1"/>
  </bpmn:collaboration>
  <bpmn:process id="Process_1" isExecutable="false">
    <bpmn:laneSet id="LaneSet_1">
      <bpmn:lane id="Lane_Sales" name="Sales">
        <bpmn:flowNodeRef>StartEvent_OrderReceived</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_ValidateOrder</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Finance" name="Finance">
        <bpmn:flowNodeRef>Task_CheckCredit</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_CreditApproved</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_IssueInvoice</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_AwaitPayment</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Boundary_PaymentTimeout</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_ReconcilePayment</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>EndEvent_OrderCompleted</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Fulfilment" name="Fulfilment">
        <bpmn:flowNodeRef>Task_CheckStock</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_InStock</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_PickPackShip</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>EndEvent_OrderCancelled</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="StartEvent_OrderReceived" name="Order Received">
      <bpmn:messageEventDefinition id="MsgDef_OrderReceived"/>
    </bpmn:startEvent>
    <bpmn:userTask id="Task_ValidateOrder" name="Validate Order Details"/>
    <bpmn:serviceTask id="Task_CheckCredit" name="Check Customer Credit"/>
    <bpmn:exclusiveGateway id="Gateway_CreditApproved" name="Credit Approved?" gatewayDirection="Diverging"/>
    <bpmn:serviceTask id="Task_CheckStock" name="Check Stock Availability"/>
    <bpmn:exclusiveGateway id="Gateway_InStock" name="In Stock?" gatewayDirection="Diverging"/>
    <bpmn:userTask id="Task_PickPackShip" name="Pick, Pack and Ship"/>
    <bpmn:serviceTask id="Task_IssueInvoice" name="Issue Invoice"/>
    <bpmn:serviceTask id="Task_AwaitPayment" name="Await Payment"/>
    <bpmn:boundaryEvent id="Boundary_PaymentTimeout" attachedToRef="Task_AwaitPayment" cancelActivity="false" name="Payment Timeout">
      <bpmn:timerEventDefinition id="TimerDef_PaymentTimeout"/>
    </bpmn:boundaryEvent>
    <bpmn:serviceTask id="Task_ReconcilePayment" name="Reconcile Payment"/>
    <bpmn:endEvent id="EndEvent_OrderCompleted" name="Order Completed"/>
    <bpmn:endEvent id="EndEvent_OrderCancelled" name="Order Cancelled"/>
    <bpmn:sequenceFlow id="Flow_1" sourceRef="StartEvent_OrderReceived" targetRef="Task_ValidateOrder"/>
    <bpmn:sequenceFlow id="Flow_2" sourceRef="Task_ValidateOrder" targetRef="Task_CheckCredit"/>
    <bpmn:sequenceFlow id="Flow_3" sourceRef="Task_CheckCredit" targetRef="Gateway_CreditApproved"/>
    <bpmn:sequenceFlow id="Flow_4" sourceRef="Gateway_CreditApproved" targetRef="Task_CheckStock" name="Yes"/>
    <bpmn:sequenceFlow id="Flow_5" sourceRef="Gateway_CreditApproved" targetRef="EndEvent_OrderCancelled" name="No"/>
    <bpmn:sequenceFlow id="Flow_6" sourceRef="Task_CheckStock" targetRef="Gateway_InStock"/>
    <bpmn:sequenceFlow id="Flow_7" sourceRef="Gateway_InStock" targetRef="Task_PickPackShip" name="Yes"/>
    <bpmn:sequenceFlow id="Flow_8" sourceRef="Gateway_InStock" targetRef="EndEvent_OrderCancelled" name="No"/>
    <bpmn:sequenceFlow id="Flow_9" sourceRef="Task_PickPackShip" targetRef="Task_IssueInvoice"/>
    <bpmn:sequenceFlow id="Flow_10" sourceRef="Task_IssueInvoice" targetRef="Task_AwaitPayment"/>
    <bpmn:sequenceFlow id="Flow_11" sourceRef="Task_AwaitPayment" targetRef="Task_ReconcilePayment"/>
    <bpmn:sequenceFlow id="Flow_12" sourceRef="Boundary_PaymentTimeout" targetRef="EndEvent_OrderCancelled"/>
    <bpmn:sequenceFlow id="Flow_13" sourceRef="Task_ReconcilePayment" targetRef="EndEvent_OrderCompleted"/>
  </bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
  <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
    <bpmndi:BPMNShape id="BPMNShape_Participant_1" bpmnElement="Participant_1" isHorizontal="true">
      <dc:Bounds x="0" y="0" width="2508" height="600"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Lane_Sales" bpmnElement="Lane_Sales" isHorizontal="true">
      <dc:Bounds x="30" y="0" width="2478" height="200"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Lane_Finance" bpmnElement="Lane_Finance" isHorizontal="true">
      <dc:Bounds x="30" y="200" width="2478" height="200"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Lane_Fulfilment" bpmnElement="Lane_Fulfilment" isHorizontal="true">
      <dc:Bounds x="30" y="400" width="2478" height="200"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Gateway_CreditApproved" bpmnElement="Gateway_CreditApproved">
      <dc:Bounds x="785" y="275" width="50" height="50"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Gateway_InStock" bpmnElement="Gateway_InStock">
      <dc:Bounds x="1185" y="493" width="50" height="50"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_StartEvent_OrderReceived" bpmnElement="StartEvent_OrderReceived">
      <dc:Bounds x="192" y="82" width="36" height="36"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_EndEvent_OrderCompleted" bpmnElement="EndEvent_OrderCompleted">
      <dc:Bounds x="2192" y="282" width="36" height="36"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_EndEvent_OrderCancelled" bpmnElement="EndEvent_OrderCancelled">
      <dc:Bounds x="1592" y="500" width="36" height="36"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Boundary_PaymentTimeout" bpmnElement="Boundary_PaymentTimeout">
      <dc:Bounds x="2392" y="282" width="36" height="36"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_ValidateOrder" bpmnElement="Task_ValidateOrder">
      <dc:Bounds x="360" y="60" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_PickPackShip" bpmnElement="Task_PickPackShip">
      <dc:Bounds x="1360" y="478" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_CheckCredit" bpmnElement="Task_CheckCredit">
      <dc:Bounds x="560" y="260" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_CheckStock" bpmnElement="Task_CheckStock">
      <dc:Bounds x="960" y="478" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_IssueInvoice" bpmnElement="Task_IssueInvoice">
      <dc:Bounds x="1560" y="260" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_AwaitPayment" bpmnElement="Task_AwaitPayment">
      <dc:Bounds x="1760" y="260" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="BPMNShape_Task_ReconcilePayment" bpmnElement="Task_ReconcilePayment">
      <dc:Bounds x="1960" y="260" width="100" height="80"/>
    </bpmndi:BPMNShape>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_1" bpmnElement="Flow_1">
      <di:waypoint x="228" y="100"/>
      <di:waypoint x="360" y="100"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_2" bpmnElement="Flow_2">
      <di:waypoint x="410" y="140"/>
      <di:waypoint x="410" y="300"/>
      <di:waypoint x="560" y="300"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_3" bpmnElement="Flow_3">
      <di:waypoint x="660" y="300"/>
      <di:waypoint x="785" y="300"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_4" bpmnElement="Flow_4">
      <di:waypoint x="810" y="325"/>
      <di:waypoint x="810" y="518"/>
      <di:waypoint x="960" y="518"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_5" bpmnElement="Flow_5">
      <di:waypoint x="810" y="325"/>
      <di:waypoint x="810" y="350"/>
      <di:waypoint x="1510" y="350"/>
      <di:waypoint x="1510" y="518"/>
      <di:waypoint x="1592" y="518"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_6" bpmnElement="Flow_6">
      <di:waypoint x="1060" y="518"/>
      <di:waypoint x="1185" y="518"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_7" bpmnElement="Flow_7">
      <di:waypoint x="1235" y="518"/>
      <di:waypoint x="1360" y="518"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_8" bpmnElement="Flow_8">
      <di:waypoint x="1210" y="493"/>
      <di:waypoint x="1210" y="460"/>
      <di:waypoint x="1610" y="460"/>
      <di:waypoint x="1610" y="500"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_9" bpmnElement="Flow_9">
      <di:waypoint x="1410" y="478"/>
      <di:waypoint x="1410" y="300"/>
      <di:waypoint x="1560" y="300"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_10" bpmnElement="Flow_10">
      <di:waypoint x="1660" y="300"/>
      <di:waypoint x="1760" y="300"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_11" bpmnElement="Flow_11">
      <di:waypoint x="1860" y="300"/>
      <di:waypoint x="1960" y="300"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_12" bpmnElement="Flow_12">
      <di:waypoint x="2410" y="318"/>
      <di:waypoint x="2410" y="518"/>
      <di:waypoint x="1628" y="518"/>
    </bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="BPMNEdge_Flow_13" bpmnElement="Flow_13">
      <di:waypoint x="2060" y="300"/>
      <di:waypoint x="2192" y="300"/>
    </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>