<?xml version='1.0' encoding='utf-8'?>
<bpmn:definitions xmlns:bpmn="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:sf="http://sanctumflow.io/bpmn/extensions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://digitalsanctum.com/bpmn/sanctum-flow">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:extensionElements>
      <sf:properties>
        <sf:property name="collaboration_semantics_version" value="collaboration-v2"/>
      </sf:properties>
    </bpmn:extensionElements>
    <bpmn:participant id="organisation" name="Wholesale: a customer purchase order" processRef="Process_1"/>
    <bpmn:participant id="sender" name="Customer"/>
    <bpmn:messageFlow id="request-message" name="Original request" sourceRef="sender" targetRef="received"/>
  </bpmn:collaboration>
  <bpmn:message id="Message_IncomingRequest" name="An existing customer emails a purchase order for several products, with item codes, quantities, a delivery address and their order reference."/>
  <bpmn:process id="Process_1" name="Wholesale: a customer purchase order | AS-IS" isExecutable="false">
    <bpmn:documentation>scope: An existing customer emails a purchase order for several products, with item codes, quantities, a delivery address and their order reference. Through: Ready to dispatch, with the order and paperwork linked.; evidence_status: Illustrative review draft. No client SOP, live integration, execution or measured saving.; pair_key: wholesale-order; pair_role: as-is; paired_definition_key: website-wholesale-order-to-be; system_identities: ['Customer-order inbox', 'Sales order', 'Stock and pick list', 'Courier booking', 'Accounting invoice']; removed_duplicate_handling: []; assumptions: ['After-model service tasks express proposed reuse only; feasibility and permissions need implementation review.', 'Unresolved clarification tasks remain human work; no automatic approval, SLA or response time is asserted.', 'Gateway probabilities of 0.5 are schema placeholders, not observed or calibrated frequencies. No simulation is authorised.', 'System lanes are interaction surfaces inside one organisation process. Task markers show human, physical or proposed system work.']</bpmn:documentation>
    <bpmn:laneSet id="LaneSet_1">
      <bpmn:lane id="Lane_1" name="Customer-order inbox">
        <bpmn:flowNodeRef>received</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_2" name="Sales order">
        <bpmn:flowNodeRef>intake-phase</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>intake-phase-outcome</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>not-proceeding</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_3" name="Stock and pick list">
        <bpmn:flowNodeRef>stock</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>stock-check</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>stock-rework</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>stock-merge</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>pack</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_4" name="Accounting invoice">
        <bpmn:flowNodeRef>invoice</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>billing-phase</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_5" name="Courier booking">
        <bpmn:flowNodeRef>courier</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>dispatch</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>done</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="received" name="Purchase order received">
      <bpmn:outgoing>flow_1</bpmn:outgoing>
      <bpmn:messageEventDefinition id="messageEventDefinition_1" messageRef="Message_IncomingRequest"/>
    </bpmn:startEvent>
    <bpmn:endEvent id="not-proceeding" name="Request not proceeding">
      <bpmn:incoming>flow_12</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:userTask id="stock" name="Check stock and prepare picking">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="assignee" value="Responsible person for Stock and pick list"/>
        </sf:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>flow_13</bpmn:incoming>
      <bpmn:outgoing>flow_2</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="stock-check" name="Stock and order confirmed?" gatewayDirection="Diverging" default="flow_4">
      <bpmn:incoming>flow_2</bpmn:incoming>
      <bpmn:outgoing>flow_3</bpmn:outgoing>
      <bpmn:outgoing>flow_4</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:userTask id="stock-rework" name="Resolve shortage or order discrepancy">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="assignee" value="Responsible person for Stock and pick list"/>
        </sf:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>flow_4</bpmn:incoming>
      <bpmn:outgoing>flow_5</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="stock-merge" name="" gatewayDirection="Converging">
      <bpmn:incoming>flow_3</bpmn:incoming>
      <bpmn:incoming>flow_5</bpmn:incoming>
      <bpmn:outgoing>flow_6</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:manualTask id="pack" name="Pick, pack and record details">
      <bpmn:incoming>flow_6</bpmn:incoming>
      <bpmn:outgoing>flow_7</bpmn:outgoing>
    </bpmn:manualTask>
    <bpmn:userTask id="invoice" name="Re-enter approved order lines for billing">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="assignee" value="Responsible person for Accounting invoice"/>
        </sf:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>flow_9</bpmn:incoming>
      <bpmn:outgoing>flow_8</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:userTask id="courier" name="Retype courier booking details">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="assignee" value="Responsible person for Courier booking"/>
        </sf:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>flow_7</bpmn:incoming>
      <bpmn:outgoing>flow_9</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:userTask id="dispatch" name="Confirm dispatch readiness">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="assignee" value="Responsible person for Courier booking"/>
        </sf:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>flow_14</bpmn:incoming>
      <bpmn:outgoing>flow_10</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:endEvent id="done" name="Ready for dispatch">
      <bpmn:incoming>flow_10</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:subProcess id="intake-phase" name="Review original request">
      <bpmn:incoming>flow_1</bpmn:incoming>
      <bpmn:outgoing>flow_11</bpmn:outgoing>
      <bpmn:ioSpecification>
      <bpmn:dataOutput id="intake-phase_checked-order_output" name="checked-order"/>
      <bpmn:inputSet id="intake-phase_input_set">
      </bpmn:inputSet>
      <bpmn:outputSet id="intake-phase_output_set">
        <bpmn:dataOutputRefs>intake-phase_checked-order_output</bpmn:dataOutputRefs>
      </bpmn:outputSet>
      </bpmn:ioSpecification>
      <bpmn:dataOutputAssociation id="intake-phase-checked-order-output">
        <bpmn:sourceRef>intake-phase_checked-order_output</bpmn:sourceRef>
        <bpmn:targetRef>checked-order</bpmn:targetRef>
      </bpmn:dataOutputAssociation>

      <bpmn:laneSet id="LaneSet_intake-phase">
        <bpmn:lane id="intake-phase_Lane_1" name="Sales order">
          <bpmn:flowNodeRef>intake-phase-start</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>capture</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>request-check</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>request-follow-up</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>request-decision</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>request-ready</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>intake-phase-outcome-0</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>intake-phase-outcome-1</bpmn:flowNodeRef>
        </bpmn:lane>
      </bpmn:laneSet>
      <bpmn:startEvent id="intake-phase-start" name="Phase started">
        <bpmn:outgoing>sp_flow_intake-phase_1</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:userTask id="capture" name="Read request and re-enter details">
        <bpmn:extensionElements>
          <sf:properties>
          <sf:property name="assignee" value="Responsible person for Sales order"/>
          </sf:properties>
        </bpmn:extensionElements>
        <bpmn:incoming>sp_flow_intake-phase_1</bpmn:incoming>
        <bpmn:outgoing>sp_flow_intake-phase_2</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:exclusiveGateway id="request-check" name="Request usable?" gatewayDirection="Diverging" default="sp_flow_intake-phase_4">
        <bpmn:incoming>sp_flow_intake-phase_2</bpmn:incoming>
        <bpmn:outgoing>sp_flow_intake-phase_3</bpmn:outgoing>
        <bpmn:outgoing>sp_flow_intake-phase_4</bpmn:outgoing>
      </bpmn:exclusiveGateway>
      <bpmn:userTask id="request-follow-up" name="Clarify request with sender">
        <bpmn:extensionElements>
          <sf:properties>
          <sf:property name="assignee" value="Responsible person for Sales order"/>
          </sf:properties>
        </bpmn:extensionElements>
        <bpmn:incoming>sp_flow_intake-phase_4</bpmn:incoming>
        <bpmn:outgoing>sp_flow_intake-phase_5</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:exclusiveGateway id="request-decision" name="Proceed with clarified request?" gatewayDirection="Diverging" default="sp_flow_intake-phase_7">
        <bpmn:incoming>sp_flow_intake-phase_5</bpmn:incoming>
        <bpmn:outgoing>sp_flow_intake-phase_6</bpmn:outgoing>
        <bpmn:outgoing>sp_flow_intake-phase_7</bpmn:outgoing>
      </bpmn:exclusiveGateway>
      <bpmn:exclusiveGateway id="request-ready" name="" gatewayDirection="Converging">
        <bpmn:incoming>sp_flow_intake-phase_3</bpmn:incoming>
        <bpmn:incoming>sp_flow_intake-phase_6</bpmn:incoming>
        <bpmn:outgoing>sp_flow_intake-phase_8</bpmn:outgoing>
      </bpmn:exclusiveGateway>
      <bpmn:endEvent id="intake-phase-outcome-0" name="Needs owner decision">
        <bpmn:incoming>sp_flow_intake-phase_7</bpmn:incoming>
      </bpmn:endEvent>
      <bpmn:endEvent id="intake-phase-outcome-1" name="Phase ready">
        <bpmn:incoming>sp_flow_intake-phase_8</bpmn:incoming>
      </bpmn:endEvent>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_1" sourceRef="intake-phase-start" targetRef="capture"/>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_2" sourceRef="capture" targetRef="request-check"/>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_3" name="Usable" sourceRef="request-check" targetRef="request-ready">
        <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="https://sanctumflow.io/expressions">
          request.usable = true
        </bpmn:conditionExpression>
      </bpmn:sequenceFlow>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_4" name="Needs review" sourceRef="request-check" targetRef="request-follow-up"/>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_5" sourceRef="request-follow-up" targetRef="request-decision"/>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_6" name="Confirmed" sourceRef="request-decision" targetRef="request-ready">
        <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="https://sanctumflow.io/expressions">
          request.proceed = true
        </bpmn:conditionExpression>
      </bpmn:sequenceFlow>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_7" name="Not confirmed" sourceRef="request-decision" targetRef="intake-phase-outcome-0"/>
      <bpmn:sequenceFlow id="sp_flow_intake-phase_8" sourceRef="request-ready" targetRef="intake-phase-outcome-1"/>
    </bpmn:subProcess>
    <bpmn:exclusiveGateway id="intake-phase-outcome" name="Ready to proceed?" gatewayDirection="Diverging" default="flow_12">
      <bpmn:incoming>flow_11</bpmn:incoming>
      <bpmn:outgoing>flow_12</bpmn:outgoing>
      <bpmn:outgoing>flow_13</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:subProcess id="billing-phase" name="Review billing evidence">
      <bpmn:incoming>flow_8</bpmn:incoming>
      <bpmn:outgoing>flow_14</bpmn:outgoing>

      <bpmn:laneSet id="LaneSet_billing-phase">
        <bpmn:lane id="billing-phase_Lane_1" name="Accounting invoice">
          <bpmn:flowNodeRef>billing-phase-start</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>billing-review</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>billing-review-check</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>billing-review-follow-up</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>billing-review-merge</bpmn:flowNodeRef>
          <bpmn:flowNodeRef>billing-phase-outcome-0</bpmn:flowNodeRef>
        </bpmn:lane>
      </bpmn:laneSet>
      <bpmn:startEvent id="billing-phase-start" name="Phase started">
        <bpmn:outgoing>sp_flow_billing-phase_1</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:userTask id="billing-review" name="Review final packed-order billing">
        <bpmn:extensionElements>
          <sf:properties>
          <sf:property name="assignee" value="Responsible person for Accounting invoice"/>
          </sf:properties>
        </bpmn:extensionElements>
        <bpmn:incoming>sp_flow_billing-phase_1</bpmn:incoming>
        <bpmn:outgoing>sp_flow_billing-phase_2</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:exclusiveGateway id="billing-review-check" name="Details usable?" gatewayDirection="Diverging" default="sp_flow_billing-phase_4">
        <bpmn:incoming>sp_flow_billing-phase_2</bpmn:incoming>
        <bpmn:outgoing>sp_flow_billing-phase_3</bpmn:outgoing>
        <bpmn:outgoing>sp_flow_billing-phase_4</bpmn:outgoing>
      </bpmn:exclusiveGateway>
      <bpmn:userTask id="billing-review-follow-up" name="Clarify missing or changed details">
        <bpmn:extensionElements>
          <sf:properties>
          <sf:property name="assignee" value="Responsible person for Accounting invoice"/>
          </sf:properties>
        </bpmn:extensionElements>
        <bpmn:incoming>sp_flow_billing-phase_4</bpmn:incoming>
        <bpmn:outgoing>sp_flow_billing-phase_5</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:exclusiveGateway id="billing-review-merge" name="" gatewayDirection="Converging">
        <bpmn:incoming>sp_flow_billing-phase_3</bpmn:incoming>
        <bpmn:incoming>sp_flow_billing-phase_5</bpmn:incoming>
        <bpmn:outgoing>sp_flow_billing-phase_6</bpmn:outgoing>
      </bpmn:exclusiveGateway>
      <bpmn:endEvent id="billing-phase-outcome-0" name="Phase ready">
        <bpmn:incoming>sp_flow_billing-phase_6</bpmn:incoming>
      </bpmn:endEvent>
      <bpmn:sequenceFlow id="sp_flow_billing-phase_1" sourceRef="billing-phase-start" targetRef="billing-review"/>
      <bpmn:sequenceFlow id="sp_flow_billing-phase_2" sourceRef="billing-review" targetRef="billing-review-check"/>
      <bpmn:sequenceFlow id="sp_flow_billing-phase_3" name="Usable" sourceRef="billing-review-check" targetRef="billing-review-merge">
        <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="https://sanctumflow.io/expressions">
          details.usable = true
        </bpmn:conditionExpression>
      </bpmn:sequenceFlow>
      <bpmn:sequenceFlow id="sp_flow_billing-phase_4" name="Clarification needed" sourceRef="billing-review-check" targetRef="billing-review-follow-up"/>
      <bpmn:sequenceFlow id="sp_flow_billing-phase_5" sourceRef="billing-review-follow-up" targetRef="billing-review-merge"/>
      <bpmn:sequenceFlow id="sp_flow_billing-phase_6" sourceRef="billing-review-merge" targetRef="billing-phase-outcome-0"/>
    </bpmn:subProcess>
    <bpmn:dataObject id="checked-order_data" name="Reviewed order lines and delivery details"/>
    <bpmn:dataObjectReference id="checked-order" name="Reviewed order lines and delivery details" dataObjectRef="checked-order_data"/>
    <bpmn:sequenceFlow id="flow_1" sourceRef="received" targetRef="intake-phase"/>
    <bpmn:sequenceFlow id="flow_2" sourceRef="stock" targetRef="stock-check"/>
    <bpmn:sequenceFlow id="flow_3" name="Confirmed" sourceRef="stock-check" targetRef="stock-merge">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="probability" value="0.5"/>
        </sf:properties>
      </bpmn:extensionElements>

      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="https://sanctumflow.io/expressions">
        fulfilment.confirmed = true
      </bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="flow_4" name="Needs decision" sourceRef="stock-check" targetRef="stock-rework">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="probability" value="0.5"/>
        </sf:properties>
      </bpmn:extensionElements>
</bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="flow_5" sourceRef="stock-rework" targetRef="stock-merge"/>
    <bpmn:sequenceFlow id="flow_6" sourceRef="stock-merge" targetRef="pack"/>
    <bpmn:sequenceFlow id="flow_7" sourceRef="pack" targetRef="courier"/>
    <bpmn:sequenceFlow id="flow_8" sourceRef="invoice" targetRef="billing-phase"/>
    <bpmn:sequenceFlow id="flow_9" sourceRef="courier" targetRef="invoice"/>
    <bpmn:sequenceFlow id="flow_10" sourceRef="dispatch" targetRef="done"/>
    <bpmn:sequenceFlow id="flow_11" sourceRef="intake-phase" targetRef="intake-phase-outcome"/>
    <bpmn:sequenceFlow id="flow_12" name="Not confirmed" sourceRef="intake-phase-outcome" targetRef="not-proceeding">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="probability" value="0.5"/>
        </sf:properties>
      </bpmn:extensionElements>
</bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="flow_13" name="Confirmed" sourceRef="intake-phase-outcome" targetRef="stock">
      <bpmn:extensionElements>
        <sf:properties>
        <sf:property name="probability" value="0.5"/>
        </sf:properties>
      </bpmn:extensionElements>

      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="https://sanctumflow.io/expressions">
        request.proceed = true
      </bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="flow_14" sourceRef="billing-phase" targetRef="dispatch"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
      <bpmndi:BPMNShape id="organisation_di" bpmnElement="organisation" isHorizontal="true">
        <dc:Bounds x="0" y="0" width="2686" height="1440"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="sender_di" bpmnElement="sender" isHorizontal="true">
        <dc:Bounds x="0" y="-140" width="2686" height="100"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_1_di" bpmnElement="Lane_1" isHorizontal="true">
        <dc:Bounds x="30" y="20.0" width="2656" height="280"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_2_di" bpmnElement="Lane_2" isHorizontal="true">
        <dc:Bounds x="30" y="300.0" width="2656" height="280"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_3_di" bpmnElement="Lane_3" isHorizontal="true">
        <dc:Bounds x="30" y="580.0" width="2656" height="280"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_4_di" bpmnElement="Lane_4" isHorizontal="true">
        <dc:Bounds x="30" y="860.0" width="2656" height="280"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_5_di" bpmnElement="Lane_5" isHorizontal="true">
        <dc:Bounds x="30" y="1140.0" width="2656" height="280"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="received_di" bpmnElement="received">
        <dc:Bounds x="130" y="142.0" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="68" y="186.0" width="161" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="not-proceeding_di" bpmnElement="not-proceeding">
        <dc:Bounds x="730.0" y="320.0" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="671" y="364" width="154" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="stock_di" bpmnElement="stock">
        <dc:Bounds x="730" y="680.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="stock-check_di" bpmnElement="stock-check" isMarkerVisible="true">
        <dc:Bounds x="930" y="695.0" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="988" y="709" width="182" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="stock-rework_di" bpmnElement="stock-rework">
        <dc:Bounds x="1130.0" y="750.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="stock-merge_di" bpmnElement="stock-merge" isMarkerVisible="true">
        <dc:Bounds x="1330" y="695.0" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1240" y="709" width="80" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="pack_di" bpmnElement="pack">
        <dc:Bounds x="1530" y="680.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="invoice_di" bpmnElement="invoice">
        <dc:Bounds x="1930" y="960.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="courier_di" bpmnElement="courier">
        <dc:Bounds x="1730" y="1240.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="dispatch_di" bpmnElement="dispatch">
        <dc:Bounds x="2330" y="1240.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="done_di" bpmnElement="done">
        <dc:Bounds x="2530" y="1262.0" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="2485" y="1306.0" width="126" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="intake-phase_di" bpmnElement="intake-phase" isExpanded="false">
        <dc:Bounds x="330" y="400.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="intake-phase-outcome_di" bpmnElement="intake-phase-outcome" isMarkerVisible="true">
        <dc:Bounds x="530" y="415.0" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="496" y="475" width="119" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="billing-phase_di" bpmnElement="billing-phase" isExpanded="false">
        <dc:Bounds x="2130" y="960.0" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="checked-order_di" bpmnElement="checked-order">
        <dc:Bounds x="300.0" y="317.0" width="36" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="346" y="330" width="180" height="24"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNEdge id="flow_1_di" bpmnElement="flow_1">
        <di:waypoint x="166" y="160.0"/>
        <di:waypoint x="248" y="160.0"/>
        <di:waypoint x="248" y="440.0"/>
        <di:waypoint x="330" y="440.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_2_di" bpmnElement="flow_2">
        <di:waypoint x="870" y="720.0"/>
        <di:waypoint x="930" y="720.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_3_di" bpmnElement="flow_3">
        <di:waypoint x="955.0" y="695.0"/><di:waypoint x="955.0" y="650.0"/><di:waypoint x="1355.0" y="650.0"/><di:waypoint x="1355.0" y="695.0"/><bpmndi:BPMNLabel>
          <dc:Bounds x="1124.0" y="623.0" width="63" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_4_di" bpmnElement="flow_4">
        <di:waypoint x="955.0" y="745.0"/><di:waypoint x="955.0" y="790.0"/><di:waypoint x="1130.0" y="790.0"/><bpmndi:BPMNLabel>
          <dc:Bounds x="970" y="755" width="98" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_5_di" bpmnElement="flow_5">
        <di:waypoint x="1270.0" y="790.0"/><di:waypoint x="1355.0" y="790.0"/><di:waypoint x="1355.0" y="745.0"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_6_di" bpmnElement="flow_6">
        <di:waypoint x="1380" y="720.0"/>
        <di:waypoint x="1530" y="720.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_7_di" bpmnElement="flow_7">
        <di:waypoint x="1670" y="720.0"/>
        <di:waypoint x="1700" y="720.0"/>
        <di:waypoint x="1700" y="1280.0"/>
        <di:waypoint x="1730" y="1280.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_8_di" bpmnElement="flow_8">
        <di:waypoint x="2070" y="1000.0"/>
        <di:waypoint x="2130" y="1000.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_9_di" bpmnElement="flow_9">
        <di:waypoint x="1870" y="1280.0"/>
        <di:waypoint x="1900" y="1280.0"/>
        <di:waypoint x="1900" y="1000.0"/>
        <di:waypoint x="1930" y="1000.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_10_di" bpmnElement="flow_10">
        <di:waypoint x="2470" y="1280.0"/>
        <di:waypoint x="2530" y="1280.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_11_di" bpmnElement="flow_11">
        <di:waypoint x="470" y="440.0"/>
        <di:waypoint x="530" y="440.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_12_di" bpmnElement="flow_12">
        <di:waypoint x="555.0" y="415.0"/><di:waypoint x="555.0" y="338.0"/><di:waypoint x="730.0" y="338.0"/><bpmndi:BPMNLabel>
          <dc:Bounds x="597.0" y="311.0" width="91" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_13_di" bpmnElement="flow_13">
        <di:waypoint x="580" y="440.0"/>
        <di:waypoint x="655" y="440.0"/>
        <di:waypoint x="655" y="720.0"/>
        <di:waypoint x="730" y="720.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="669.0" y="530.0" width="63" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="flow_14_di" bpmnElement="flow_14">
        <di:waypoint x="2270" y="1000.0"/>
        <di:waypoint x="2300" y="1000.0"/>
        <di:waypoint x="2300" y="1280.0"/>
        <di:waypoint x="2330" y="1280.0"/>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="intake-phase-checked-order-output_di" bpmnElement="intake-phase-checked-order-output">
        <di:waypoint x="401.5" y="400.0"/><di:waypoint x="401.5" y="383.5"/><di:waypoint x="318.0" y="383.5"/><di:waypoint x="318.0" y="367.0"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="request-message_di" bpmnElement="request-message">
        <di:waypoint x="148" y="-40.0"/>
        <di:waypoint x="148" y="142.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="160.0" y="-35" width="112" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge></bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
  <bpmndi:BPMNDiagram id="intake-phase_diagram">
    <bpmndi:BPMNPlane id="intake-phase_plane" bpmnElement="intake-phase">
      <bpmndi:BPMNShape id="intake-phase-start_di" bpmnElement="intake-phase-start">
        <dc:Bounds x="100" y="132" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="66" y="176" width="105" height="32"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="capture_di" bpmnElement="capture">
        <dc:Bounds x="220" y="110" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="request-check_di" bpmnElement="request-check" isMarkerVisible="true">
        <dc:Bounds x="455" y="125" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="515" y="132" width="120" height="36"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="request-follow-up_di" bpmnElement="request-follow-up">
        <dc:Bounds x="620" y="260" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="request-decision_di" bpmnElement="request-decision" isMarkerVisible="true">
        <dc:Bounds x="850" y="275" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="815" y="231" width="120" height="36"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="request-ready_di" bpmnElement="request-ready" isMarkerVisible="true">
        <dc:Bounds x="1080" y="125" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1115" y="96.36363636363637" width="80" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="intake-phase-outcome-0_di" bpmnElement="intake-phase-outcome-0">
        <dc:Bounds x="1040" y="372" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1084" y="374" width="105" height="32"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="intake-phase-outcome-1_di" bpmnElement="intake-phase-outcome-1">
        <dc:Bounds x="1220" y="132" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1186" y="176" width="105" height="32"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="intake-phase_Lane_1_di" bpmnElement="intake-phase_Lane_1" isHorizontal="true">
        <dc:Bounds x="30" y="20" width="1320" height="420"/>
      </bpmndi:BPMNShape><bpmndi:BPMNEdge id="sp_flow_intake-phase_1_di" bpmnElement="sp_flow_intake-phase_1">
        <di:waypoint x="136" y="150"/><di:waypoint x="220" y="150"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_intake-phase_2_di" bpmnElement="sp_flow_intake-phase_2">
        <di:waypoint x="360" y="150"/><di:waypoint x="455" y="150"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_intake-phase_3_di" bpmnElement="sp_flow_intake-phase_3">
        <di:waypoint x="480" y="125"/><di:waypoint x="480" y="70"/><di:waypoint x="1105" y="70"/><di:waypoint x="1105" y="125"/><bpmndi:BPMNLabel>
          <dc:Bounds x="398" y="105" width="42" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_intake-phase_4_di" bpmnElement="sp_flow_intake-phase_4">
        <di:waypoint x="480" y="175"/><di:waypoint x="480" y="300"/><di:waypoint x="620" y="300"/><bpmndi:BPMNLabel>
          <dc:Bounds x="508.0" y="273.0" width="84" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_intake-phase_5_di" bpmnElement="sp_flow_intake-phase_5">
        <di:waypoint x="760" y="300"/><di:waypoint x="850" y="300"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_intake-phase_6_di" bpmnElement="sp_flow_intake-phase_6">
        <di:waypoint x="900" y="300"/><di:waypoint x="1105" y="300"/><di:waypoint x="1105" y="175"/><bpmndi:BPMNLabel>
          <dc:Bounds x="971.0" y="273.0" width="63" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_intake-phase_7_di" bpmnElement="sp_flow_intake-phase_7">
        <di:waypoint x="875" y="325"/><di:waypoint x="875" y="390"/><di:waypoint x="1040" y="390"/><bpmndi:BPMNLabel>
          <dc:Bounds x="772" y="329" width="91" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_intake-phase_8_di" bpmnElement="sp_flow_intake-phase_8">
        <di:waypoint x="1130" y="150"/><di:waypoint x="1220" y="150"/></bpmndi:BPMNEdge></bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
  <bpmndi:BPMNDiagram id="billing-phase_diagram">
    <bpmndi:BPMNPlane id="billing-phase_plane" bpmnElement="billing-phase">
      <bpmndi:BPMNShape id="billing-phase-start_di" bpmnElement="billing-phase-start">
        <dc:Bounds x="100" y="132" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="66" y="176" width="105" height="32"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="billing-review_di" bpmnElement="billing-review">
        <dc:Bounds x="220" y="110" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="billing-review-check_di" bpmnElement="billing-review-check" isMarkerVisible="true">
        <dc:Bounds x="455" y="125" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="515" y="134" width="120" height="32"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="billing-review-follow-up_di" bpmnElement="billing-review-follow-up">
        <dc:Bounds x="620" y="260" width="140" height="80"/>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="billing-review-merge_di" bpmnElement="billing-review-merge" isMarkerVisible="true">
        <dc:Bounds x="900" y="125" width="50" height="50"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="810" y="139" width="80" height="22"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="billing-phase-outcome-0_di" bpmnElement="billing-phase-outcome-0">
        <dc:Bounds x="1040" y="132" width="36" height="36"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1006" y="176" width="105" height="32"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape><bpmndi:BPMNShape id="billing-phase_Lane_1_di" bpmnElement="billing-phase_Lane_1" isHorizontal="true">
        <dc:Bounds x="30" y="20" width="1170" height="360"/>
      </bpmndi:BPMNShape><bpmndi:BPMNEdge id="sp_flow_billing-phase_1_di" bpmnElement="sp_flow_billing-phase_1">
        <di:waypoint x="136" y="150"/><di:waypoint x="220" y="150"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_billing-phase_2_di" bpmnElement="sp_flow_billing-phase_2">
        <di:waypoint x="360" y="150"/><di:waypoint x="455" y="150"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_billing-phase_3_di" bpmnElement="sp_flow_billing-phase_3">
        <di:waypoint x="480" y="125"/><di:waypoint x="480" y="70"/><di:waypoint x="925" y="70"/><di:waypoint x="925" y="125"/><bpmndi:BPMNLabel>
          <dc:Bounds x="398" y="105" width="42" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_billing-phase_4_di" bpmnElement="sp_flow_billing-phase_4">
        <di:waypoint x="480" y="175"/><di:waypoint x="480" y="300"/><di:waypoint x="620" y="300"/><bpmndi:BPMNLabel>
          <dc:Bounds x="492" y="191" width="140" height="18"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_billing-phase_5_di" bpmnElement="sp_flow_billing-phase_5">
        <di:waypoint x="760" y="300"/><di:waypoint x="925" y="300"/><di:waypoint x="925" y="175"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="sp_flow_billing-phase_6_di" bpmnElement="sp_flow_billing-phase_6">
        <di:waypoint x="950" y="150"/><di:waypoint x="1040" y="150"/></bpmndi:BPMNEdge></bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>