294 lines
14 KiB
XML

<?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" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:collaboration id="Collaboration_1i6olx2">
<bpmn:participant id="Participant_1tquaok" processRef="Process_issue2_nm8svt0" />
</bpmn:collaboration>
<bpmn:process id="Process_issue2_nm8svt0" isExecutable="true">
<bpmn:laneSet id="LaneSet_08o8sbe">
<bpmn:lane id="Lane_19e0xal" name="Issue CLK">
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
<bpmn:flowNodeRef>EndEvent_1</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0qpzdpu</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_052a0kd</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_186t2ny</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1ts2r7w</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_145kqkw</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_0aqfove</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_13h1g01</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_0ylksdp</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0ht4dom</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_0csle9a" name="Approvers">
<bpmn:flowNodeRef>Activity_0ktbplg</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0o9u2ln</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="EndEvent_1">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>The process instance completed successfully.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1sefygi</bpmn:incoming>
<bpmn:incoming>Flow_0zzylwu</bpmn:incoming>
</bpmn:endEvent>
<bpmn:userTask id="Activity_0qpzdpu" name="Submitting Issue Voucher Form">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Creating Issue Voucher Form
</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="issue-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="issue-uischema.json" />
</spiffworkflow:properties>
<spiffworkflow:preScript />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ndqjvb</bpmn:incoming>
<bpmn:outgoing>Flow_1gyv3iu</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_052a0kd">
<bpmn:incoming>Flow_1q4zwmb</bpmn:incoming>
<bpmn:outgoing>Flow_044tqme</bpmn:outgoing>
<bpmn:outgoing>Flow_0wfweaj</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:manualTask id="Activity_186t2ny" name="Approved">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Form Approved
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_044tqme</bpmn:incoming>
<bpmn:outgoing>Flow_0lw624a</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:manualTask id="Activity_1ts2r7w" name="Rejected">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Form Rejected
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0wfweaj</bpmn:incoming>
<bpmn:outgoing>Flow_0lujeru</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:userTask id="Activity_145kqkw" name="Documents Collection">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="manualchecking-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="manualchecking-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0o9u2ln</bpmn:incoming>
<bpmn:outgoing>Flow_05b9bnd</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_0aqfove">
<bpmn:incoming>Flow_05b9bnd</bpmn:incoming>
<bpmn:outgoing>Flow_0w34s28</bpmn:outgoing>
<bpmn:outgoing>Flow_1v73zay</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:manualTask id="Activity_13h1g01" name="Documents not Collected">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Documents not collected.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1v73zay</bpmn:incoming>
<bpmn:outgoing>Flow_1sefygi</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:exclusiveGateway id="Gateway_0ylksdp">
<bpmn:incoming>Flow_0lw624a</bpmn:incoming>
<bpmn:incoming>Flow_0lujeru</bpmn:incoming>
<bpmn:outgoing>Flow_0zzylwu</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:scriptTask id="Activity_0ht4dom">
<bpmn:incoming>Flow_0w34s28</bpmn:incoming>
<bpmn:outgoing>Flow_1ndqjvb</bpmn:outgoing>
<bpmn:script>from random import randint
issue_voucher_number = f"ISS-{randint(0, 999999):06}"
na_number = f"NA-{randint(0, 999999):06}"
demand_no = f"Demand-{randint(0, 999999):06}"</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0o9u2ln" sourceRef="StartEvent_1" targetRef="Activity_145kqkw" />
<bpmn:sequenceFlow id="Flow_1sefygi" sourceRef="Activity_13h1g01" targetRef="EndEvent_1" />
<bpmn:sequenceFlow id="Flow_0zzylwu" sourceRef="Gateway_0ylksdp" targetRef="EndEvent_1" />
<bpmn:sequenceFlow id="Flow_1ndqjvb" sourceRef="Activity_0ht4dom" targetRef="Activity_0qpzdpu" />
<bpmn:sequenceFlow id="Flow_1gyv3iu" sourceRef="Activity_0qpzdpu" targetRef="Activity_0ktbplg" />
<bpmn:sequenceFlow id="Flow_1q4zwmb" sourceRef="Activity_0ktbplg" targetRef="Gateway_052a0kd" />
<bpmn:sequenceFlow id="Flow_044tqme" name="Approved==1" sourceRef="Gateway_052a0kd" targetRef="Activity_186t2ny">
<bpmn:conditionExpression>Approved==1</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0wfweaj" name="Approved==0" sourceRef="Gateway_052a0kd" targetRef="Activity_1ts2r7w">
<bpmn:conditionExpression>Approved==0</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0lw624a" sourceRef="Activity_186t2ny" targetRef="Gateway_0ylksdp" />
<bpmn:sequenceFlow id="Flow_0lujeru" sourceRef="Activity_1ts2r7w" targetRef="Gateway_0ylksdp" />
<bpmn:sequenceFlow id="Flow_05b9bnd" sourceRef="Activity_145kqkw" targetRef="Gateway_0aqfove" />
<bpmn:sequenceFlow id="Flow_0w34s28" name="documents_collected==1" sourceRef="Gateway_0aqfove" targetRef="Activity_0ht4dom">
<bpmn:conditionExpression>documents_collected==1</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1v73zay" name="documents_collected==0" sourceRef="Gateway_0aqfove" targetRef="Activity_13h1g01">
<bpmn:conditionExpression>documents_collected==0</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:userTask id="Activity_0ktbplg" name="Approved Checkbox">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="decisionbuttons-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="decisionbuttons-uischema.json" />
</spiffworkflow:properties>
<spiffworkflow:instructionsForEndUser># Approve Issue Voucher for the following Data:
- Issue Voucher Number: {{issue_voucher_number}}
- Demand Type: {{demand_type}}
- Issue Date: {{issue_date}}
- NA Number: {{na_number}}
- Commodity: {{commodity}}
- Authority Number: {{authority_number}}
- Consignee: {{consignee}}
- Remarks: {{remarks}}
- Demand No: {{demand_no}}
- Condition: {{condition}}
- Demand Date: {{demand_date}}
- Locator: {{locator}}
- Serial No: {{serial_no}}
- Cat Part No: {{cat_part_no}}
- Nomenclatures: {{nomenclatures}}
- Issue Quantity: {{issue_quantity}}
- Unit: {{unit}}
- Demand Quantity: {{demand_quantity}}
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1gyv3iu</bpmn:incoming>
<bpmn:outgoing>Flow_1q4zwmb</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1i6olx2">
<bpmndi:BPMNShape id="Participant_1tquaok_di" bpmnElement="Participant_1tquaok" isHorizontal="true">
<dc:Bounds x="-190" y="-20" width="1340" height="520" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0csle9a_di" bpmnElement="Lane_0csle9a" isHorizontal="true">
<dc:Bounds x="-160" y="380" width="1310" height="120" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_19e0xal_di" bpmnElement="Lane_19e0xal" isHorizontal="true">
<dc:Bounds x="-160" y="-20" width="1310" height="400" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-138" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="1092" y="72" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1rmlg1p_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="270" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_052a0kd_di" bpmnElement="Gateway_052a0kd" isMarkerVisible="true">
<dc:Bounds x="595" y="152" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0fn93nx_di" bpmnElement="Activity_186t2ny">
<dc:Bounds x="750" y="0" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1mhbs93" bpmnElement="Activity_1ts2r7w">
<dc:Bounds x="780" y="230" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0xlnkw0_di" bpmnElement="Activity_145kqkw">
<dc:Bounds x="-50" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0aqfove_di" bpmnElement="Gateway_0aqfove" isMarkerVisible="true">
<dc:Bounds x="105" y="152" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1qjq99r_di" bpmnElement="Activity_13h1g01">
<dc:Bounds x="270" y="280" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0ylksdp_di" bpmnElement="Gateway_0ylksdp" isMarkerVisible="true">
<dc:Bounds x="925" y="45" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1vew2dw_di" bpmnElement="Activity_0ht4dom">
<dc:Bounds x="160" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ukvq5a_di" bpmnElement="Activity_0ktbplg">
<dc:Bounds x="420" y="390" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0o9u2ln_di" bpmnElement="Flow_0o9u2ln">
<di:waypoint x="-102" y="177" />
<di:waypoint x="-50" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sefygi_di" bpmnElement="Flow_1sefygi">
<di:waypoint x="370" y="320" />
<di:waypoint x="1110" y="320" />
<di:waypoint x="1110" y="108" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0zzylwu_di" bpmnElement="Flow_0zzylwu">
<di:waypoint x="975" y="70" />
<di:waypoint x="1034" y="70" />
<di:waypoint x="1034" y="90" />
<di:waypoint x="1092" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ndqjvb_di" bpmnElement="Flow_1ndqjvb">
<di:waypoint x="260" y="60" />
<di:waypoint x="280" y="60" />
<di:waypoint x="280" y="137" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gyv3iu_di" bpmnElement="Flow_1gyv3iu">
<di:waypoint x="370" y="177" />
<di:waypoint x="395" y="177" />
<di:waypoint x="395" y="430" />
<di:waypoint x="420" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1q4zwmb_di" bpmnElement="Flow_1q4zwmb">
<di:waypoint x="520" y="430" />
<di:waypoint x="620" y="430" />
<di:waypoint x="620" y="202" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_044tqme_di" bpmnElement="Flow_044tqme">
<di:waypoint x="620" y="152" />
<di:waypoint x="620" y="40" />
<di:waypoint x="750" y="40" />
<bpmndi:BPMNLabel>
<dc:Bounds x="647" y="23" width="66" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0wfweaj_di" bpmnElement="Flow_0wfweaj">
<di:waypoint x="620" y="202" />
<di:waypoint x="620" y="270" />
<di:waypoint x="780" y="270" />
<bpmndi:BPMNLabel>
<dc:Bounds x="647" y="243" width="66" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lw624a_di" bpmnElement="Flow_0lw624a">
<di:waypoint x="850" y="40" />
<di:waypoint x="888" y="40" />
<di:waypoint x="888" y="70" />
<di:waypoint x="925" y="70" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lujeru_di" bpmnElement="Flow_0lujeru">
<di:waypoint x="880" y="270" />
<di:waypoint x="950" y="270" />
<di:waypoint x="950" y="95" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_05b9bnd_di" bpmnElement="Flow_05b9bnd">
<di:waypoint x="50" y="177" />
<di:waypoint x="105" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0w34s28_di" bpmnElement="Flow_0w34s28">
<di:waypoint x="130" y="152" />
<di:waypoint x="130" y="50" />
<di:waypoint x="160" y="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="102" y="19" width="83" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1v73zay_di" bpmnElement="Flow_1v73zay">
<di:waypoint x="130" y="202" />
<di:waypoint x="130" y="320" />
<di:waypoint x="270" y="320" />
<bpmndi:BPMNLabel>
<dc:Bounds x="158" y="293" width="83" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>