dodil/erp-method

modules/ar/signoff/ar/history/ar_provision_run.v5.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_ar_v8" name="Invoicing processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_ar_v8">
  <bpmn:documentation>Invoicing: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_ar_provision_run" name="Provision run" processRef="Process_ar_provision_run_v8" />
 </bpmn:collaboration>
 <bpmn:process id="Process_ar_provision_run_v8" name="Provision run" isExecutable="false">
  <bpmn:documentation>Lifecycle of the provision run, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: proposed, approved, rejected.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_provision_run">
   <bpmn:lane id="Lane_provision_run_biller" name="Whoever sends the invoices (office, bookkeeper)">
    <bpmn:flowNodeRef>Start_provision_run</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_propose_doubtful_provision</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_provision_run_approver" name="Owner / finance manager">
    <bpmn:flowNodeRef>Task_approve_doubtful_provision</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_reject_doubtful_provision</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_provision_run_proposed__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_provision_run_approved</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_provision_run_rejected</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_provision_run" name="Provision run needed">
   <bpmn:outgoing>Flow_Start_provision_run__Task_propose_doubtful_provision</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_propose_doubtful_provision" name="Propose the month's doubtful-debt provision (v4)" dodil:step="propose_doubtful_provision">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From none to proposed. When: the month has ended; payments' aging as at its last day. Effect: a run keyed prov:&lt;company_code&gt;:&lt;period_id&gt;: per bucket and per disputed invoice, net of VAT (AR-45).</bpmn:documentation>
   <bpmn:incoming>Flow_Start_provision_run__Task_propose_doubtful_provision</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_propose_doubtful_provision__Gateway_provision_run_proposed__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_approve_doubtful_provision" name="Approve and post the provision" dodil:step="approve_doubtful_provision" dodil:approval="true">
   <bpmn:documentation>By: Owner / finance manager. From proposed to approved. When: the approver is not the proposer where second_approver; the ledger period is open. Effect: the movement since the last run posted, dated the period end. An approval.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_provision_run_proposed__if__Task_approve_doubtful_provision</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_approve_doubtful_provision__End_provision_run_approved</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_reject_doubtful_provision" name="Reject the provision" dodil:step="reject_doubtful_provision">
   <bpmn:documentation>By: Owner / finance manager. From proposed to rejected. Requires: reason.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_provision_run_proposed__if__Task_reject_doubtful_provision</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_reject_doubtful_provision__End_provision_run_rejected</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_provision_run_proposed__if" name="Provision run proposed: what next?">
   <bpmn:incoming>Flow_Task_propose_doubtful_provision__Gateway_provision_run_proposed__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_provision_run_proposed__if__Task_approve_doubtful_provision</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_provision_run_proposed__if__Task_reject_doubtful_provision</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_provision_run_approved" name="Provision run approved">
   <bpmn:incoming>Flow_Task_approve_doubtful_provision__End_provision_run_approved</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_provision_run_rejected" name="Provision run rejected">
   <bpmn:incoming>Flow_Task_reject_doubtful_provision__End_provision_run_rejected</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_provision_run__Task_propose_doubtful_provision" sourceRef="Start_provision_run" targetRef="Task_propose_doubtful_provision" />
  <bpmn:sequenceFlow id="Flow_Gateway_provision_run_proposed__if__Task_approve_doubtful_provision" sourceRef="Gateway_provision_run_proposed__if" targetRef="Task_approve_doubtful_provision" />
  <bpmn:sequenceFlow id="Flow_Gateway_provision_run_proposed__if__Task_reject_doubtful_provision" sourceRef="Gateway_provision_run_proposed__if" targetRef="Task_reject_doubtful_provision" />
  <bpmn:sequenceFlow id="Flow_Task_propose_doubtful_provision__Gateway_provision_run_proposed__if" sourceRef="Task_propose_doubtful_provision" targetRef="Gateway_provision_run_proposed__if" />
  <bpmn:sequenceFlow id="Flow_Task_approve_doubtful_provision__End_provision_run_approved" sourceRef="Task_approve_doubtful_provision" targetRef="End_provision_run_approved" />
  <bpmn:sequenceFlow id="Flow_Task_reject_doubtful_provision__End_provision_run_rejected" sourceRef="Task_reject_doubtful_provision" targetRef="End_provision_run_rejected" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_ar_v8">
  <bpmndi:BPMNPlane id="BPMNPlane_ar_v8" bpmnElement="Collaboration_ar_v8">
   <bpmndi:BPMNShape id="Participant_ar_provision_run_di" bpmnElement="Participant_ar_provision_run" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="400" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_provision_run_biller_di" bpmnElement="Lane_provision_run_biller" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_provision_run_approver_di" bpmnElement="Lane_provision_run_approver" isHorizontal="true">
    <dc:Bounds x="30" y="140" width="930" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_provision_run_di" bpmnElement="Start_provision_run">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_propose_doubtful_provision_di" bpmnElement="Task_propose_doubtful_provision">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_approve_doubtful_provision_di" bpmnElement="Task_approve_doubtful_provision">
    <dc:Bounds x="635" y="160" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_reject_doubtful_provision_di" bpmnElement="Task_reject_doubtful_provision">
    <dc:Bounds x="635" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_provision_run_proposed__if_di" bpmnElement="Gateway_provision_run_proposed__if">
    <dc:Bounds x="490" y="175" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_provision_run_approved_di" bpmnElement="End_provision_run_approved">
    <dc:Bounds x="837" y="182" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_provision_run_rejected_di" bpmnElement="End_provision_run_rejected">
    <dc:Bounds x="837" y="302" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_provision_run__Task_propose_doubtful_provision_di" bpmnElement="Flow_Start_provision_run__Task_propose_doubtful_provision">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_provision_run_proposed__if__Task_approve_doubtful_provision_di" bpmnElement="Flow_Gateway_provision_run_proposed__if__Task_approve_doubtful_provision">
    <di:waypoint x="540" y="200" />
    <di:waypoint x="635" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_provision_run_proposed__if__Task_reject_doubtful_provision_di" bpmnElement="Flow_Gateway_provision_run_proposed__if__Task_reject_doubtful_provision">
    <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_doubtful_provision__Gateway_provision_run_proposed__if_di" bpmnElement="Flow_Task_propose_doubtful_provision__Gateway_provision_run_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_doubtful_provision__End_provision_run_approved_di" bpmnElement="Flow_Task_approve_doubtful_provision__End_provision_run_approved">
    <di:waypoint x="735" y="200" />
    <di:waypoint x="837" y="200" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_reject_doubtful_provision__End_provision_run_rejected_di" bpmnElement="Flow_Task_reject_doubtful_provision__End_provision_run_rejected">
    <di:waypoint x="735" y="320" />
    <di:waypoint x="837" y="320" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>