dodil/erp-method

modules/time-off/signoff/time-off/time-off_sickness.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_time-off_v2" name="Time off &amp; absence processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_time-off_v2">
  <bpmn:documentation>Time off &amp; absence: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_time-off_sickness" name="Sickness" processRef="Process_time-off_sickness_v2" />
 </bpmn:collaboration>
 <bpmn:process id="Process_time-off_sickness_v2" name="Sickness" isExecutable="false">
  <bpmn:documentation>Lifecycle of the sickness, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: open, closed, voided.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_sickness">
   <bpmn:lane id="Lane_sickness_employee" name="Anyone who works here">
    <bpmn:flowNodeRef>Start_sickness</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_record_sickness</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_extend_sickness</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_add_fit_note</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_add_late_fit_note</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_sickness_closed</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_sickness_manager" name="Line manager (derived from hr)">
    <bpmn:flowNodeRef>Task_confirm_return</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_sickness_open__if</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_sickness_hr_admin" name="HR / people operations">
    <bpmn:flowNodeRef>Task_void_sickness</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_sickness_voided</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_sickness" name="Sickness needed">
   <bpmn:outgoing>Flow_Start_sickness__Task_record_sickness</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_record_sickness" name="Record sickness" dodil:step="record_sickness">
   <bpmn:documentation>By: Anyone who works here or Line manager (derived from hr) or HR / people operations. From none to open. When: employed on the first day; no other absence on the same days (sickness during approved leave is recorded by HR, TOF-12). Effect: absence_id claimed; day claims of the days so far; pay treatment sick.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_sickness__Task_record_sickness</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_record_sickness__Task_extend_sickness</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_extend_sickness" name="Extend the expected return" dodil:step="extend_sickness">
   <bpmn:documentation>By: Anyone who works here or Line manager (derived from hr) or HR / people operations. From open to open. Effect: revision +1; payroll reads changed_since.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_record_sickness__Task_extend_sickness</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_extend_sickness__Task_add_fit_note</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_add_fit_note" name="Add a fit note" dodil:step="add_fit_note">
   <bpmn:documentation>By: Anyone who works here or HR / people operations. From open to open. Effect: evidence object; evidence_ok when it covers every day past fit_note_after_days.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_extend_sickness__Task_add_fit_note</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_add_fit_note__Gateway_sickness_open__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_add_late_fit_note" name="Add a fit note after the return" dodil:step="add_late_fit_note">
   <bpmn:documentation>By: Anyone who works here or HR / people operations. From closed to closed. Effect: evidence only: the days never change; payroll reads changed_since.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_confirm_return__Task_add_late_fit_note</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_add_late_fit_note__End_sickness_closed</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_confirm_return" name="Confirm the return to work" dodil:step="confirm_return">
   <bpmn:documentation>By: Line manager (derived from hr) or HR / people operations. From open to closed. When: the confirmer is not the sick person. Requires: last_day_off. Effect: the days fixed; claims after last_day_off released.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_sickness_open__if__Task_confirm_return</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_confirm_return__Task_add_late_fit_note</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_void_sickness" name="Void a mistaken record" dodil:step="void_sickness">
   <bpmn:documentation>By: HR / people operations. From open to voided. When: no day of it already in a calculated pay run, else HR closes it and corrects with an adjustment. Requires: reason.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_sickness_open__if__Task_void_sickness</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_void_sickness__End_sickness_voided</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_sickness_open__if" name="Sickness open: what next?">
   <bpmn:incoming>Flow_Task_add_fit_note__Gateway_sickness_open__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_sickness_open__if__Task_confirm_return</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_sickness_open__if__Task_void_sickness</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_sickness_closed" name="Sickness closed">
   <bpmn:incoming>Flow_Task_add_late_fit_note__End_sickness_closed</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_sickness_voided" name="Sickness voided">
   <bpmn:incoming>Flow_Task_void_sickness__End_sickness_voided</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_sickness__Task_record_sickness" sourceRef="Start_sickness" targetRef="Task_record_sickness" />
  <bpmn:sequenceFlow id="Flow_Task_extend_sickness__Task_add_fit_note" sourceRef="Task_extend_sickness" targetRef="Task_add_fit_note" />
  <bpmn:sequenceFlow id="Flow_Gateway_sickness_open__if__Task_confirm_return" sourceRef="Gateway_sickness_open__if" targetRef="Task_confirm_return" />
  <bpmn:sequenceFlow id="Flow_Gateway_sickness_open__if__Task_void_sickness" sourceRef="Gateway_sickness_open__if" targetRef="Task_void_sickness" />
  <bpmn:sequenceFlow id="Flow_Task_add_fit_note__Gateway_sickness_open__if" sourceRef="Task_add_fit_note" targetRef="Gateway_sickness_open__if" />
  <bpmn:sequenceFlow id="Flow_Task_record_sickness__Task_extend_sickness" sourceRef="Task_record_sickness" targetRef="Task_extend_sickness" />
  <bpmn:sequenceFlow id="Flow_Task_add_late_fit_note__End_sickness_closed" sourceRef="Task_add_late_fit_note" targetRef="End_sickness_closed" />
  <bpmn:sequenceFlow id="Flow_Task_confirm_return__Task_add_late_fit_note" sourceRef="Task_confirm_return" targetRef="Task_add_late_fit_note" />
  <bpmn:sequenceFlow id="Flow_Task_void_sickness__End_sickness_voided" sourceRef="Task_void_sickness" targetRef="End_sickness_voided" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_time-off_v2">
  <bpmndi:BPMNPlane id="BPMNPlane_time-off_v2" bpmnElement="Collaboration_time-off_v2">
   <bpmndi:BPMNShape id="Participant_time-off_sickness_di" bpmnElement="Participant_time-off_sickness" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="1470" height="420" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_sickness_employee_di" bpmnElement="Lane_sickness_employee" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="1440" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_sickness_manager_di" bpmnElement="Lane_sickness_manager" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="1440" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_sickness_hr_admin_di" bpmnElement="Lane_sickness_hr_admin" isHorizontal="true">
    <dc:Bounds x="30" y="280" width="1440" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_sickness_di" bpmnElement="Start_sickness">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_record_sickness_di" bpmnElement="Task_record_sickness">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_extend_sickness_di" bpmnElement="Task_extend_sickness">
    <dc:Bounds x="465" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_add_fit_note_di" bpmnElement="Task_add_fit_note">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_add_late_fit_note_di" bpmnElement="Task_add_late_fit_note">
    <dc:Bounds x="1145" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_confirm_return_di" bpmnElement="Task_confirm_return">
    <dc:Bounds x="975" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_void_sickness_di" bpmnElement="Task_void_sickness">
    <dc:Bounds x="975" y="300" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_sickness_open__if_di" bpmnElement="Gateway_sickness_open__if">
    <dc:Bounds x="830" y="175" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_sickness_closed_di" bpmnElement="End_sickness_closed">
    <dc:Bounds x="1347" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_sickness_voided_di" bpmnElement="End_sickness_voided">
    <dc:Bounds x="1177" y="322" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_sickness__Task_record_sickness_di" bpmnElement="Flow_Start_sickness__Task_record_sickness">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_extend_sickness__Task_add_fit_note_di" bpmnElement="Flow_Task_extend_sickness__Task_add_fit_note">
    <di:waypoint x="565" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_sickness_open__if__Task_confirm_return_di" bpmnElement="Flow_Gateway_sickness_open__if__Task_confirm_return">
    <di:waypoint x="880" y="200" />
    <di:waypoint x="975" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_sickness_open__if__Task_void_sickness_di" bpmnElement="Flow_Gateway_sickness_open__if__Task_void_sickness">
    <di:waypoint x="880" y="200" />
    <di:waypoint x="950" y="200" />
    <di:waypoint x="950" y="340" />
    <di:waypoint x="975" y="340" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_add_fit_note__Gateway_sickness_open__if_di" bpmnElement="Flow_Task_add_fit_note__Gateway_sickness_open__if">
    <di:waypoint x="735" y="60" />
    <di:waypoint x="805" y="60" />
    <di:waypoint x="805" y="200" />
    <di:waypoint x="830" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_record_sickness__Task_extend_sickness_di" bpmnElement="Flow_Task_record_sickness__Task_extend_sickness">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="465" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_add_late_fit_note__End_sickness_closed_di" bpmnElement="Flow_Task_add_late_fit_note__End_sickness_closed">
    <di:waypoint x="1245" y="60" />
    <di:waypoint x="1347" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_confirm_return__Task_add_late_fit_note_di" bpmnElement="Flow_Task_confirm_return__Task_add_late_fit_note">
    <di:waypoint x="1075" y="200" />
    <di:waypoint x="1120" y="200" />
    <di:waypoint x="1120" y="60" />
    <di:waypoint x="1145" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_void_sickness__End_sickness_voided_di" bpmnElement="Flow_Task_void_sickness__End_sickness_voided">
    <di:waypoint x="1075" y="340" />
    <di:waypoint x="1177" y="340" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>