dodil/erp-method

modules/hr/signoff/hr/hr_run.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_hr_v4" name="People, starters &amp; leavers processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_hr_v4">
  <bpmn:documentation>People, starters &amp; leavers: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_hr_run" name="Run" processRef="Process_hr_run_v4" />
 </bpmn:collaboration>
 <bpmn:process id="Process_hr_run_v4" name="Run" isExecutable="false">
  <bpmn:documentation>Lifecycle of the run, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: open, done, cancelled. Derived states (never set by a transition): done. Note: done is DERIVED (every step done, skipped or cancelled). 'stuck' and 'waiting on &lt;group&gt;' are derived too</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_run">
   <bpmn:lane id="Lane_run_system" name="The system">
    <bpmn:flowNodeRef>Start_run</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_run_none_to_open</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_run_hr_admin" name="Operations / HR">
    <bpmn:flowNodeRef>Task_run_open_to_cancelled</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_run_cancelled</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_run" name="Run needed">
   <bpmn:outgoing>Flow_Start_run__Task_run_none_to_open</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_run_none_to_open" name="Start the run" dodil:step="run_none_to_open" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to open. When: a committed personnel event whose kind starts a run, and a playbook matching it. Effect: steps expanded from the frozen playbook version; due_at computed.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_run__Task_run_none_to_open</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_run_none_to_open__Task_run_open_to_cancelled</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_run_open_to_cancelled" name="Cancel the run" dodil:step="run_open_to_cancelled">
   <bpmn:documentation>By: Operations / HR. From open to cancelled. Requires: reason. Effect: not-done steps cancelled; a reversal task per done action.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_run_none_to_open__Task_run_open_to_cancelled</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_run_open_to_cancelled__End_run_cancelled</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:endEvent id="End_run_cancelled" name="Run cancelled">
   <bpmn:incoming>Flow_Task_run_open_to_cancelled__End_run_cancelled</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_run__Task_run_none_to_open" sourceRef="Start_run" targetRef="Task_run_none_to_open" />
  <bpmn:sequenceFlow id="Flow_Task_run_none_to_open__Task_run_open_to_cancelled" sourceRef="Task_run_none_to_open" targetRef="Task_run_open_to_cancelled" />
  <bpmn:sequenceFlow id="Flow_Task_run_open_to_cancelled__End_run_cancelled" sourceRef="Task_run_open_to_cancelled" targetRef="End_run_cancelled" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_hr_v4">
  <bpmndi:BPMNPlane id="BPMNPlane_hr_v4" bpmnElement="Collaboration_hr_v4">
   <bpmndi:BPMNShape id="Participant_hr_run_di" bpmnElement="Participant_hr_run" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="790" height="280" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_run_system_di" bpmnElement="Lane_run_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="760" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_run_hr_admin_di" bpmnElement="Lane_run_hr_admin" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="760" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_run_di" bpmnElement="Start_run">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_run_none_to_open_di" bpmnElement="Task_run_none_to_open">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_run_open_to_cancelled_di" bpmnElement="Task_run_open_to_cancelled">
    <dc:Bounds x="465" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_run_cancelled_di" bpmnElement="End_run_cancelled">
    <dc:Bounds x="667" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_run__Task_run_none_to_open_di" bpmnElement="Flow_Start_run__Task_run_none_to_open">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_run_none_to_open__Task_run_open_to_cancelled_di" bpmnElement="Flow_Task_run_none_to_open__Task_run_open_to_cancelled">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="440" y="60" />
    <di:waypoint x="440" y="200" />
    <di:waypoint x="465" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_run_open_to_cancelled__End_run_cancelled_di" bpmnElement="Flow_Task_run_open_to_cancelled__End_run_cancelled">
    <di:waypoint x="565" y="200" />
    <di:waypoint x="667" y="200" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>