dodil/erp-method
modules/tax/signoff/tax/history/tax_document_tax.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_tax_v6" name="Tax (VAT) processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_tax_v6">
<bpmn:documentation>Tax (VAT): one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_tax_document_tax" name="Document tax" processRef="Process_tax_document_tax_v6" />
</bpmn:collaboration>
<bpmn:process id="Process_tax_document_tax_v6" name="Document tax" isExecutable="false">
<bpmn:documentation>Lifecycle of the document tax, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: computed, frozen. Note: the document (an order, an invoice, a credit note) owns its own copy of the result; this lifecycle is the tax on it</bpmn:documentation>
<bpmn:laneSet id="LaneSet_document_tax">
<bpmn:lane id="Lane_document_tax_system" name="The system">
<bpmn:flowNodeRef>Start_document_tax</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_determine</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_ai_suggest_code</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_check_contents</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_freeze</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_ai_suggest_code__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_ai_suggest_code__if_end</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_check_contents__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_check_contents__if_end</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_document_tax_frozen</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_document_tax_biller" name="Whoever raises orders and invoices">
<bpmn:flowNodeRef>Task_accept_tax_suggestion</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_override_line</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_accept_tax_suggestion__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_accept_tax_suggestion__if_end</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_override_line__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_override_line__if_end</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_document_tax_tax_admin" name="Whoever is responsible for VAT (the owner, the bookkeeper, the accountant)">
<bpmn:flowNodeRef>Task_approve_override</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_approve_override__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_approve_override__if_end</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_document_tax" name="Document tax needed">
<bpmn:outgoing>Flow_Start_document_tax__Task_determine</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:serviceTask id="Task_determine" name="Determine each line's code" dodil:step="determine" implementation="##unspecified">
<bpmn:documentation>By: The system. From none to computed. When: a rule of the document's direction (sale | purchase) valid on the tax point covers every (category, treatment) pair, except a line pinned to an earlier frozen document (v4, TAX-47), which takes that document's code and rate; the party has a treatment: the customer's for a sale, the SUPPLIER's for a purchase (v6, TAX-53: or, with no bp_id, the treatment_code the document names; neither refuses with gate party_or_treatment); v6, TAX-51: a line's consumption (eat_in | takeaway) selects among rules that distinguish it. Effect: code, rate, VAT per line; the per-rate summary; the total; for a purchase, VAT split into reclaimable and non-reclaimable by each code's reclaimable_pct.</bpmn:documentation>
<bpmn:incoming>Flow_Start_document_tax__Task_determine</bpmn:incoming>
<bpmn:outgoing>Flow_Task_determine__Gateway_ai_suggest_code__if</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_ai_suggest_code" name="AI suggests a code for a line no rule covers (suggest)" dodil:step="ai_suggest_code" implementation="##unspecified">
<bpmn:documentation>By: The system. From computed to computed. When: a line has no rule, or no product, and the step is on. Effect: a proposed code with its reason; nothing is applied.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_ai_suggest_code__if__Task_ai_suggest_code</bpmn:incoming>
<bpmn:outgoing>Flow_Task_ai_suggest_code__Gateway_ai_suggest_code__if_end</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:userTask id="Task_accept_tax_suggestion" name="Accept or reject the suggestion" dodil:step="accept_tax_suggestion">
<bpmn:documentation>By: Whoever raises orders and invoices. From computed to computed. When: a suggestion is open on the line. Effect: accepted: recorded as an override with the suggestion, the model and who accepted; rejected: the line stays refused until a person chooses.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_accept_tax_suggestion__if__Task_accept_tax_suggestion</bpmn:incoming>
<bpmn:outgoing>Flow_Task_accept_tax_suggestion__Gateway_accept_tax_suggestion__if_end</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_override_line" name="Override a line's code" dodil:step="override_line">
<bpmn:documentation>By: Whoever raises orders and invoices. From computed to computed. When: the biller disagrees with the rule's code. Requires: reason.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_override_line__if__Task_override_line</bpmn:incoming>
<bpmn:outgoing>Flow_Task_override_line__Gateway_override_line__if_end</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_approve_override" name="Approve an override that lowers tax" dodil:step="approve_override" dodil:approval="true">
<bpmn:documentation>By: Whoever is responsible for VAT (the owner, the bookkeeper, the accountant). From computed to computed. When: an override lowers the tax; the approver is not the person who overrode, unless override_approval is self_with_reason. An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_approve_override__if__Task_approve_override</bpmn:incoming>
<bpmn:outgoing>Flow_Task_approve_override__Gateway_approve_override__if_end</bpmn:outgoing>
</bpmn:userTask>
<bpmn:serviceTask id="Task_check_contents" name="Check the invoice contents" dodil:step="check_contents" implementation="##unspecified">
<bpmn:documentation>By: The system. From computed to computed. When: the document is about to issue (a sale) or be approved (a purchase). Effect: every para 16.3.1 gate as {gate, met, reason, fix}; for a purchase the supplier is the SUPPLIER (its name, address and VAT number on the bill) and we are the customer; v6, TAX-50: a purchase at or under simplified_invoice_threshold (gross including VAT) is a less detailed invoice (VAT Notice 700 para 16.6.1, VAT Regulations 1995 reg. 16): our name and address are not required and the title says so.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_check_contents__if__Task_check_contents</bpmn:incoming>
<bpmn:outgoing>Flow_Task_check_contents__Gateway_check_contents__if_end</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_freeze" name="Freeze the tax at issue" dodil:step="freeze" implementation="##unspecified">
<bpmn:documentation>By: The system. From computed to frozen. When: every readiness gate met: contents complete, no open suggestion, no override waiting for approval. Effect: never recomputed.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_check_contents__if_end__Task_freeze</bpmn:incoming>
<bpmn:outgoing>Flow_Task_freeze__End_document_tax_frozen</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="Gateway_ai_suggest_code__if" name="a line has no rule, or no product, and the step is on?">
<bpmn:incoming>Flow_Task_determine__Gateway_ai_suggest_code__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_ai_suggest_code__if__Task_ai_suggest_code</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_ai_suggest_code__if__Gateway_ai_suggest_code__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_ai_suggest_code__if_end">
<bpmn:incoming>Flow_Gateway_ai_suggest_code__if__Gateway_ai_suggest_code__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_ai_suggest_code__Gateway_ai_suggest_code__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_ai_suggest_code__if_end__Gateway_accept_tax_suggestion__if</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_accept_tax_suggestion__if" name="a suggestion is open on the line?">
<bpmn:incoming>Flow_Gateway_ai_suggest_code__if_end__Gateway_accept_tax_suggestion__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_accept_tax_suggestion__if__Task_accept_tax_suggestion</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_accept_tax_suggestion__if__Gateway_accept_tax_suggestion__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_accept_tax_suggestion__if_end">
<bpmn:incoming>Flow_Gateway_accept_tax_suggestion__if__Gateway_accept_tax_suggestion__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_accept_tax_suggestion__Gateway_accept_tax_suggestion__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_accept_tax_suggestion__if_end__Gateway_override_line__if</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_override_line__if" name="the biller disagrees with the rule's code?">
<bpmn:incoming>Flow_Gateway_accept_tax_suggestion__if_end__Gateway_override_line__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_override_line__if__Task_override_line</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_override_line__if__Gateway_override_line__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_override_line__if_end">
<bpmn:incoming>Flow_Gateway_override_line__if__Gateway_override_line__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_override_line__Gateway_override_line__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_override_line__if_end__Gateway_approve_override__if</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_approve_override__if" name="an override lowers the tax; the approver is not the person who overrode, unless override_approval is self_with_reason?">
<bpmn:incoming>Flow_Gateway_override_line__if_end__Gateway_approve_override__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_approve_override__if__Task_approve_override</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_approve_override__if__Gateway_approve_override__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_approve_override__if_end">
<bpmn:incoming>Flow_Gateway_approve_override__if__Gateway_approve_override__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_approve_override__Gateway_approve_override__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_approve_override__if_end__Gateway_check_contents__if</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_check_contents__if" name="the document is about to issue (a sale) or be approved (a purchase)?">
<bpmn:incoming>Flow_Gateway_approve_override__if_end__Gateway_check_contents__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_check_contents__if__Task_check_contents</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_check_contents__if__Gateway_check_contents__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_check_contents__if_end">
<bpmn:incoming>Flow_Gateway_check_contents__if__Gateway_check_contents__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_check_contents__Gateway_check_contents__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_check_contents__if_end__Task_freeze</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_document_tax_frozen" name="Document tax frozen">
<bpmn:incoming>Flow_Task_freeze__End_document_tax_frozen</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_document_tax__Task_determine" sourceRef="Start_document_tax" targetRef="Task_determine" />
<bpmn:sequenceFlow id="Flow_Gateway_ai_suggest_code__if__Task_ai_suggest_code" name="a line has no rule, or no product, and the step is on" sourceRef="Gateway_ai_suggest_code__if" targetRef="Task_ai_suggest_code" />
<bpmn:sequenceFlow id="Flow_Gateway_ai_suggest_code__if__Gateway_ai_suggest_code__if_end" name="otherwise" sourceRef="Gateway_ai_suggest_code__if" targetRef="Gateway_ai_suggest_code__if_end" />
<bpmn:sequenceFlow id="Flow_Task_ai_suggest_code__Gateway_ai_suggest_code__if_end" sourceRef="Task_ai_suggest_code" targetRef="Gateway_ai_suggest_code__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_accept_tax_suggestion__if__Task_accept_tax_suggestion" name="a suggestion is open on the line" sourceRef="Gateway_accept_tax_suggestion__if" targetRef="Task_accept_tax_suggestion" />
<bpmn:sequenceFlow id="Flow_Gateway_accept_tax_suggestion__if__Gateway_accept_tax_suggestion__if_end" name="otherwise" sourceRef="Gateway_accept_tax_suggestion__if" targetRef="Gateway_accept_tax_suggestion__if_end" />
<bpmn:sequenceFlow id="Flow_Task_accept_tax_suggestion__Gateway_accept_tax_suggestion__if_end" sourceRef="Task_accept_tax_suggestion" targetRef="Gateway_accept_tax_suggestion__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_override_line__if__Task_override_line" name="the biller disagrees with the rule's code" sourceRef="Gateway_override_line__if" targetRef="Task_override_line" />
<bpmn:sequenceFlow id="Flow_Gateway_override_line__if__Gateway_override_line__if_end" name="otherwise" sourceRef="Gateway_override_line__if" targetRef="Gateway_override_line__if_end" />
<bpmn:sequenceFlow id="Flow_Task_override_line__Gateway_override_line__if_end" sourceRef="Task_override_line" targetRef="Gateway_override_line__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_approve_override__if__Task_approve_override" name="an override lowers the tax; the approver is not the person who overrode, unless override_approval is self_with_reason" sourceRef="Gateway_approve_override__if" targetRef="Task_approve_override" />
<bpmn:sequenceFlow id="Flow_Gateway_approve_override__if__Gateway_approve_override__if_end" name="otherwise" sourceRef="Gateway_approve_override__if" targetRef="Gateway_approve_override__if_end" />
<bpmn:sequenceFlow id="Flow_Task_approve_override__Gateway_approve_override__if_end" sourceRef="Task_approve_override" targetRef="Gateway_approve_override__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_check_contents__if__Task_check_contents" name="the document is about to issue (a sale) or be approved (a purchase)" sourceRef="Gateway_check_contents__if" targetRef="Task_check_contents" />
<bpmn:sequenceFlow id="Flow_Gateway_check_contents__if__Gateway_check_contents__if_end" name="otherwise" sourceRef="Gateway_check_contents__if" targetRef="Gateway_check_contents__if_end" />
<bpmn:sequenceFlow id="Flow_Task_check_contents__Gateway_check_contents__if_end" sourceRef="Task_check_contents" targetRef="Gateway_check_contents__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_ai_suggest_code__if_end__Gateway_accept_tax_suggestion__if" sourceRef="Gateway_ai_suggest_code__if_end" targetRef="Gateway_accept_tax_suggestion__if" />
<bpmn:sequenceFlow id="Flow_Gateway_accept_tax_suggestion__if_end__Gateway_override_line__if" sourceRef="Gateway_accept_tax_suggestion__if_end" targetRef="Gateway_override_line__if" />
<bpmn:sequenceFlow id="Flow_Gateway_override_line__if_end__Gateway_approve_override__if" sourceRef="Gateway_override_line__if_end" targetRef="Gateway_approve_override__if" />
<bpmn:sequenceFlow id="Flow_Gateway_approve_override__if_end__Gateway_check_contents__if" sourceRef="Gateway_approve_override__if_end" targetRef="Gateway_check_contents__if" />
<bpmn:sequenceFlow id="Flow_Gateway_check_contents__if_end__Task_freeze" sourceRef="Gateway_check_contents__if_end" targetRef="Task_freeze" />
<bpmn:sequenceFlow id="Flow_Task_determine__Gateway_ai_suggest_code__if" sourceRef="Task_determine" targetRef="Gateway_ai_suggest_code__if" />
<bpmn:sequenceFlow id="Flow_Task_freeze__End_document_tax_frozen" sourceRef="Task_freeze" targetRef="End_document_tax_frozen" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_tax_v6">
<bpmndi:BPMNPlane id="BPMNPlane_tax_v6" bpmnElement="Collaboration_tax_v6">
<bpmndi:BPMNShape id="Participant_tax_document_tax_di" bpmnElement="Participant_tax_document_tax" isHorizontal="true">
<dc:Bounds x="0" y="0" width="2490" height="780" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_document_tax_system_di" bpmnElement="Lane_document_tax_system" isHorizontal="true">
<dc:Bounds x="30" y="0" width="2460" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_document_tax_biller_di" bpmnElement="Lane_document_tax_biller" isHorizontal="true">
<dc:Bounds x="30" y="260" width="2460" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_document_tax_tax_admin_di" bpmnElement="Lane_document_tax_tax_admin" isHorizontal="true">
<dc:Bounds x="30" y="520" width="2460" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_document_tax_di" bpmnElement="Start_document_tax">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_determine_di" bpmnElement="Task_determine">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_ai_suggest_code_di" bpmnElement="Task_ai_suggest_code">
<dc:Bounds x="635" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_accept_tax_suggestion_di" bpmnElement="Task_accept_tax_suggestion">
<dc:Bounds x="975" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_override_line_di" bpmnElement="Task_override_line">
<dc:Bounds x="1315" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_approve_override_di" bpmnElement="Task_approve_override">
<dc:Bounds x="1655" y="540" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_check_contents_di" bpmnElement="Task_check_contents">
<dc:Bounds x="1995" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_freeze_di" bpmnElement="Task_freeze">
<dc:Bounds x="2165" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_ai_suggest_code__if_di" bpmnElement="Gateway_ai_suggest_code__if">
<dc:Bounds x="490" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_ai_suggest_code__if_end_di" bpmnElement="Gateway_ai_suggest_code__if_end">
<dc:Bounds x="660" y="155" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_accept_tax_suggestion__if_di" bpmnElement="Gateway_accept_tax_suggestion__if">
<dc:Bounds x="830" y="295" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_accept_tax_suggestion__if_end_di" bpmnElement="Gateway_accept_tax_suggestion__if_end">
<dc:Bounds x="1000" y="415" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_override_line__if_di" bpmnElement="Gateway_override_line__if">
<dc:Bounds x="1170" y="295" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_override_line__if_end_di" bpmnElement="Gateway_override_line__if_end">
<dc:Bounds x="1340" y="415" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_approve_override__if_di" bpmnElement="Gateway_approve_override__if">
<dc:Bounds x="1510" y="555" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_approve_override__if_end_di" bpmnElement="Gateway_approve_override__if_end">
<dc:Bounds x="1680" y="675" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_check_contents__if_di" bpmnElement="Gateway_check_contents__if">
<dc:Bounds x="1850" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_check_contents__if_end_di" bpmnElement="Gateway_check_contents__if_end">
<dc:Bounds x="2020" y="155" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_document_tax_frozen_di" bpmnElement="End_document_tax_frozen">
<dc:Bounds x="2367" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_document_tax__Task_determine_di" bpmnElement="Flow_Start_document_tax__Task_determine">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_ai_suggest_code__if__Task_ai_suggest_code_di" bpmnElement="Flow_Gateway_ai_suggest_code__if__Task_ai_suggest_code">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_ai_suggest_code__if__Gateway_ai_suggest_code__if_end_di" bpmnElement="Flow_Gateway_ai_suggest_code__if__Gateway_ai_suggest_code__if_end">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
<di:waypoint x="635" y="180" />
<di:waypoint x="660" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_ai_suggest_code__Gateway_ai_suggest_code__if_end_di" bpmnElement="Flow_Task_ai_suggest_code__Gateway_ai_suggest_code__if_end">
<di:waypoint x="685" y="100" />
<di:waypoint x="685" y="220" />
<di:waypoint x="685" y="220" />
<di:waypoint x="685" y="205" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_accept_tax_suggestion__if__Task_accept_tax_suggestion_di" bpmnElement="Flow_Gateway_accept_tax_suggestion__if__Task_accept_tax_suggestion">
<di:waypoint x="880" y="320" />
<di:waypoint x="975" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_accept_tax_suggestion__if__Gateway_accept_tax_suggestion__if_end_di" bpmnElement="Flow_Gateway_accept_tax_suggestion__if__Gateway_accept_tax_suggestion__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_accept_tax_suggestion__Gateway_accept_tax_suggestion__if_end_di" bpmnElement="Flow_Task_accept_tax_suggestion__Gateway_accept_tax_suggestion__if_end">
<di:waypoint x="1025" y="360" />
<di:waypoint x="1025" y="486" />
<di:waypoint x="1025" y="486" />
<di:waypoint x="1025" y="465" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_override_line__if__Task_override_line_di" bpmnElement="Flow_Gateway_override_line__if__Task_override_line">
<di:waypoint x="1220" y="320" />
<di:waypoint x="1315" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_override_line__if__Gateway_override_line__if_end_di" bpmnElement="Flow_Gateway_override_line__if__Gateway_override_line__if_end">
<di:waypoint x="1220" y="320" />
<di:waypoint x="1315" y="320" />
<di:waypoint x="1315" y="440" />
<di:waypoint x="1340" y="440" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_override_line__Gateway_override_line__if_end_di" bpmnElement="Flow_Task_override_line__Gateway_override_line__if_end">
<di:waypoint x="1365" y="360" />
<di:waypoint x="1365" y="492" />
<di:waypoint x="1365" y="492" />
<di:waypoint x="1365" y="465" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_approve_override__if__Task_approve_override_di" bpmnElement="Flow_Gateway_approve_override__if__Task_approve_override">
<di:waypoint x="1560" y="580" />
<di:waypoint x="1655" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_approve_override__if__Gateway_approve_override__if_end_di" bpmnElement="Flow_Gateway_approve_override__if__Gateway_approve_override__if_end">
<di:waypoint x="1560" y="580" />
<di:waypoint x="1655" y="580" />
<di:waypoint x="1655" y="700" />
<di:waypoint x="1680" y="700" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_approve_override__Gateway_approve_override__if_end_di" bpmnElement="Flow_Task_approve_override__Gateway_approve_override__if_end">
<di:waypoint x="1705" y="620" />
<di:waypoint x="1705" y="758" />
<di:waypoint x="1705" y="758" />
<di:waypoint x="1705" y="725" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_check_contents__if__Task_check_contents_di" bpmnElement="Flow_Gateway_check_contents__if__Task_check_contents">
<di:waypoint x="1900" y="60" />
<di:waypoint x="1995" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_check_contents__if__Gateway_check_contents__if_end_di" bpmnElement="Flow_Gateway_check_contents__if__Gateway_check_contents__if_end">
<di:waypoint x="1900" y="60" />
<di:waypoint x="1995" y="60" />
<di:waypoint x="1995" y="180" />
<di:waypoint x="2020" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_check_contents__Gateway_check_contents__if_end_di" bpmnElement="Flow_Task_check_contents__Gateway_check_contents__if_end">
<di:waypoint x="2045" y="100" />
<di:waypoint x="2045" y="220" />
<di:waypoint x="2045" y="220" />
<di:waypoint x="2045" y="205" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_ai_suggest_code__if_end__Gateway_accept_tax_suggestion__if_di" bpmnElement="Flow_Gateway_ai_suggest_code__if_end__Gateway_accept_tax_suggestion__if">
<di:waypoint x="710" y="180" />
<di:waypoint x="805" y="180" />
<di:waypoint x="805" y="320" />
<di:waypoint x="830" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_accept_tax_suggestion__if_end__Gateway_override_line__if_di" bpmnElement="Flow_Gateway_accept_tax_suggestion__if_end__Gateway_override_line__if">
<di:waypoint x="1050" y="440" />
<di:waypoint x="1145" y="440" />
<di:waypoint x="1145" y="320" />
<di:waypoint x="1170" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_override_line__if_end__Gateway_approve_override__if_di" bpmnElement="Flow_Gateway_override_line__if_end__Gateway_approve_override__if">
<di:waypoint x="1390" y="440" />
<di:waypoint x="1485" y="440" />
<di:waypoint x="1485" y="580" />
<di:waypoint x="1510" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_approve_override__if_end__Gateway_check_contents__if_di" bpmnElement="Flow_Gateway_approve_override__if_end__Gateway_check_contents__if">
<di:waypoint x="1730" y="700" />
<di:waypoint x="1825" y="700" />
<di:waypoint x="1825" y="60" />
<di:waypoint x="1850" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_check_contents__if_end__Task_freeze_di" bpmnElement="Flow_Gateway_check_contents__if_end__Task_freeze">
<di:waypoint x="2070" y="180" />
<di:waypoint x="2140" y="180" />
<di:waypoint x="2140" y="60" />
<di:waypoint x="2165" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_determine__Gateway_ai_suggest_code__if_di" bpmnElement="Flow_Task_determine__Gateway_ai_suggest_code__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="490" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_freeze__End_document_tax_frozen_di" bpmnElement="Flow_Task_freeze__End_document_tax_frozen">
<di:waypoint x="2265" y="60" />
<di:waypoint x="2367" y="60" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>