spiff-arena/tests/SpiffWorkflow/bpmn/data/timer-non-interrupt-boundary.bpmn
Dan b8d3d5d84b Squashed 'SpiffWorkflow/' changes from 450ef3bcd..98c6294f1
98c6294f1 Merge pull request #287 from sartography/feature/workflow_data_exceptions
d40a1da59 Workflow Data Exceptions were broken in the previous error refactor.  This assures we are getting good messages from these errors.
a156378e1 Merge pull request #286 from sartography/feature/inclusive-gateway-support
7f6e398c2 bypass unnecessary checks in gateway joins
ade21a894 revert a few things
e1cf75202 Merge branch 'main' into feature/inclusive-gateway-support
15a0a4414 revert change to MultiChoice and handle no defaults in BPMN specs
e1469e6bb add support for diverging inclusive gateways
71fd86386 really prevent non-default flows without conditions
924759d9b clean up join specs
7378639d3 Merge pull request #284 from sartography/feature/improved-timer-events
dc8d139d2 remove useless method
530f23697 Merge branch 'main' into feature/improved-timer-events
307cca9c5 partially clean up existing gateways
0a344285e clean up task parsers
2cef997d1 add waiting_events method to bpmn workflow
48091c407 serializer migration script and miscellaneous fixes to serialization
61316854b store internal timer data as string/float
389c14c4c add some tests for parsing durations
582bc9482 convert timers to iso 8601
6dfd7ebe9 remove extraneous calls to update
6bd429529 clean up tests
d56e9912f remove useless method

git-subtree-dir: SpiffWorkflow
git-subtree-split: 98c6294f1240aee599cd98bcee58d121cb57b331
2023-01-26 18:17:35 -05:00

153 lines
7.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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0wc03ht" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.11.1">
<bpmn:process id="NonInterruptTimer" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1hyztad</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:subProcess id="Activity_0e5qk4z">
<bpmn:incoming>Flow_1hyztad</bpmn:incoming>
<bpmn:outgoing>Flow_07l1pau</bpmn:outgoing>
<bpmn:startEvent id="Event_0rpm2hw">
<bpmn:outgoing>Flow_1ls93l9</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1ls93l9" sourceRef="Event_0rpm2hw" targetRef="Activity_Work" />
<bpmn:exclusiveGateway id="Gateway_WorkDone" name="Done Yet?" default="Flow_06jd2h7">
<bpmn:incoming>Flow_1ku6me6</bpmn:incoming>
<bpmn:outgoing>Flow_06jd2h7</bpmn:outgoing>
<bpmn:outgoing>Flow_10bimyk</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1ku6me6" sourceRef="Activity_Work" targetRef="Gateway_WorkDone" />
<bpmn:sequenceFlow id="Flow_06jd2h7" name="No" sourceRef="Gateway_WorkDone" targetRef="Activity_Work" />
<bpmn:endEvent id="Event_1sxw3jz">
<bpmn:incoming>Flow_10bimyk</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_10bimyk" name="Yes" sourceRef="Gateway_WorkDone" targetRef="Event_1sxw3jz">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">work_done == 'Yes'</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:userTask id="Activity_Work" name="Work Done?" camunda:formKey="WorkForm">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="work_done" label="Do you have your work done?" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ls93l9</bpmn:incoming>
<bpmn:incoming>Flow_06jd2h7</bpmn:incoming>
<bpmn:outgoing>Flow_1ku6me6</bpmn:outgoing>
</bpmn:userTask>
</bpmn:subProcess>
<bpmn:boundaryEvent id="Event_0jyy8ao" name="BenchmarkTime" cancelActivity="false" attachedToRef="Activity_0e5qk4z">
<bpmn:outgoing>Flow_03e1mfr</bpmn:outgoing>
<bpmn:timerEventDefinition id="TimerEventDefinition_15a4lk2">
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">"PT0.2S"</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:boundaryEvent>
<bpmn:userTask id="GetReason" name="Delay Reason" camunda:formKey="DelayForm">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="delay_reason" label="Why did you take too long?" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_03e1mfr</bpmn:incoming>
<bpmn:outgoing>Flow_0tlkkap</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1hyztad" sourceRef="StartEvent_1" targetRef="Activity_0e5qk4z" />
<bpmn:sequenceFlow id="Flow_07l1pau" sourceRef="Activity_0e5qk4z" targetRef="Gateway_19fdoel" />
<bpmn:sequenceFlow id="Flow_0tlkkap" sourceRef="GetReason" targetRef="Gateway_19fdoel" />
<bpmn:sequenceFlow id="Flow_03e1mfr" sourceRef="Event_0jyy8ao" targetRef="GetReason" />
<bpmn:parallelGateway id="Gateway_19fdoel">
<bpmn:incoming>Flow_07l1pau</bpmn:incoming>
<bpmn:incoming>Flow_0tlkkap</bpmn:incoming>
<bpmn:outgoing>Flow_0vper9q</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_0vper9q" sourceRef="Gateway_19fdoel" targetRef="Event_17ly1lc" />
<bpmn:endEvent id="Event_17ly1lc">
<bpmn:incoming>Flow_0vper9q</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="NonInterruptTimer">
<bpmndi:BPMNEdge id="Flow_0vper9q_di" bpmnElement="Flow_0vper9q">
<di:waypoint x="835" y="177" />
<di:waypoint x="992" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03e1mfr_di" bpmnElement="Flow_03e1mfr">
<di:waypoint x="590" y="295" />
<di:waypoint x="590" y="350" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0tlkkap_di" bpmnElement="Flow_0tlkkap">
<di:waypoint x="640" y="390" />
<di:waypoint x="810" y="390" />
<di:waypoint x="810" y="202" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_07l1pau_di" bpmnElement="Flow_07l1pau">
<di:waypoint x="740" y="177" />
<di:waypoint x="785" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1hyztad_di" bpmnElement="Flow_1hyztad">
<di:waypoint x="148" y="177" />
<di:waypoint x="210" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="112" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0e5qk4z_di" bpmnElement="Activity_0e5qk4z" isExpanded="true">
<dc:Bounds x="210" y="77" width="530" height="200" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_10bimyk_di" bpmnElement="Flow_10bimyk">
<di:waypoint x="545" y="177" />
<di:waypoint x="602" y="177" />
<bpmndi:BPMNLabel>
<dc:Bounds x="564" y="159" width="19" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_06jd2h7_di" bpmnElement="Flow_06jd2h7">
<di:waypoint x="520" y="202" />
<di:waypoint x="520" y="250" />
<di:waypoint x="370" y="250" />
<di:waypoint x="370" y="217" />
<bpmndi:BPMNLabel>
<dc:Bounds x="438" y="232" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ku6me6_di" bpmnElement="Flow_1ku6me6">
<di:waypoint x="420" y="177" />
<di:waypoint x="495" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ls93l9_di" bpmnElement="Flow_1ls93l9">
<di:waypoint x="278" y="177" />
<di:waypoint x="320" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_0rpm2hw_di" bpmnElement="Event_0rpm2hw">
<dc:Bounds x="242" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1qxx57d_di" bpmnElement="Gateway_WorkDone" isMarkerVisible="true">
<dc:Bounds x="495" y="152" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="495" y="122" width="51" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1sxw3jz_di" bpmnElement="Event_1sxw3jz">
<dc:Bounds x="602" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ax46dw_di" bpmnElement="Activity_Work">
<dc:Bounds x="320" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_09w3ybl_di" bpmnElement="GetReason">
<dc:Bounds x="540" y="350" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_12d9rs0_di" bpmnElement="Gateway_19fdoel">
<dc:Bounds x="785" y="152" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_17ly1lc_di" bpmnElement="Event_17ly1lc">
<dc:Bounds x="992" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0neqjqa_di" bpmnElement="Event_0jyy8ao">
<dc:Bounds x="572" y="259" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="551" y="302" width="80" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>