dodil/erp-method

modules/gl/signoff/gl/history/gl_allocation_cycle.v3.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_v5" 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_v5">
  <bpmn:documentation>Accounting: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_gl_allocation_cycle" name="Allocation cycle" processRef="Process_gl_allocation_cycle_v5" />
 </bpmn:collaboration>
 <bpmn:process id="Process_gl_allocation_cycle_v5" name="Allocation cycle" isExecutable="false">
  <bpmn:documentation>Lifecycle of the allocation cycle, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, approved, retired.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_allocation_cycle">
   <bpmn:lane id="Lane_allocation_cycle_controller" name="Controller (management accountant)">
    <bpmn:flowNodeRef>Start_allocation_cycle</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_define_allocation_cycle</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_allocation_cycle_accountant" name="Accountant / finance manager">
    <bpmn:flowNodeRef>Task_approve_allocation_cycle</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_retire_allocation_cycle</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_allocation_cycle_draft__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_allocation_cycle_retired</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_allocation_cycle" name="Allocation cycle needed">
   <bpmn:outgoing>Flow_Start_allocation_cycle__Task_define_allocation_cycle</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_define_allocation_cycle" name="Define an allocation cycle" dodil:step="define_allocation_cycle">
   <bpmn:documentation>By: Controller (management accountant). From none to draft. When: every segment has senders, receivers and a rule; receivers valid; percentages total 100 where the rule is percentages. Effect: version recorded with its author (email and sub).</bpmn:documentation>
   <bpmn:incoming>Flow_Start_allocation_cycle__Task_define_allocation_cycle</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_define_allocation_cycle__Gateway_allocation_cycle_draft__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_approve_allocation_cycle" name="Approve the cycle" dodil:step="approve_allocation_cycle" dodil:approval="true">
   <bpmn:documentation>By: Accountant / finance manager. From draft to approved. When: the approver is not the author (email AND sub) where allocation_cycle_approval is on. Effect: runnable from its valid_from period. An approval.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_allocation_cycle_draft__if__Task_approve_allocation_cycle</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_approve_allocation_cycle__Task_retire_allocation_cycle</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_retire_allocation_cycle" name="Retire the cycle" dodil:step="retire_allocation_cycle">
   <bpmn:documentation>By: Accountant / finance manager. From draft / approved to retired. Requires: reason. Effect: no new run; posted runs untouched; a change is a new cycle version.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_allocation_cycle_draft__if__Task_retire_allocation_cycle</bpmn:incoming>
   <bpmn:incoming>Flow_Task_approve_allocation_cycle__Task_retire_allocation_cycle</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_retire_allocation_cycle__End_allocation_cycle_retired</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_allocation_cycle_draft__if" name="Allocation cycle draft: what next?">
   <bpmn:incoming>Flow_Task_define_allocation_cycle__Gateway_allocation_cycle_draft__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_allocation_cycle_draft__if__Task_approve_allocation_cycle</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_allocation_cycle_draft__if__Task_retire_allocation_cycle</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_allocation_cycle_retired" name="Allocation cycle retired">
   <bpmn:incoming>Flow_Task_retire_allocation_cycle__End_allocation_cycle_retired</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_allocation_cycle__Task_define_allocation_cycle" sourceRef="Start_allocation_cycle" targetRef="Task_define_allocation_cycle" />
  <bpmn:sequenceFlow id="Flow_Gateway_allocation_cycle_draft__if__Task_approve_allocation_cycle" sourceRef="Gateway_allocation_cycle_draft__if" targetRef="Task_approve_allocation_cycle" />
  <bpmn:sequenceFlow id="Flow_Gateway_allocation_cycle_draft__if__Task_retire_allocation_cycle" sourceRef="Gateway_allocation_cycle_draft__if" targetRef="Task_retire_allocation_cycle" />
  <bpmn:sequenceFlow id="Flow_Task_define_allocation_cycle__Gateway_allocation_cycle_draft__if" sourceRef="Task_define_allocation_cycle" targetRef="Gateway_allocation_cycle_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_approve_allocation_cycle__Task_retire_allocation_cycle" sourceRef="Task_approve_allocation_cycle" targetRef="Task_retire_allocation_cycle" />
  <bpmn:sequenceFlow id="Flow_Task_retire_allocation_cycle__End_allocation_cycle_retired" sourceRef="Task_retire_allocation_cycle" targetRef="End_allocation_cycle_retired" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_gl_v5">
  <bpmndi:BPMNPlane id="BPMNPlane_gl_v5" bpmnElement="Collaboration_gl_v5">
   <bpmndi:BPMNShape id="Participant_gl_allocation_cycle_di" bpmnElement="Participant_gl_allocation_cycle" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="400" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_allocation_cycle_controller_di" bpmnElement="Lane_allocation_cycle_controller" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_allocation_cycle_accountant_di" bpmnElement="Lane_allocation_cycle_accountant" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="930" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_allocation_cycle_di" bpmnElement="Start_allocation_cycle">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_define_allocation_cycle_di" bpmnElement="Task_define_allocation_cycle">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_approve_allocation_cycle_di" bpmnElement="Task_approve_allocation_cycle">
    <dc:Bounds x="635" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_retire_allocation_cycle_di" bpmnElement="Task_retire_allocation_cycle">
    <dc:Bounds x="635" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_allocation_cycle_draft__if_di" bpmnElement="Gateway_allocation_cycle_draft__if">
    <dc:Bounds x="490" y="175" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_allocation_cycle_retired_di" bpmnElement="End_allocation_cycle_retired">
    <dc:Bounds x="837" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_allocation_cycle__Task_define_allocation_cycle_di" bpmnElement="Flow_Start_allocation_cycle__Task_define_allocation_cycle">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_allocation_cycle_draft__if__Task_approve_allocation_cycle_di" bpmnElement="Flow_Gateway_allocation_cycle_draft__if__Task_approve_allocation_cycle">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="635" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_allocation_cycle_draft__if__Task_retire_allocation_cycle_di" bpmnElement="Flow_Gateway_allocation_cycle_draft__if__Task_retire_allocation_cycle">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="610" y="200" />
    <di:waypoint x="610" y="320" />
    <di:waypoint x="635" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_define_allocation_cycle__Gateway_allocation_cycle_draft__if_di" bpmnElement="Flow_Task_define_allocation_cycle__Gateway_allocation_cycle_draft__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_approve_allocation_cycle__Task_retire_allocation_cycle_di" bpmnElement="Flow_Task_approve_allocation_cycle__Task_retire_allocation_cycle">
    <di:waypoint x="685" y="240" />
    <di:waypoint x="685" y="375" />
    <di:waypoint x="685" y="375" />
    <di:waypoint x="685" y="360" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_retire_allocation_cycle__End_allocation_cycle_retired_di" bpmnElement="Flow_Task_retire_allocation_cycle__End_allocation_cycle_retired">
    <di:waypoint x="735" y="320" />
    <di:waypoint x="812" y="320" />
    <di:waypoint x="812" y="200" />
    <di:waypoint x="837" y="200" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>