dodil/erp-method

modules/payments/signoff/payments/payments_collection.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_payments_v8" name="Payments &amp; collections processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_payments_v8">
  <bpmn:documentation>Payments &amp; collections: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_payments_collection" name="Collection" processRef="Process_payments_collection_v8" />
  <bpmn:participant id="Participant_customer" name="The customer (external)">
   <bpmn:documentation>Outside the system: the steps it sends are what the process waits on.</bpmn:documentation>
  </bpmn:participant>
  <bpmn:messageFlow id="Flow_Participant_customer__Task_customer_responds" sourceRef="Participant_customer" targetRef="Task_customer_responds" />
 </bpmn:collaboration>
 <bpmn:process id="Process_payments_collection_v8" name="Collection" isExecutable="false">
  <bpmn:documentation>Lifecycle of the collection, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: overdue, reminded, promised, disputed, resolved. Note: a collection is per customer and invoice; settlement and age are derived on read, never stored</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_collection">
   <bpmn:lane id="Lane_collection_system" name="The system">
    <bpmn:flowNodeRef>Start_collection</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_fall_overdue</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Timer_fall_overdue</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_ai_draft_reminder</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Timer_ai_draft_reminder</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_promise_lapses</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Timer_promise_lapses</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_paid_in_full</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_collection_overdue__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_collection_reminded__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_collection_promised__if</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_collection_collector" name="Whoever chases money">
    <bpmn:flowNodeRef>Task_send_reminder</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_call_customer</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_resolve_payment_dispute</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_send_reminder__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_send_reminder__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_call_customer__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_collection_resolved</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_collection_customer" name="The customer (external)">
    <bpmn:flowNodeRef>Task_customer_responds</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_collection" name="Collection needed">
   <bpmn:outgoing>Flow_Start_collection__Timer_fall_overdue</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_fall_overdue" name="The invoice falls overdue" dodil:step="fall_overdue" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to overdue. When: the due date passed with outstanding above zero. Waits: the due date.</bpmn:documentation>
   <bpmn:incoming>Flow_Timer_fall_overdue__Task_fall_overdue</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_fall_overdue__Gateway_collection_overdue__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:intermediateCatchEvent id="Timer_fall_overdue" name="the due date">
   <bpmn:incoming>Flow_Start_collection__Timer_fall_overdue</bpmn:incoming>
   <bpmn:outgoing>Flow_Timer_fall_overdue__Task_fall_overdue</bpmn:outgoing>
   <bpmn:timerEventDefinition id="Timer_fall_overdue__definition">
    <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">the due date</bpmn:timeDuration>
   </bpmn:timerEventDefinition>
  </bpmn:intermediateCatchEvent>
  <bpmn:serviceTask id="Task_ai_draft_reminder" name="AI drafts the reminder for this customer (suggest)" dodil:step="ai_draft_reminder" implementation="##unspecified">
   <bpmn:documentation>By: The system. From overdue / reminded to reminded. When: reminders are on and a level is due. Effect: a draft in the collector's queue (suggest) or sent (auto). Waits: the level's days after due.</bpmn:documentation>
   <bpmn:incoming>Flow_Timer_ai_draft_reminder__Task_ai_draft_reminder</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_ai_draft_reminder__Gateway_send_reminder__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:intermediateCatchEvent id="Timer_ai_draft_reminder" name="the level's days after due">
   <bpmn:incoming>Flow_Gateway_collection_overdue__if__Timer_ai_draft_reminder</bpmn:incoming>
   <bpmn:incoming>Flow_Gateway_collection_reminded__if__Timer_ai_draft_reminder</bpmn:incoming>
   <bpmn:outgoing>Flow_Timer_ai_draft_reminder__Task_ai_draft_reminder</bpmn:outgoing>
   <bpmn:timerEventDefinition id="Timer_ai_draft_reminder__definition">
    <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">the level's days after due</bpmn:timeDuration>
   </bpmn:timerEventDefinition>
  </bpmn:intermediateCatchEvent>
  <bpmn:userTask id="Task_send_reminder" name="Send the reminder" dodil:step="send_reminder">
   <bpmn:documentation>By: Whoever chases money. From reminded to reminded. When: mode suggest: a person sends the draft.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_send_reminder__if__Task_send_reminder</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_send_reminder__Gateway_send_reminder__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_call_customer" name="Chase by hand" dodil:step="call_customer">
   <bpmn:documentation>By: Whoever chases money. From overdue / reminded to promised / disputed. When: a promise date after today, or a dispute reason. Effect: a promise with a date, or a dispute with a reason.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_collection_overdue__if__Task_call_customer</bpmn:incoming>
   <bpmn:incoming>Flow_Gateway_collection_reminded__if__Task_call_customer</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_call_customer__Gateway_call_customer__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:receiveTask id="Task_customer_responds" name="The customer promises or disputes" dodil:step="customer_responds" dodil:external="true">
   <bpmn:documentation>By: The customer. From reminded to reminded. Done outside the system: the process waits for it.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_send_reminder__if_end__Task_customer_responds</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_customer_responds__Gateway_collection_reminded__if</bpmn:outgoing>
  </bpmn:receiveTask>
  <bpmn:serviceTask id="Task_promise_lapses" name="The promise date passes unpaid" dodil:step="promise_lapses" implementation="##unspecified">
   <bpmn:documentation>By: The system. From promised to reminded. When: outstanding above zero on the promised date. Waits: the promise date.</bpmn:documentation>
   <bpmn:incoming>Flow_Timer_promise_lapses__Task_promise_lapses</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_promise_lapses__Gateway_send_reminder__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:intermediateCatchEvent id="Timer_promise_lapses" name="the promise date">
   <bpmn:incoming>Flow_Gateway_collection_promised__if__Timer_promise_lapses</bpmn:incoming>
   <bpmn:outgoing>Flow_Timer_promise_lapses__Task_promise_lapses</bpmn:outgoing>
   <bpmn:timerEventDefinition id="Timer_promise_lapses__definition">
    <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">the promise date</bpmn:timeDuration>
   </bpmn:timerEventDefinition>
  </bpmn:intermediateCatchEvent>
  <bpmn:userTask id="Task_resolve_payment_dispute" name="Resolve the dispute" dodil:step="resolve_payment_dispute">
   <bpmn:documentation>By: Whoever chases money. From disputed to resolved. Requires: outcome. Effect: a credit note in invoicing, or reminders resume.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_call_customer__if__Task_resolve_payment_dispute</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_resolve_payment_dispute__End_collection_resolved</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_paid_in_full" name="Settled" dodil:step="paid_in_full" implementation="##unspecified">
   <bpmn:documentation>By: The system. From overdue / reminded / promised to resolved. When: outstanding is zero (derived).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_collection_overdue__if__Task_paid_in_full</bpmn:incoming>
   <bpmn:incoming>Flow_Gateway_collection_reminded__if__Task_paid_in_full</bpmn:incoming>
   <bpmn:incoming>Flow_Gateway_collection_promised__if__Task_paid_in_full</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_paid_in_full__End_collection_resolved</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:exclusiveGateway id="Gateway_collection_overdue__if" name="Collection overdue: what next?">
   <bpmn:incoming>Flow_Task_fall_overdue__Gateway_collection_overdue__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_collection_overdue__if__Timer_ai_draft_reminder</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_collection_overdue__if__Task_call_customer</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_collection_overdue__if__Task_paid_in_full</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_send_reminder__if" name="mode suggest: a person sends the draft?">
   <bpmn:incoming>Flow_Task_ai_draft_reminder__Gateway_send_reminder__if</bpmn:incoming>
   <bpmn:incoming>Flow_Task_promise_lapses__Gateway_send_reminder__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_send_reminder__if__Task_send_reminder</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_send_reminder__if__Gateway_send_reminder__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_send_reminder__if_end">
   <bpmn:incoming>Flow_Gateway_send_reminder__if__Gateway_send_reminder__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_send_reminder__Gateway_send_reminder__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_send_reminder__if_end__Task_customer_responds</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_collection_reminded__if" name="Collection reminded: what next?">
   <bpmn:incoming>Flow_Task_customer_responds__Gateway_collection_reminded__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_collection_reminded__if__Timer_ai_draft_reminder</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_collection_reminded__if__Task_call_customer</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_collection_reminded__if__Task_paid_in_full</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_call_customer__if" name="Outcome?">
   <bpmn:incoming>Flow_Task_call_customer__Gateway_call_customer__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_call_customer__if__Gateway_collection_promised__if</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_call_customer__if__Task_resolve_payment_dispute</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_collection_promised__if" name="Collection promised: what next?">
   <bpmn:incoming>Flow_Gateway_call_customer__if__Gateway_collection_promised__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_collection_promised__if__Timer_promise_lapses</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_collection_promised__if__Task_paid_in_full</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_collection_resolved" name="Collection resolved">
   <bpmn:incoming>Flow_Task_resolve_payment_dispute__End_collection_resolved</bpmn:incoming>
   <bpmn:incoming>Flow_Task_paid_in_full__End_collection_resolved</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Timer_fall_overdue__Task_fall_overdue" sourceRef="Timer_fall_overdue" targetRef="Task_fall_overdue" />
  <bpmn:sequenceFlow id="Flow_Timer_ai_draft_reminder__Task_ai_draft_reminder" sourceRef="Timer_ai_draft_reminder" targetRef="Task_ai_draft_reminder" />
  <bpmn:sequenceFlow id="Flow_Timer_promise_lapses__Task_promise_lapses" sourceRef="Timer_promise_lapses" targetRef="Task_promise_lapses" />
  <bpmn:sequenceFlow id="Flow_Start_collection__Timer_fall_overdue" sourceRef="Start_collection" targetRef="Timer_fall_overdue" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_overdue__if__Timer_ai_draft_reminder" sourceRef="Gateway_collection_overdue__if" targetRef="Timer_ai_draft_reminder" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_overdue__if__Task_call_customer" sourceRef="Gateway_collection_overdue__if" targetRef="Task_call_customer" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_overdue__if__Task_paid_in_full" sourceRef="Gateway_collection_overdue__if" targetRef="Task_paid_in_full" />
  <bpmn:sequenceFlow id="Flow_Task_fall_overdue__Gateway_collection_overdue__if" sourceRef="Task_fall_overdue" targetRef="Gateway_collection_overdue__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_send_reminder__if__Task_send_reminder" name="mode suggest: a person sends the draft" sourceRef="Gateway_send_reminder__if" targetRef="Task_send_reminder" />
  <bpmn:sequenceFlow id="Flow_Gateway_send_reminder__if__Gateway_send_reminder__if_end" name="otherwise" sourceRef="Gateway_send_reminder__if" targetRef="Gateway_send_reminder__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_send_reminder__Gateway_send_reminder__if_end" sourceRef="Task_send_reminder" targetRef="Gateway_send_reminder__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_send_reminder__if_end__Task_customer_responds" sourceRef="Gateway_send_reminder__if_end" targetRef="Task_customer_responds" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_reminded__if__Timer_ai_draft_reminder" sourceRef="Gateway_collection_reminded__if" targetRef="Timer_ai_draft_reminder" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_reminded__if__Task_call_customer" sourceRef="Gateway_collection_reminded__if" targetRef="Task_call_customer" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_reminded__if__Task_paid_in_full" sourceRef="Gateway_collection_reminded__if" targetRef="Task_paid_in_full" />
  <bpmn:sequenceFlow id="Flow_Task_customer_responds__Gateway_collection_reminded__if" sourceRef="Task_customer_responds" targetRef="Gateway_collection_reminded__if" />
  <bpmn:sequenceFlow id="Flow_Task_ai_draft_reminder__Gateway_send_reminder__if" sourceRef="Task_ai_draft_reminder" targetRef="Gateway_send_reminder__if" />
  <bpmn:sequenceFlow id="Flow_Task_call_customer__Gateway_call_customer__if" sourceRef="Task_call_customer" targetRef="Gateway_call_customer__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_promised__if__Timer_promise_lapses" sourceRef="Gateway_collection_promised__if" targetRef="Timer_promise_lapses" />
  <bpmn:sequenceFlow id="Flow_Gateway_collection_promised__if__Task_paid_in_full" sourceRef="Gateway_collection_promised__if" targetRef="Task_paid_in_full" />
  <bpmn:sequenceFlow id="Flow_Gateway_call_customer__if__Gateway_collection_promised__if" name="promised" sourceRef="Gateway_call_customer__if" targetRef="Gateway_collection_promised__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_call_customer__if__Task_resolve_payment_dispute" name="disputed" sourceRef="Gateway_call_customer__if" targetRef="Task_resolve_payment_dispute" />
  <bpmn:sequenceFlow id="Flow_Task_promise_lapses__Gateway_send_reminder__if" sourceRef="Task_promise_lapses" targetRef="Gateway_send_reminder__if" />
  <bpmn:sequenceFlow id="Flow_Task_resolve_payment_dispute__End_collection_resolved" sourceRef="Task_resolve_payment_dispute" targetRef="End_collection_resolved" />
  <bpmn:sequenceFlow id="Flow_Task_paid_in_full__End_collection_resolved" sourceRef="Task_paid_in_full" targetRef="End_collection_resolved" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_payments_v8">
  <bpmndi:BPMNPlane id="BPMNPlane_payments_v8" bpmnElement="Collaboration_payments_v8">
   <bpmndi:BPMNShape id="Participant_payments_collection_di" bpmnElement="Participant_payments_collection" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="1810" height="660" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_collection_system_di" bpmnElement="Lane_collection_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="1780" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_collection_collector_di" bpmnElement="Lane_collection_collector" isHorizontal="true">
    <dc:Bounds x="30" y="260" width="1780" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_collection_customer_di" bpmnElement="Lane_collection_customer" isHorizontal="true">
    <dc:Bounds x="30" y="520" width="1780" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_collection_di" bpmnElement="Start_collection">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_fall_overdue_di" bpmnElement="Task_fall_overdue">
    <dc:Bounds x="465" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Timer_fall_overdue_di" bpmnElement="Timer_fall_overdue">
    <dc:Bounds x="327" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_ai_draft_reminder_di" bpmnElement="Task_ai_draft_reminder">
    <dc:Bounds x="975" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Timer_ai_draft_reminder_di" bpmnElement="Timer_ai_draft_reminder">
    <dc:Bounds x="837" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_send_reminder_di" bpmnElement="Task_send_reminder">
    <dc:Bounds x="1315" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_call_customer_di" bpmnElement="Task_call_customer">
    <dc:Bounds x="805" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_customer_responds_di" bpmnElement="Task_customer_responds">
    <dc:Bounds x="1485" y="540" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_promise_lapses_di" bpmnElement="Task_promise_lapses">
    <dc:Bounds x="1485" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Timer_promise_lapses_di" bpmnElement="Timer_promise_lapses">
    <dc:Bounds x="1347" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_resolve_payment_dispute_di" bpmnElement="Task_resolve_payment_dispute">
    <dc:Bounds x="1145" y="280" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_paid_in_full_di" bpmnElement="Task_paid_in_full">
    <dc:Bounds x="805" y="140" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_collection_overdue__if_di" bpmnElement="Gateway_collection_overdue__if">
    <dc:Bounds x="660" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_send_reminder__if_di" bpmnElement="Gateway_send_reminder__if">
    <dc:Bounds x="1170" y="415" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_send_reminder__if_end_di" bpmnElement="Gateway_send_reminder__if_end">
    <dc:Bounds x="1340" y="415" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_collection_reminded__if_di" bpmnElement="Gateway_collection_reminded__if">
    <dc:Bounds x="1680" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_call_customer__if_di" bpmnElement="Gateway_call_customer__if">
    <dc:Bounds x="1000" y="295" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_collection_promised__if_di" bpmnElement="Gateway_collection_promised__if">
    <dc:Bounds x="1170" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_collection_resolved_di" bpmnElement="End_collection_resolved">
    <dc:Bounds x="1007" y="422" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Timer_fall_overdue__Task_fall_overdue_di" bpmnElement="Flow_Timer_fall_overdue__Task_fall_overdue">
    <di:waypoint x="363" y="60" />
    <di:waypoint x="465" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Timer_ai_draft_reminder__Task_ai_draft_reminder_di" bpmnElement="Flow_Timer_ai_draft_reminder__Task_ai_draft_reminder">
    <di:waypoint x="873" y="60" />
    <di:waypoint x="975" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Timer_promise_lapses__Task_promise_lapses_di" bpmnElement="Flow_Timer_promise_lapses__Task_promise_lapses">
    <di:waypoint x="1383" y="60" />
    <di:waypoint x="1485" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Start_collection__Timer_fall_overdue_di" bpmnElement="Flow_Start_collection__Timer_fall_overdue">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="327" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_overdue__if__Timer_ai_draft_reminder_di" bpmnElement="Flow_Gateway_collection_overdue__if__Timer_ai_draft_reminder">
    <di:waypoint x="710" y="60" />
    <di:waypoint x="837" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_overdue__if__Task_call_customer_di" bpmnElement="Flow_Gateway_collection_overdue__if__Task_call_customer">
    <di:waypoint x="710" y="60" />
    <di:waypoint x="780" y="60" />
    <di:waypoint x="780" y="320" />
    <di:waypoint x="805" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_overdue__if__Task_paid_in_full_di" bpmnElement="Flow_Gateway_collection_overdue__if__Task_paid_in_full">
    <di:waypoint x="710" y="60" />
    <di:waypoint x="780" y="60" />
    <di:waypoint x="780" y="180" />
    <di:waypoint x="805" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_fall_overdue__Gateway_collection_overdue__if_di" bpmnElement="Flow_Task_fall_overdue__Gateway_collection_overdue__if">
    <di:waypoint x="565" y="60" />
    <di:waypoint x="660" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_send_reminder__if__Task_send_reminder_di" bpmnElement="Flow_Gateway_send_reminder__if__Task_send_reminder">
    <di:waypoint x="1220" y="440" />
    <di:waypoint x="1290" y="440" />
    <di:waypoint x="1290" y="320" />
    <di:waypoint x="1315" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_send_reminder__if__Gateway_send_reminder__if_end_di" bpmnElement="Flow_Gateway_send_reminder__if__Gateway_send_reminder__if_end">
    <di:waypoint x="1220" y="440" />
    <di:waypoint x="1340" y="440" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_send_reminder__Gateway_send_reminder__if_end_di" bpmnElement="Flow_Task_send_reminder__Gateway_send_reminder__if_end">
    <di:waypoint x="1365" y="360" />
    <di:waypoint x="1365" y="480" />
    <di:waypoint x="1365" y="480" />
    <di:waypoint x="1365" y="465" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_send_reminder__if_end__Task_customer_responds_di" bpmnElement="Flow_Gateway_send_reminder__if_end__Task_customer_responds">
    <di:waypoint x="1390" y="440" />
    <di:waypoint x="1460" y="440" />
    <di:waypoint x="1460" y="580" />
    <di:waypoint x="1485" y="580" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_reminded__if__Timer_ai_draft_reminder_di" bpmnElement="Flow_Gateway_collection_reminded__if__Timer_ai_draft_reminder">
    <di:waypoint x="1705" y="85" />
    <di:waypoint x="1705" y="106" />
    <di:waypoint x="855" y="106" />
    <di:waypoint x="855" y="78" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_reminded__if__Task_call_customer_di" bpmnElement="Flow_Gateway_collection_reminded__if__Task_call_customer">
    <di:waypoint x="1705" y="85" />
    <di:waypoint x="1705" y="387" />
    <di:waypoint x="855" y="387" />
    <di:waypoint x="855" y="360" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_reminded__if__Task_paid_in_full_di" bpmnElement="Flow_Gateway_collection_reminded__if__Task_paid_in_full">
    <di:waypoint x="1705" y="85" />
    <di:waypoint x="1705" y="253" />
    <di:waypoint x="855" y="253" />
    <di:waypoint x="855" y="220" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_customer_responds__Gateway_collection_reminded__if_di" bpmnElement="Flow_Task_customer_responds__Gateway_collection_reminded__if">
    <di:waypoint x="1585" y="580" />
    <di:waypoint x="1655" y="580" />
    <di:waypoint x="1655" y="60" />
    <di:waypoint x="1680" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_ai_draft_reminder__Gateway_send_reminder__if_di" bpmnElement="Flow_Task_ai_draft_reminder__Gateway_send_reminder__if">
    <di:waypoint x="1075" y="60" />
    <di:waypoint x="1145" y="60" />
    <di:waypoint x="1145" y="440" />
    <di:waypoint x="1170" y="440" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_call_customer__Gateway_call_customer__if_di" bpmnElement="Flow_Task_call_customer__Gateway_call_customer__if">
    <di:waypoint x="905" y="320" />
    <di:waypoint x="1000" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_promised__if__Timer_promise_lapses_di" bpmnElement="Flow_Gateway_collection_promised__if__Timer_promise_lapses">
    <di:waypoint x="1220" y="60" />
    <di:waypoint x="1347" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_collection_promised__if__Task_paid_in_full_di" bpmnElement="Flow_Gateway_collection_promised__if__Task_paid_in_full">
    <di:waypoint x="1195" y="85" />
    <di:waypoint x="1195" y="235" />
    <di:waypoint x="855" y="235" />
    <di:waypoint x="855" y="220" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_call_customer__if__Gateway_collection_promised__if_di" bpmnElement="Flow_Gateway_call_customer__if__Gateway_collection_promised__if">
    <di:waypoint x="1050" y="320" />
    <di:waypoint x="1145" y="320" />
    <di:waypoint x="1145" y="60" />
    <di:waypoint x="1170" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_call_customer__if__Task_resolve_payment_dispute_di" bpmnElement="Flow_Gateway_call_customer__if__Task_resolve_payment_dispute">
    <di:waypoint x="1050" y="320" />
    <di:waypoint x="1145" y="320" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_promise_lapses__Gateway_send_reminder__if_di" bpmnElement="Flow_Task_promise_lapses__Gateway_send_reminder__if">
    <di:waypoint x="1535" y="100" />
    <di:waypoint x="1535" y="486" />
    <di:waypoint x="1195" y="486" />
    <di:waypoint x="1195" y="465" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_resolve_payment_dispute__End_collection_resolved_di" bpmnElement="Flow_Task_resolve_payment_dispute__End_collection_resolved">
    <di:waypoint x="1195" y="360" />
    <di:waypoint x="1195" y="485" />
    <di:waypoint x="1025" y="485" />
    <di:waypoint x="1025" y="458" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_paid_in_full__End_collection_resolved_di" bpmnElement="Flow_Task_paid_in_full__End_collection_resolved">
    <di:waypoint x="905" y="180" />
    <di:waypoint x="982" y="180" />
    <di:waypoint x="982" y="440" />
    <di:waypoint x="1007" y="440" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNShape id="Participant_customer_di" bpmnElement="Participant_customer" isHorizontal="true">
    <dc:Bounds x="0" y="700" width="1810" height="60" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Participant_customer__Task_customer_responds_di" bpmnElement="Flow_Participant_customer__Task_customer_responds">
    <di:waypoint x="1535" y="700" />
    <di:waypoint x="1535" y="620" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>