dodil/erp-method

modules/consolidation/signoff/consolidation/consolidation_structure_change.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_consolidation_v3" name="Group consolidation processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_consolidation_v3">
  <bpmn:documentation>Group consolidation: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_consolidation_structure_change" name="Structure change" processRef="Process_consolidation_structure_change_v3" />
 </bpmn:collaboration>
 <bpmn:process id="Process_consolidation_structure_change_v3" name="Structure change" isExecutable="false">
  <bpmn:documentation>Lifecycle of the structure change, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: proposed, effective, rejected.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_structure_change">
   <bpmn:lane id="Lane_structure_change_group_accountant" name="Group accountant">
    <bpmn:flowNodeRef>Start_structure_change</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_propose_structure_change</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_structure_change_group_controller" name="Group finance controller">
    <bpmn:flowNodeRef>Task_approve_structure_change</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_reject_structure_change</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_structure_change_proposed__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_structure_change_effective</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_structure_change_rejected</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_structure_change" name="Structure change needed">
   <bpmn:outgoing>Flow_Start_structure_change__Task_propose_structure_change</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_propose_structure_change" name="Propose a structure change" dodil:step="propose_structure_change">
   <bpmn:documentation>By: Group accountant. From none to proposed. When: kind acquisition | ownership_change | divestiture | method_change; v3, by the row's source: source gl (the default) = gl knows the company (GET /companies/{company_code} answers 200) and its functional currency is gl's; source upload (CON-12) = gl does NOT know it (404), company_code matches ^[A-Z0-9]{1,4}$ and is unique in the group, and the row names local_currency (ISO 4217) and a name; ownership within (0, 100]; the effective period not signed; every fair-value adjustment has a tax rate (tax_rate_known). Effect: goodwill, NCI, gain or equity effect computed from the collected data and shown (CON-02, CON-16, CON-17).</bpmn:documentation>
   <bpmn:incoming>Flow_Start_structure_change__Task_propose_structure_change</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_propose_structure_change__Gateway_structure_change_proposed__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_approve_structure_change" name="Approve the structure change" dodil:step="approve_structure_change" dodil:approval="true">
   <bpmn:documentation>By: Group finance controller. From proposed to effective. When: the approver is not the proposer (email AND sub); the effective period still not signed. Effect: the dated structure row written; historical amounts fixed; later periods' steps stale. An approval.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_structure_change_proposed__if__Task_approve_structure_change</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_approve_structure_change__End_structure_change_effective</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_reject_structure_change" name="Reject the structure change" dodil:step="reject_structure_change">
   <bpmn:documentation>By: Group finance controller. From proposed to rejected. Requires: reason.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_structure_change_proposed__if__Task_reject_structure_change</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_reject_structure_change__End_structure_change_rejected</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_structure_change_proposed__if" name="Structure change proposed: what next?">
   <bpmn:incoming>Flow_Task_propose_structure_change__Gateway_structure_change_proposed__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_structure_change_proposed__if__Task_approve_structure_change</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_structure_change_proposed__if__Task_reject_structure_change</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_structure_change_effective" name="Structure change effective">
   <bpmn:incoming>Flow_Task_approve_structure_change__End_structure_change_effective</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_structure_change_rejected" name="Structure change rejected">
   <bpmn:incoming>Flow_Task_reject_structure_change__End_structure_change_rejected</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_structure_change__Task_propose_structure_change" sourceRef="Start_structure_change" targetRef="Task_propose_structure_change" />
  <bpmn:sequenceFlow id="Flow_Gateway_structure_change_proposed__if__Task_approve_structure_change" sourceRef="Gateway_structure_change_proposed__if" targetRef="Task_approve_structure_change" />
  <bpmn:sequenceFlow id="Flow_Gateway_structure_change_proposed__if__Task_reject_structure_change" sourceRef="Gateway_structure_change_proposed__if" targetRef="Task_reject_structure_change" />
  <bpmn:sequenceFlow id="Flow_Task_propose_structure_change__Gateway_structure_change_proposed__if" sourceRef="Task_propose_structure_change" targetRef="Gateway_structure_change_proposed__if" />
  <bpmn:sequenceFlow id="Flow_Task_approve_structure_change__End_structure_change_effective" sourceRef="Task_approve_structure_change" targetRef="End_structure_change_effective" />
  <bpmn:sequenceFlow id="Flow_Task_reject_structure_change__End_structure_change_rejected" sourceRef="Task_reject_structure_change" targetRef="End_structure_change_rejected" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_consolidation_v3">
  <bpmndi:BPMNPlane id="BPMNPlane_consolidation_v3" bpmnElement="Collaboration_consolidation_v3">
   <bpmndi:BPMNShape id="Participant_consolidation_structure_change_di" bpmnElement="Participant_consolidation_structure_change" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="400" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_structure_change_group_accountant_di" bpmnElement="Lane_structure_change_group_accountant" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_structure_change_group_controller_di" bpmnElement="Lane_structure_change_group_controller" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="930" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_structure_change_di" bpmnElement="Start_structure_change">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_propose_structure_change_di" bpmnElement="Task_propose_structure_change">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_approve_structure_change_di" bpmnElement="Task_approve_structure_change">
    <dc:Bounds x="635" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_reject_structure_change_di" bpmnElement="Task_reject_structure_change">
    <dc:Bounds x="635" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_structure_change_proposed__if_di" bpmnElement="Gateway_structure_change_proposed__if">
    <dc:Bounds x="490" y="175" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_structure_change_effective_di" bpmnElement="End_structure_change_effective">
    <dc:Bounds x="837" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_structure_change_rejected_di" bpmnElement="End_structure_change_rejected">
    <dc:Bounds x="837" y="302" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_structure_change__Task_propose_structure_change_di" bpmnElement="Flow_Start_structure_change__Task_propose_structure_change">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_structure_change_proposed__if__Task_approve_structure_change_di" bpmnElement="Flow_Gateway_structure_change_proposed__if__Task_approve_structure_change">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="635" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_structure_change_proposed__if__Task_reject_structure_change_di" bpmnElement="Flow_Gateway_structure_change_proposed__if__Task_reject_structure_change">
    <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_propose_structure_change__Gateway_structure_change_proposed__if_di" bpmnElement="Flow_Task_propose_structure_change__Gateway_structure_change_proposed__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_structure_change__End_structure_change_effective_di" bpmnElement="Flow_Task_approve_structure_change__End_structure_change_effective">
    <di:waypoint x="735" y="200" />
    <di:waypoint x="837" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_reject_structure_change__End_structure_change_rejected_di" bpmnElement="Flow_Task_reject_structure_change__End_structure_change_rejected">
    <di:waypoint x="735" y="320" />
    <di:waypoint x="837" y="320" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>