dodil/erp-method

modules/payroll/signoff/payroll/history/payroll_payroll_employee.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_payroll_v1" name="Payroll processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_payroll_v1">
  <bpmn:documentation>Payroll: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_payroll_payroll_employee" name="Payroll employee" processRef="Process_payroll_payroll_employee_v1" />
 </bpmn:collaboration>
 <bpmn:process id="Process_payroll_payroll_employee_v1" name="Payroll employee" isExecutable="false">
  <bpmn:documentation>Lifecycle of the payroll employee, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: pending_details, active, left.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_payroll_employee">
   <bpmn:lane id="Lane_payroll_employee_system" name="The system">
    <bpmn:flowNodeRef>Start_payroll_employee</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_take_starter</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_issue_p45</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_payroll_employee_left</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_payroll_employee_payroll_admin" name="Payroll administrator">
    <bpmn:flowNodeRef>Task_complete_payroll_details</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_payroll_employee" name="Payroll employee needed">
   <bpmn:outgoing>Flow_Start_payroll_employee__Task_take_starter</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_take_starter" name="Take a starter from hr" dodil:step="take_starter" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to pending_details. When: a starter on hr's extract with an employee worker type. Effect: payroll_id &lt;person_id&gt;-&lt;n&gt;; enrolment assessed in the first run.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_payroll_employee__Task_take_starter</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_take_starter__Task_complete_payroll_details</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_complete_payroll_details" name="Complete the tax details" dodil:step="complete_payroll_details">
   <bpmn:documentation>By: Payroll administrator. From pending_details to active. When: a P45 or a starter declaration (A, B or C), else the emergency code with a warning; the admin is not the person (email AND sub). Requires: tax_code.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_take_starter__Task_complete_payroll_details</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_complete_payroll_details__Task_issue_p45</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_issue_p45" name="Issue the P45" dodil:step="issue_p45" implementation="##unspecified">
   <bpmn:documentation>By: The system. From active to left. When: the leaver's final payslip approved. Effect: P45 document; the leaving date on the FPS.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_complete_payroll_details__Task_issue_p45</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_issue_p45__End_payroll_employee_left</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:endEvent id="End_payroll_employee_left" name="Payroll employee left">
   <bpmn:incoming>Flow_Task_issue_p45__End_payroll_employee_left</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_payroll_employee__Task_take_starter" sourceRef="Start_payroll_employee" targetRef="Task_take_starter" />
  <bpmn:sequenceFlow id="Flow_Task_take_starter__Task_complete_payroll_details" sourceRef="Task_take_starter" targetRef="Task_complete_payroll_details" />
  <bpmn:sequenceFlow id="Flow_Task_complete_payroll_details__Task_issue_p45" sourceRef="Task_complete_payroll_details" targetRef="Task_issue_p45" />
  <bpmn:sequenceFlow id="Flow_Task_issue_p45__End_payroll_employee_left" sourceRef="Task_issue_p45" targetRef="End_payroll_employee_left" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_payroll_v1">
  <bpmndi:BPMNPlane id="BPMNPlane_payroll_v1" bpmnElement="Collaboration_payroll_v1">
   <bpmndi:BPMNShape id="Participant_payroll_payroll_employee_di" bpmnElement="Participant_payroll_payroll_employee" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="280" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_payroll_employee_system_di" bpmnElement="Lane_payroll_employee_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_payroll_employee_payroll_admin_di" bpmnElement="Lane_payroll_employee_payroll_admin" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_payroll_employee_di" bpmnElement="Start_payroll_employee">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_take_starter_di" bpmnElement="Task_take_starter">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_complete_payroll_details_di" bpmnElement="Task_complete_payroll_details">
    <dc:Bounds x="465" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_issue_p45_di" bpmnElement="Task_issue_p45">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_payroll_employee_left_di" bpmnElement="End_payroll_employee_left">
    <dc:Bounds x="837" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_payroll_employee__Task_take_starter_di" bpmnElement="Flow_Start_payroll_employee__Task_take_starter">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_take_starter__Task_complete_payroll_details_di" bpmnElement="Flow_Task_take_starter__Task_complete_payroll_details">
    <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_complete_payroll_details__Task_issue_p45_di" bpmnElement="Flow_Task_complete_payroll_details__Task_issue_p45">
    <di:waypoint x="565" y="200" />
    <di:waypoint x="610" y="200" />
    <di:waypoint x="610" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_issue_p45__End_payroll_employee_left_di" bpmnElement="Flow_Task_issue_p45__End_payroll_employee_left">
    <di:waypoint x="735" y="60" />
    <di:waypoint x="837" y="60" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>