dodil/erp-method
modules/hr/signoff/hr/history/hr_intake.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_hr_v2" name="People, starters & leavers processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_hr_v2">
<bpmn:documentation>People, starters & leavers: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_hr_intake" name="Intake" processRef="Process_hr_intake_v2" />
</bpmn:collaboration>
<bpmn:process id="Process_hr_intake_v2" name="Intake" isExecutable="false">
<bpmn:documentation>Lifecycle of the intake, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: issued, submitted, expired, revoked. Note: expired is derived from the door's expiry; 'complete' is derived from the required fields</bpmn:documentation>
<bpmn:laneSet id="LaneSet_intake">
<bpmn:lane id="Lane_intake_system" name="The system">
<bpmn:flowNodeRef>Start_intake</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_intake_none_to_issued</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_intake_starter" name="The starter, before they have a sign-in">
<bpmn:flowNodeRef>Task_intake_issued_to_submitted</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_intake_issued__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_intake_submitted</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_intake_hr_admin" name="Operations / HR">
<bpmn:flowNodeRef>Task_intake_issued_or_expired_to_revoked</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_intake_revoked</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_intake" name="Intake needed">
<bpmn:outgoing>Flow_Start_intake__Task_intake_none_to_issued</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:serviceTask id="Task_intake_none_to_issued" name="Issue the intake" dodil:step="intake_none_to_issued" implementation="##unspecified">
<bpmn:documentation>By: The system. From none to issued. When: the intake step falls due.</bpmn:documentation>
<bpmn:incoming>Flow_Start_intake__Task_intake_none_to_issued</bpmn:incoming>
<bpmn:outgoing>Flow_Task_intake_none_to_issued__Gateway_intake_issued__if</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:userTask id="Task_intake_issued_to_submitted" name="Submit the intake" dodil:step="intake_issued_to_submitted">
<bpmn:documentation>By: The starter, before they have a sign-in. From issued to submitted. When: every required field for the worker type and pack.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_intake_issued__if__Task_intake_issued_to_submitted</bpmn:incoming>
<bpmn:outgoing>Flow_Task_intake_issued_to_submitted__End_intake_submitted</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_intake_issued_or_expired_to_revoked" name="Revoke the intake" dodil:step="intake_issued_or_expired_to_revoked">
<bpmn:documentation>By: Operations / HR. From issued / expired to revoked. Effect: a reissue makes a new link.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_intake_issued__if__Task_intake_issued_or_expired_to_revoked</bpmn:incoming>
<bpmn:outgoing>Flow_Task_intake_issued_or_expired_to_revoked__End_intake_revoked</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_intake_issued__if" name="Intake issued: what next?">
<bpmn:incoming>Flow_Task_intake_none_to_issued__Gateway_intake_issued__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_intake_issued__if__Task_intake_issued_to_submitted</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_intake_issued__if__Task_intake_issued_or_expired_to_revoked</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_intake_submitted" name="Intake submitted">
<bpmn:incoming>Flow_Task_intake_issued_to_submitted__End_intake_submitted</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_intake_revoked" name="Intake revoked">
<bpmn:incoming>Flow_Task_intake_issued_or_expired_to_revoked__End_intake_revoked</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_intake__Task_intake_none_to_issued" sourceRef="Start_intake" targetRef="Task_intake_none_to_issued" />
<bpmn:sequenceFlow id="Flow_Gateway_intake_issued__if__Task_intake_issued_to_submitted" sourceRef="Gateway_intake_issued__if" targetRef="Task_intake_issued_to_submitted" />
<bpmn:sequenceFlow id="Flow_Gateway_intake_issued__if__Task_intake_issued_or_expired_to_revoked" sourceRef="Gateway_intake_issued__if" targetRef="Task_intake_issued_or_expired_to_revoked" />
<bpmn:sequenceFlow id="Flow_Task_intake_none_to_issued__Gateway_intake_issued__if" sourceRef="Task_intake_none_to_issued" targetRef="Gateway_intake_issued__if" />
<bpmn:sequenceFlow id="Flow_Task_intake_issued_to_submitted__End_intake_submitted" sourceRef="Task_intake_issued_to_submitted" targetRef="End_intake_submitted" />
<bpmn:sequenceFlow id="Flow_Task_intake_issued_or_expired_to_revoked__End_intake_revoked" sourceRef="Task_intake_issued_or_expired_to_revoked" targetRef="End_intake_revoked" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_hr_v2">
<bpmndi:BPMNPlane id="BPMNPlane_hr_v2" bpmnElement="Collaboration_hr_v2">
<bpmndi:BPMNShape id="Participant_hr_intake_di" bpmnElement="Participant_hr_intake" isHorizontal="true">
<dc:Bounds x="0" y="0" width="960" height="420" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_intake_system_di" bpmnElement="Lane_intake_system" isHorizontal="true">
<dc:Bounds x="30" y="0" width="930" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_intake_starter_di" bpmnElement="Lane_intake_starter" isHorizontal="true">
<dc:Bounds x="30" y="140" width="930" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_intake_hr_admin_di" bpmnElement="Lane_intake_hr_admin" isHorizontal="true">
<dc:Bounds x="30" y="280" width="930" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_intake_di" bpmnElement="Start_intake">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_intake_none_to_issued_di" bpmnElement="Task_intake_none_to_issued">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_intake_issued_to_submitted_di" bpmnElement="Task_intake_issued_to_submitted">
<dc:Bounds x="635" y="160" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_intake_issued_or_expired_to_revoked_di" bpmnElement="Task_intake_issued_or_expired_to_revoked">
<dc:Bounds x="635" y="300" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_intake_issued__if_di" bpmnElement="Gateway_intake_issued__if">
<dc:Bounds x="490" y="175" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_intake_submitted_di" bpmnElement="End_intake_submitted">
<dc:Bounds x="837" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_intake_revoked_di" bpmnElement="End_intake_revoked">
<dc:Bounds x="837" y="322" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_intake__Task_intake_none_to_issued_di" bpmnElement="Flow_Start_intake__Task_intake_none_to_issued">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_intake_issued__if__Task_intake_issued_to_submitted_di" bpmnElement="Flow_Gateway_intake_issued__if__Task_intake_issued_to_submitted">
<di:waypoint x="540" y="200" />
<di:waypoint x="635" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_intake_issued__if__Task_intake_issued_or_expired_to_revoked_di" bpmnElement="Flow_Gateway_intake_issued__if__Task_intake_issued_or_expired_to_revoked">
<di:waypoint x="540" y="200" />
<di:waypoint x="610" y="200" />
<di:waypoint x="610" y="340" />
<di:waypoint x="635" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_intake_none_to_issued__Gateway_intake_issued__if_di" bpmnElement="Flow_Task_intake_none_to_issued__Gateway_intake_issued__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="465" y="60" />
<di:waypoint x="465" y="200" />
<di:waypoint x="490" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_intake_issued_to_submitted__End_intake_submitted_di" bpmnElement="Flow_Task_intake_issued_to_submitted__End_intake_submitted">
<di:waypoint x="735" y="200" />
<di:waypoint x="837" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_intake_issued_or_expired_to_revoked__End_intake_revoked_di" bpmnElement="Flow_Task_intake_issued_or_expired_to_revoked__End_intake_revoked">
<di:waypoint x="735" y="340" />
<di:waypoint x="837" y="340" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>