dodil/erp-method

modules/purchasing/signoff/purchasing/history/purchasing_consignment_withdrawal.v3.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_purchasing_v6" name="Purchasing &amp; suppliers processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_purchasing_v6">
  <bpmn:documentation>Purchasing &amp; suppliers: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_purchasing_consignment_withdrawal" name="Consignment withdrawal" processRef="Process_purchasing_consignment_withdrawal_v6" />
 </bpmn:collaboration>
 <bpmn:process id="Process_purchasing_consignment_withdrawal_v6" name="Consignment withdrawal" isExecutable="false">
  <bpmn:documentation>Lifecycle of the consignment withdrawal, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: recorded, settled, reversed.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_consignment_withdrawal">
   <bpmn:lane id="Lane_consignment_withdrawal_system" name="The system">
    <bpmn:flowNodeRef>Start_consignment_withdrawal</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_take_consignment_withdrawal</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_reverse_consignment_withdrawal</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_consignment_withdrawal_recorded__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_consignment_withdrawal_reversed</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_consignment_withdrawal_payables_clerk" name="accounts payable">
    <bpmn:flowNodeRef>Task_settle_consignment</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_consignment_withdrawal_settled</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_consignment_withdrawal" name="Consignment withdrawal needed">
   <bpmn:outgoing>Flow_Start_consignment_withdrawal__Task_take_consignment_withdrawal</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_take_consignment_withdrawal" name="Take a withdrawal from inventory" dodil:step="take_consignment_withdrawal" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to recorded. When: a consignment price in force on the withdrawal date; the date today or earlier. Effect: keyed move_ref; priced; {withdrawal_id, unit_price, amount} answered to inventory.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_consignment_withdrawal__Task_take_consignment_withdrawal</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_take_consignment_withdrawal__Gateway_consignment_withdrawal_recorded__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:serviceTask id="Task_reverse_consignment_withdrawal" name="Reverse a withdrawal" dodil:step="reverse_consignment_withdrawal" implementation="##unspecified">
   <bpmn:documentation>By: The system. From recorded to reversed. When: not settled (after settlement a credit in the next one).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_consignment_withdrawal_recorded__if__Task_reverse_consignment_withdrawal</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_reverse_consignment_withdrawal__End_consignment_withdrawal_reversed</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_settle_consignment" name="Settle the withdrawals" dodil:step="settle_consignment">
   <bpmn:documentation>By: accounts payable. From recorded to settled. When: the supplier's invoice for the period matched two-way against the withdrawals, or ERS under an agreement. Effect: bill lines against withdrawals; debit consignment clearing, credit payables.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_consignment_withdrawal_recorded__if__Task_settle_consignment</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_settle_consignment__End_consignment_withdrawal_settled</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_consignment_withdrawal_recorded__if" name="Consignment withdrawal recorded: what next?">
   <bpmn:incoming>Flow_Task_take_consignment_withdrawal__Gateway_consignment_withdrawal_recorded__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_consignment_withdrawal_recorded__if__Task_reverse_consignment_withdrawal</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_consignment_withdrawal_recorded__if__Task_settle_consignment</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_consignment_withdrawal_reversed" name="Consignment withdrawal reversed">
   <bpmn:incoming>Flow_Task_reverse_consignment_withdrawal__End_consignment_withdrawal_reversed</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_consignment_withdrawal_settled" name="Consignment withdrawal settled">
   <bpmn:incoming>Flow_Task_settle_consignment__End_consignment_withdrawal_settled</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_consignment_withdrawal__Task_take_consignment_withdrawal" sourceRef="Start_consignment_withdrawal" targetRef="Task_take_consignment_withdrawal" />
  <bpmn:sequenceFlow id="Flow_Gateway_consignment_withdrawal_recorded__if__Task_reverse_consignment_withdrawal" sourceRef="Gateway_consignment_withdrawal_recorded__if" targetRef="Task_reverse_consignment_withdrawal" />
  <bpmn:sequenceFlow id="Flow_Gateway_consignment_withdrawal_recorded__if__Task_settle_consignment" sourceRef="Gateway_consignment_withdrawal_recorded__if" targetRef="Task_settle_consignment" />
  <bpmn:sequenceFlow id="Flow_Task_take_consignment_withdrawal__Gateway_consignment_withdrawal_recorded__if" sourceRef="Task_take_consignment_withdrawal" targetRef="Gateway_consignment_withdrawal_recorded__if" />
  <bpmn:sequenceFlow id="Flow_Task_reverse_consignment_withdrawal__End_consignment_withdrawal_reversed" sourceRef="Task_reverse_consignment_withdrawal" targetRef="End_consignment_withdrawal_reversed" />
  <bpmn:sequenceFlow id="Flow_Task_settle_consignment__End_consignment_withdrawal_settled" sourceRef="Task_settle_consignment" targetRef="End_consignment_withdrawal_settled" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_purchasing_v6">
  <bpmndi:BPMNPlane id="BPMNPlane_purchasing_v6" bpmnElement="Collaboration_purchasing_v6">
   <bpmndi:BPMNShape id="Participant_purchasing_consignment_withdrawal_di" bpmnElement="Participant_purchasing_consignment_withdrawal" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="280" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_consignment_withdrawal_system_di" bpmnElement="Lane_consignment_withdrawal_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_consignment_withdrawal_payables_clerk_di" bpmnElement="Lane_consignment_withdrawal_payables_clerk" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_consignment_withdrawal_di" bpmnElement="Start_consignment_withdrawal">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_take_consignment_withdrawal_di" bpmnElement="Task_take_consignment_withdrawal">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_reverse_consignment_withdrawal_di" bpmnElement="Task_reverse_consignment_withdrawal">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_settle_consignment_di" bpmnElement="Task_settle_consignment">
    <dc:Bounds x="635" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_consignment_withdrawal_recorded__if_di" bpmnElement="Gateway_consignment_withdrawal_recorded__if">
    <dc:Bounds x="490" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_consignment_withdrawal_reversed_di" bpmnElement="End_consignment_withdrawal_reversed">
    <dc:Bounds x="837" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_consignment_withdrawal_settled_di" bpmnElement="End_consignment_withdrawal_settled">
    <dc:Bounds x="837" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_consignment_withdrawal__Task_take_consignment_withdrawal_di" bpmnElement="Flow_Start_consignment_withdrawal__Task_take_consignment_withdrawal">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_consignment_withdrawal_recorded__if__Task_reverse_consignment_withdrawal_di" bpmnElement="Flow_Gateway_consignment_withdrawal_recorded__if__Task_reverse_consignment_withdrawal">
    <di:waypoint x="540" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_consignment_withdrawal_recorded__if__Task_settle_consignment_di" bpmnElement="Flow_Gateway_consignment_withdrawal_recorded__if__Task_settle_consignment">
    <di:waypoint x="540" y="60" />
    <di:waypoint x="610" y="60" />
    <di:waypoint x="610" y="200" />
    <di:waypoint x="635" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_take_consignment_withdrawal__Gateway_consignment_withdrawal_recorded__if_di" bpmnElement="Flow_Task_take_consignment_withdrawal__Gateway_consignment_withdrawal_recorded__if">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="490" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_reverse_consignment_withdrawal__End_consignment_withdrawal_reversed_di" bpmnElement="Flow_Task_reverse_consignment_withdrawal__End_consignment_withdrawal_reversed">
    <di:waypoint x="735" y="60" />
    <di:waypoint x="837" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_settle_consignment__End_consignment_withdrawal_settled_di" bpmnElement="Flow_Task_settle_consignment__End_consignment_withdrawal_settled">
    <di:waypoint x="735" y="200" />
    <di:waypoint x="837" y="200" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>