dodil/erp-method
modules/gl/signoff/gl/history/gl_migration_run.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_migration_run" name="Migration run" processRef="Process_gl_migration_run_v4" />
</bpmn:collaboration>
<bpmn:process id="Process_gl_migration_run_v4" name="Migration run" isExecutable="false">
<bpmn:documentation>Lifecycle of the migration run, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: loaded, reconciled, signed, discarded.</bpmn:documentation>
<bpmn:laneSet id="LaneSet_migration_run">
<bpmn:lane id="Lane_migration_run_system" name="The system">
<bpmn:flowNodeRef>Start_migration_run</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_load_gl_from_odoo</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_reconcile_gl_migration</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_reload_gl_migration</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_migration_run_loaded__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_migration_run_reconciled__if</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_migration_run_accountant" name="Accountant / finance manager">
<bpmn:flowNodeRef>Task_explain_gl_difference</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_explain_gl_difference__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_explain_gl_difference__if_end</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_migration_run_owner" name="The owner (or whoever the owner names)">
<bpmn:flowNodeRef>Task_sign_gl_reconciliation</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_discard_gl_migration</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_migration_run_signed</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_migration_run_discarded</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_migration_run" name="Migration run needed">
<bpmn:outgoing>Flow_Start_migration_run__Task_load_gl_from_odoo</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:serviceTask id="Task_load_gl_from_odoo" name="Load the Odoo books" dodil:step="load_gl_from_odoo" implementation="##unspecified">
<bpmn:documentation>By: The system. From none to loaded. When: the doors decided; business-partner and tax mapped every partner and tax the lines use. Effect: companies, accounts, account map, fiscal years, periods (closed up to Odoo's lock date), rates, recurring entries, deferrals and posted journals written read-only, keyed on the Odoo record; a re-run changes nothing.</bpmn:documentation>
<bpmn:incoming>Flow_Start_migration_run__Task_load_gl_from_odoo</bpmn:incoming>
<bpmn:outgoing>Flow_Task_load_gl_from_odoo__Gateway_migration_run_loaded__if</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_reconcile_gl_migration" name="Reconcile against Odoo" dodil:step="reconcile_gl_migration" implementation="##unspecified">
<bpmn:documentation>By: The system. From loaded to reconciled. Effect: every migration.odoo.reconcile check computed on both sides, with the difference.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_migration_run_loaded__if__Task_reconcile_gl_migration</bpmn:incoming>
<bpmn:outgoing>Flow_Task_reconcile_gl_migration__Gateway_explain_gl_difference__if</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:userTask id="Task_explain_gl_difference" name="Explain each difference" dodil:step="explain_gl_difference">
<bpmn:documentation>By: Accountant / finance manager. From reconciled to reconciled. When: the check differs and may be explained. Requires: reason. Effect: the explanation recorded beside the check.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_explain_gl_difference__if__Task_explain_gl_difference</bpmn:incoming>
<bpmn:outgoing>Flow_Task_explain_gl_difference__Gateway_explain_gl_difference__if_end</bpmn:outgoing>
</bpmn:userTask>
<bpmn:serviceTask id="Task_reload_gl_migration" name="Load again after a fix" dodil:step="reload_gl_migration" implementation="##unspecified">
<bpmn:documentation>By: The system. From loaded / reconciled to loaded. When: not signed. Effect: the same keys; explanations on unchanged checks kept.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_migration_run_loaded__if__Task_reload_gl_migration</bpmn:incoming>
<bpmn:incoming>Flow_Gateway_migration_run_reconciled__if__Task_reload_gl_migration</bpmn:incoming>
<bpmn:outgoing>Flow_Task_reload_gl_migration__Gateway_migration_run_loaded__if</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:userTask id="Task_sign_gl_reconciliation" name="Sign the reconciliation" dodil:step="sign_gl_reconciliation" dodil:approval="true">
<bpmn:documentation>By: The owner (or whoever the owner names). From reconciled to signed. When: every check equal, or explained where allowed. Effect: who, when and checksums recorded; postings from the composed modules accepted from the day after cut-over. An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_migration_run_reconciled__if__Task_sign_gl_reconciliation</bpmn:incoming>
<bpmn:outgoing>Flow_Task_sign_gl_reconciliation__End_migration_run_signed</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_discard_gl_migration" name="Discard the run" dodil:step="discard_gl_migration">
<bpmn:documentation>By: The owner (or whoever the owner names). From loaded / reconciled to discarded. Requires: reason. Effect: the run's rows removed; nothing was posted on them.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_migration_run_loaded__if__Task_discard_gl_migration</bpmn:incoming>
<bpmn:incoming>Flow_Gateway_migration_run_reconciled__if__Task_discard_gl_migration</bpmn:incoming>
<bpmn:outgoing>Flow_Task_discard_gl_migration__End_migration_run_discarded</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_migration_run_loaded__if" name="Migration run loaded: what next?">
<bpmn:incoming>Flow_Task_load_gl_from_odoo__Gateway_migration_run_loaded__if</bpmn:incoming>
<bpmn:incoming>Flow_Task_reload_gl_migration__Gateway_migration_run_loaded__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_migration_run_loaded__if__Task_reconcile_gl_migration</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_migration_run_loaded__if__Task_reload_gl_migration</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_migration_run_loaded__if__Task_discard_gl_migration</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_explain_gl_difference__if" name="the check differs and may be explained?">
<bpmn:incoming>Flow_Task_reconcile_gl_migration__Gateway_explain_gl_difference__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_explain_gl_difference__if__Task_explain_gl_difference</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_explain_gl_difference__if__Gateway_explain_gl_difference__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_explain_gl_difference__if_end">
<bpmn:incoming>Flow_Gateway_explain_gl_difference__if__Gateway_explain_gl_difference__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_explain_gl_difference__Gateway_explain_gl_difference__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_explain_gl_difference__if_end__Gateway_migration_run_reconciled__if</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_migration_run_reconciled__if" name="Migration run reconciled: what next?">
<bpmn:incoming>Flow_Gateway_explain_gl_difference__if_end__Gateway_migration_run_reconciled__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_migration_run_reconciled__if__Task_reload_gl_migration</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_migration_run_reconciled__if__Task_sign_gl_reconciliation</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_migration_run_reconciled__if__Task_discard_gl_migration</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_migration_run_signed" name="Migration run signed">
<bpmn:incoming>Flow_Task_sign_gl_reconciliation__End_migration_run_signed</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_migration_run_discarded" name="Migration run discarded">
<bpmn:incoming>Flow_Task_discard_gl_migration__End_migration_run_discarded</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_migration_run__Task_load_gl_from_odoo" sourceRef="Start_migration_run" targetRef="Task_load_gl_from_odoo" />
<bpmn:sequenceFlow id="Flow_Gateway_migration_run_loaded__if__Task_reconcile_gl_migration" sourceRef="Gateway_migration_run_loaded__if" targetRef="Task_reconcile_gl_migration" />
<bpmn:sequenceFlow id="Flow_Gateway_migration_run_loaded__if__Task_reload_gl_migration" sourceRef="Gateway_migration_run_loaded__if" targetRef="Task_reload_gl_migration" />
<bpmn:sequenceFlow id="Flow_Gateway_migration_run_loaded__if__Task_discard_gl_migration" sourceRef="Gateway_migration_run_loaded__if" targetRef="Task_discard_gl_migration" />
<bpmn:sequenceFlow id="Flow_Task_load_gl_from_odoo__Gateway_migration_run_loaded__if" sourceRef="Task_load_gl_from_odoo" targetRef="Gateway_migration_run_loaded__if" />
<bpmn:sequenceFlow id="Flow_Gateway_explain_gl_difference__if__Task_explain_gl_difference" name="the check differs and may be explained" sourceRef="Gateway_explain_gl_difference__if" targetRef="Task_explain_gl_difference" />
<bpmn:sequenceFlow id="Flow_Gateway_explain_gl_difference__if__Gateway_explain_gl_difference__if_end" name="otherwise" sourceRef="Gateway_explain_gl_difference__if" targetRef="Gateway_explain_gl_difference__if_end" />
<bpmn:sequenceFlow id="Flow_Task_explain_gl_difference__Gateway_explain_gl_difference__if_end" sourceRef="Task_explain_gl_difference" targetRef="Gateway_explain_gl_difference__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_migration_run_reconciled__if__Task_reload_gl_migration" sourceRef="Gateway_migration_run_reconciled__if" targetRef="Task_reload_gl_migration" />
<bpmn:sequenceFlow id="Flow_Gateway_migration_run_reconciled__if__Task_sign_gl_reconciliation" sourceRef="Gateway_migration_run_reconciled__if" targetRef="Task_sign_gl_reconciliation" />
<bpmn:sequenceFlow id="Flow_Gateway_migration_run_reconciled__if__Task_discard_gl_migration" sourceRef="Gateway_migration_run_reconciled__if" targetRef="Task_discard_gl_migration" />
<bpmn:sequenceFlow id="Flow_Gateway_explain_gl_difference__if_end__Gateway_migration_run_reconciled__if" sourceRef="Gateway_explain_gl_difference__if_end" targetRef="Gateway_migration_run_reconciled__if" />
<bpmn:sequenceFlow id="Flow_Task_reconcile_gl_migration__Gateway_explain_gl_difference__if" sourceRef="Task_reconcile_gl_migration" targetRef="Gateway_explain_gl_difference__if" />
<bpmn:sequenceFlow id="Flow_Task_reload_gl_migration__Gateway_migration_run_loaded__if" sourceRef="Task_reload_gl_migration" targetRef="Gateway_migration_run_loaded__if" />
<bpmn:sequenceFlow id="Flow_Task_sign_gl_reconciliation__End_migration_run_signed" sourceRef="Task_sign_gl_reconciliation" targetRef="End_migration_run_signed" />
<bpmn:sequenceFlow id="Flow_Task_discard_gl_migration__End_migration_run_discarded" sourceRef="Task_discard_gl_migration" targetRef="End_migration_run_discarded" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_gl_v4">
<bpmndi:BPMNPlane id="BPMNPlane_gl_v4" bpmnElement="Collaboration_gl_v4">
<bpmndi:BPMNShape id="Participant_gl_migration_run_di" bpmnElement="Participant_gl_migration_run" isHorizontal="true">
<dc:Bounds x="0" y="0" width="1640" height="660" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_migration_run_system_di" bpmnElement="Lane_migration_run_system" isHorizontal="true">
<dc:Bounds x="30" y="0" width="1610" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_migration_run_accountant_di" bpmnElement="Lane_migration_run_accountant" isHorizontal="true">
<dc:Bounds x="30" y="260" width="1610" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_migration_run_owner_di" bpmnElement="Lane_migration_run_owner" isHorizontal="true">
<dc:Bounds x="30" y="520" width="1610" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_migration_run_di" bpmnElement="Start_migration_run">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_load_gl_from_odoo_di" bpmnElement="Task_load_gl_from_odoo">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_reconcile_gl_migration_di" bpmnElement="Task_reconcile_gl_migration">
<dc:Bounds x="635" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_explain_gl_difference_di" bpmnElement="Task_explain_gl_difference">
<dc:Bounds x="975" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_reload_gl_migration_di" bpmnElement="Task_reload_gl_migration">
<dc:Bounds x="635" y="140" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_sign_gl_reconciliation_di" bpmnElement="Task_sign_gl_reconciliation">
<dc:Bounds x="1315" y="540" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_discard_gl_migration_di" bpmnElement="Task_discard_gl_migration">
<dc:Bounds x="635" y="540" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_migration_run_loaded__if_di" bpmnElement="Gateway_migration_run_loaded__if">
<dc:Bounds x="490" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_explain_gl_difference__if_di" bpmnElement="Gateway_explain_gl_difference__if">
<dc:Bounds x="830" y="295" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_explain_gl_difference__if_end_di" bpmnElement="Gateway_explain_gl_difference__if_end">
<dc:Bounds x="1000" y="415" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_migration_run_reconciled__if_di" bpmnElement="Gateway_migration_run_reconciled__if">
<dc:Bounds x="1170" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_migration_run_signed_di" bpmnElement="End_migration_run_signed">
<dc:Bounds x="1517" y="562" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_migration_run_discarded_di" bpmnElement="End_migration_run_discarded">
<dc:Bounds x="837" y="562" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_migration_run__Task_load_gl_from_odoo_di" bpmnElement="Flow_Start_migration_run__Task_load_gl_from_odoo">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_migration_run_loaded__if__Task_reconcile_gl_migration_di" bpmnElement="Flow_Gateway_migration_run_loaded__if__Task_reconcile_gl_migration">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_migration_run_loaded__if__Task_reload_gl_migration_di" bpmnElement="Flow_Gateway_migration_run_loaded__if__Task_reload_gl_migration">
<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_Gateway_migration_run_loaded__if__Task_discard_gl_migration_di" bpmnElement="Flow_Gateway_migration_run_loaded__if__Task_discard_gl_migration">
<di:waypoint x="540" y="60" />
<di:waypoint x="610" y="60" />
<di:waypoint x="610" y="580" />
<di:waypoint x="635" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_load_gl_from_odoo__Gateway_migration_run_loaded__if_di" bpmnElement="Flow_Task_load_gl_from_odoo__Gateway_migration_run_loaded__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="490" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_explain_gl_difference__if__Task_explain_gl_difference_di" bpmnElement="Flow_Gateway_explain_gl_difference__if__Task_explain_gl_difference">
<di:waypoint x="880" y="320" />
<di:waypoint x="975" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_explain_gl_difference__if__Gateway_explain_gl_difference__if_end_di" bpmnElement="Flow_Gateway_explain_gl_difference__if__Gateway_explain_gl_difference__if_end">
<di:waypoint x="880" y="320" />
<di:waypoint x="975" y="320" />
<di:waypoint x="975" y="440" />
<di:waypoint x="1000" y="440" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_explain_gl_difference__Gateway_explain_gl_difference__if_end_di" bpmnElement="Flow_Task_explain_gl_difference__Gateway_explain_gl_difference__if_end">
<di:waypoint x="1025" y="360" />
<di:waypoint x="1025" y="480" />
<di:waypoint x="1025" y="480" />
<di:waypoint x="1025" y="465" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_migration_run_reconciled__if__Task_reload_gl_migration_di" bpmnElement="Flow_Gateway_migration_run_reconciled__if__Task_reload_gl_migration">
<di:waypoint x="1195" y="85" />
<di:waypoint x="1195" y="241" />
<di:waypoint x="685" y="241" />
<di:waypoint x="685" y="220" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_migration_run_reconciled__if__Task_sign_gl_reconciliation_di" bpmnElement="Flow_Gateway_migration_run_reconciled__if__Task_sign_gl_reconciliation">
<di:waypoint x="1220" y="60" />
<di:waypoint x="1290" y="60" />
<di:waypoint x="1290" y="580" />
<di:waypoint x="1315" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_migration_run_reconciled__if__Task_discard_gl_migration_di" bpmnElement="Flow_Gateway_migration_run_reconciled__if__Task_discard_gl_migration">
<di:waypoint x="1195" y="85" />
<di:waypoint x="1195" y="647" />
<di:waypoint x="685" y="647" />
<di:waypoint x="685" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_explain_gl_difference__if_end__Gateway_migration_run_reconciled__if_di" bpmnElement="Flow_Gateway_explain_gl_difference__if_end__Gateway_migration_run_reconciled__if">
<di:waypoint x="1050" y="440" />
<di:waypoint x="1145" y="440" />
<di:waypoint x="1145" y="60" />
<di:waypoint x="1170" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_reconcile_gl_migration__Gateway_explain_gl_difference__if_di" bpmnElement="Flow_Task_reconcile_gl_migration__Gateway_explain_gl_difference__if">
<di:waypoint x="735" y="60" />
<di:waypoint x="805" y="60" />
<di:waypoint x="805" y="320" />
<di:waypoint x="830" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_reload_gl_migration__Gateway_migration_run_loaded__if_di" bpmnElement="Flow_Task_reload_gl_migration__Gateway_migration_run_loaded__if">
<di:waypoint x="685" y="220" />
<di:waypoint x="685" y="253" />
<di:waypoint x="515" y="253" />
<di:waypoint x="515" y="85" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_sign_gl_reconciliation__End_migration_run_signed_di" bpmnElement="Flow_Task_sign_gl_reconciliation__End_migration_run_signed">
<di:waypoint x="1415" y="580" />
<di:waypoint x="1517" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_discard_gl_migration__End_migration_run_discarded_di" bpmnElement="Flow_Task_discard_gl_migration__End_migration_run_discarded">
<di:waypoint x="735" y="580" />
<di:waypoint x="837" y="580" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>