dodil/erp-method

modules/manufacturing/signoff/manufacturing/history/manufacturing_bom_version.v1.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_manufacturing_v1" name="Production (bills of materials and production orders) processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_manufacturing_v1">
  <bpmn:documentation>Production (bills of materials and production orders): one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_manufacturing_bom_version" name="Bom version" processRef="Process_manufacturing_bom_version_v1" />
 </bpmn:collaboration>
 <bpmn:process id="Process_manufacturing_bom_version_v1" name="Bom version" isExecutable="false">
  <bpmn:documentation>Lifecycle of the bom version, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, released, obsolete.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_bom_version">
   <bpmn:lane id="Lane_bom_version_process_engineer" name="Process engineer / head roaster">
    <bpmn:flowNodeRef>Start_bom_version</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_write_bom</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_release_bom</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_obsolete_bom</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_bom_version_obsolete</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_bom_version" name="Bom version needed">
   <bpmn:outgoing>Flow_Start_bom_version__Task_write_bom</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_write_bom" name="Write a BOM version" dodil:step="write_bom">
   <bpmn:documentation>By: Process engineer / head roaster. From none to draft. When: quantities convert exactly; no cycle (graph walk); components stocked or phantom.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_bom_version__Task_write_bom</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_write_bom__Task_release_bom</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_release_bom" name="Release the version" dodil:step="release_bom">
   <bpmn:documentation>By: Process engineer / head roaster. From draft to released. When: valid_from after today; no overlap with another released version of the BOM. Effect: cost roll-ups and unreleased orders using the BOM marked stale (MFG-18).</bpmn:documentation>
   <bpmn:incoming>Flow_Task_write_bom__Task_release_bom</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_release_bom__Task_obsolete_bom</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_obsolete_bom" name="Make it obsolete" dodil:step="obsolete_bom">
   <bpmn:documentation>By: Process engineer / head roaster. From released to obsolete. When: no unreleased order or firmed plan names it after valid_to. Requires: valid_to.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_release_bom__Task_obsolete_bom</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_obsolete_bom__End_bom_version_obsolete</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:endEvent id="End_bom_version_obsolete" name="Bom version obsolete">
   <bpmn:incoming>Flow_Task_obsolete_bom__End_bom_version_obsolete</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_bom_version__Task_write_bom" sourceRef="Start_bom_version" targetRef="Task_write_bom" />
  <bpmn:sequenceFlow id="Flow_Task_write_bom__Task_release_bom" sourceRef="Task_write_bom" targetRef="Task_release_bom" />
  <bpmn:sequenceFlow id="Flow_Task_release_bom__Task_obsolete_bom" sourceRef="Task_release_bom" targetRef="Task_obsolete_bom" />
  <bpmn:sequenceFlow id="Flow_Task_obsolete_bom__End_bom_version_obsolete" sourceRef="Task_obsolete_bom" targetRef="End_bom_version_obsolete" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_manufacturing_v1">
  <bpmndi:BPMNPlane id="BPMNPlane_manufacturing_v1" bpmnElement="Collaboration_manufacturing_v1">
   <bpmndi:BPMNShape id="Participant_manufacturing_bom_version_di" bpmnElement="Participant_manufacturing_bom_version" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_bom_version_process_engineer_di" bpmnElement="Lane_bom_version_process_engineer" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_bom_version_di" bpmnElement="Start_bom_version">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_write_bom_di" bpmnElement="Task_write_bom">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_release_bom_di" bpmnElement="Task_release_bom">
    <dc:Bounds x="465" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_obsolete_bom_di" bpmnElement="Task_obsolete_bom">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_bom_version_obsolete_di" bpmnElement="End_bom_version_obsolete">
    <dc:Bounds x="837" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_bom_version__Task_write_bom_di" bpmnElement="Flow_Start_bom_version__Task_write_bom">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_write_bom__Task_release_bom_di" bpmnElement="Flow_Task_write_bom__Task_release_bom">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="465" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_release_bom__Task_obsolete_bom_di" bpmnElement="Flow_Task_release_bom__Task_obsolete_bom">
    <di:waypoint x="565" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_obsolete_bom__End_bom_version_obsolete_di" bpmnElement="Flow_Task_obsolete_bom__End_bom_version_obsolete">
    <di:waypoint x="735" y="60" />
    <di:waypoint x="837" y="60" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>