382 lines
19 KiB
Plaintext
Raw Normal View History

<?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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:collaboration id="Collaboration_1oy6pez">
<bpmn:participant id="Participant_18wtn68" processRef="Process_0ond9d9" />
</bpmn:collaboration>
<bpmn:process id="Process_0ond9d9">
<bpmn:laneSet id="LaneSet_1hqh8tl">
<bpmn:lane id="Lane_0t8fv8y" name="TFC Clerks">
<bpmn:flowNodeRef>Event_1v4k3r9</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_136xnz4</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_005mbg4</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1utg2n7</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1m7u7di</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0740nq5</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_1ew0edc</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1lpdsjc</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0x2ofau</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_01s4kt0" name="Issue Approvers">
<bpmn:flowNodeRef>Activity_1wcbodo</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_0ez3am0</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_0nudu75" name="SASD Clerks">
<bpmn:flowNodeRef>Activity_0ejewop</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_1be7bb7</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0rb7t6w</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1uw3xcu</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_1i3bmtb</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Event_1v4k3r9">
<bpmn:outgoing>Flow_047ap3u</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Activity_136xnz4" name="Collect Documents">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser># Following Documents Collected
-----------
- CIN
- Auth letter
</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="checkingdocs-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="checkingdocs-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_047ap3u</bpmn:incoming>
<bpmn:outgoing>Flow_0okvtru</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_047ap3u" sourceRef="Event_1v4k3r9" targetRef="Activity_136xnz4" />
<bpmn:sequenceFlow id="Flow_0okvtru" sourceRef="Activity_136xnz4" targetRef="Gateway_005mbg4" />
<bpmn:exclusiveGateway id="Gateway_005mbg4" default="Flow_156qez4">
<bpmn:incoming>Flow_0okvtru</bpmn:incoming>
<bpmn:outgoing>Flow_1frafk5</bpmn:outgoing>
<bpmn:outgoing>Flow_156qez4</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1frafk5" name="Documents Collected" sourceRef="Gateway_005mbg4" targetRef="Activity_1wcbodo">
<bpmn:conditionExpression>documents_collected=='Yes'</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_156qez4" sourceRef="Gateway_005mbg4" targetRef="Event_1ew0edc" />
<bpmn:sequenceFlow id="Flow_1kuk5xj" sourceRef="Activity_1wcbodo" targetRef="Gateway_0ez3am0" />
<bpmn:userTask id="Activity_1wcbodo" name="Approve request of receiving equipment">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser># Acceptance Form
We have received equipment to receive at Trafic branch, please see the following details
</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="adminapproval-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="adminapproval-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1frafk5</bpmn:incoming>
<bpmn:outgoing>Flow_1kuk5xj</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_0ez3am0" default="Flow_1a0gemd">
<bpmn:incoming>Flow_1kuk5xj</bpmn:incoming>
<bpmn:outgoing>Flow_0x21rlw</bpmn:outgoing>
<bpmn:outgoing>Flow_1a0gemd</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0x21rlw" name="Admin approved" sourceRef="Gateway_0ez3am0" targetRef="Activity_1utg2n7">
<bpmn:conditionExpression>admin_approval_documents=='Yes'</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1a0gemd" sourceRef="Gateway_0ez3am0" targetRef="Event_1ew0edc" />
<bpmn:manualTask id="Activity_1utg2n7" name="Admin approval">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser># Form Acceptance
Admin has approved the request to receive equipment at traffic branch</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0x21rlw</bpmn:incoming>
<bpmn:outgoing>Flow_0g3zzkk</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:sequenceFlow id="Flow_0g3zzkk" sourceRef="Activity_1utg2n7" targetRef="Activity_0740nq5" />
<bpmn:userTask id="Activity_1m7u7di" name="Endorse DRS">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>
# Endorse DRS
Please fill the following form to endorse DRS for equipment receipt procedure</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="drs-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="drs-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0y27t43</bpmn:incoming>
<bpmn:outgoing>Flow_13r09ut</bpmn:outgoing>
</bpmn:userTask>
<bpmn:scriptTask id="Activity_0740nq5" name="Script to generate random DRS number">
<bpmn:incoming>Flow_0g3zzkk</bpmn:incoming>
<bpmn:outgoing>Flow_0y27t43</bpmn:outgoing>
<bpmn:script>from random import randint
drs_no = f"REB-24-{randint(0, 999999):06}"
</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0y27t43" sourceRef="Activity_0740nq5" targetRef="Activity_1m7u7di" />
<bpmn:endEvent id="Event_1ew0edc">
<bpmn:incoming>Flow_156qez4</bpmn:incoming>
<bpmn:incoming>Flow_1a0gemd</bpmn:incoming>
<bpmn:incoming>Flow_1bc2puj</bpmn:incoming>
<bpmn:incoming>Flow_0nr7yo5</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_13r09ut" sourceRef="Activity_1m7u7di" targetRef="Activity_1lpdsjc" />
<bpmn:userTask id="Activity_1lpdsjc" name="Select Timer Value">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser># Select Timer Value
Select time it should take for store to reach SASD Gate area
A **time duration** defined as ISO 8601 durations format.
- PT15S - 15 seconds
- PT1H30M - 1 hour and 30 minutes
- P14D - 14 days</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="timertfc-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="timertfc-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_13r09ut</bpmn:incoming>
<bpmn:outgoing>Flow_1c2eg26</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1c2eg26" sourceRef="Activity_1lpdsjc" targetRef="Activity_0x2ofau" />
<bpmn:scriptTask id="Activity_0x2ofau">
<bpmn:incoming>Flow_1c2eg26</bpmn:incoming>
<bpmn:outgoing>Flow_1fo1w71</bpmn:outgoing>
<bpmn:script>hours = 0
minutes = 0
seconds = 0
if 'H' in timer_value_tfc:
hours_str = timer_value_tfc.split('H')[0][2:]
hours = int(hours_str) if hours_str.isdigit() else 0
if 'M' in timer_value_tfc:
minutes_str = timer_value_tfc.split('M')[0][-2:]
minutes = int(minutes_str) if minutes_str.isdigit() else 0
if 'S' in timer_value_tfc:
seconds_str = timer_value_tfc.split('S')[0][-2:]
seconds = int(seconds_str) if seconds_str.isdigit() else 0
</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1fo1w71" sourceRef="Activity_0x2ofau" targetRef="Activity_0ejewop" />
<bpmn:userTask id="Activity_0ejewop" name="Receipt of equipment">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>TFC Clerk has approved the receipt of the equipment
Timer value is : {{hours}} Hour, {{minutes}} Minutes , {{seconds}} Seconds
</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="sasdreceiveapproval-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="sasdreceiveapproval-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1fo1w71</bpmn:incoming>
<bpmn:outgoing>Flow_0hcdtwt</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1oa3o7j" sourceRef="Activity_1uw3xcu" targetRef="Activity_0rb7t6w" />
<bpmn:sequenceFlow id="Flow_1bc2puj" sourceRef="Activity_0rb7t6w" targetRef="Event_1ew0edc" />
<bpmn:exclusiveGateway id="Gateway_1be7bb7" default="Flow_0nr7yo5">
<bpmn:incoming>Flow_0hcdtwt</bpmn:incoming>
<bpmn:outgoing>Flow_0hvrs0q</bpmn:outgoing>
<bpmn:outgoing>Flow_0nr7yo5</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0hcdtwt" sourceRef="Activity_0ejewop" targetRef="Gateway_1be7bb7" />
<bpmn:userTask id="Activity_0rb7t6w" name="Fill CRV Form">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="crv-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="crv-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1oa3o7j</bpmn:incoming>
<bpmn:outgoing>Flow_1bc2puj</bpmn:outgoing>
</bpmn:userTask>
<bpmn:scriptTask id="Activity_1uw3xcu" name="Script to generate random CRV number">
<bpmn:incoming>Flow_0hvrs0q</bpmn:incoming>
<bpmn:outgoing>Flow_1oa3o7j</bpmn:outgoing>
<bpmn:script>from random import randint
crv = f"CRV-24-{randint(0, 999999):06}"
</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0hvrs0q" name="SASD Received the equipment" sourceRef="Gateway_1be7bb7" targetRef="Activity_1uw3xcu">
<bpmn:conditionExpression>sasd_approval=='Yes'</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0nr7yo5" sourceRef="Gateway_1be7bb7" targetRef="Event_1ew0edc" />
<bpmn:boundaryEvent id="Event_1i3bmtb" attachedToRef="Activity_0ejewop">
<bpmn:timerEventDefinition id="TimerEventDefinition_13wo3jl">
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">timer_value_tfc</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:boundaryEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1oy6pez">
<bpmndi:BPMNShape id="Participant_18wtn68_di" bpmnElement="Participant_18wtn68" isHorizontal="true">
<dc:Bounds x="380" y="150" width="1810" height="540" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0nudu75_di" bpmnElement="Lane_0nudu75" isHorizontal="true">
<dc:Bounds x="410" y="520" width="1780" height="170" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_01s4kt0_di" bpmnElement="Lane_01s4kt0" isHorizontal="true">
<dc:Bounds x="410" y="400" width="1780" height="120" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0t8fv8y_di" bpmnElement="Lane_0t8fv8y" isHorizontal="true">
<dc:Bounds x="410" y="150" width="1780" height="250" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1v4k3r9_di" bpmnElement="Event_1v4k3r9">
<dc:Bounds x="462" y="252" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ktohbg_di" bpmnElement="Activity_136xnz4">
<dc:Bounds x="540" y="230" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_005mbg4_di" bpmnElement="Gateway_005mbg4" isMarkerVisible="true">
<dc:Bounds x="675" y="205" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1k8im77_di" bpmnElement="Activity_1wcbodo">
<dc:Bounds x="780" y="420" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0ez3am0_di" bpmnElement="Gateway_0ez3am0" isMarkerVisible="true">
<dc:Bounds x="1035" y="435" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0kvk2yo_di" bpmnElement="Activity_1utg2n7">
<dc:Bounds x="1010" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1b0pxwz_di" bpmnElement="Activity_1m7u7di">
<dc:Bounds x="1310" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0go3d7x_di" bpmnElement="Activity_0740nq5">
<dc:Bounds x="1160" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ew0edc_di" bpmnElement="Event_1ew0edc">
<dc:Bounds x="2032" y="292" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1uzey89_di" bpmnElement="Activity_1lpdsjc">
<dc:Bounds x="1460" y="270" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0bg5mqf_di" bpmnElement="Activity_0x2ofau">
<dc:Bounds x="1610" y="270" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1lwtflo_di" bpmnElement="Activity_0ejewop">
<dc:Bounds x="890" y="570" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1be7bb7_di" bpmnElement="Gateway_1be7bb7" isMarkerVisible="true">
<dc:Bounds x="1045" y="585" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1kqxtvj_di" bpmnElement="Activity_0rb7t6w">
<dc:Bounds x="1390" y="570" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ubats6_di" bpmnElement="Activity_1uw3xcu">
<dc:Bounds x="1260" y="570" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0st3rds_di" bpmnElement="Event_1i3bmtb">
<dc:Bounds x="922" y="632" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_047ap3u_di" bpmnElement="Flow_047ap3u">
<di:waypoint x="498" y="270" />
<di:waypoint x="540" y="270" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0okvtru_di" bpmnElement="Flow_0okvtru">
<di:waypoint x="640" y="270" />
<di:waypoint x="658" y="270" />
<di:waypoint x="658" y="230" />
<di:waypoint x="675" y="230" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1frafk5_di" bpmnElement="Flow_1frafk5">
<di:waypoint x="700" y="255" />
<di:waypoint x="700" y="460" />
<di:waypoint x="780" y="460" />
<bpmndi:BPMNLabel>
<dc:Bounds x="711" y="428" width="57" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_156qez4_di" bpmnElement="Flow_156qez4">
<di:waypoint x="725" y="230" />
<di:waypoint x="2050" y="230" />
<di:waypoint x="2050" y="292" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1kuk5xj_di" bpmnElement="Flow_1kuk5xj">
<di:waypoint x="880" y="460" />
<di:waypoint x="1035" y="460" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0x21rlw_di" bpmnElement="Flow_0x21rlw">
<di:waypoint x="1060" y="435" />
<di:waypoint x="1060" y="350" />
<bpmndi:BPMNLabel>
<dc:Bounds x="970" y="373" width="80" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1a0gemd_di" bpmnElement="Flow_1a0gemd">
<di:waypoint x="1085" y="460" />
<di:waypoint x="2050" y="460" />
<di:waypoint x="2050" y="328" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0g3zzkk_di" bpmnElement="Flow_0g3zzkk">
<di:waypoint x="1110" y="310" />
<di:waypoint x="1160" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0y27t43_di" bpmnElement="Flow_0y27t43">
<di:waypoint x="1260" y="310" />
<di:waypoint x="1310" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_13r09ut_di" bpmnElement="Flow_13r09ut">
<di:waypoint x="1410" y="310" />
<di:waypoint x="1460" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1c2eg26_di" bpmnElement="Flow_1c2eg26">
<di:waypoint x="1560" y="310" />
<di:waypoint x="1610" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1fo1w71_di" bpmnElement="Flow_1fo1w71">
<di:waypoint x="1660" y="270" />
<di:waypoint x="1660" y="250" />
<di:waypoint x="940" y="250" />
<di:waypoint x="940" y="570" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1oa3o7j_di" bpmnElement="Flow_1oa3o7j">
<di:waypoint x="1360" y="610" />
<di:waypoint x="1390" y="610" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bc2puj_di" bpmnElement="Flow_1bc2puj">
<di:waypoint x="1490" y="610" />
<di:waypoint x="1761" y="610" />
<di:waypoint x="1761" y="310" />
<di:waypoint x="2032" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0hcdtwt_di" bpmnElement="Flow_0hcdtwt">
<di:waypoint x="990" y="610" />
<di:waypoint x="1045" y="610" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0hvrs0q_di" bpmnElement="Flow_0hvrs0q">
<di:waypoint x="1095" y="610" />
<di:waypoint x="1260" y="610" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1139" y="576" width="79" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0nr7yo5_di" bpmnElement="Flow_0nr7yo5">
<di:waypoint x="1070" y="635" />
<di:waypoint x="1070" y="670" />
<di:waypoint x="2050" y="670" />
<di:waypoint x="2050" y="328" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>