dodil/erp-method

modules/inventory/signoff/inventory/history/inventory_replenishment_proposal.v5.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_v7" 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_v7">
  <bpmn:documentation>Stock &amp; warehouses: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_inventory_replenishment_proposal" name="Replenishment proposal" processRef="Process_inventory_replenishment_proposal_v7" />
 </bpmn:collaboration>
 <bpmn:process id="Process_inventory_replenishment_proposal_v7" name="Replenishment proposal" isExecutable="false">
  <bpmn:documentation>Lifecycle of the replenishment proposal, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: proposed, sent, dismissed.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_replenishment_proposal">
   <bpmn:lane id="Lane_replenishment_proposal_system" name="The system">
    <bpmn:flowNodeRef>Start_replenishment_proposal</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_propose_replenishment</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_auto_send_replenishment</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_replenishment_proposal_warehouse_manager" name="Whoever runs the warehouse (operations lead, the owner in a small firm)">
    <bpmn:flowNodeRef>Task_accept_replenishment</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_dismiss_replenishment</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_replenishment_proposal_proposed__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_replenishment_proposal_sent</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_replenishment_proposal_dismissed</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_replenishment_proposal" name="Replenishment proposal needed">
   <bpmn:outgoing>Flow_Start_replenishment_proposal__Task_propose_replenishment</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_propose_replenishment" name="Propose what to buy or move (nightly)" dodil:step="propose_replenishment" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to proposed. When: a product planned at the site (product's GET /product-sites) with procurement buy or transfer (v6: make or mrp is manufacturing's, skipped); projected available (v6: less manufacturing's dependent requirements in the horizon, GET /dependent-requirements, when manufacturing is installed) at or below its reorder point; once per (site, product, business date). Effect: a proposal: projected figures, the site row's valid_from, quantity to the max (min_max) or the lot size, rounded by product's round-proposal; buy or transfer from the supplying site.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_replenishment_proposal__Task_propose_replenishment</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_propose_replenishment__Gateway_replenishment_proposal_proposed__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_accept_replenishment" name="Accept the proposal" dodil:step="accept_replenishment">
   <bpmn:documentation>By: Whoever runs the warehouse (operations lead, the owner in a small firm). From proposed to sent. When: the quantity may be changed; it still meets the purchase rule. Effect: buy: one purchase request in purchasing (POST /purchase-requests/from-replenishment); transfer: a draft transfer from the supplying site.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_replenishment_proposal_proposed__if__Task_accept_replenishment</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_accept_replenishment__End_replenishment_proposal_sent</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_auto_send_replenishment" name="Send the proposal automatically (auto mode)" dodil:step="auto_send_replenishment" implementation="##unspecified">
   <bpmn:documentation>By: The system. From proposed to sent. When: the owner's replenishment_mode is auto from a date on or before today. Effect: as accept_replenishment, by the system's client.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_replenishment_proposal_proposed__if__Task_auto_send_replenishment</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_auto_send_replenishment__End_replenishment_proposal_sent</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_dismiss_replenishment" name="Dismiss the proposal" dodil:step="dismiss_replenishment">
   <bpmn:documentation>By: Whoever runs the warehouse (operations lead, the owner in a small firm). From proposed to dismissed. Requires: reason.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_replenishment_proposal_proposed__if__Task_dismiss_replenishment</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_dismiss_replenishment__End_replenishment_proposal_dismissed</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_replenishment_proposal_proposed__if" name="Replenishment proposal proposed: what next?">
   <bpmn:incoming>Flow_Task_propose_replenishment__Gateway_replenishment_proposal_proposed__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_replenishment_proposal_proposed__if__Task_accept_replenishment</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_replenishment_proposal_proposed__if__Task_auto_send_replenishment</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_replenishment_proposal_proposed__if__Task_dismiss_replenishment</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_replenishment_proposal_sent" name="Replenishment proposal sent">
   <bpmn:incoming>Flow_Task_accept_replenishment__End_replenishment_proposal_sent</bpmn:incoming>
   <bpmn:incoming>Flow_Task_auto_send_replenishment__End_replenishment_proposal_sent</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_replenishment_proposal_dismissed" name="Replenishment proposal dismissed">
   <bpmn:incoming>Flow_Task_dismiss_replenishment__End_replenishment_proposal_dismissed</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_replenishment_proposal__Task_propose_replenishment" sourceRef="Start_replenishment_proposal" targetRef="Task_propose_replenishment" />
  <bpmn:sequenceFlow id="Flow_Gateway_replenishment_proposal_proposed__if__Task_accept_replenishment" sourceRef="Gateway_replenishment_proposal_proposed__if" targetRef="Task_accept_replenishment" />
  <bpmn:sequenceFlow id="Flow_Gateway_replenishment_proposal_proposed__if__Task_auto_send_replenishment" sourceRef="Gateway_replenishment_proposal_proposed__if" targetRef="Task_auto_send_replenishment" />
  <bpmn:sequenceFlow id="Flow_Gateway_replenishment_proposal_proposed__if__Task_dismiss_replenishment" sourceRef="Gateway_replenishment_proposal_proposed__if" targetRef="Task_dismiss_replenishment" />
  <bpmn:sequenceFlow id="Flow_Task_propose_replenishment__Gateway_replenishment_proposal_proposed__if" sourceRef="Task_propose_replenishment" targetRef="Gateway_replenishment_proposal_proposed__if" />
  <bpmn:sequenceFlow id="Flow_Task_accept_replenishment__End_replenishment_proposal_sent" sourceRef="Task_accept_replenishment" targetRef="End_replenishment_proposal_sent" />
  <bpmn:sequenceFlow id="Flow_Task_auto_send_replenishment__End_replenishment_proposal_sent" sourceRef="Task_auto_send_replenishment" targetRef="End_replenishment_proposal_sent" />
  <bpmn:sequenceFlow id="Flow_Task_dismiss_replenishment__End_replenishment_proposal_dismissed" sourceRef="Task_dismiss_replenishment" targetRef="End_replenishment_proposal_dismissed" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_inventory_v7">
  <bpmndi:BPMNPlane id="BPMNPlane_inventory_v7" bpmnElement="Collaboration_inventory_v7">
   <bpmndi:BPMNShape id="Participant_inventory_replenishment_proposal_di" bpmnElement="Participant_inventory_replenishment_proposal" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="400" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_replenishment_proposal_system_di" bpmnElement="Lane_replenishment_proposal_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_replenishment_proposal_warehouse_manager_di" bpmnElement="Lane_replenishment_proposal_warehouse_manager" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="930" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_replenishment_proposal_di" bpmnElement="Start_replenishment_proposal">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_propose_replenishment_di" bpmnElement="Task_propose_replenishment">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_accept_replenishment_di" bpmnElement="Task_accept_replenishment">
    <dc:Bounds x="635" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_auto_send_replenishment_di" bpmnElement="Task_auto_send_replenishment">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_dismiss_replenishment_di" bpmnElement="Task_dismiss_replenishment">
    <dc:Bounds x="635" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_replenishment_proposal_proposed__if_di" bpmnElement="Gateway_replenishment_proposal_proposed__if">
    <dc:Bounds x="490" y="175" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_replenishment_proposal_sent_di" bpmnElement="End_replenishment_proposal_sent">
    <dc:Bounds x="837" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_replenishment_proposal_dismissed_di" bpmnElement="End_replenishment_proposal_dismissed">
    <dc:Bounds x="837" y="302" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_replenishment_proposal__Task_propose_replenishment_di" bpmnElement="Flow_Start_replenishment_proposal__Task_propose_replenishment">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_replenishment_proposal_proposed__if__Task_accept_replenishment_di" bpmnElement="Flow_Gateway_replenishment_proposal_proposed__if__Task_accept_replenishment">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="635" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_replenishment_proposal_proposed__if__Task_auto_send_replenishment_di" bpmnElement="Flow_Gateway_replenishment_proposal_proposed__if__Task_auto_send_replenishment">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="610" y="200" />
    <di:waypoint x="610" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_replenishment_proposal_proposed__if__Task_dismiss_replenishment_di" bpmnElement="Flow_Gateway_replenishment_proposal_proposed__if__Task_dismiss_replenishment">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="610" y="200" />
    <di:waypoint x="610" y="320" />
    <di:waypoint x="635" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_propose_replenishment__Gateway_replenishment_proposal_proposed__if_di" bpmnElement="Flow_Task_propose_replenishment__Gateway_replenishment_proposal_proposed__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_Task_accept_replenishment__End_replenishment_proposal_sent_di" bpmnElement="Flow_Task_accept_replenishment__End_replenishment_proposal_sent">
    <di:waypoint x="735" y="200" />
    <di:waypoint x="837" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_auto_send_replenishment__End_replenishment_proposal_sent_di" bpmnElement="Flow_Task_auto_send_replenishment__End_replenishment_proposal_sent">
    <di:waypoint x="735" y="60" />
    <di:waypoint x="812" y="60" />
    <di:waypoint x="812" y="200" />
    <di:waypoint x="837" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_dismiss_replenishment__End_replenishment_proposal_dismissed_di" bpmnElement="Flow_Task_dismiss_replenishment__End_replenishment_proposal_dismissed">
    <di:waypoint x="735" y="320" />
    <di:waypoint x="837" y="320" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>