<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions 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:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="swimdraft" exporterVersion="1.0">
  <bpmn2:collaboration id="Collaboration_1">
    <bpmn2:participant id="pool_poa" name="Purchase order approval" processRef="Process_pool_poa" />
  </bpmn2:collaboration>
  <bpmn2:process id="Process_pool_poa" isExecutable="false">
    <bpmn2:laneSet id="LaneSet_pool_poa">
      <bpmn2:lane id="lane_poa_proc" name="Procurement">
        <bpmn2:flowNodeRef>start_poa</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>t_poa_check</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>g_poa_value</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>t_poa_record</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>g_poa_granted</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>t_poa_issue</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>end_poa_issued</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>t_poa_notify</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>end_poa_declined</bpmn2:flowNodeRef>
      </bpmn2:lane>
      <bpmn2:lane id="lane_poa_bh" name="Budget holder">
        <bpmn2:flowNodeRef>t_poa_bh</bpmn2:flowNodeRef>
      </bpmn2:lane>
      <bpmn2:lane id="lane_poa_fin" name="Finance">
        <bpmn2:flowNodeRef>t_poa_fin</bpmn2:flowNodeRef>
      </bpmn2:lane>
    </bpmn2:laneSet>
    <bpmn2:startEvent id="start_poa" name="PO request received">
      <bpmn2:outgoing>fpoa1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:task id="t_poa_check" name="Check supplier record">
      <bpmn2:incoming>fpoa1</bpmn2:incoming>
      <bpmn2:outgoing>fpoa2</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:exclusiveGateway id="g_poa_value" name="Order value over 10k?" default="fpoa4">
      <bpmn2:incoming>fpoa2</bpmn2:incoming>
      <bpmn2:outgoing>fpoa3</bpmn2:outgoing>
      <bpmn2:outgoing>fpoa4</bpmn2:outgoing>
    </bpmn2:exclusiveGateway>
    <bpmn2:userTask id="t_poa_bh" name="Approve routine order">
      <bpmn2:incoming>fpoa4</bpmn2:incoming>
      <bpmn2:outgoing>fpoa5</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:userTask id="t_poa_fin" name="Review high value order">
      <bpmn2:incoming>fpoa3</bpmn2:incoming>
      <bpmn2:outgoing>fpoa6</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:task id="t_poa_record" name="Record approval decision">
      <bpmn2:incoming>fpoa5</bpmn2:incoming>
      <bpmn2:incoming>fpoa6</bpmn2:incoming>
      <bpmn2:outgoing>fpoa7</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:exclusiveGateway id="g_poa_granted" name="Approval granted?" default="fpoa9">
      <bpmn2:incoming>fpoa7</bpmn2:incoming>
      <bpmn2:outgoing>fpoa8</bpmn2:outgoing>
      <bpmn2:outgoing>fpoa9</bpmn2:outgoing>
    </bpmn2:exclusiveGateway>
    <bpmn2:sendTask id="t_poa_issue" name="Issue purchase order">
      <bpmn2:incoming>fpoa8</bpmn2:incoming>
      <bpmn2:outgoing>fpoa10</bpmn2:outgoing>
    </bpmn2:sendTask>
    <bpmn2:endEvent id="end_poa_issued" name="PO issued">
      <bpmn2:incoming>fpoa10</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sendTask id="t_poa_notify" name="Notify requester of refusal">
      <bpmn2:incoming>fpoa9</bpmn2:incoming>
      <bpmn2:outgoing>fpoa11</bpmn2:outgoing>
    </bpmn2:sendTask>
    <bpmn2:endEvent id="end_poa_declined" name="PO declined">
      <bpmn2:incoming>fpoa11</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="fpoa1" sourceRef="start_poa" targetRef="t_poa_check" />
    <bpmn2:sequenceFlow id="fpoa2" sourceRef="t_poa_check" targetRef="g_poa_value" />
    <bpmn2:sequenceFlow id="fpoa3" name="Over 10k" sourceRef="g_poa_value" targetRef="t_poa_fin">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">Over 10k</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="fpoa4" name="10k or under" sourceRef="g_poa_value" targetRef="t_poa_bh" />
    <bpmn2:sequenceFlow id="fpoa5" sourceRef="t_poa_bh" targetRef="t_poa_record" />
    <bpmn2:sequenceFlow id="fpoa6" sourceRef="t_poa_fin" targetRef="t_poa_record" />
    <bpmn2:sequenceFlow id="fpoa7" sourceRef="t_poa_record" targetRef="g_poa_granted" />
    <bpmn2:sequenceFlow id="fpoa8" name="Yes" sourceRef="g_poa_granted" targetRef="t_poa_issue">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">Yes</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="fpoa9" name="No" sourceRef="g_poa_granted" targetRef="t_poa_notify" />
    <bpmn2:sequenceFlow id="fpoa10" sourceRef="t_poa_issue" targetRef="end_poa_issued" />
    <bpmn2:sequenceFlow id="fpoa11" sourceRef="t_poa_notify" targetRef="end_poa_declined" />
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
      <bpmndi:BPMNShape id="pool_poa_di" bpmnElement="pool_poa" isHorizontal="true">
        <dc:Bounds x="20" y="20" width="1270" height="500" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="lane_poa_proc_di" bpmnElement="lane_poa_proc" isHorizontal="true">
        <dc:Bounds x="50" y="20" width="1240" height="240" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="lane_poa_bh_di" bpmnElement="lane_poa_bh" isHorizontal="true">
        <dc:Bounds x="50" y="260" width="1240" height="130" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="lane_poa_fin_di" bpmnElement="lane_poa_fin" isHorizontal="true">
        <dc:Bounds x="50" y="390" width="1240" height="130" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="start_poa_di" bpmnElement="start_poa">
        <dc:Bounds x="112" y="59" width="36" height="36" />
        <bpmndi:BPMNLabel><dc:Bounds x="79" y="101" width="103" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="t_poa_check_di" bpmnElement="t_poa_check">
        <dc:Bounds x="230" y="37" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="g_poa_value_di" bpmnElement="g_poa_value">
        <dc:Bounds x="405" y="52" width="50" height="50" />
        <bpmndi:BPMNLabel><dc:Bounds x="375" y="32" width="111" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="t_poa_bh_di" bpmnElement="t_poa_bh">
        <dc:Bounds x="530" y="277" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="t_poa_fin_di" bpmnElement="t_poa_fin">
        <dc:Bounds x="530" y="407" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="t_poa_record_di" bpmnElement="t_poa_record">
        <dc:Bounds x="680" y="37" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="g_poa_granted_di" bpmnElement="g_poa_granted">
        <dc:Bounds x="855" y="52" width="50" height="50" />
        <bpmndi:BPMNLabel><dc:Bounds x="834" y="32" width="92" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="t_poa_issue_di" bpmnElement="t_poa_issue">
        <dc:Bounds x="980" y="147" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="end_poa_issued_di" bpmnElement="end_poa_issued">
        <dc:Bounds x="1162" y="169" width="36" height="36" />
        <bpmndi:BPMNLabel><dc:Bounds x="1154" y="211" width="53" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="t_poa_notify_di" bpmnElement="t_poa_notify">
        <dc:Bounds x="980" y="37" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="end_poa_declined_di" bpmnElement="end_poa_declined">
        <dc:Bounds x="1162" y="59" width="36" height="36" />
        <bpmndi:BPMNLabel><dc:Bounds x="1149" y="101" width="62" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="fpoa1_di" bpmnElement="fpoa1">
        <di:waypoint x="148" y="77" />
        <di:waypoint x="230" y="77" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa2_di" bpmnElement="fpoa2">
        <di:waypoint x="330" y="77" />
        <di:waypoint x="405" y="77" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa3_di" bpmnElement="fpoa3">
        <di:waypoint x="455" y="77" />
        <di:waypoint x="510" y="77" />
        <di:waypoint x="510" y="447" />
        <di:waypoint x="530" y="447" />
        <bpmndi:BPMNLabel><dc:Bounds x="516" y="83" width="47" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa4_di" bpmnElement="fpoa4">
        <di:waypoint x="455" y="77" />
        <di:waypoint x="510" y="77" />
        <di:waypoint x="510" y="317" />
        <di:waypoint x="530" y="317" />
        <bpmndi:BPMNLabel><dc:Bounds x="516" y="107" width="64" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa5_di" bpmnElement="fpoa5">
        <di:waypoint x="630" y="317" />
        <di:waypoint x="660" y="317" />
        <di:waypoint x="660" y="77" />
        <di:waypoint x="680" y="77" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa6_di" bpmnElement="fpoa6">
        <di:waypoint x="630" y="447" />
        <di:waypoint x="660" y="447" />
        <di:waypoint x="660" y="77" />
        <di:waypoint x="680" y="77" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa7_di" bpmnElement="fpoa7">
        <di:waypoint x="780" y="77" />
        <di:waypoint x="855" y="77" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa8_di" bpmnElement="fpoa8">
        <di:waypoint x="905" y="77" />
        <di:waypoint x="960" y="77" />
        <di:waypoint x="960" y="187" />
        <di:waypoint x="980" y="187" />
        <bpmndi:BPMNLabel><dc:Bounds x="911" y="57" width="21" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa9_di" bpmnElement="fpoa9">
        <di:waypoint x="905" y="77" />
        <di:waypoint x="980" y="77" />
        <bpmndi:BPMNLabel><dc:Bounds x="911" y="83" width="17" height="14" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa10_di" bpmnElement="fpoa10">
        <di:waypoint x="1080" y="187" />
        <di:waypoint x="1162" y="187" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="fpoa11_di" bpmnElement="fpoa11">
        <di:waypoint x="1080" y="77" />
        <di:waypoint x="1162" y="77" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>