120 lines
6.3 KiB
Plaintext
Raw Normal View History

2024-07-15 10:40:05 -04:00
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" 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:process id="Test_Timer_intermediate_catch" name="Unit Test Timer Event" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1khppaq</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1khppaq" sourceRef="StartEvent_1" targetRef="Activity_1kvg2ub" />
<bpmn:scriptTask id="Activity_1kvg2ub" name="Get Start Time">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1khppaq</bpmn:incoming>
<bpmn:outgoing>Flow_1if3wm0</bpmn:outgoing>
<bpmn:script>start_time = round(time.time() * 1000)</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1if3wm0" sourceRef="Activity_1kvg2ub" targetRef="Activity_0mei3ci" />
<bpmn:intermediateCatchEvent id="Event_1pz3emx">
<bpmn:incoming>Flow_0t0n0qg</bpmn:incoming>
<bpmn:outgoing>Flow_116lqvv</bpmn:outgoing>
<bpmn:timerEventDefinition id="TimerEventDefinition_01q1jut">
<bpmn:timeCycle xsi:type="bpmn:tFormalExpression">"R3/PT5M"</bpmn:timeCycle>
2024-07-15 10:40:05 -04:00
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
<bpmn:sequenceFlow id="Flow_116lqvv" sourceRef="Event_1pz3emx" targetRef="Event_11t2rlx" />
<bpmn:scriptTask id="Activity_1wtffcs" name="Get End Time">
<bpmn:incoming>Flow_0feo9sn</bpmn:incoming>
<bpmn:outgoing>Flow_1gbrmax</bpmn:outgoing>
<bpmn:script>end_time = round(time.time() * 1000)
duration = round((end_time-start_time)/1000)</bpmn:script>
</bpmn:scriptTask>
<bpmn:endEvent id="Event_11isusg">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Duration: {{duration}}</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1gbrmax</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1gbrmax" sourceRef="Activity_1wtffcs" targetRef="Event_11isusg" />
<bpmn:sequenceFlow id="Flow_0hpyluw" sourceRef="Activity_0mei3ci" targetRef="Event_0v3o4zn" />
<bpmn:manualTask id="Activity_0mei3ci" name="Manual Task">
<bpmn:incoming>Flow_1if3wm0</bpmn:incoming>
<bpmn:outgoing>Flow_0hpyluw</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:intermediateThrowEvent id="Event_0v3o4zn" name="Start">
<bpmn:incoming>Flow_0hpyluw</bpmn:incoming>
<bpmn:outgoing>Flow_0t0n0qg</bpmn:outgoing>
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_0t0n0qg" sourceRef="Event_0v3o4zn" targetRef="Event_1pz3emx" />
<bpmn:intermediateThrowEvent id="Event_11t2rlx" name="End">
<bpmn:incoming>Flow_116lqvv</bpmn:incoming>
<bpmn:outgoing>Flow_0feo9sn</bpmn:outgoing>
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_0feo9sn" sourceRef="Event_11t2rlx" targetRef="Activity_1wtffcs" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Test_Timer_intermediate_catch">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-8" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1937awy_di" bpmnElement="Activity_1kvg2ub">
<dc:Bounds x="80" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_17n2nv0_di" bpmnElement="Event_1pz3emx">
<dc:Bounds x="432" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ne1ysk_di" bpmnElement="Activity_1wtffcs">
<dc:Bounds x="560" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_11isusg_di" bpmnElement="Event_11isusg">
<dc:Bounds x="742" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1efzviw_di" bpmnElement="Activity_0mei3ci">
<dc:Bounds x="250" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0v3o4zn_di" bpmnElement="Event_0v3o4zn">
<dc:Bounds x="372" y="159" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="378" y="202" width="25" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_11t2rlx_di" bpmnElement="Event_11t2rlx">
<dc:Bounds x="492" y="159" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="500" y="202" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1khppaq_di" bpmnElement="Flow_1khppaq">
<di:waypoint x="28" y="177" />
<di:waypoint x="80" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1if3wm0_di" bpmnElement="Flow_1if3wm0">
<di:waypoint x="180" y="177" />
<di:waypoint x="250" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_116lqvv_di" bpmnElement="Flow_116lqvv">
<di:waypoint x="468" y="177" />
<di:waypoint x="492" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gbrmax_di" bpmnElement="Flow_1gbrmax">
<di:waypoint x="660" y="177" />
<di:waypoint x="742" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0hpyluw_di" bpmnElement="Flow_0hpyluw">
<di:waypoint x="350" y="177" />
<di:waypoint x="372" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0t0n0qg_di" bpmnElement="Flow_0t0n0qg">
<di:waypoint x="408" y="177" />
<di:waypoint x="432" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0feo9sn_di" bpmnElement="Flow_0feo9sn">
<di:waypoint x="528" y="177" />
<di:waypoint x="560" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>