dodil/erp-method

modules/projects/processes/projects.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_projects_v3" name="Projects &amp; service delivery processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_projects_v3">
  <bpmn:documentation>Projects &amp; service delivery: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_projects_project" name="Project" processRef="Process_projects_project_v3" />
 </bpmn:collaboration>
 <bpmn:process id="Process_projects_project_v3" name="Project" isExecutable="false">
  <bpmn:documentation>Lifecycle of the project, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: planned, active, closed, cancelled. Note: Reconciliation is a stored RESULT on the closed project, not a state. A project with no deliverable lines is never opened: a sale of only monthly or usage lines plans nothing.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_project">
   <bpmn:lane id="Lane_project_system" name="The system">
    <bpmn:flowNodeRef>Start_project</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_plan_project</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_reconcile</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Timer_reconcile</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_ai_flag_shortfall</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_ai_flag_shortfall__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_ai_flag_shortfall__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_project_active__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_project_closed</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_project_project_lead" name="Project lead / account manager">
    <bpmn:flowNodeRef>Task_activate</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_cancel_project</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_project_planned__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_project_cancelled</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_project" name="Project needed">
   <bpmn:outgoing>Flow_Start_project__Task_plan_project</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_plan_project" name="Open the project for the sale" dodil:step="plan_project" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to planned. When: a contract became active or an order was confirmed (PJ-20, PJ-21). Effect: keyed pj:&lt;source_kind&gt;:&lt;source_id&gt;.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_project__Task_plan_project</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_plan_project__Gateway_project_planned__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_activate" name="Start the project" dodil:step="activate">
   <bpmn:documentation>By: Project lead / account manager. From planned to active. When: the first item started.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_project_planned__if__Task_activate</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_activate__Gateway_ai_flag_shortfall__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_reconcile" name="Reconcile sold vs delivered" dodil:step="reconcile" implementation="##unspecified">
   <bpmn:documentation>By: The system. From active to closed. Effect: stores sold, delivered, short, over and descoped per sold line. Waits: the project window ends (ends_on).</bpmn:documentation>
   <bpmn:incoming>Flow_Timer_reconcile__Task_reconcile</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_reconcile__End_project_closed</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:intermediateCatchEvent id="Timer_reconcile" name="the project window ends (ends_on)">
   <bpmn:incoming>Flow_Gateway_project_active__if__Timer_reconcile</bpmn:incoming>
   <bpmn:outgoing>Flow_Timer_reconcile__Task_reconcile</bpmn:outgoing>
   <bpmn:timerEventDefinition id="Timer_reconcile__definition">
    <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">the project window ends (ends_on)</bpmn:timeDuration>
   </bpmn:timerEventDefinition>
  </bpmn:intermediateCatchEvent>
  <bpmn:serviceTask id="Task_ai_flag_shortfall" name="AI flags a likely shortfall (suggest)" dodil:step="ai_flag_shortfall" implementation="##unspecified">
   <bpmn:documentation>By: The system. From active to active. When: the window is closing and the step is on. Effect: a warning with the items at risk, while they can still be delivered.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_ai_flag_shortfall__if__Task_ai_flag_shortfall</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_ai_flag_shortfall__Gateway_ai_flag_shortfall__if_end</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_cancel_project" name="Cancel the project" dodil:step="cancel_project">
   <bpmn:documentation>By: Project lead / account manager. From planned / active to cancelled. Requires: reason.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_project_planned__if__Task_cancel_project</bpmn:incoming>
   <bpmn:incoming>Flow_Gateway_project_active__if__Task_cancel_project</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_cancel_project__End_project_cancelled</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_project_planned__if" name="Project planned: what next?">
   <bpmn:incoming>Flow_Task_plan_project__Gateway_project_planned__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_project_planned__if__Task_activate</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_project_planned__if__Task_cancel_project</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_ai_flag_shortfall__if" name="the window is closing and the step is on?">
   <bpmn:incoming>Flow_Task_activate__Gateway_ai_flag_shortfall__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_ai_flag_shortfall__if__Task_ai_flag_shortfall</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_ai_flag_shortfall__if__Gateway_ai_flag_shortfall__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_ai_flag_shortfall__if_end">
   <bpmn:incoming>Flow_Gateway_ai_flag_shortfall__if__Gateway_ai_flag_shortfall__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_ai_flag_shortfall__Gateway_ai_flag_shortfall__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_ai_flag_shortfall__if_end__Gateway_project_active__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_project_active__if" name="Project active: what next?">
   <bpmn:incoming>Flow_Gateway_ai_flag_shortfall__if_end__Gateway_project_active__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_project_active__if__Timer_reconcile</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_project_active__if__Task_cancel_project</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_project_closed" name="Project closed">
   <bpmn:incoming>Flow_Task_reconcile__End_project_closed</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_project_cancelled" name="Project cancelled">
   <bpmn:incoming>Flow_Task_cancel_project__End_project_cancelled</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Timer_reconcile__Task_reconcile" sourceRef="Timer_reconcile" targetRef="Task_reconcile" />
  <bpmn:sequenceFlow id="Flow_Start_project__Task_plan_project" sourceRef="Start_project" targetRef="Task_plan_project" />
  <bpmn:sequenceFlow id="Flow_Gateway_project_planned__if__Task_activate" sourceRef="Gateway_project_planned__if" targetRef="Task_activate" />
  <bpmn:sequenceFlow id="Flow_Gateway_project_planned__if__Task_cancel_project" sourceRef="Gateway_project_planned__if" targetRef="Task_cancel_project" />
  <bpmn:sequenceFlow id="Flow_Task_plan_project__Gateway_project_planned__if" sourceRef="Task_plan_project" targetRef="Gateway_project_planned__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_ai_flag_shortfall__if__Task_ai_flag_shortfall" name="the window is closing and the step is on" sourceRef="Gateway_ai_flag_shortfall__if" targetRef="Task_ai_flag_shortfall" />
  <bpmn:sequenceFlow id="Flow_Gateway_ai_flag_shortfall__if__Gateway_ai_flag_shortfall__if_end" name="otherwise" sourceRef="Gateway_ai_flag_shortfall__if" targetRef="Gateway_ai_flag_shortfall__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_ai_flag_shortfall__Gateway_ai_flag_shortfall__if_end" sourceRef="Task_ai_flag_shortfall" targetRef="Gateway_ai_flag_shortfall__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_project_active__if__Timer_reconcile" sourceRef="Gateway_project_active__if" targetRef="Timer_reconcile" />
  <bpmn:sequenceFlow id="Flow_Gateway_project_active__if__Task_cancel_project" sourceRef="Gateway_project_active__if" targetRef="Task_cancel_project" />
  <bpmn:sequenceFlow id="Flow_Gateway_ai_flag_shortfall__if_end__Gateway_project_active__if" sourceRef="Gateway_ai_flag_shortfall__if_end" targetRef="Gateway_project_active__if" />
  <bpmn:sequenceFlow id="Flow_Task_activate__Gateway_ai_flag_shortfall__if" sourceRef="Task_activate" targetRef="Gateway_ai_flag_shortfall__if" />
  <bpmn:sequenceFlow id="Flow_Task_reconcile__End_project_closed" sourceRef="Task_reconcile" targetRef="End_project_closed" />
  <bpmn:sequenceFlow id="Flow_Task_cancel_project__End_project_cancelled" sourceRef="Task_cancel_project" targetRef="End_project_cancelled" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_projects_v3">
  <bpmndi:BPMNPlane id="BPMNPlane_projects_v3" bpmnElement="Collaboration_projects_v3">
   <bpmndi:BPMNShape id="Participant_projects_project_di" bpmnElement="Participant_projects_project" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="1810" height="520" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_project_system_di" bpmnElement="Lane_project_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="1780" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_project_project_lead_di" bpmnElement="Lane_project_project_lead" isHorizontal="true">
    <dc:Bounds x="30" y="260" width="1780" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_project_di" bpmnElement="Start_project">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_plan_project_di" bpmnElement="Task_plan_project">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_activate_di" bpmnElement="Task_activate">
    <dc:Bounds x="635" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_reconcile_di" bpmnElement="Task_reconcile">
    <dc:Bounds x="1485" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Timer_reconcile_di" bpmnElement="Timer_reconcile">
    <dc:Bounds x="1347" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_ai_flag_shortfall_di" bpmnElement="Task_ai_flag_shortfall">
    <dc:Bounds x="975" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_cancel_project_di" bpmnElement="Task_cancel_project">
    <dc:Bounds x="635" y="400" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_project_planned__if_di" bpmnElement="Gateway_project_planned__if">
    <dc:Bounds x="490" y="295" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_ai_flag_shortfall__if_di" bpmnElement="Gateway_ai_flag_shortfall__if">
    <dc:Bounds x="830" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_ai_flag_shortfall__if_end_di" bpmnElement="Gateway_ai_flag_shortfall__if_end">
    <dc:Bounds x="1000" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_project_active__if_di" bpmnElement="Gateway_project_active__if">
    <dc:Bounds x="1170" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_project_closed_di" bpmnElement="End_project_closed">
    <dc:Bounds x="1687" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_project_cancelled_di" bpmnElement="End_project_cancelled">
    <dc:Bounds x="837" y="302" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Timer_reconcile__Task_reconcile_di" bpmnElement="Flow_Timer_reconcile__Task_reconcile">
    <di:waypoint x="1383" y="60" />
    <di:waypoint x="1485" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Start_project__Task_plan_project_di" bpmnElement="Flow_Start_project__Task_plan_project">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_project_planned__if__Task_activate_di" bpmnElement="Flow_Gateway_project_planned__if__Task_activate">
    <di:waypoint x="540" y="320" />
    <di:waypoint x="635" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_project_planned__if__Task_cancel_project_di" bpmnElement="Flow_Gateway_project_planned__if__Task_cancel_project">
    <di:waypoint x="540" y="320" />
    <di:waypoint x="610" y="320" />
    <di:waypoint x="610" y="440" />
    <di:waypoint x="635" y="440" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_plan_project__Gateway_project_planned__if_di" bpmnElement="Flow_Task_plan_project__Gateway_project_planned__if">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="465" y="60" />
    <di:waypoint x="465" y="320" />
    <di:waypoint x="490" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_ai_flag_shortfall__if__Task_ai_flag_shortfall_di" bpmnElement="Flow_Gateway_ai_flag_shortfall__if__Task_ai_flag_shortfall">
    <di:waypoint x="880" y="60" />
    <di:waypoint x="975" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_ai_flag_shortfall__if__Gateway_ai_flag_shortfall__if_end_di" bpmnElement="Flow_Gateway_ai_flag_shortfall__if__Gateway_ai_flag_shortfall__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_ai_flag_shortfall__Gateway_ai_flag_shortfall__if_end_di" bpmnElement="Flow_Task_ai_flag_shortfall__Gateway_ai_flag_shortfall__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_project_active__if__Timer_reconcile_di" bpmnElement="Flow_Gateway_project_active__if__Timer_reconcile">
    <di:waypoint x="1220" y="60" />
    <di:waypoint x="1347" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_project_active__if__Task_cancel_project_di" bpmnElement="Flow_Gateway_project_active__if__Task_cancel_project">
    <di:waypoint x="1195" y="85" />
    <di:waypoint x="1195" y="501" />
    <di:waypoint x="685" y="501" />
    <di:waypoint x="685" y="480" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_ai_flag_shortfall__if_end__Gateway_project_active__if_di" bpmnElement="Flow_Gateway_ai_flag_shortfall__if_end__Gateway_project_active__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_activate__Gateway_ai_flag_shortfall__if_di" bpmnElement="Flow_Task_activate__Gateway_ai_flag_shortfall__if">
    <di:waypoint x="735" y="320" />
    <di:waypoint x="805" y="320" />
    <di:waypoint x="805" y="60" />
    <di:waypoint x="830" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_reconcile__End_project_closed_di" bpmnElement="Flow_Task_reconcile__End_project_closed">
    <di:waypoint x="1585" y="60" />
    <di:waypoint x="1687" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_cancel_project__End_project_cancelled_di" bpmnElement="Flow_Task_cancel_project__End_project_cancelled">
    <di:waypoint x="735" y="440" />
    <di:waypoint x="812" y="440" />
    <di:waypoint x="812" y="320" />
    <di:waypoint x="837" y="320" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>