dodil/erp-method
modules/sales-order/signoff/sales-order/history/sales-order_rebate_agreement.v6.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_sales-order_v10" name="Sales orders processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_sales-order_v10">
<bpmn:documentation>Sales orders: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_sales-order_rebate_agreement" name="Rebate agreement" processRef="Process_sales-order_rebate_agreement_v10" />
</bpmn:collaboration>
<bpmn:process id="Process_sales-order_rebate_agreement_v10" name="Rebate agreement" isExecutable="false">
<bpmn:documentation>Lifecycle of the rebate agreement, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, active, ended, settled, cancelled.</bpmn:documentation>
<bpmn:laneSet id="LaneSet_rebate_agreement">
<bpmn:lane id="Lane_rebate_agreement_order_admin" name="Sales operations / the owner">
<bpmn:flowNodeRef>Start_rebate_agreement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_open_rebate_agreement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_activate_rebate_agreement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_request_partial_settlement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_request_final_settlement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_cancel_rebate_agreement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_rebate_agreement_draft__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_rebate_agreement_cancelled</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_rebate_agreement_system" name="The system">
<bpmn:flowNodeRef>Task_accrue_rebate</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_end_rebate_agreement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_accrue_rebate__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_accrue_rebate__if_end</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_rebate_agreement_sales_controller" name="A second person for money going back (the finance controller, the owner)">
<bpmn:flowNodeRef>Task_approve_partial_settlement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_approve_final_settlement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_approve_partial_settlement__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_approve_partial_settlement__if_end</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_rebate_agreement_settled</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_rebate_agreement" name="Rebate agreement needed">
<bpmn:outgoing>Flow_Start_rebate_agreement__Task_open_rebate_agreement</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_open_rebate_agreement" name="Open a rebate agreement" dodil:step="open_rebate_agreement">
<bpmn:documentation>By: Sales operations / the owner. From none to draft. When: a customer or price group; a basis (products, categories or all); a validity period. Effect: the agreement and its scale, editable.</bpmn:documentation>
<bpmn:incoming>Flow_Start_rebate_agreement__Task_open_rebate_agreement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_open_rebate_agreement__Gateway_rebate_agreement_draft__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_activate_rebate_agreement" name="Activate the agreement" dodil:step="activate_rebate_agreement">
<bpmn:documentation>By: Sales operations / the owner. From draft to active. When: readiness: starts_after_today, scale_valid (tiers ascending, rates from 0 to 100 percent). Effect: invoices from its start accrue against it.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_rebate_agreement_draft__if__Task_activate_rebate_agreement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_activate_rebate_agreement__Gateway_accrue_rebate__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:serviceTask id="Task_accrue_rebate" name="Accrue on issued invoices (nightly)" dodil:step="accrue_rebate" implementation="##unspecified">
<bpmn:documentation>By: The system. From active to active. When: an invoice or credit note in the basis issued on the business date. Effect: accrual rows keyed (agreement, document, line) and the accrual journal posted to the ledger.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_accrue_rebate__if__Task_accrue_rebate</bpmn:incoming>
<bpmn:outgoing>Flow_Task_accrue_rebate__Gateway_accrue_rebate__if_end</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:userTask id="Task_request_partial_settlement" name="Ask for a partial settlement" dodil:step="request_partial_settlement">
<bpmn:documentation>By: Sales operations / the owner. From active to active. Requires: reason. Effect: a settlement draft: the rate reached so far on the basis so far, less settled.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_accrue_rebate__if_end__Task_request_partial_settlement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_request_partial_settlement__Gateway_approve_partial_settlement__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_approve_partial_settlement" name="Approve the partial settlement" dodil:step="approve_partial_settlement" dodil:approval="true">
<bpmn:documentation>By: A second person for money going back (the finance controller, the owner). From active to active. When: readiness: approver_not_requester (by email and sign-in subject). Effect: a credit note in invoicing keyed rebate:{agreement_id}:{settlement_no}; the accrual released by its amount. An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_approve_partial_settlement__if__Task_approve_partial_settlement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_approve_partial_settlement__Gateway_approve_partial_settlement__if_end</bpmn:outgoing>
</bpmn:userTask>
<bpmn:serviceTask id="Task_end_rebate_agreement" name="The agreement period ends" dodil:step="end_rebate_agreement" implementation="##unspecified">
<bpmn:documentation>By: The system. From active to ended. When: valid_to is before today. Effect: no further accruals; the final basis fixed once the last day's invoices are accrued.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_approve_partial_settlement__if_end__Task_end_rebate_agreement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_end_rebate_agreement__Task_request_final_settlement</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:userTask id="Task_request_final_settlement" name="Ask for the final settlement" dodil:step="request_final_settlement">
<bpmn:documentation>By: Sales operations / the owner. From ended to ended. Effect: the tier reached on the whole basis, retroactive, less what partial settlements paid.</bpmn:documentation>
<bpmn:incoming>Flow_Task_end_rebate_agreement__Task_request_final_settlement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_request_final_settlement__Task_approve_final_settlement</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_approve_final_settlement" name="Approve the final settlement" dodil:step="approve_final_settlement" dodil:approval="true">
<bpmn:documentation>By: A second person for money going back (the finance controller, the owner). From ended to settled. When: readiness: approver_not_requester. Effect: the accrual trued up in the ledger, one credit note in invoicing, the accrual account for the agreement nets to 0.00. An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Task_request_final_settlement__Task_approve_final_settlement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_approve_final_settlement__End_rebate_agreement_settled</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_cancel_rebate_agreement" name="Cancel a draft agreement" dodil:step="cancel_rebate_agreement">
<bpmn:documentation>By: Sales operations / the owner. From draft to cancelled.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_rebate_agreement_draft__if__Task_cancel_rebate_agreement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_cancel_rebate_agreement__End_rebate_agreement_cancelled</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_rebate_agreement_draft__if" name="Rebate agreement draft: what next?">
<bpmn:incoming>Flow_Task_open_rebate_agreement__Gateway_rebate_agreement_draft__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_rebate_agreement_draft__if__Task_activate_rebate_agreement</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_rebate_agreement_draft__if__Task_cancel_rebate_agreement</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_accrue_rebate__if" name="an invoice or credit note in the basis issued on the business date?">
<bpmn:incoming>Flow_Task_activate_rebate_agreement__Gateway_accrue_rebate__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_accrue_rebate__if__Task_accrue_rebate</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_accrue_rebate__if__Gateway_accrue_rebate__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_accrue_rebate__if_end">
<bpmn:incoming>Flow_Gateway_accrue_rebate__if__Gateway_accrue_rebate__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_accrue_rebate__Gateway_accrue_rebate__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_accrue_rebate__if_end__Task_request_partial_settlement</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_approve_partial_settlement__if" name="readiness: approver_not_requester (by email and sign-in subject)?">
<bpmn:incoming>Flow_Task_request_partial_settlement__Gateway_approve_partial_settlement__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_approve_partial_settlement__if__Task_approve_partial_settlement</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_approve_partial_settlement__if__Gateway_approve_partial_settlement__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_approve_partial_settlement__if_end">
<bpmn:incoming>Flow_Gateway_approve_partial_settlement__if__Gateway_approve_partial_settlement__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_approve_partial_settlement__Gateway_approve_partial_settlement__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_approve_partial_settlement__if_end__Task_end_rebate_agreement</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_rebate_agreement_settled" name="Rebate agreement settled">
<bpmn:incoming>Flow_Task_approve_final_settlement__End_rebate_agreement_settled</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_rebate_agreement_cancelled" name="Rebate agreement cancelled">
<bpmn:incoming>Flow_Task_cancel_rebate_agreement__End_rebate_agreement_cancelled</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_rebate_agreement__Task_open_rebate_agreement" sourceRef="Start_rebate_agreement" targetRef="Task_open_rebate_agreement" />
<bpmn:sequenceFlow id="Flow_Gateway_rebate_agreement_draft__if__Task_activate_rebate_agreement" sourceRef="Gateway_rebate_agreement_draft__if" targetRef="Task_activate_rebate_agreement" />
<bpmn:sequenceFlow id="Flow_Gateway_rebate_agreement_draft__if__Task_cancel_rebate_agreement" sourceRef="Gateway_rebate_agreement_draft__if" targetRef="Task_cancel_rebate_agreement" />
<bpmn:sequenceFlow id="Flow_Task_open_rebate_agreement__Gateway_rebate_agreement_draft__if" sourceRef="Task_open_rebate_agreement" targetRef="Gateway_rebate_agreement_draft__if" />
<bpmn:sequenceFlow id="Flow_Gateway_accrue_rebate__if__Task_accrue_rebate" name="an invoice or credit note in the basis issued on the business date" sourceRef="Gateway_accrue_rebate__if" targetRef="Task_accrue_rebate" />
<bpmn:sequenceFlow id="Flow_Gateway_accrue_rebate__if__Gateway_accrue_rebate__if_end" name="otherwise" sourceRef="Gateway_accrue_rebate__if" targetRef="Gateway_accrue_rebate__if_end" />
<bpmn:sequenceFlow id="Flow_Task_accrue_rebate__Gateway_accrue_rebate__if_end" sourceRef="Task_accrue_rebate" targetRef="Gateway_accrue_rebate__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_approve_partial_settlement__if__Task_approve_partial_settlement" name="readiness: approver_not_requester (by email and sign-in subject)" sourceRef="Gateway_approve_partial_settlement__if" targetRef="Task_approve_partial_settlement" />
<bpmn:sequenceFlow id="Flow_Gateway_approve_partial_settlement__if__Gateway_approve_partial_settlement__if_end" name="otherwise" sourceRef="Gateway_approve_partial_settlement__if" targetRef="Gateway_approve_partial_settlement__if_end" />
<bpmn:sequenceFlow id="Flow_Task_approve_partial_settlement__Gateway_approve_partial_settlement__if_end" sourceRef="Task_approve_partial_settlement" targetRef="Gateway_approve_partial_settlement__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_accrue_rebate__if_end__Task_request_partial_settlement" sourceRef="Gateway_accrue_rebate__if_end" targetRef="Task_request_partial_settlement" />
<bpmn:sequenceFlow id="Flow_Task_request_partial_settlement__Gateway_approve_partial_settlement__if" sourceRef="Task_request_partial_settlement" targetRef="Gateway_approve_partial_settlement__if" />
<bpmn:sequenceFlow id="Flow_Gateway_approve_partial_settlement__if_end__Task_end_rebate_agreement" sourceRef="Gateway_approve_partial_settlement__if_end" targetRef="Task_end_rebate_agreement" />
<bpmn:sequenceFlow id="Flow_Task_activate_rebate_agreement__Gateway_accrue_rebate__if" sourceRef="Task_activate_rebate_agreement" targetRef="Gateway_accrue_rebate__if" />
<bpmn:sequenceFlow id="Flow_Task_request_final_settlement__Task_approve_final_settlement" sourceRef="Task_request_final_settlement" targetRef="Task_approve_final_settlement" />
<bpmn:sequenceFlow id="Flow_Task_end_rebate_agreement__Task_request_final_settlement" sourceRef="Task_end_rebate_agreement" targetRef="Task_request_final_settlement" />
<bpmn:sequenceFlow id="Flow_Task_approve_final_settlement__End_rebate_agreement_settled" sourceRef="Task_approve_final_settlement" targetRef="End_rebate_agreement_settled" />
<bpmn:sequenceFlow id="Flow_Task_cancel_rebate_agreement__End_rebate_agreement_cancelled" sourceRef="Task_cancel_rebate_agreement" targetRef="End_rebate_agreement_cancelled" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_sales-order_v10">
<bpmndi:BPMNPlane id="BPMNPlane_sales-order_v10" bpmnElement="Collaboration_sales-order_v10">
<bpmndi:BPMNShape id="Participant_sales-order_rebate_agreement_di" bpmnElement="Participant_sales-order_rebate_agreement" isHorizontal="true">
<dc:Bounds x="0" y="0" width="2320" height="780" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_rebate_agreement_order_admin_di" bpmnElement="Lane_rebate_agreement_order_admin" isHorizontal="true">
<dc:Bounds x="30" y="0" width="2290" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_rebate_agreement_system_di" bpmnElement="Lane_rebate_agreement_system" isHorizontal="true">
<dc:Bounds x="30" y="260" width="2290" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_rebate_agreement_sales_controller_di" bpmnElement="Lane_rebate_agreement_sales_controller" isHorizontal="true">
<dc:Bounds x="30" y="520" width="2290" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_rebate_agreement_di" bpmnElement="Start_rebate_agreement">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_open_rebate_agreement_di" bpmnElement="Task_open_rebate_agreement">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_activate_rebate_agreement_di" bpmnElement="Task_activate_rebate_agreement">
<dc:Bounds x="635" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_accrue_rebate_di" bpmnElement="Task_accrue_rebate">
<dc:Bounds x="975" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_request_partial_settlement_di" bpmnElement="Task_request_partial_settlement">
<dc:Bounds x="1145" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_approve_partial_settlement_di" bpmnElement="Task_approve_partial_settlement">
<dc:Bounds x="1485" y="540" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_end_rebate_agreement_di" bpmnElement="Task_end_rebate_agreement">
<dc:Bounds x="1655" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_request_final_settlement_di" bpmnElement="Task_request_final_settlement">
<dc:Bounds x="1825" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_approve_final_settlement_di" bpmnElement="Task_approve_final_settlement">
<dc:Bounds x="1995" y="540" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_cancel_rebate_agreement_di" bpmnElement="Task_cancel_rebate_agreement">
<dc:Bounds x="635" y="140" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_rebate_agreement_draft__if_di" bpmnElement="Gateway_rebate_agreement_draft__if">
<dc:Bounds x="490" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_accrue_rebate__if_di" bpmnElement="Gateway_accrue_rebate__if">
<dc:Bounds x="830" y="295" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_accrue_rebate__if_end_di" bpmnElement="Gateway_accrue_rebate__if_end">
<dc:Bounds x="1000" y="415" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_approve_partial_settlement__if_di" bpmnElement="Gateway_approve_partial_settlement__if">
<dc:Bounds x="1340" y="555" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_approve_partial_settlement__if_end_di" bpmnElement="Gateway_approve_partial_settlement__if_end">
<dc:Bounds x="1510" y="675" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_rebate_agreement_settled_di" bpmnElement="End_rebate_agreement_settled">
<dc:Bounds x="2197" y="562" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_rebate_agreement_cancelled_di" bpmnElement="End_rebate_agreement_cancelled">
<dc:Bounds x="837" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_rebate_agreement__Task_open_rebate_agreement_di" bpmnElement="Flow_Start_rebate_agreement__Task_open_rebate_agreement">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_rebate_agreement_draft__if__Task_activate_rebate_agreement_di" bpmnElement="Flow_Gateway_rebate_agreement_draft__if__Task_activate_rebate_agreement">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_rebate_agreement_draft__if__Task_cancel_rebate_agreement_di" bpmnElement="Flow_Gateway_rebate_agreement_draft__if__Task_cancel_rebate_agreement">
<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_Task_open_rebate_agreement__Gateway_rebate_agreement_draft__if_di" bpmnElement="Flow_Task_open_rebate_agreement__Gateway_rebate_agreement_draft__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="490" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_accrue_rebate__if__Task_accrue_rebate_di" bpmnElement="Flow_Gateway_accrue_rebate__if__Task_accrue_rebate">
<di:waypoint x="880" y="320" />
<di:waypoint x="975" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_accrue_rebate__if__Gateway_accrue_rebate__if_end_di" bpmnElement="Flow_Gateway_accrue_rebate__if__Gateway_accrue_rebate__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_accrue_rebate__Gateway_accrue_rebate__if_end_di" bpmnElement="Flow_Task_accrue_rebate__Gateway_accrue_rebate__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_approve_partial_settlement__if__Task_approve_partial_settlement_di" bpmnElement="Flow_Gateway_approve_partial_settlement__if__Task_approve_partial_settlement">
<di:waypoint x="1390" y="580" />
<di:waypoint x="1485" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_approve_partial_settlement__if__Gateway_approve_partial_settlement__if_end_di" bpmnElement="Flow_Gateway_approve_partial_settlement__if__Gateway_approve_partial_settlement__if_end">
<di:waypoint x="1390" y="580" />
<di:waypoint x="1485" y="580" />
<di:waypoint x="1485" y="700" />
<di:waypoint x="1510" y="700" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_approve_partial_settlement__Gateway_approve_partial_settlement__if_end_di" bpmnElement="Flow_Task_approve_partial_settlement__Gateway_approve_partial_settlement__if_end">
<di:waypoint x="1535" y="620" />
<di:waypoint x="1535" y="746" />
<di:waypoint x="1535" y="746" />
<di:waypoint x="1535" y="725" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_accrue_rebate__if_end__Task_request_partial_settlement_di" bpmnElement="Flow_Gateway_accrue_rebate__if_end__Task_request_partial_settlement">
<di:waypoint x="1050" y="440" />
<di:waypoint x="1120" y="440" />
<di:waypoint x="1120" y="60" />
<di:waypoint x="1145" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_request_partial_settlement__Gateway_approve_partial_settlement__if_di" bpmnElement="Flow_Task_request_partial_settlement__Gateway_approve_partial_settlement__if">
<di:waypoint x="1245" y="60" />
<di:waypoint x="1315" y="60" />
<di:waypoint x="1315" y="580" />
<di:waypoint x="1340" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_approve_partial_settlement__if_end__Task_end_rebate_agreement_di" bpmnElement="Flow_Gateway_approve_partial_settlement__if_end__Task_end_rebate_agreement">
<di:waypoint x="1560" y="700" />
<di:waypoint x="1630" y="700" />
<di:waypoint x="1630" y="320" />
<di:waypoint x="1655" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_activate_rebate_agreement__Gateway_accrue_rebate__if_di" bpmnElement="Flow_Task_activate_rebate_agreement__Gateway_accrue_rebate__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_request_final_settlement__Task_approve_final_settlement_di" bpmnElement="Flow_Task_request_final_settlement__Task_approve_final_settlement">
<di:waypoint x="1925" y="60" />
<di:waypoint x="1970" y="60" />
<di:waypoint x="1970" y="580" />
<di:waypoint x="1995" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_end_rebate_agreement__Task_request_final_settlement_di" bpmnElement="Flow_Task_end_rebate_agreement__Task_request_final_settlement">
<di:waypoint x="1755" y="320" />
<di:waypoint x="1800" y="320" />
<di:waypoint x="1800" y="60" />
<di:waypoint x="1825" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_approve_final_settlement__End_rebate_agreement_settled_di" bpmnElement="Flow_Task_approve_final_settlement__End_rebate_agreement_settled">
<di:waypoint x="2095" y="580" />
<di:waypoint x="2197" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_cancel_rebate_agreement__End_rebate_agreement_cancelled_di" bpmnElement="Flow_Task_cancel_rebate_agreement__End_rebate_agreement_cancelled">
<di:waypoint x="735" y="180" />
<di:waypoint x="812" y="180" />
<di:waypoint x="812" y="60" />
<di:waypoint x="837" y="60" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>