dodil/erp-method
modules/ar/signoff/ar/history/ar_writeoff.v4.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_v5" 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_v5">
<bpmn:documentation>Invoicing: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_ar_writeoff" name="Writeoff" processRef="Process_ar_writeoff_v5" />
</bpmn:collaboration>
<bpmn:process id="Process_ar_writeoff_v5" name="Writeoff" isExecutable="false">
<bpmn:documentation>Lifecycle of the writeoff, 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_writeoff">
<bpmn:lane id="Lane_writeoff_biller" name="Whoever sends the invoices (office, bookkeeper)">
<bpmn:flowNodeRef>Start_writeoff</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_propose_writeoff</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_writeoff_approver" name="Owner / finance manager">
<bpmn:flowNodeRef>Task_approve_writeoff</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_reject_writeoff</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_writeoff_proposed__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_writeoff_approved</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_writeoff_rejected</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_writeoff" name="Writeoff needed">
<bpmn:outgoing>Flow_Start_writeoff__Task_propose_writeoff</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_propose_writeoff" name="Propose a write-off" dodil:step="propose_writeoff">
<bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From none to proposed. Requires: reason.</bpmn:documentation>
<bpmn:incoming>Flow_Start_writeoff__Task_propose_writeoff</bpmn:incoming>
<bpmn:outgoing>Flow_Task_propose_writeoff__Gateway_writeoff_proposed__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_approve_writeoff" name="Approve the write-off" dodil:step="approve_writeoff" dodil:approval="true">
<bpmn:documentation>By: Owner / finance manager. From proposed to approved. When: below the threshold, or the approver accepts it above. Effect: allocated in payments; bad debt posted in post mode. An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_writeoff_proposed__if__Task_approve_writeoff</bpmn:incoming>
<bpmn:outgoing>Flow_Task_approve_writeoff__End_writeoff_approved</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_reject_writeoff" name="Reject the write-off" dodil:step="reject_writeoff">
<bpmn:documentation>By: Owner / finance manager. From proposed to rejected. Requires: reason.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_writeoff_proposed__if__Task_reject_writeoff</bpmn:incoming>
<bpmn:outgoing>Flow_Task_reject_writeoff__End_writeoff_rejected</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_writeoff_proposed__if" name="Writeoff proposed: what next?">
<bpmn:incoming>Flow_Task_propose_writeoff__Gateway_writeoff_proposed__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_writeoff_proposed__if__Task_approve_writeoff</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_writeoff_proposed__if__Task_reject_writeoff</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_writeoff_approved" name="Writeoff approved">
<bpmn:incoming>Flow_Task_approve_writeoff__End_writeoff_approved</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_writeoff_rejected" name="Writeoff rejected">
<bpmn:incoming>Flow_Task_reject_writeoff__End_writeoff_rejected</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_writeoff__Task_propose_writeoff" sourceRef="Start_writeoff" targetRef="Task_propose_writeoff" />
<bpmn:sequenceFlow id="Flow_Gateway_writeoff_proposed__if__Task_approve_writeoff" sourceRef="Gateway_writeoff_proposed__if" targetRef="Task_approve_writeoff" />
<bpmn:sequenceFlow id="Flow_Gateway_writeoff_proposed__if__Task_reject_writeoff" sourceRef="Gateway_writeoff_proposed__if" targetRef="Task_reject_writeoff" />
<bpmn:sequenceFlow id="Flow_Task_propose_writeoff__Gateway_writeoff_proposed__if" sourceRef="Task_propose_writeoff" targetRef="Gateway_writeoff_proposed__if" />
<bpmn:sequenceFlow id="Flow_Task_approve_writeoff__End_writeoff_approved" sourceRef="Task_approve_writeoff" targetRef="End_writeoff_approved" />
<bpmn:sequenceFlow id="Flow_Task_reject_writeoff__End_writeoff_rejected" sourceRef="Task_reject_writeoff" targetRef="End_writeoff_rejected" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_ar_v5">
<bpmndi:BPMNPlane id="BPMNPlane_ar_v5" bpmnElement="Collaboration_ar_v5">
<bpmndi:BPMNShape id="Participant_ar_writeoff_di" bpmnElement="Participant_ar_writeoff" isHorizontal="true">
<dc:Bounds x="0" y="0" width="960" height="400" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_writeoff_biller_di" bpmnElement="Lane_writeoff_biller" isHorizontal="true">
<dc:Bounds x="30" y="0" width="930" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_writeoff_approver_di" bpmnElement="Lane_writeoff_approver" isHorizontal="true">
<dc:Bounds x="30" y="140" width="930" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_writeoff_di" bpmnElement="Start_writeoff">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_propose_writeoff_di" bpmnElement="Task_propose_writeoff">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_approve_writeoff_di" bpmnElement="Task_approve_writeoff">
<dc:Bounds x="635" y="160" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_reject_writeoff_di" bpmnElement="Task_reject_writeoff">
<dc:Bounds x="635" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_writeoff_proposed__if_di" bpmnElement="Gateway_writeoff_proposed__if">
<dc:Bounds x="490" y="175" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_writeoff_approved_di" bpmnElement="End_writeoff_approved">
<dc:Bounds x="837" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_writeoff_rejected_di" bpmnElement="End_writeoff_rejected">
<dc:Bounds x="837" y="302" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_writeoff__Task_propose_writeoff_di" bpmnElement="Flow_Start_writeoff__Task_propose_writeoff">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_writeoff_proposed__if__Task_approve_writeoff_di" bpmnElement="Flow_Gateway_writeoff_proposed__if__Task_approve_writeoff">
<di:waypoint x="540" y="200" />
<di:waypoint x="635" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_writeoff_proposed__if__Task_reject_writeoff_di" bpmnElement="Flow_Gateway_writeoff_proposed__if__Task_reject_writeoff">
<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_writeoff__Gateway_writeoff_proposed__if_di" bpmnElement="Flow_Task_propose_writeoff__Gateway_writeoff_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_writeoff__End_writeoff_approved_di" bpmnElement="Flow_Task_approve_writeoff__End_writeoff_approved">
<di:waypoint x="735" y="200" />
<di:waypoint x="837" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_reject_writeoff__End_writeoff_rejected_di" bpmnElement="Flow_Task_reject_writeoff__End_writeoff_rejected">
<di:waypoint x="735" y="320" />
<di:waypoint x="837" y="320" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>