dodil/erp-method
modules/gl/signoff/gl/history/gl_budget.v2.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_gl_v4" name="Accounting processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_gl_v4">
<bpmn:documentation>Accounting: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_gl_budget" name="Budget" processRef="Process_gl_budget_v4" />
</bpmn:collaboration>
<bpmn:process id="Process_gl_budget_v4" name="Budget" isExecutable="false">
<bpmn:documentation>Lifecycle of the budget, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, submitted, approved, superseded.</bpmn:documentation>
<bpmn:laneSet id="LaneSet_budget">
<bpmn:lane id="Lane_budget_controller" name="Controller (management accountant)">
<bpmn:flowNodeRef>Start_budget</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_draft_budget</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_submit_budget</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_revise_budget</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_budget_superseded</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_budget_accountant" name="Accountant / finance manager">
<bpmn:flowNodeRef>Task_approve_budget</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_return_budget</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_budget_submitted__if</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_budget" name="Budget needed">
<bpmn:outgoing>Flow_Start_budget__Task_draft_budget</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_draft_budget" name="Draft a budget" dodil:step="draft_budget">
<bpmn:documentation>By: Controller (management accountant). From none to draft. When: company, ledger and fiscal year exist. Effect: lines by account, profit centre, cost centre and period, typed or imported.</bpmn:documentation>
<bpmn:incoming>Flow_Start_budget__Task_draft_budget</bpmn:incoming>
<bpmn:outgoing>Flow_Task_draft_budget__Task_submit_budget</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_submit_budget" name="Submit the budget" dodil:step="submit_budget">
<bpmn:documentation>By: Controller (management accountant). From draft to submitted. When: every amount within NUMERIC(18,2). Effect: submitter recorded (email and sub).</bpmn:documentation>
<bpmn:incoming>Flow_Task_draft_budget__Task_submit_budget</bpmn:incoming>
<bpmn:incoming>Flow_Task_return_budget__Task_submit_budget</bpmn:incoming>
<bpmn:outgoing>Flow_Task_submit_budget__Gateway_budget_submitted__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_approve_budget" name="Approve the budget" dodil:step="approve_budget" dodil:approval="true">
<bpmn:documentation>By: Accountant / finance manager. From submitted to approved. When: the approver is not the submitter (email AND sub). Effect: frozen; plan/actual reads it. An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_budget_submitted__if__Task_approve_budget</bpmn:incoming>
<bpmn:outgoing>Flow_Task_approve_budget__Task_revise_budget</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_return_budget" name="Return the budget" dodil:step="return_budget">
<bpmn:documentation>By: Accountant / finance manager. From submitted to draft. Requires: reason.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_budget_submitted__if__Task_return_budget</bpmn:incoming>
<bpmn:outgoing>Flow_Task_return_budget__Task_submit_budget</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_revise_budget" name="Revise the budget" dodil:step="revise_budget">
<bpmn:documentation>By: Controller (management accountant). From approved to superseded. Requires: reason. Effect: version + 1 drafted from it.</bpmn:documentation>
<bpmn:incoming>Flow_Task_approve_budget__Task_revise_budget</bpmn:incoming>
<bpmn:outgoing>Flow_Task_revise_budget__End_budget_superseded</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_budget_submitted__if" name="Budget submitted: what next?">
<bpmn:incoming>Flow_Task_submit_budget__Gateway_budget_submitted__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_budget_submitted__if__Task_approve_budget</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_budget_submitted__if__Task_return_budget</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_budget_superseded" name="Budget superseded">
<bpmn:incoming>Flow_Task_revise_budget__End_budget_superseded</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_budget__Task_draft_budget" sourceRef="Start_budget" targetRef="Task_draft_budget" />
<bpmn:sequenceFlow id="Flow_Task_draft_budget__Task_submit_budget" sourceRef="Task_draft_budget" targetRef="Task_submit_budget" />
<bpmn:sequenceFlow id="Flow_Gateway_budget_submitted__if__Task_approve_budget" sourceRef="Gateway_budget_submitted__if" targetRef="Task_approve_budget" />
<bpmn:sequenceFlow id="Flow_Gateway_budget_submitted__if__Task_return_budget" sourceRef="Gateway_budget_submitted__if" targetRef="Task_return_budget" />
<bpmn:sequenceFlow id="Flow_Task_submit_budget__Gateway_budget_submitted__if" sourceRef="Task_submit_budget" targetRef="Gateway_budget_submitted__if" />
<bpmn:sequenceFlow id="Flow_Task_approve_budget__Task_revise_budget" sourceRef="Task_approve_budget" targetRef="Task_revise_budget" />
<bpmn:sequenceFlow id="Flow_Task_return_budget__Task_submit_budget" sourceRef="Task_return_budget" targetRef="Task_submit_budget" />
<bpmn:sequenceFlow id="Flow_Task_revise_budget__End_budget_superseded" sourceRef="Task_revise_budget" targetRef="End_budget_superseded" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_gl_v4">
<bpmndi:BPMNPlane id="BPMNPlane_gl_v4" bpmnElement="Collaboration_gl_v4">
<bpmndi:BPMNShape id="Participant_gl_budget_di" bpmnElement="Participant_gl_budget" isHorizontal="true">
<dc:Bounds x="0" y="0" width="1300" height="400" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_budget_controller_di" bpmnElement="Lane_budget_controller" isHorizontal="true">
<dc:Bounds x="30" y="0" width="1270" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_budget_accountant_di" bpmnElement="Lane_budget_accountant" isHorizontal="true">
<dc:Bounds x="30" y="140" width="1270" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_budget_di" bpmnElement="Start_budget">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_draft_budget_di" bpmnElement="Task_draft_budget">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_submit_budget_di" bpmnElement="Task_submit_budget">
<dc:Bounds x="465" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_approve_budget_di" bpmnElement="Task_approve_budget">
<dc:Bounds x="805" y="160" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_return_budget_di" bpmnElement="Task_return_budget">
<dc:Bounds x="805" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_revise_budget_di" bpmnElement="Task_revise_budget">
<dc:Bounds x="975" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_budget_submitted__if_di" bpmnElement="Gateway_budget_submitted__if">
<dc:Bounds x="660" y="175" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_budget_superseded_di" bpmnElement="End_budget_superseded">
<dc:Bounds x="1177" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_budget__Task_draft_budget_di" bpmnElement="Flow_Start_budget__Task_draft_budget">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_draft_budget__Task_submit_budget_di" bpmnElement="Flow_Task_draft_budget__Task_submit_budget">
<di:waypoint x="395" y="60" />
<di:waypoint x="465" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_budget_submitted__if__Task_approve_budget_di" bpmnElement="Flow_Gateway_budget_submitted__if__Task_approve_budget">
<di:waypoint x="710" y="200" />
<di:waypoint x="805" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_budget_submitted__if__Task_return_budget_di" bpmnElement="Flow_Gateway_budget_submitted__if__Task_return_budget">
<di:waypoint x="710" y="200" />
<di:waypoint x="780" y="200" />
<di:waypoint x="780" y="320" />
<di:waypoint x="805" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_submit_budget__Gateway_budget_submitted__if_di" bpmnElement="Flow_Task_submit_budget__Gateway_budget_submitted__if">
<di:waypoint x="565" y="60" />
<di:waypoint x="635" y="60" />
<di:waypoint x="635" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_approve_budget__Task_revise_budget_di" bpmnElement="Flow_Task_approve_budget__Task_revise_budget">
<di:waypoint x="905" y="200" />
<di:waypoint x="950" y="200" />
<di:waypoint x="950" y="60" />
<di:waypoint x="975" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_return_budget__Task_submit_budget_di" bpmnElement="Flow_Task_return_budget__Task_submit_budget">
<di:waypoint x="855" y="360" />
<di:waypoint x="855" y="375" />
<di:waypoint x="515" y="375" />
<di:waypoint x="515" y="100" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_revise_budget__End_budget_superseded_di" bpmnElement="Flow_Task_revise_budget__End_budget_superseded">
<di:waypoint x="1075" y="60" />
<di:waypoint x="1177" y="60" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>