dodil/erp-method

modules/tax/signoff/tax/history/tax_registration.v1.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_v1" 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_v1">
  <bpmn:documentation>Tax (VAT): one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_tax_registration" name="Registration" processRef="Process_tax_registration_v1" />
 </bpmn:collaboration>
 <bpmn:process id="Process_tax_registration_v1" name="Registration" isExecutable="false">
  <bpmn:documentation>Lifecycle of the registration, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: not_registered, registered, deregistered.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_registration">
   <bpmn:lane id="Lane_registration_tax_admin" name="Whoever is responsible for VAT (the owner, the bookkeeper, the accountant)">
    <bpmn:flowNodeRef>Start_registration</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_record_not_registered</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_register</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_record_registered</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_deregister</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_registration_none__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_registration_deregistered</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_registration" name="Registration needed">
   <bpmn:outgoing>Flow_Start_registration__Gateway_registration_none__if</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_record_not_registered" name="Record that we are not registered" dodil:step="record_not_registered">
   <bpmn:documentation>By: Whoever is responsible for VAT (the owner, the bookkeeper, the accountant). From none to not_registered. Effect: documents charge no VAT and are not titled VAT invoice.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_registration_none__if__Task_record_not_registered</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_record_not_registered__Task_register</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_register" name="Record our VAT registration" dodil:step="register">
   <bpmn:documentation>By: Whoever is responsible for VAT (the owner, the bookkeeper, the accountant). From not_registered to registered. When: a VAT number and an effective date. Requires: vat_number. Effect: tax points from that date charge VAT.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_record_not_registered__Task_register</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_register__Task_deregister</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_record_registered" name="Record an existing registration" dodil:step="record_registered">
   <bpmn:documentation>By: Whoever is responsible for VAT (the owner, the bookkeeper, the accountant). From none to registered. Requires: vat_number.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_registration_none__if__Task_record_registered</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_record_registered__Task_deregister</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_deregister" name="Record deregistration" dodil:step="deregister" dodil:approval="true">
   <bpmn:documentation>By: Whoever is responsible for VAT (the owner, the bookkeeper, the accountant). From registered to deregistered. Requires: effective_date. An approval.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_register__Task_deregister</bpmn:incoming>
   <bpmn:incoming>Flow_Task_record_registered__Task_deregister</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_deregister__End_registration_deregistered</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_registration_none__if" name="New registration?">
   <bpmn:incoming>Flow_Start_registration__Gateway_registration_none__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_registration_none__if__Task_record_not_registered</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_registration_none__if__Task_record_registered</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_registration_deregistered" name="Registration deregistered">
   <bpmn:incoming>Flow_Task_deregister__End_registration_deregistered</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Gateway_registration_none__if__Task_record_not_registered" sourceRef="Gateway_registration_none__if" targetRef="Task_record_not_registered" />
  <bpmn:sequenceFlow id="Flow_Gateway_registration_none__if__Task_record_registered" sourceRef="Gateway_registration_none__if" targetRef="Task_record_registered" />
  <bpmn:sequenceFlow id="Flow_Start_registration__Gateway_registration_none__if" sourceRef="Start_registration" targetRef="Gateway_registration_none__if" />
  <bpmn:sequenceFlow id="Flow_Task_record_not_registered__Task_register" sourceRef="Task_record_not_registered" targetRef="Task_register" />
  <bpmn:sequenceFlow id="Flow_Task_register__Task_deregister" sourceRef="Task_register" targetRef="Task_deregister" />
  <bpmn:sequenceFlow id="Flow_Task_record_registered__Task_deregister" sourceRef="Task_record_registered" targetRef="Task_deregister" />
  <bpmn:sequenceFlow id="Flow_Task_deregister__End_registration_deregistered" sourceRef="Task_deregister" targetRef="End_registration_deregistered" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_tax_v1">
  <bpmndi:BPMNPlane id="BPMNPlane_tax_v1" bpmnElement="Collaboration_tax_v1">
   <bpmndi:BPMNShape id="Participant_tax_registration_di" bpmnElement="Participant_tax_registration" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="960" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_registration_tax_admin_di" bpmnElement="Lane_registration_tax_admin" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="930" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_registration_di" bpmnElement="Start_registration">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_record_not_registered_di" bpmnElement="Task_record_not_registered">
    <dc:Bounds x="465" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_register_di" bpmnElement="Task_register">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_record_registered_di" bpmnElement="Task_record_registered">
    <dc:Bounds x="465" y="140" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_deregister_di" bpmnElement="Task_deregister">
    <dc:Bounds x="635" y="140" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_registration_none__if_di" bpmnElement="Gateway_registration_none__if">
    <dc:Bounds x="320" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_registration_deregistered_di" bpmnElement="End_registration_deregistered">
    <dc:Bounds x="837" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Gateway_registration_none__if__Task_record_not_registered_di" bpmnElement="Flow_Gateway_registration_none__if__Task_record_not_registered">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="465" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_registration_none__if__Task_record_registered_di" bpmnElement="Flow_Gateway_registration_none__if__Task_record_registered">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="440" y="60" />
    <di:waypoint x="440" y="180" />
    <di:waypoint x="465" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Start_registration__Gateway_registration_none__if_di" bpmnElement="Flow_Start_registration__Gateway_registration_none__if">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="320" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_record_not_registered__Task_register_di" bpmnElement="Flow_Task_record_not_registered__Task_register">
    <di:waypoint x="565" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_register__Task_deregister_di" bpmnElement="Flow_Task_register__Task_deregister">
    <di:waypoint x="685" y="100" />
    <di:waypoint x="685" y="235" />
    <di:waypoint x="685" y="235" />
    <di:waypoint x="685" y="220" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_record_registered__Task_deregister_di" bpmnElement="Flow_Task_record_registered__Task_deregister">
    <di:waypoint x="565" y="180" />
    <di:waypoint x="635" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_deregister__End_registration_deregistered_di" bpmnElement="Flow_Task_deregister__End_registration_deregistered">
    <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>