dodil/erp-method
modules/pos/signoff/pos/pos_shop_day.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_pos_v2" name="Point of sale (shops and tills) processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_pos_v2">
<bpmn:documentation>Point of sale (shops and tills): one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_pos_shop_day" name="Shop day" processRef="Process_pos_shop_day_v2" />
</bpmn:collaboration>
<bpmn:process id="Process_pos_shop_day_v2" name="Shop day" isExecutable="false">
<bpmn:documentation>Lifecycle of the shop day, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: open, ready, posted, stale, post_failed. Note: stale -> posted is the supplement, never a repost: the posted journal is not touched</bpmn:documentation>
<bpmn:laneSet id="LaneSet_shop_day">
<bpmn:lane id="Lane_shop_day_system" name="The system">
<bpmn:flowNodeRef>Start_shop_day</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_derive_day_ready</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_post_day</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_fail_day_post</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_mark_day_stale</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_post_supplement</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_shop_day_ready__if</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_shop_day" name="Shop day open">
<bpmn:outgoing>Flow_Start_shop_day__Task_derive_day_ready</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:serviceTask id="Task_derive_day_ready" name="Day ready" dodil:step="derive_day_ready" implementation="##unspecified">
<bpmn:documentation>By: The system. From open to ready. When: every session of the shop and date closed or force-closed; differences approved.</bpmn:documentation>
<bpmn:incoming>Flow_Start_shop_day__Task_derive_day_ready</bpmn:incoming>
<bpmn:outgoing>Flow_Task_derive_day_ready__Gateway_shop_day_ready__if</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:task id="Task_post_day" name="Post the day" dodil:step="post_day">
<bpmn:documentation>By: The system or Retail accountant. From ready / post_failed to posted. When: tax agrees or the accountant accepted the printed amounts; the gl period open. Effect: one summary journal (POS-20).</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_shop_day_ready__if__Task_post_day</bpmn:incoming>
<bpmn:incoming>Flow_Task_fail_day_post__Task_post_day</bpmn:incoming>
<bpmn:outgoing>Flow_Task_post_day__Task_mark_day_stale</bpmn:outgoing>
</bpmn:task>
<bpmn:serviceTask id="Task_fail_day_post" name="Posting refused" dodil:step="fail_day_post" implementation="##unspecified">
<bpmn:documentation>By: The system. From ready to post_failed. Effect: gl's gate and reason kept.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_shop_day_ready__if__Task_fail_day_post</bpmn:incoming>
<bpmn:outgoing>Flow_Task_fail_day_post__Task_post_day</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_mark_day_stale" name="A late receipt arrived" dodil:step="mark_day_stale" implementation="##unspecified">
<bpmn:documentation>By: The system. From posted to stale. Effect: supplement n+1 pending.</bpmn:documentation>
<bpmn:incoming>Flow_Task_post_day__Task_mark_day_stale</bpmn:incoming>
<bpmn:incoming>Flow_Task_post_supplement__Task_mark_day_stale</bpmn:incoming>
<bpmn:outgoing>Flow_Task_mark_day_stale__Task_post_supplement</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_post_supplement" name="Post the supplement" dodil:step="post_supplement" implementation="##unspecified">
<bpmn:documentation>By: The system. From stale to posted. Effect: supplement journal for the difference only.</bpmn:documentation>
<bpmn:incoming>Flow_Task_mark_day_stale__Task_post_supplement</bpmn:incoming>
<bpmn:outgoing>Flow_Task_post_supplement__Task_mark_day_stale</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="Gateway_shop_day_ready__if" name="Shop day ready: what next?">
<bpmn:incoming>Flow_Task_derive_day_ready__Gateway_shop_day_ready__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_shop_day_ready__if__Task_post_day</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_shop_day_ready__if__Task_fail_day_post</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_Start_shop_day__Task_derive_day_ready" sourceRef="Start_shop_day" targetRef="Task_derive_day_ready" />
<bpmn:sequenceFlow id="Flow_Gateway_shop_day_ready__if__Task_post_day" sourceRef="Gateway_shop_day_ready__if" targetRef="Task_post_day" />
<bpmn:sequenceFlow id="Flow_Gateway_shop_day_ready__if__Task_fail_day_post" sourceRef="Gateway_shop_day_ready__if" targetRef="Task_fail_day_post" />
<bpmn:sequenceFlow id="Flow_Task_derive_day_ready__Gateway_shop_day_ready__if" sourceRef="Task_derive_day_ready" targetRef="Gateway_shop_day_ready__if" />
<bpmn:sequenceFlow id="Flow_Task_post_day__Task_mark_day_stale" sourceRef="Task_post_day" targetRef="Task_mark_day_stale" />
<bpmn:sequenceFlow id="Flow_Task_fail_day_post__Task_post_day" sourceRef="Task_fail_day_post" targetRef="Task_post_day" />
<bpmn:sequenceFlow id="Flow_Task_mark_day_stale__Task_post_supplement" sourceRef="Task_mark_day_stale" targetRef="Task_post_supplement" />
<bpmn:sequenceFlow id="Flow_Task_post_supplement__Task_mark_day_stale" sourceRef="Task_post_supplement" targetRef="Task_mark_day_stale" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_pos_v2">
<bpmndi:BPMNPlane id="BPMNPlane_pos_v2" bpmnElement="Collaboration_pos_v2">
<bpmndi:BPMNShape id="Participant_pos_shop_day_di" bpmnElement="Participant_pos_shop_day" isHorizontal="true">
<dc:Bounds x="0" y="0" width="1130" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_shop_day_system_di" bpmnElement="Lane_shop_day_system" isHorizontal="true">
<dc:Bounds x="30" y="0" width="1100" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_shop_day_di" bpmnElement="Start_shop_day">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_derive_day_ready_di" bpmnElement="Task_derive_day_ready">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_post_day_di" bpmnElement="Task_post_day">
<dc:Bounds x="635" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_fail_day_post_di" bpmnElement="Task_fail_day_post">
<dc:Bounds x="635" y="140" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_mark_day_stale_di" bpmnElement="Task_mark_day_stale">
<dc:Bounds x="805" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_post_supplement_di" bpmnElement="Task_post_supplement">
<dc:Bounds x="975" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_shop_day_ready__if_di" bpmnElement="Gateway_shop_day_ready__if">
<dc:Bounds x="490" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_shop_day__Task_derive_day_ready_di" bpmnElement="Flow_Start_shop_day__Task_derive_day_ready">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_shop_day_ready__if__Task_post_day_di" bpmnElement="Flow_Gateway_shop_day_ready__if__Task_post_day">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_shop_day_ready__if__Task_fail_day_post_di" bpmnElement="Flow_Gateway_shop_day_ready__if__Task_fail_day_post">
<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_derive_day_ready__Gateway_shop_day_ready__if_di" bpmnElement="Flow_Task_derive_day_ready__Gateway_shop_day_ready__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="490" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_post_day__Task_mark_day_stale_di" bpmnElement="Flow_Task_post_day__Task_mark_day_stale">
<di:waypoint x="735" y="60" />
<di:waypoint x="805" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_fail_day_post__Task_post_day_di" bpmnElement="Flow_Task_fail_day_post__Task_post_day">
<di:waypoint x="685" y="220" />
<di:waypoint x="685" y="235" />
<di:waypoint x="685" y="235" />
<di:waypoint x="685" y="100" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_mark_day_stale__Task_post_supplement_di" bpmnElement="Flow_Task_mark_day_stale__Task_post_supplement">
<di:waypoint x="905" y="60" />
<di:waypoint x="975" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_post_supplement__Task_mark_day_stale_di" bpmnElement="Flow_Task_post_supplement__Task_mark_day_stale">
<di:waypoint x="1025" y="100" />
<di:waypoint x="1025" y="121" />
<di:waypoint x="855" y="121" />
<di:waypoint x="855" y="100" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>