dodil/erp-method

modules/purchasing/signoff/purchasing/history/purchasing_rfq.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_purchasing_v8" 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_v8">
  <bpmn:documentation>Purchasing &amp; suppliers: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_purchasing_rfq" name="Rfq" processRef="Process_purchasing_rfq_v8" />
 </bpmn:collaboration>
 <bpmn:process id="Process_purchasing_rfq_v8" name="Rfq" isExecutable="false">
  <bpmn:documentation>Lifecycle of the rfq, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, sent, awarded, closed.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_rfq">
   <bpmn:lane id="Lane_rfq_buyer" name="whoever places orders">
    <bpmn:flowNodeRef>Start_rfq</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_draft_rfq</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_send_rfq</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_record_quote</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_award_quote</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_close_rfq</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_rfq_draft__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_record_quote__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_record_quote__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_rfq_sent__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_rfq_awarded</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_rfq_closed</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_rfq" name="Rfq needed">
   <bpmn:outgoing>Flow_Start_rfq__Task_draft_rfq</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_draft_rfq" name="Draft a request for quotation" dodil:step="draft_rfq">
   <bpmn:documentation>By: whoever places orders. From none to draft. When: an approved request, or lines with units. Effect: keyed rfq:&lt;request_id&gt; (or rfq:&lt;buyer&gt;:&lt;moment&gt;); a second draft from the same request returns it.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_rfq__Task_draft_rfq</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_draft_rfq__Gateway_rfq_draft__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_send_rfq" name="Send it to the suppliers" dodil:step="send_rfq">
   <bpmn:documentation>By: whoever places orders. From draft to sent. When: at least one supplier; a deadline after today; each supplier allowed by the source list. Effect: rfq_no claimed from the series; one invitation per supplier with when and to whom.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_rfq_draft__if__Task_send_rfq</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_send_rfq__Gateway_record_quote__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_record_quote" name="Record a supplier's quote" dodil:step="record_quote">
   <bpmn:documentation>By: whoever places orders. From sent to sent. When: an invited supplier. Effect: a quote (rfq_id, bp_id, revision) with a price, unit and delivery days per line; after the deadline flagged late.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_record_quote__if__Task_record_quote</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_record_quote__Gateway_record_quote__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_award_quote" name="Award the quote" dodil:step="award_quote">
   <bpmn:documentation>By: whoever places orders. From sent to awarded. When: a quote for every line awarded; a reason when it is not the cheapest. Effect: the order drafted keyed rfq:&lt;rfq_id&gt;:&lt;bp_id&gt; (raise_from_quote); the other suppliers listed to be told.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_rfq_sent__if__Task_award_quote</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_award_quote__End_rfq_awarded</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_close_rfq" name="Close without an award" dodil:step="close_rfq">
   <bpmn:documentation>By: whoever places orders. From draft / sent to closed. Requires: reason.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_rfq_draft__if__Task_close_rfq</bpmn:incoming>
   <bpmn:incoming>Flow_Gateway_rfq_sent__if__Task_close_rfq</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_close_rfq__End_rfq_closed</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_rfq_draft__if" name="Rfq draft: what next?">
   <bpmn:incoming>Flow_Task_draft_rfq__Gateway_rfq_draft__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_rfq_draft__if__Task_send_rfq</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_rfq_draft__if__Task_close_rfq</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_record_quote__if" name="an invited supplier?">
   <bpmn:incoming>Flow_Task_send_rfq__Gateway_record_quote__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_record_quote__if__Task_record_quote</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_record_quote__if__Gateway_record_quote__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_record_quote__if_end">
   <bpmn:incoming>Flow_Gateway_record_quote__if__Gateway_record_quote__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_record_quote__Gateway_record_quote__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_record_quote__if_end__Gateway_rfq_sent__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_rfq_sent__if" name="Rfq sent: what next?">
   <bpmn:incoming>Flow_Gateway_record_quote__if_end__Gateway_rfq_sent__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_rfq_sent__if__Task_award_quote</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_rfq_sent__if__Task_close_rfq</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_rfq_awarded" name="Rfq awarded">
   <bpmn:incoming>Flow_Task_award_quote__End_rfq_awarded</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_rfq_closed" name="Rfq closed">
   <bpmn:incoming>Flow_Task_close_rfq__End_rfq_closed</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_rfq__Task_draft_rfq" sourceRef="Start_rfq" targetRef="Task_draft_rfq" />
  <bpmn:sequenceFlow id="Flow_Gateway_rfq_draft__if__Task_send_rfq" sourceRef="Gateway_rfq_draft__if" targetRef="Task_send_rfq" />
  <bpmn:sequenceFlow id="Flow_Gateway_rfq_draft__if__Task_close_rfq" sourceRef="Gateway_rfq_draft__if" targetRef="Task_close_rfq" />
  <bpmn:sequenceFlow id="Flow_Task_draft_rfq__Gateway_rfq_draft__if" sourceRef="Task_draft_rfq" targetRef="Gateway_rfq_draft__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_record_quote__if__Task_record_quote" name="an invited supplier" sourceRef="Gateway_record_quote__if" targetRef="Task_record_quote" />
  <bpmn:sequenceFlow id="Flow_Gateway_record_quote__if__Gateway_record_quote__if_end" name="otherwise" sourceRef="Gateway_record_quote__if" targetRef="Gateway_record_quote__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_record_quote__Gateway_record_quote__if_end" sourceRef="Task_record_quote" targetRef="Gateway_record_quote__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_rfq_sent__if__Task_award_quote" sourceRef="Gateway_rfq_sent__if" targetRef="Task_award_quote" />
  <bpmn:sequenceFlow id="Flow_Gateway_rfq_sent__if__Task_close_rfq" sourceRef="Gateway_rfq_sent__if" targetRef="Task_close_rfq" />
  <bpmn:sequenceFlow id="Flow_Gateway_record_quote__if_end__Gateway_rfq_sent__if" sourceRef="Gateway_record_quote__if_end" targetRef="Gateway_rfq_sent__if" />
  <bpmn:sequenceFlow id="Flow_Task_send_rfq__Gateway_record_quote__if" sourceRef="Task_send_rfq" targetRef="Gateway_record_quote__if" />
  <bpmn:sequenceFlow id="Flow_Task_award_quote__End_rfq_awarded" sourceRef="Task_award_quote" targetRef="End_rfq_awarded" />
  <bpmn:sequenceFlow id="Flow_Task_close_rfq__End_rfq_closed" sourceRef="Task_close_rfq" targetRef="End_rfq_closed" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_purchasing_v8">
  <bpmndi:BPMNPlane id="BPMNPlane_purchasing_v8" bpmnElement="Collaboration_purchasing_v8">
   <bpmndi:BPMNShape id="Participant_purchasing_rfq_di" bpmnElement="Participant_purchasing_rfq" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="1640" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_rfq_buyer_di" bpmnElement="Lane_rfq_buyer" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="1610" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_rfq_di" bpmnElement="Start_rfq">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_draft_rfq_di" bpmnElement="Task_draft_rfq">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_send_rfq_di" bpmnElement="Task_send_rfq">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_record_quote_di" bpmnElement="Task_record_quote">
    <dc:Bounds x="975" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_award_quote_di" bpmnElement="Task_award_quote">
    <dc:Bounds x="1315" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_close_rfq_di" bpmnElement="Task_close_rfq">
    <dc:Bounds x="635" y="140" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_rfq_draft__if_di" bpmnElement="Gateway_rfq_draft__if">
    <dc:Bounds x="490" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_record_quote__if_di" bpmnElement="Gateway_record_quote__if">
    <dc:Bounds x="830" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_record_quote__if_end_di" bpmnElement="Gateway_record_quote__if_end">
    <dc:Bounds x="1000" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_rfq_sent__if_di" bpmnElement="Gateway_rfq_sent__if">
    <dc:Bounds x="1170" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_rfq_awarded_di" bpmnElement="End_rfq_awarded">
    <dc:Bounds x="1517" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_rfq_closed_di" bpmnElement="End_rfq_closed">
    <dc:Bounds x="837" y="162" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_rfq__Task_draft_rfq_di" bpmnElement="Flow_Start_rfq__Task_draft_rfq">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_rfq_draft__if__Task_send_rfq_di" bpmnElement="Flow_Gateway_rfq_draft__if__Task_send_rfq">
    <di:waypoint x="540" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_rfq_draft__if__Task_close_rfq_di" bpmnElement="Flow_Gateway_rfq_draft__if__Task_close_rfq">
    <di:waypoint x="540" y="60" />
    <di:waypoint x="610" y="60" />
    <di:waypoint x="610" y="180" />
    <di:waypoint x="635" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_draft_rfq__Gateway_rfq_draft__if_di" bpmnElement="Flow_Task_draft_rfq__Gateway_rfq_draft__if">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="490" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_record_quote__if__Task_record_quote_di" bpmnElement="Flow_Gateway_record_quote__if__Task_record_quote">
    <di:waypoint x="880" y="60" />
    <di:waypoint x="975" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_record_quote__if__Gateway_record_quote__if_end_di" bpmnElement="Flow_Gateway_record_quote__if__Gateway_record_quote__if_end">
    <di:waypoint x="880" y="60" />
    <di:waypoint x="975" y="60" />
    <di:waypoint x="975" y="180" />
    <di:waypoint x="1000" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_record_quote__Gateway_record_quote__if_end_di" bpmnElement="Flow_Task_record_quote__Gateway_record_quote__if_end">
    <di:waypoint x="1025" y="100" />
    <di:waypoint x="1025" y="220" />
    <di:waypoint x="1025" y="220" />
    <di:waypoint x="1025" y="205" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_rfq_sent__if__Task_award_quote_di" bpmnElement="Flow_Gateway_rfq_sent__if__Task_award_quote">
    <di:waypoint x="1220" y="60" />
    <di:waypoint x="1315" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_rfq_sent__if__Task_close_rfq_di" bpmnElement="Flow_Gateway_rfq_sent__if__Task_close_rfq">
    <di:waypoint x="1195" y="85" />
    <di:waypoint x="1195" y="241" />
    <di:waypoint x="685" y="241" />
    <di:waypoint x="685" y="220" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_record_quote__if_end__Gateway_rfq_sent__if_di" bpmnElement="Flow_Gateway_record_quote__if_end__Gateway_rfq_sent__if">
    <di:waypoint x="1050" y="180" />
    <di:waypoint x="1145" y="180" />
    <di:waypoint x="1145" y="60" />
    <di:waypoint x="1170" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_send_rfq__Gateway_record_quote__if_di" bpmnElement="Flow_Task_send_rfq__Gateway_record_quote__if">
    <di:waypoint x="735" y="60" />
    <di:waypoint x="830" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_award_quote__End_rfq_awarded_di" bpmnElement="Flow_Task_award_quote__End_rfq_awarded">
    <di:waypoint x="1415" y="60" />
    <di:waypoint x="1517" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_close_rfq__End_rfq_closed_di" bpmnElement="Flow_Task_close_rfq__End_rfq_closed">
    <di:waypoint x="735" y="180" />
    <di:waypoint x="837" y="180" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>