142 lines
7.0 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" 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:process id="Process_receipt_test_8lp243a" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_17db3yp</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="StartEvent_1" targetRef="Activity_0qpzdpu" />
<bpmn:endEvent id="EndEvent_1">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>The process instance completed successfully.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0yzbpyw</bpmn:incoming>
</bpmn:endEvent>
<bpmn:userTask id="Activity_0qpzdpu" 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_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_01eub9l</bpmn:outgoing>
</bpmn:userTask>
<bpmn:scriptTask id="Activity_1gw1xg0" name="Script to convert timer value to string to display">
<bpmn:incoming>Flow_01eub9l</bpmn:incoming>
<bpmn:outgoing>Flow_0y4at06</bpmn:outgoing>
<bpmn:script>hours = 0
minutes = 0
seconds = 0
if 'H' in timer_value_warehouse:
hours_str = timer_value_warehouse.split('H')[0][2:]
hours = int(hours_str) if hours_str.isdigit() else 0
if 'M' in timer_value_warehouse:
minutes_str = timer_value_warehouse.split('M')[0][-2:]
minutes = int(minutes_str) if minutes_str.isdigit() else 0
if 'S' in timer_value_warehouse:
seconds_str = timer_value_warehouse.split('S')[0][-2:]
seconds = int(seconds_str) if seconds_str.isdigit() else 0
</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_01eub9l" sourceRef="Activity_0qpzdpu" targetRef="Activity_1gw1xg0" />
<bpmn:userTask id="Activity_09w2eud" name="recieve">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="receive-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="receive-uischema.json" />
</spiffworkflow:properties>
<spiffworkflow:instructionsForEndUser>TFC Clerk has approved the receipt of the equipment
Timer value is : {{hours}} Hour, {{minutes}} Minutes , {{seconds}} Seconds</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0y4at06</bpmn:incoming>
<bpmn:outgoing>Flow_0ukmyta</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0y4at06" sourceRef="Activity_1gw1xg0" targetRef="Activity_09w2eud" />
<bpmn:manualTask id="Activity_0zk4dmv" name="delayed">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser># Equipment not received
Equipment not received at SASD area</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0ukmyta</bpmn:incoming>
<bpmn:outgoing>Flow_0yzbpyw</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:sequenceFlow id="Flow_0ukmyta" sourceRef="Activity_09w2eud" targetRef="Activity_0zk4dmv" />
<bpmn:sequenceFlow id="Flow_0yzbpyw" sourceRef="Activity_0zk4dmv" targetRef="EndEvent_1" />
<bpmn:boundaryEvent id="Event_0p58mhz" cancelActivity="false" attachedToRef="Activity_09w2eud">
<bpmn:timerEventDefinition id="TimerEventDefinition_07082s9">
<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="Process_receipt_test_8lp243a">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="822" y="-38" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1v1rhtl_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0f3jptv_di" bpmnElement="Activity_1gw1xg0">
<dc:Bounds x="450" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_12gm32j_di" bpmnElement="Activity_09w2eud">
<dc:Bounds x="650" y="130" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1u8p9tq_di" bpmnElement="Activity_0zk4dmv">
<dc:Bounds x="850" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1bouems_di" bpmnElement="Event_0p58mhz">
<dc:Bounds x="682" y="192" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="215" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_01eub9l_di" bpmnElement="Flow_01eub9l">
<di:waypoint x="370" y="177" />
<di:waypoint x="450" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0y4at06_di" bpmnElement="Flow_0y4at06">
<di:waypoint x="550" y="177" />
<di:waypoint x="600" y="177" />
<di:waypoint x="600" y="170" />
<di:waypoint x="650" y="170" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ukmyta_di" bpmnElement="Flow_0ukmyta">
<di:waypoint x="750" y="170" />
<di:waypoint x="800" y="170" />
<di:waypoint x="800" y="160" />
<di:waypoint x="850" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0yzbpyw_di" bpmnElement="Flow_0yzbpyw">
<di:waypoint x="900" y="120" />
<di:waypoint x="900" y="59" />
<di:waypoint x="840" y="59" />
<di:waypoint x="840" y="-2" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>