mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 17:08:28 +00:00
195 lines
9.9 KiB
XML
195 lines
9.9 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:incoming>Flow_09s3cxt</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="Receive equipment at SASD GATE">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="receive-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="receive-uischema.json" />
|
|
</spiffworkflow:properties>
|
|
<spiffworkflow:instructionsForEndUser>Warehouse admin has approved the issuance of store; please approve the receipt of store at SASD Gate area
|
|
|
|
Timer value is : {{hours}} Hour, {{minutes}} Minutes , {{seconds}} Seconds
|
|
|
|
Equipment Received at SASD gate area:</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="Equipment not received at SASD Gate Area">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser>Equipment didn't receive at SASD Gate Area</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_12k6zv8</bpmn:incoming>
|
|
<bpmn:incoming>Flow_165up0l</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0yzbpyw</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:sequenceFlow id="Flow_0ukmyta" sourceRef="Activity_09w2eud" targetRef="Gateway_04ehsl6" />
|
|
<bpmn:sequenceFlow id="Flow_0yzbpyw" sourceRef="Activity_0zk4dmv" targetRef="EndEvent_1" />
|
|
<bpmn:exclusiveGateway id="Gateway_04ehsl6">
|
|
<bpmn:incoming>Flow_0ukmyta</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_12k6zv8</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_1rl9xpj</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_12k6zv8" sourceRef="Gateway_04ehsl6" targetRef="Activity_0zk4dmv">
|
|
<bpmn:conditionExpression>sasd_gate_area_approval=='No'</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:userTask id="Activity_0jwcen3" name="Approve Final Clearance Issue Clerk">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="app-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="app-uischema.json" />
|
|
</spiffworkflow:properties>
|
|
<spiffworkflow:instructionsForEndUser># Final Store Clearance</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1rl9xpj</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_09s3cxt</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:sequenceFlow id="Flow_1rl9xpj" sourceRef="Gateway_04ehsl6" targetRef="Activity_0jwcen3">
|
|
<bpmn:conditionExpression>sasd_gate_area_approval=='Yes'</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:sequenceFlow id="Flow_09s3cxt" sourceRef="Activity_0jwcen3" targetRef="EndEvent_1" />
|
|
<bpmn:boundaryEvent id="Event_1wwcxic" attachedToRef="Activity_09w2eud">
|
|
<bpmn:outgoing>Flow_165up0l</bpmn:outgoing>
|
|
<bpmn:timerEventDefinition id="TimerEventDefinition_0y0ex8u">
|
|
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">timer_value_warehouse</bpmn:timeDuration>
|
|
</bpmn:timerEventDefinition>
|
|
</bpmn:boundaryEvent>
|
|
<bpmn:sequenceFlow id="Flow_165up0l" sourceRef="Event_1wwcxic" targetRef="Activity_0zk4dmv" />
|
|
</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="940" y="330" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_04ehsl6_di" bpmnElement="Gateway_04ehsl6" isMarkerVisible="true">
|
|
<dc:Bounds x="775" y="145" width="50" height="50" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1rzp2px_di" bpmnElement="Activity_0jwcen3">
|
|
<dc:Bounds x="860" y="190" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0mqwvgx_di" bpmnElement="Event_1wwcxic">
|
|
<dc:Bounds x="702" 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="650" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0ukmyta_di" bpmnElement="Flow_0ukmyta">
|
|
<di:waypoint x="750" y="170" />
|
|
<di:waypoint x="775" y="170" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0yzbpyw_di" bpmnElement="Flow_0yzbpyw">
|
|
<di:waypoint x="990" y="330" />
|
|
<di:waypoint x="990" y="59" />
|
|
<di:waypoint x="840" y="59" />
|
|
<di:waypoint x="840" y="-2" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_12k6zv8_di" bpmnElement="Flow_12k6zv8">
|
|
<di:waypoint x="800" y="195" />
|
|
<di:waypoint x="800" y="370" />
|
|
<di:waypoint x="940" y="370" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="772" y="280" width="86" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1rl9xpj_di" bpmnElement="Flow_1rl9xpj">
|
|
<di:waypoint x="800" y="195" />
|
|
<di:waypoint x="800" y="230" />
|
|
<di:waypoint x="860" y="230" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_09s3cxt_di" bpmnElement="Flow_09s3cxt">
|
|
<di:waypoint x="910" y="190" />
|
|
<di:waypoint x="910" y="-20" />
|
|
<di:waypoint x="858" y="-20" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_165up0l_di" bpmnElement="Flow_165up0l">
|
|
<di:waypoint x="720" y="228" />
|
|
<di:waypoint x="720" y="390" />
|
|
<di:waypoint x="940" y="390" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|