dodil/erp-method

modules/gl/signoff/gl/history/gl_allocation_run.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_run" name="Allocation run" processRef="Process_gl_allocation_run_v5" />
 </bpmn:collaboration>
 <bpmn:process id="Process_gl_allocation_run_v5" name="Allocation run" isExecutable="false">
  <bpmn:documentation>Lifecycle of the allocation run, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: simulated, posted, reversed.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_allocation_run">
   <bpmn:lane id="Lane_allocation_run_controller" name="Controller (management accountant)">
    <bpmn:flowNodeRef>Start_allocation_run</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_simulate_allocation</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_post_allocation</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_allocation_run_accountant" name="Accountant / finance manager">
    <bpmn:flowNodeRef>Task_reverse_allocation</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_allocation_run_reversed</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_allocation_run" name="Allocation run needed">
   <bpmn:outgoing>Flow_Start_allocation_run__Task_simulate_allocation</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_simulate_allocation" name="Simulate the cycle" dodil:step="simulate_allocation">
   <bpmn:documentation>By: Controller (management accountant). From none to simulated. When: the cycle approved; the period open; key figures recorded for every receiver the rules need. Effect: senders, receivers and amounts computed and shown with a digest of the sender balances; nothing posted.</bpmn:documentation>
   <bpmn:incoming>Flow_Start_allocation_run__Task_simulate_allocation</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_simulate_allocation__Task_post_allocation</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_post_allocation" name="Post the allocation" dodil:step="post_allocation">
   <bpmn:documentation>By: Controller (management accountant) or Accountant / finance manager. From simulated to posted. When: the simulation is current (sender digest unchanged); no posted run for the cycle, period and ledger; the period open. Effect: one journal per segment keyed derived_id('allocation', cycle_id, period_id, ledger_id, run_no, segment); key figures used are frozen.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_simulate_allocation__Task_post_allocation</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_post_allocation__Task_reverse_allocation</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_reverse_allocation" name="Reverse the allocation run" dodil:step="reverse_allocation">
   <bpmn:documentation>By: Accountant / finance manager. From posted to reversed. When: the period open. Requires: reason. Effect: mirror journals of every segment; the key figures unfrozen; run_no + 1 may post.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_post_allocation__Task_reverse_allocation</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_reverse_allocation__End_allocation_run_reversed</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:endEvent id="End_allocation_run_reversed" name="Allocation run reversed">
   <bpmn:incoming>Flow_Task_reverse_allocation__End_allocation_run_reversed</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_allocation_run__Task_simulate_allocation" sourceRef="Start_allocation_run" targetRef="Task_simulate_allocation" />
  <bpmn:sequenceFlow id="Flow_Task_simulate_allocation__Task_post_allocation" sourceRef="Task_simulate_allocation" targetRef="Task_post_allocation" />
  <bpmn:sequenceFlow id="Flow_Task_post_allocation__Task_reverse_allocation" sourceRef="Task_post_allocation" targetRef="Task_reverse_allocation" />
  <bpmn:sequenceFlow id="Flow_Task_reverse_allocation__End_allocation_run_reversed" sourceRef="Task_reverse_allocation" targetRef="End_allocation_run_reversed" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_gl_v5">
  <bpmndi:BPMNPlane id="BPMNPlane_gl_v5" bpmnElement="Collaboration_gl_v5">
   <bpmndi:BPMNShape id="Participant_gl_allocation_run_di" bpmnElement="Participant_gl_allocation_run" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="280" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_allocation_run_controller_di" bpmnElement="Lane_allocation_run_controller" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_allocation_run_accountant_di" bpmnElement="Lane_allocation_run_accountant" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_allocation_run_di" bpmnElement="Start_allocation_run">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_simulate_allocation_di" bpmnElement="Task_simulate_allocation">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_post_allocation_di" bpmnElement="Task_post_allocation">
    <dc:Bounds x="465" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_reverse_allocation_di" bpmnElement="Task_reverse_allocation">
    <dc:Bounds x="635" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_allocation_run_reversed_di" bpmnElement="End_allocation_run_reversed">
    <dc:Bounds x="837" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_allocation_run__Task_simulate_allocation_di" bpmnElement="Flow_Start_allocation_run__Task_simulate_allocation">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_simulate_allocation__Task_post_allocation_di" bpmnElement="Flow_Task_simulate_allocation__Task_post_allocation">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="465" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_post_allocation__Task_reverse_allocation_di" bpmnElement="Flow_Task_post_allocation__Task_reverse_allocation">
    <di:waypoint x="565" y="60" />
    <di:waypoint x="610" y="60" />
    <di:waypoint x="610" y="200" />
    <di:waypoint x="635" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_reverse_allocation__End_allocation_run_reversed_di" bpmnElement="Flow_Task_reverse_allocation__End_allocation_run_reversed">
    <di:waypoint x="735" y="200" />
    <di:waypoint x="837" y="200" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>