dodil/erp-method
modules/hr/signoff/hr/hr_engagement.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 & 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 & leavers: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_hr_engagement" name="Engagement" processRef="Process_hr_engagement_v4" />
</bpmn:collaboration>
<bpmn:process id="Process_hr_engagement_v4" name="Engagement" isExecutable="false">
<bpmn:documentation>Lifecycle of the engagement, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: future, active, ending, ended. Derived states (never set by a transition): ended. Note: every state is DERIVED from start date, planned_end, actual_end and today; nothing stores a status</bpmn:documentation>
<bpmn:laneSet id="LaneSet_engagement">
<bpmn:lane id="Lane_engagement_manager" name="Hiring manager / team lead">
<bpmn:flowNodeRef>Start_engagement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_engagement_none_to_future</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_engagement_future_or_active_to_ending</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_engagement_ending</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_engagement" name="Engagement needed">
<bpmn:outgoing>Flow_Start_engagement__Task_engagement_none_to_future</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_engagement_none_to_future" name="Record the engagement" dodil:step="engagement_none_to_future">
<bpmn:documentation>By: Hiring manager / team lead or Operations / HR. From none to future. When: a Hired, Rehired or Converted event.</bpmn:documentation>
<bpmn:incoming>Flow_Start_engagement__Task_engagement_none_to_future</bpmn:incoming>
<bpmn:outgoing>Flow_Task_engagement_none_to_future__Task_engagement_future_or_active_to_ending</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_engagement_future_or_active_to_ending" name="Record the end of the engagement" dodil:step="engagement_future_or_active_to_ending">
<bpmn:documentation>By: Hiring manager / team lead or Operations / HR. From future / active to ending. When: a Left event (actual_end set).</bpmn:documentation>
<bpmn:incoming>Flow_Task_engagement_none_to_future__Task_engagement_future_or_active_to_ending</bpmn:incoming>
<bpmn:outgoing>Flow_Task_engagement_future_or_active_to_ending__End_engagement_ending</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="End_engagement_ending" name="Engagement ending">
<bpmn:incoming>Flow_Task_engagement_future_or_active_to_ending__End_engagement_ending</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_engagement__Task_engagement_none_to_future" sourceRef="Start_engagement" targetRef="Task_engagement_none_to_future" />
<bpmn:sequenceFlow id="Flow_Task_engagement_none_to_future__Task_engagement_future_or_active_to_ending" sourceRef="Task_engagement_none_to_future" targetRef="Task_engagement_future_or_active_to_ending" />
<bpmn:sequenceFlow id="Flow_Task_engagement_future_or_active_to_ending__End_engagement_ending" sourceRef="Task_engagement_future_or_active_to_ending" targetRef="End_engagement_ending" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_hr_v4">
<bpmndi:BPMNPlane id="BPMNPlane_hr_v4" bpmnElement="Collaboration_hr_v4">
<bpmndi:BPMNShape id="Participant_hr_engagement_di" bpmnElement="Participant_hr_engagement" isHorizontal="true">
<dc:Bounds x="0" y="0" width="790" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_engagement_manager_di" bpmnElement="Lane_engagement_manager" isHorizontal="true">
<dc:Bounds x="30" y="0" width="760" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_engagement_di" bpmnElement="Start_engagement">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_engagement_none_to_future_di" bpmnElement="Task_engagement_none_to_future">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_engagement_future_or_active_to_ending_di" bpmnElement="Task_engagement_future_or_active_to_ending">
<dc:Bounds x="465" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_engagement_ending_di" bpmnElement="End_engagement_ending">
<dc:Bounds x="667" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_engagement__Task_engagement_none_to_future_di" bpmnElement="Flow_Start_engagement__Task_engagement_none_to_future">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_engagement_none_to_future__Task_engagement_future_or_active_to_ending_di" bpmnElement="Flow_Task_engagement_none_to_future__Task_engagement_future_or_active_to_ending">
<di:waypoint x="395" y="60" />
<di:waypoint x="465" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_engagement_future_or_active_to_ending__End_engagement_ending_di" bpmnElement="Flow_Task_engagement_future_or_active_to_ending__End_engagement_ending">
<di:waypoint x="565" y="60" />
<di:waypoint x="667" y="60" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>