dodil/erp-method
modules/gl/signoff/gl/history/gl_recurring_journal.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_gl_v3" 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_v3">
<bpmn:documentation>Accounting: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_gl_recurring_journal" name="Recurring journal" processRef="Process_gl_recurring_journal_v3" />
</bpmn:collaboration>
<bpmn:process id="Process_gl_recurring_journal_v3" name="Recurring journal" isExecutable="false">
<bpmn:documentation>Lifecycle of the recurring journal, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: proposed, approved, rejected, ended.</bpmn:documentation>
<bpmn:laneSet id="LaneSet_recurring_journal">
<bpmn:lane id="Lane_recurring_journal_accountant" name="Accountant / finance manager">
<bpmn:flowNodeRef>Start_recurring_journal</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_propose_recurring</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_approve_recurring</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_reject_recurring</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_post_recurring_period</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_revise_recurring</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_end_recurring</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_recurring_journal_proposed__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_post_recurring_period__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_post_recurring_period__if_end</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_recurring_journal_approved__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_recurring_journal_rejected</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_recurring_journal_ended</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_recurring_journal" name="Recurring journal needed">
<bpmn:outgoing>Flow_Start_recurring_journal__Task_propose_recurring</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_propose_recurring" name="Propose a recurring entry" dodil:step="propose_recurring">
<bpmn:documentation>By: Accountant / finance manager. From none to proposed. When: balanced; company, ledger and accounts valid; first and last period within open or future years. Effect: version 1, proposer recorded (email and sub).</bpmn:documentation>
<bpmn:incoming>Flow_Start_recurring_journal__Task_propose_recurring</bpmn:incoming>
<bpmn:outgoing>Flow_Task_propose_recurring__Gateway_recurring_journal_proposed__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_approve_recurring" name="Approve the recurring entry" dodil:step="approve_recurring" dodil:approval="true">
<bpmn:documentation>By: Accountant / finance manager. From proposed to approved. When: the approver is not the proposer (email AND sub) where manual_journal_approval asks for it. Effect: runs from its first period. An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_recurring_journal_proposed__if__Task_approve_recurring</bpmn:incoming>
<bpmn:outgoing>Flow_Task_approve_recurring__Gateway_post_recurring_period__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_reject_recurring" name="Reject the recurring entry" dodil:step="reject_recurring">
<bpmn:documentation>By: Accountant / finance manager. From proposed to rejected. Requires: reason.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_recurring_journal_proposed__if__Task_reject_recurring</bpmn:incoming>
<bpmn:outgoing>Flow_Task_reject_recurring__End_recurring_journal_rejected</bpmn:outgoing>
</bpmn:userTask>
<bpmn:task id="Task_post_recurring_period" name="Post the period's entry" dodil:step="post_recurring_period">
<bpmn:documentation>By: Accountant / finance manager or The system. From approved to approved. When: due in the period; the period open; not posted for it. Effect: a journal keyed derived_id('recurring', recurring_id, version, period_id), through the posting use case.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_post_recurring_period__if__Task_post_recurring_period</bpmn:incoming>
<bpmn:outgoing>Flow_Task_post_recurring_period__Gateway_post_recurring_period__if_end</bpmn:outgoing>
</bpmn:task>
<bpmn:userTask id="Task_revise_recurring" name="Revise the recurring entry" dodil:step="revise_recurring">
<bpmn:documentation>By: Accountant / finance manager. From approved to ended. Requires: reason. Effect: this version ends at the change; version + 1 is proposed and needs approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_recurring_journal_approved__if__Task_revise_recurring</bpmn:incoming>
<bpmn:outgoing>Flow_Task_revise_recurring__End_recurring_journal_ended</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_end_recurring" name="End the recurring entry" dodil:step="end_recurring">
<bpmn:documentation>By: Accountant / finance manager. From approved to ended. Requires: reason. Effect: no period after the end posts; posted journals untouched.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_recurring_journal_approved__if__Task_end_recurring</bpmn:incoming>
<bpmn:outgoing>Flow_Task_end_recurring__End_recurring_journal_ended</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_recurring_journal_proposed__if" name="Recurring journal proposed: what next?">
<bpmn:incoming>Flow_Task_propose_recurring__Gateway_recurring_journal_proposed__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_recurring_journal_proposed__if__Task_approve_recurring</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_recurring_journal_proposed__if__Task_reject_recurring</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_post_recurring_period__if" name="due in the period; the period open; not posted for it?">
<bpmn:incoming>Flow_Task_approve_recurring__Gateway_post_recurring_period__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_post_recurring_period__if__Task_post_recurring_period</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_post_recurring_period__if__Gateway_post_recurring_period__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_post_recurring_period__if_end">
<bpmn:incoming>Flow_Gateway_post_recurring_period__if__Gateway_post_recurring_period__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_post_recurring_period__Gateway_post_recurring_period__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_post_recurring_period__if_end__Gateway_recurring_journal_approved__if</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_recurring_journal_approved__if" name="Recurring journal approved: what next?">
<bpmn:incoming>Flow_Gateway_post_recurring_period__if_end__Gateway_recurring_journal_approved__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_recurring_journal_approved__if__Task_revise_recurring</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_recurring_journal_approved__if__Task_end_recurring</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_recurring_journal_rejected" name="Recurring journal rejected">
<bpmn:incoming>Flow_Task_reject_recurring__End_recurring_journal_rejected</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_recurring_journal_ended" name="Recurring journal ended">
<bpmn:incoming>Flow_Task_revise_recurring__End_recurring_journal_ended</bpmn:incoming>
<bpmn:incoming>Flow_Task_end_recurring__End_recurring_journal_ended</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_recurring_journal__Task_propose_recurring" sourceRef="Start_recurring_journal" targetRef="Task_propose_recurring" />
<bpmn:sequenceFlow id="Flow_Gateway_recurring_journal_proposed__if__Task_approve_recurring" sourceRef="Gateway_recurring_journal_proposed__if" targetRef="Task_approve_recurring" />
<bpmn:sequenceFlow id="Flow_Gateway_recurring_journal_proposed__if__Task_reject_recurring" sourceRef="Gateway_recurring_journal_proposed__if" targetRef="Task_reject_recurring" />
<bpmn:sequenceFlow id="Flow_Task_propose_recurring__Gateway_recurring_journal_proposed__if" sourceRef="Task_propose_recurring" targetRef="Gateway_recurring_journal_proposed__if" />
<bpmn:sequenceFlow id="Flow_Gateway_post_recurring_period__if__Task_post_recurring_period" name="due in the period; the period open; not posted for it" sourceRef="Gateway_post_recurring_period__if" targetRef="Task_post_recurring_period" />
<bpmn:sequenceFlow id="Flow_Gateway_post_recurring_period__if__Gateway_post_recurring_period__if_end" name="otherwise" sourceRef="Gateway_post_recurring_period__if" targetRef="Gateway_post_recurring_period__if_end" />
<bpmn:sequenceFlow id="Flow_Task_post_recurring_period__Gateway_post_recurring_period__if_end" sourceRef="Task_post_recurring_period" targetRef="Gateway_post_recurring_period__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_recurring_journal_approved__if__Task_revise_recurring" sourceRef="Gateway_recurring_journal_approved__if" targetRef="Task_revise_recurring" />
<bpmn:sequenceFlow id="Flow_Gateway_recurring_journal_approved__if__Task_end_recurring" sourceRef="Gateway_recurring_journal_approved__if" targetRef="Task_end_recurring" />
<bpmn:sequenceFlow id="Flow_Gateway_post_recurring_period__if_end__Gateway_recurring_journal_approved__if" sourceRef="Gateway_post_recurring_period__if_end" targetRef="Gateway_recurring_journal_approved__if" />
<bpmn:sequenceFlow id="Flow_Task_approve_recurring__Gateway_post_recurring_period__if" sourceRef="Task_approve_recurring" targetRef="Gateway_post_recurring_period__if" />
<bpmn:sequenceFlow id="Flow_Task_reject_recurring__End_recurring_journal_rejected" sourceRef="Task_reject_recurring" targetRef="End_recurring_journal_rejected" />
<bpmn:sequenceFlow id="Flow_Task_revise_recurring__End_recurring_journal_ended" sourceRef="Task_revise_recurring" targetRef="End_recurring_journal_ended" />
<bpmn:sequenceFlow id="Flow_Task_end_recurring__End_recurring_journal_ended" sourceRef="Task_end_recurring" targetRef="End_recurring_journal_ended" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_gl_v3">
<bpmndi:BPMNPlane id="BPMNPlane_gl_v3" bpmnElement="Collaboration_gl_v3">
<bpmndi:BPMNShape id="Participant_gl_recurring_journal_di" bpmnElement="Participant_gl_recurring_journal" isHorizontal="true">
<dc:Bounds x="0" y="0" width="1640" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_recurring_journal_accountant_di" bpmnElement="Lane_recurring_journal_accountant" isHorizontal="true">
<dc:Bounds x="30" y="0" width="1610" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_recurring_journal_di" bpmnElement="Start_recurring_journal">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_propose_recurring_di" bpmnElement="Task_propose_recurring">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_approve_recurring_di" bpmnElement="Task_approve_recurring">
<dc:Bounds x="635" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_reject_recurring_di" bpmnElement="Task_reject_recurring">
<dc:Bounds x="635" y="140" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_post_recurring_period_di" bpmnElement="Task_post_recurring_period">
<dc:Bounds x="975" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_revise_recurring_di" bpmnElement="Task_revise_recurring">
<dc:Bounds x="1315" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_end_recurring_di" bpmnElement="Task_end_recurring">
<dc:Bounds x="1315" y="140" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_recurring_journal_proposed__if_di" bpmnElement="Gateway_recurring_journal_proposed__if">
<dc:Bounds x="490" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_post_recurring_period__if_di" bpmnElement="Gateway_post_recurring_period__if">
<dc:Bounds x="830" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_post_recurring_period__if_end_di" bpmnElement="Gateway_post_recurring_period__if_end">
<dc:Bounds x="1000" y="155" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_recurring_journal_approved__if_di" bpmnElement="Gateway_recurring_journal_approved__if">
<dc:Bounds x="1170" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_recurring_journal_rejected_di" bpmnElement="End_recurring_journal_rejected">
<dc:Bounds x="837" y="162" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_recurring_journal_ended_di" bpmnElement="End_recurring_journal_ended">
<dc:Bounds x="1517" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_recurring_journal__Task_propose_recurring_di" bpmnElement="Flow_Start_recurring_journal__Task_propose_recurring">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_recurring_journal_proposed__if__Task_approve_recurring_di" bpmnElement="Flow_Gateway_recurring_journal_proposed__if__Task_approve_recurring">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_recurring_journal_proposed__if__Task_reject_recurring_di" bpmnElement="Flow_Gateway_recurring_journal_proposed__if__Task_reject_recurring">
<di:waypoint x="540" y="60" />
<di:waypoint x="610" y="60" />
<di:waypoint x="610" y="180" />
<di:waypoint x="635" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_propose_recurring__Gateway_recurring_journal_proposed__if_di" bpmnElement="Flow_Task_propose_recurring__Gateway_recurring_journal_proposed__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="490" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_post_recurring_period__if__Task_post_recurring_period_di" bpmnElement="Flow_Gateway_post_recurring_period__if__Task_post_recurring_period">
<di:waypoint x="880" y="60" />
<di:waypoint x="975" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_post_recurring_period__if__Gateway_post_recurring_period__if_end_di" bpmnElement="Flow_Gateway_post_recurring_period__if__Gateway_post_recurring_period__if_end">
<di:waypoint x="880" y="60" />
<di:waypoint x="975" y="60" />
<di:waypoint x="975" y="180" />
<di:waypoint x="1000" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_post_recurring_period__Gateway_post_recurring_period__if_end_di" bpmnElement="Flow_Task_post_recurring_period__Gateway_post_recurring_period__if_end">
<di:waypoint x="1025" y="100" />
<di:waypoint x="1025" y="220" />
<di:waypoint x="1025" y="220" />
<di:waypoint x="1025" y="205" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_recurring_journal_approved__if__Task_revise_recurring_di" bpmnElement="Flow_Gateway_recurring_journal_approved__if__Task_revise_recurring">
<di:waypoint x="1220" y="60" />
<di:waypoint x="1315" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_recurring_journal_approved__if__Task_end_recurring_di" bpmnElement="Flow_Gateway_recurring_journal_approved__if__Task_end_recurring">
<di:waypoint x="1220" y="60" />
<di:waypoint x="1290" y="60" />
<di:waypoint x="1290" y="180" />
<di:waypoint x="1315" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_post_recurring_period__if_end__Gateway_recurring_journal_approved__if_di" bpmnElement="Flow_Gateway_post_recurring_period__if_end__Gateway_recurring_journal_approved__if">
<di:waypoint x="1050" y="180" />
<di:waypoint x="1145" y="180" />
<di:waypoint x="1145" y="60" />
<di:waypoint x="1170" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_approve_recurring__Gateway_post_recurring_period__if_di" bpmnElement="Flow_Task_approve_recurring__Gateway_post_recurring_period__if">
<di:waypoint x="735" y="60" />
<di:waypoint x="830" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_reject_recurring__End_recurring_journal_rejected_di" bpmnElement="Flow_Task_reject_recurring__End_recurring_journal_rejected">
<di:waypoint x="735" y="180" />
<di:waypoint x="837" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_revise_recurring__End_recurring_journal_ended_di" bpmnElement="Flow_Task_revise_recurring__End_recurring_journal_ended">
<di:waypoint x="1415" y="60" />
<di:waypoint x="1517" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_end_recurring__End_recurring_journal_ended_di" bpmnElement="Flow_Task_end_recurring__End_recurring_journal_ended">
<di:waypoint x="1415" y="180" />
<di:waypoint x="1492" y="180" />
<di:waypoint x="1492" y="60" />
<di:waypoint x="1517" y="60" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>