dodil/erp-method

modules/inventory/signoff/inventory/history/inventory_delivery.v4.bpmn

<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dodil="https://git.dodil.io/dodil/erp-platform/bpmn/1" id="Definitions_inventory_v6" name="Stock &amp; warehouses processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_inventory_v6">
  <bpmn:documentation>Stock &amp; warehouses: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_inventory_delivery" name="Delivery" processRef="Process_inventory_delivery_v6" />
 </bpmn:collaboration>
 <bpmn:process id="Process_inventory_delivery_v6" name="Delivery" isExecutable="false">
  <bpmn:documentation>Lifecycle of the delivery, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: waiting, ready, done, cancelled. Note: a delivery is undone only by a return receipt (INV-14). Two validations for the last unit: one wins the claim row, the other is refused and writes nothing (INV-08)</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_delivery">
   <bpmn:lane id="Lane_delivery_system" name="The system">
    <bpmn:flowNodeRef>Start_delivery</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_reserve_order</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_stock_arrives</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_delivery_warehouse_manager" name="Whoever runs the warehouse (operations lead, the owner in a small firm)">
    <bpmn:flowNodeRef>Task_reserve_by_hand</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_batch_deliveries</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_cancel_delivery</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_reserve_by_hand__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_reserve_by_hand__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_batch_deliveries__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_batch_deliveries__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_delivery_cancelled</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_delivery_stock_operator" name="The person on the floor (picker, packer, goods-in)">
    <bpmn:flowNodeRef>Task_pick_goods</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_pack_delivery</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_validate_delivery</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_pick_goods__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_pick_goods__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_pack_delivery__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_pack_delivery__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_delivery_ready__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_delivery_done</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_delivery" name="Delivery needed">
   <bpmn:outgoing>Flow_Start_delivery__Task_reserve_order</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_reserve_order" name="Reserve stock for the confirmed order" dodil:step="reserve_order" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to waiting. When: a confirmed sales order with goods lines. Effect: reservation rows per line at the warehouse, as much as is available (never from a quality or blocked location, v2); the shortfall stated.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_delivery__Task_reserve_order</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_reserve_order__Gateway_reserve_by_hand__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_reserve_by_hand" name="Reserve or release by hand" dodil:step="reserve_by_hand">
   <bpmn:documentation>By: Whoever runs the warehouse (operations lead, the owner in a small firm). From waiting to waiting. When: no more than is available. Requires: reason. Effect: a reservation row appended, with who and why.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_reserve_by_hand__if__Task_reserve_by_hand</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_reserve_by_hand__Gateway_reserve_by_hand__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_stock_arrives" name="Stock becomes available" dodil:step="stock_arrives" implementation="##unspecified">
   <bpmn:documentation>By: The system. From waiting to ready. When: every line reserved in full, or the order accepts part shipments. Effect: the delivery appears on the pick list.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_reserve_by_hand__if_end__Task_stock_arrives</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_stock_arrives__Gateway_batch_deliveries__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_batch_deliveries" name="Batch deliveries into one pick" dodil:step="batch_deliveries">
   <bpmn:documentation>By: Whoever runs the warehouse (operations lead, the owner in a small firm). From ready to ready. When: deliveries of one warehouse, ready, not in another batch. Effect: a pick batch {warehouse}/PB/{seq:5} with one pick list in pick_sequence order (v3).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_batch_deliveries__if__Task_batch_deliveries</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_batch_deliveries__Gateway_batch_deliveries__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_pick_goods" name="Pick from the bins" dodil:step="pick_goods">
   <bpmn:documentation>By: The person on the floor (picker, packer, goods-in). From ready to ready. When: each bin holds what is picked from it (unless negative stock is allowed there) and the stock picked is unrestricted (v3: by stock row); a lot or serial per tracked unit; readiness: shelf_life (the lot proposed by the removal strategy, FEFO or FIFO, with the customer's minimum remaining shelf life; another lot only by a warehouse manager with a reason; never an expired lot unless the owner allows it); the line's unit converts exactly to the order line's unit. Effect: picked quantities recorded on the delivery, proposed in the warehouse unit (v2) and by lot (v3); with two-step picking, a transfer bin -&gt; staging.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_pick_goods__if__Task_pick_goods</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_pick_goods__Gateway_pick_goods__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_pack_delivery" name="Pack into packages" dodil:step="pack_delivery">
   <bpmn:documentation>By: The person on the floor (picker, packer, goods-in). From ready to ready. When: contents never more than picked; a package type. Effect: packages with an SSCC each (claimed, never reused), contents and gross weight (v3).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_pack_delivery__if__Task_pack_delivery</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_pack_delivery__Gateway_pack_delivery__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_validate_delivery" name="Validate the delivery" dodil:step="validate_delivery">
   <bpmn:documentation>By: The person on the floor (picker, packer, goods-in). From ready to done. When: readiness: something_picked, stock_claimed (the claim rows on every bin and the warehouse were won), order_accepts (the sales order's record_delivery answered ok), weights_known (v2, only with delivery_needs_weights), not_blocked (v3: the order's fulfilment answer has no delivery block or incomplete delivery field), all_packed (v3, only with pick_pack_ship). Effect: numbered {warehouse}/OUT/{seq:5}; gross and net weight and volume answered for shipping (v2); supplier-consignment stock picked is withdrawn first (purchasing told, v3); moves bin -&gt; CUSTOMER at average or standard cost, or to the customer's consignment location for a CONS_FILL order (v3); the reservation consumed; the order records the delivery; the cost of goods posted to the purpose's account (sale, free_of_charge, consignment issue); what is left goes to a back-order delivery unless the order asks for complete delivery or the line closed within tolerance.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_delivery_ready__if__Task_validate_delivery</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_validate_delivery__End_delivery_done</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_cancel_delivery" name="Cancel the delivery" dodil:step="cancel_delivery">
   <bpmn:documentation>By: Whoever runs the warehouse (operations lead, the owner in a small firm). From ready to cancelled. When: nothing on it validated. Requires: reason. Effect: its reservations released.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_delivery_ready__if__Task_cancel_delivery</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_cancel_delivery__End_delivery_cancelled</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_reserve_by_hand__if" name="no more than is available?">
   <bpmn:incoming>Flow_Task_reserve_order__Gateway_reserve_by_hand__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_reserve_by_hand__if__Task_reserve_by_hand</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_reserve_by_hand__if__Gateway_reserve_by_hand__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_reserve_by_hand__if_end">
   <bpmn:incoming>Flow_Gateway_reserve_by_hand__if__Gateway_reserve_by_hand__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_reserve_by_hand__Gateway_reserve_by_hand__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_reserve_by_hand__if_end__Task_stock_arrives</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_batch_deliveries__if" name="deliveries of one warehouse, ready, not in another batch?">
   <bpmn:incoming>Flow_Task_stock_arrives__Gateway_batch_deliveries__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_batch_deliveries__if__Task_batch_deliveries</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_batch_deliveries__if__Gateway_batch_deliveries__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_batch_deliveries__if_end">
   <bpmn:incoming>Flow_Gateway_batch_deliveries__if__Gateway_batch_deliveries__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_batch_deliveries__Gateway_batch_deliveries__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_batch_deliveries__if_end__Gateway_pick_goods__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_pick_goods__if" name="each bin holds what is picked from it (unless negative stock is allowed there) and the stock picked is unrestricted (v3: by stock row); a lot or serial per tracked unit; readiness: shelf_life (the lot proposed by the removal strategy, FEFO or FIFO, with the customer's minimum remaining shelf life; another lot only by a warehouse manager with a reason; never an expired lot unless the owner allows it); the line's unit converts exactly to the order line's unit?">
   <bpmn:incoming>Flow_Gateway_batch_deliveries__if_end__Gateway_pick_goods__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_pick_goods__if__Task_pick_goods</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_pick_goods__if__Gateway_pick_goods__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_pick_goods__if_end">
   <bpmn:incoming>Flow_Gateway_pick_goods__if__Gateway_pick_goods__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_pick_goods__Gateway_pick_goods__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_pick_goods__if_end__Gateway_pack_delivery__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_pack_delivery__if" name="contents never more than picked; a package type?">
   <bpmn:incoming>Flow_Gateway_pick_goods__if_end__Gateway_pack_delivery__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_pack_delivery__if__Task_pack_delivery</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_pack_delivery__if__Gateway_pack_delivery__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_pack_delivery__if_end">
   <bpmn:incoming>Flow_Gateway_pack_delivery__if__Gateway_pack_delivery__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_pack_delivery__Gateway_pack_delivery__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_pack_delivery__if_end__Gateway_delivery_ready__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_delivery_ready__if" name="Delivery ready: what next?">
   <bpmn:incoming>Flow_Gateway_pack_delivery__if_end__Gateway_delivery_ready__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_delivery_ready__if__Task_validate_delivery</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_delivery_ready__if__Task_cancel_delivery</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_delivery_done" name="Delivery done">
   <bpmn:incoming>Flow_Task_validate_delivery__End_delivery_done</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_delivery_cancelled" name="Delivery cancelled">
   <bpmn:incoming>Flow_Task_cancel_delivery__End_delivery_cancelled</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_delivery__Task_reserve_order" sourceRef="Start_delivery" targetRef="Task_reserve_order" />
  <bpmn:sequenceFlow id="Flow_Gateway_reserve_by_hand__if__Task_reserve_by_hand" name="no more than is available" sourceRef="Gateway_reserve_by_hand__if" targetRef="Task_reserve_by_hand" />
  <bpmn:sequenceFlow id="Flow_Gateway_reserve_by_hand__if__Gateway_reserve_by_hand__if_end" name="otherwise" sourceRef="Gateway_reserve_by_hand__if" targetRef="Gateway_reserve_by_hand__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_reserve_by_hand__Gateway_reserve_by_hand__if_end" sourceRef="Task_reserve_by_hand" targetRef="Gateway_reserve_by_hand__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_reserve_by_hand__if_end__Task_stock_arrives" sourceRef="Gateway_reserve_by_hand__if_end" targetRef="Task_stock_arrives" />
  <bpmn:sequenceFlow id="Flow_Task_reserve_order__Gateway_reserve_by_hand__if" sourceRef="Task_reserve_order" targetRef="Gateway_reserve_by_hand__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_batch_deliveries__if__Task_batch_deliveries" name="deliveries of one warehouse, ready, not in another batch" sourceRef="Gateway_batch_deliveries__if" targetRef="Task_batch_deliveries" />
  <bpmn:sequenceFlow id="Flow_Gateway_batch_deliveries__if__Gateway_batch_deliveries__if_end" name="otherwise" sourceRef="Gateway_batch_deliveries__if" targetRef="Gateway_batch_deliveries__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_batch_deliveries__Gateway_batch_deliveries__if_end" sourceRef="Task_batch_deliveries" targetRef="Gateway_batch_deliveries__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_pick_goods__if__Task_pick_goods" name="each bin holds what is picked from it (unless negative stock is allowed there) and the stock picked is unrestricted (v3: by stock row); a lot or serial per tracked unit; readiness: shelf_life (the lot proposed by the removal strategy, FEFO or FIFO, with the customer's minimum remaining shelf life; another lot only by a warehouse manager with a reason; never an expired lot unless the owner allows it); the line's unit converts exactly to the order line's unit" sourceRef="Gateway_pick_goods__if" targetRef="Task_pick_goods" />
  <bpmn:sequenceFlow id="Flow_Gateway_pick_goods__if__Gateway_pick_goods__if_end" name="otherwise" sourceRef="Gateway_pick_goods__if" targetRef="Gateway_pick_goods__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_pick_goods__Gateway_pick_goods__if_end" sourceRef="Task_pick_goods" targetRef="Gateway_pick_goods__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_pack_delivery__if__Task_pack_delivery" name="contents never more than picked; a package type" sourceRef="Gateway_pack_delivery__if" targetRef="Task_pack_delivery" />
  <bpmn:sequenceFlow id="Flow_Gateway_pack_delivery__if__Gateway_pack_delivery__if_end" name="otherwise" sourceRef="Gateway_pack_delivery__if" targetRef="Gateway_pack_delivery__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_pack_delivery__Gateway_pack_delivery__if_end" sourceRef="Task_pack_delivery" targetRef="Gateway_pack_delivery__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_batch_deliveries__if_end__Gateway_pick_goods__if" sourceRef="Gateway_batch_deliveries__if_end" targetRef="Gateway_pick_goods__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_pick_goods__if_end__Gateway_pack_delivery__if" sourceRef="Gateway_pick_goods__if_end" targetRef="Gateway_pack_delivery__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_delivery_ready__if__Task_validate_delivery" sourceRef="Gateway_delivery_ready__if" targetRef="Task_validate_delivery" />
  <bpmn:sequenceFlow id="Flow_Gateway_delivery_ready__if__Task_cancel_delivery" sourceRef="Gateway_delivery_ready__if" targetRef="Task_cancel_delivery" />
  <bpmn:sequenceFlow id="Flow_Gateway_pack_delivery__if_end__Gateway_delivery_ready__if" sourceRef="Gateway_pack_delivery__if_end" targetRef="Gateway_delivery_ready__if" />
  <bpmn:sequenceFlow id="Flow_Task_stock_arrives__Gateway_batch_deliveries__if" sourceRef="Task_stock_arrives" targetRef="Gateway_batch_deliveries__if" />
  <bpmn:sequenceFlow id="Flow_Task_validate_delivery__End_delivery_done" sourceRef="Task_validate_delivery" targetRef="End_delivery_done" />
  <bpmn:sequenceFlow id="Flow_Task_cancel_delivery__End_delivery_cancelled" sourceRef="Task_cancel_delivery" targetRef="End_delivery_cancelled" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_inventory_v6">
  <bpmndi:BPMNPlane id="BPMNPlane_inventory_v6" bpmnElement="Collaboration_inventory_v6">
   <bpmndi:BPMNShape id="Participant_inventory_delivery_di" bpmnElement="Participant_inventory_delivery" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="2490" height="660" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_delivery_system_di" bpmnElement="Lane_delivery_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="2460" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_delivery_warehouse_manager_di" bpmnElement="Lane_delivery_warehouse_manager" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="2460" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_delivery_stock_operator_di" bpmnElement="Lane_delivery_stock_operator" isHorizontal="true">
    <dc:Bounds x="30" y="400" width="2460" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_delivery_di" bpmnElement="Start_delivery">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_reserve_order_di" bpmnElement="Task_reserve_order">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_reserve_by_hand_di" bpmnElement="Task_reserve_by_hand">
    <dc:Bounds x="635" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_stock_arrives_di" bpmnElement="Task_stock_arrives">
    <dc:Bounds x="805" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_batch_deliveries_di" bpmnElement="Task_batch_deliveries">
    <dc:Bounds x="1145" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_pick_goods_di" bpmnElement="Task_pick_goods">
    <dc:Bounds x="1485" y="420" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_pack_delivery_di" bpmnElement="Task_pack_delivery">
    <dc:Bounds x="1825" y="420" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_validate_delivery_di" bpmnElement="Task_validate_delivery">
    <dc:Bounds x="2165" y="420" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_cancel_delivery_di" bpmnElement="Task_cancel_delivery">
    <dc:Bounds x="2165" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_reserve_by_hand__if_di" bpmnElement="Gateway_reserve_by_hand__if">
    <dc:Bounds x="490" y="175" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_reserve_by_hand__if_end_di" bpmnElement="Gateway_reserve_by_hand__if_end">
    <dc:Bounds x="660" y="295" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_batch_deliveries__if_di" bpmnElement="Gateway_batch_deliveries__if">
    <dc:Bounds x="1000" y="175" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_batch_deliveries__if_end_di" bpmnElement="Gateway_batch_deliveries__if_end">
    <dc:Bounds x="1170" y="295" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_pick_goods__if_di" bpmnElement="Gateway_pick_goods__if">
    <dc:Bounds x="1340" y="435" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_pick_goods__if_end_di" bpmnElement="Gateway_pick_goods__if_end">
    <dc:Bounds x="1510" y="555" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_pack_delivery__if_di" bpmnElement="Gateway_pack_delivery__if">
    <dc:Bounds x="1680" y="435" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_pack_delivery__if_end_di" bpmnElement="Gateway_pack_delivery__if_end">
    <dc:Bounds x="1850" y="555" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_delivery_ready__if_di" bpmnElement="Gateway_delivery_ready__if">
    <dc:Bounds x="2020" y="435" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_delivery_done_di" bpmnElement="End_delivery_done">
    <dc:Bounds x="2367" y="442" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_delivery_cancelled_di" bpmnElement="End_delivery_cancelled">
    <dc:Bounds x="2367" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_delivery__Task_reserve_order_di" bpmnElement="Flow_Start_delivery__Task_reserve_order">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_reserve_by_hand__if__Task_reserve_by_hand_di" bpmnElement="Flow_Gateway_reserve_by_hand__if__Task_reserve_by_hand">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="635" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_reserve_by_hand__if__Gateway_reserve_by_hand__if_end_di" bpmnElement="Flow_Gateway_reserve_by_hand__if__Gateway_reserve_by_hand__if_end">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="635" y="200" />
    <di:waypoint x="635" y="320" />
    <di:waypoint x="660" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_reserve_by_hand__Gateway_reserve_by_hand__if_end_di" bpmnElement="Flow_Task_reserve_by_hand__Gateway_reserve_by_hand__if_end">
    <di:waypoint x="685" y="240" />
    <di:waypoint x="685" y="360" />
    <di:waypoint x="685" y="360" />
    <di:waypoint x="685" y="345" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_reserve_by_hand__if_end__Task_stock_arrives_di" bpmnElement="Flow_Gateway_reserve_by_hand__if_end__Task_stock_arrives">
    <di:waypoint x="710" y="320" />
    <di:waypoint x="780" y="320" />
    <di:waypoint x="780" y="60" />
    <di:waypoint x="805" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_reserve_order__Gateway_reserve_by_hand__if_di" bpmnElement="Flow_Task_reserve_order__Gateway_reserve_by_hand__if">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="465" y="60" />
    <di:waypoint x="465" y="200" />
    <di:waypoint x="490" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_batch_deliveries__if__Task_batch_deliveries_di" bpmnElement="Flow_Gateway_batch_deliveries__if__Task_batch_deliveries">
    <di:waypoint x="1050" y="200" />
    <di:waypoint x="1145" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_batch_deliveries__if__Gateway_batch_deliveries__if_end_di" bpmnElement="Flow_Gateway_batch_deliveries__if__Gateway_batch_deliveries__if_end">
    <di:waypoint x="1050" y="200" />
    <di:waypoint x="1145" y="200" />
    <di:waypoint x="1145" y="320" />
    <di:waypoint x="1170" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_batch_deliveries__Gateway_batch_deliveries__if_end_di" bpmnElement="Flow_Task_batch_deliveries__Gateway_batch_deliveries__if_end">
    <di:waypoint x="1195" y="240" />
    <di:waypoint x="1195" y="366" />
    <di:waypoint x="1195" y="366" />
    <di:waypoint x="1195" y="345" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_pick_goods__if__Task_pick_goods_di" bpmnElement="Flow_Gateway_pick_goods__if__Task_pick_goods">
    <di:waypoint x="1390" y="460" />
    <di:waypoint x="1485" y="460" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_pick_goods__if__Gateway_pick_goods__if_end_di" bpmnElement="Flow_Gateway_pick_goods__if__Gateway_pick_goods__if_end">
    <di:waypoint x="1390" y="460" />
    <di:waypoint x="1485" y="460" />
    <di:waypoint x="1485" y="580" />
    <di:waypoint x="1510" y="580" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_pick_goods__Gateway_pick_goods__if_end_di" bpmnElement="Flow_Task_pick_goods__Gateway_pick_goods__if_end">
    <di:waypoint x="1535" y="500" />
    <di:waypoint x="1535" y="632" />
    <di:waypoint x="1535" y="632" />
    <di:waypoint x="1535" y="605" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_pack_delivery__if__Task_pack_delivery_di" bpmnElement="Flow_Gateway_pack_delivery__if__Task_pack_delivery">
    <di:waypoint x="1730" y="460" />
    <di:waypoint x="1825" y="460" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_pack_delivery__if__Gateway_pack_delivery__if_end_di" bpmnElement="Flow_Gateway_pack_delivery__if__Gateway_pack_delivery__if_end">
    <di:waypoint x="1730" y="460" />
    <di:waypoint x="1825" y="460" />
    <di:waypoint x="1825" y="580" />
    <di:waypoint x="1850" y="580" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_pack_delivery__Gateway_pack_delivery__if_end_di" bpmnElement="Flow_Task_pack_delivery__Gateway_pack_delivery__if_end">
    <di:waypoint x="1875" y="500" />
    <di:waypoint x="1875" y="638" />
    <di:waypoint x="1875" y="638" />
    <di:waypoint x="1875" y="605" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_batch_deliveries__if_end__Gateway_pick_goods__if_di" bpmnElement="Flow_Gateway_batch_deliveries__if_end__Gateway_pick_goods__if">
    <di:waypoint x="1220" y="320" />
    <di:waypoint x="1315" y="320" />
    <di:waypoint x="1315" y="460" />
    <di:waypoint x="1340" y="460" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_pick_goods__if_end__Gateway_pack_delivery__if_di" bpmnElement="Flow_Gateway_pick_goods__if_end__Gateway_pack_delivery__if">
    <di:waypoint x="1560" y="580" />
    <di:waypoint x="1655" y="580" />
    <di:waypoint x="1655" y="460" />
    <di:waypoint x="1680" y="460" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_delivery_ready__if__Task_validate_delivery_di" bpmnElement="Flow_Gateway_delivery_ready__if__Task_validate_delivery">
    <di:waypoint x="2070" y="460" />
    <di:waypoint x="2165" y="460" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_delivery_ready__if__Task_cancel_delivery_di" bpmnElement="Flow_Gateway_delivery_ready__if__Task_cancel_delivery">
    <di:waypoint x="2070" y="460" />
    <di:waypoint x="2140" y="460" />
    <di:waypoint x="2140" y="200" />
    <di:waypoint x="2165" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_pack_delivery__if_end__Gateway_delivery_ready__if_di" bpmnElement="Flow_Gateway_pack_delivery__if_end__Gateway_delivery_ready__if">
    <di:waypoint x="1900" y="580" />
    <di:waypoint x="1995" y="580" />
    <di:waypoint x="1995" y="460" />
    <di:waypoint x="2020" y="460" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_stock_arrives__Gateway_batch_deliveries__if_di" bpmnElement="Flow_Task_stock_arrives__Gateway_batch_deliveries__if">
    <di:waypoint x="905" y="60" />
    <di:waypoint x="975" y="60" />
    <di:waypoint x="975" y="200" />
    <di:waypoint x="1000" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_validate_delivery__End_delivery_done_di" bpmnElement="Flow_Task_validate_delivery__End_delivery_done">
    <di:waypoint x="2265" y="460" />
    <di:waypoint x="2367" y="460" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_cancel_delivery__End_delivery_cancelled_di" bpmnElement="Flow_Task_cancel_delivery__End_delivery_cancelled">
    <di:waypoint x="2265" y="200" />
    <di:waypoint x="2367" y="200" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>