|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/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" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1"> |
| 3 | + <bpmn:process id="use-case-1" name="use-case-1" isExecutable="true"> |
| 4 | + <bpmn:startEvent id="StartEvent" name="Process started"> |
| 5 | + <bpmn:extensionElements> |
| 6 | + <camunda:properties> |
| 7 | + <camunda:property name="simNextFire" value="${g.timesPerDay("processStarted","02:00","22:00", 77)}" /> |
| 8 | + </camunda:properties> |
| 9 | + </bpmn:extensionElements> |
| 10 | + <bpmn:outgoing>SequenceFlow1</bpmn:outgoing> |
| 11 | + </bpmn:startEvent> |
| 12 | + <bpmn:endEvent id="EndEvent" name="Process ended"> |
| 13 | + <bpmn:incoming>SequenceFlow_06uzq6z</bpmn:incoming> |
| 14 | + </bpmn:endEvent> |
| 15 | + <bpmn:sequenceFlow id="SequenceFlow1" sourceRef="StartEvent" targetRef="ServiceTask_Logger" /> |
| 16 | + <bpmn:sequenceFlow id="SequenceFlow_18o7zqy" sourceRef="ServiceTask_Logger" targetRef="ExclusiveGateway_0vgkf2i" /> |
| 17 | + <bpmn:serviceTask id="ServiceTask_Logger" name="Log on console" camunda:delegateExpression="#{logger}"> |
| 18 | + <bpmn:extensionElements> |
| 19 | + <camunda:properties> |
| 20 | + <camunda:property name="simGeneratePayload" value="mypath=${g.uniformFromArgs3(1,2,3)}" /> |
| 21 | + </camunda:properties> |
| 22 | + </bpmn:extensionElements> |
| 23 | + <bpmn:incoming>SequenceFlow1</bpmn:incoming> |
| 24 | + <bpmn:outgoing>SequenceFlow_18o7zqy</bpmn:outgoing> |
| 25 | + </bpmn:serviceTask> |
| 26 | + <bpmn:exclusiveGateway id="ExclusiveGateway_0vgkf2i" name="which is mypath?" default="SequenceFlow_14cynn5"> |
| 27 | + <bpmn:incoming>SequenceFlow_18o7zqy</bpmn:incoming> |
| 28 | + <bpmn:outgoing>SequenceFlow_14cynn5</bpmn:outgoing> |
| 29 | + <bpmn:outgoing>SequenceFlow_0ny8yfe</bpmn:outgoing> |
| 30 | + <bpmn:outgoing>SequenceFlow_163dgt3</bpmn:outgoing> |
| 31 | + </bpmn:exclusiveGateway> |
| 32 | + <bpmn:sequenceFlow id="SequenceFlow_14cynn5" name="1" sourceRef="ExclusiveGateway_0vgkf2i" targetRef="IntermediateThrowEvent_03ycj5s" /> |
| 33 | + <bpmn:sequenceFlow id="SequenceFlow_0ny8yfe" name="2" sourceRef="ExclusiveGateway_0vgkf2i" targetRef="Task_0tmp1dk"> |
| 34 | + <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{mypath==2}</bpmn:conditionExpression> |
| 35 | + </bpmn:sequenceFlow> |
| 36 | + <bpmn:endEvent id="EndEvent_0tqk6qk"> |
| 37 | + <bpmn:incoming>SequenceFlow_13t0dak</bpmn:incoming> |
| 38 | + </bpmn:endEvent> |
| 39 | + <bpmn:sequenceFlow id="SequenceFlow_1qmev44" sourceRef="Task_0tmp1dk" targetRef="Task_12d640m" /> |
| 40 | + <bpmn:sequenceFlow id="SequenceFlow_163dgt3" name="3" sourceRef="ExclusiveGateway_0vgkf2i" targetRef="Task_1y0su7e"> |
| 41 | + <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{mypath==3}</bpmn:conditionExpression> |
| 42 | + </bpmn:sequenceFlow> |
| 43 | + <bpmn:endEvent id="EndEvent_102ggsf"> |
| 44 | + <bpmn:incoming>SequenceFlow_18c5nog</bpmn:incoming> |
| 45 | + </bpmn:endEvent> |
| 46 | + <bpmn:sequenceFlow id="SequenceFlow_18c5nog" sourceRef="Task_1y0su7e" targetRef="EndEvent_102ggsf" /> |
| 47 | + <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_03ycj5s" name="do nothing"> |
| 48 | + <bpmn:incoming>SequenceFlow_14cynn5</bpmn:incoming> |
| 49 | + <bpmn:outgoing>SequenceFlow_06uzq6z</bpmn:outgoing> |
| 50 | + </bpmn:intermediateThrowEvent> |
| 51 | + <bpmn:sequenceFlow id="SequenceFlow_06uzq6z" sourceRef="IntermediateThrowEvent_03ycj5s" targetRef="EndEvent" /> |
| 52 | + <bpmn:userTask id="Task_0tmp1dk" name="user task 1"> |
| 53 | + <bpmn:extensionElements> |
| 54 | + <camunda:properties> |
| 55 | + <camunda:property name="simNextFire" value="${g.nowPlusMinutes(g.uniformInt(1, 3))}" /> |
| 56 | + </camunda:properties> |
| 57 | + </bpmn:extensionElements> |
| 58 | + <bpmn:incoming>SequenceFlow_0ny8yfe</bpmn:incoming> |
| 59 | + <bpmn:outgoing>SequenceFlow_1qmev44</bpmn:outgoing> |
| 60 | + </bpmn:userTask> |
| 61 | + <bpmn:userTask id="Task_1y0su7e" name="user task 2"> |
| 62 | + <bpmn:extensionElements> |
| 63 | + <camunda:properties> |
| 64 | + <camunda:property name="simNextFire" value="${g.nowPlusMinutes(g.uniformInt(1, 3))}" /> |
| 65 | + </camunda:properties> |
| 66 | + </bpmn:extensionElements> |
| 67 | + <bpmn:incoming>SequenceFlow_163dgt3</bpmn:incoming> |
| 68 | + <bpmn:outgoing>SequenceFlow_18c5nog</bpmn:outgoing> |
| 69 | + </bpmn:userTask> |
| 70 | + <bpmn:sequenceFlow id="SequenceFlow_13t0dak" sourceRef="Task_12d640m" targetRef="EndEvent_0tqk6qk" /> |
| 71 | + <bpmn:userTask id="Task_12d640m" name="user task 0"> |
| 72 | + <bpmn:incoming>SequenceFlow_1qmev44</bpmn:incoming> |
| 73 | + <bpmn:outgoing>SequenceFlow_13t0dak</bpmn:outgoing> |
| 74 | + </bpmn:userTask> |
| 75 | + </bpmn:process> |
| 76 | + <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 77 | + <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="use-case-1"> |
| 78 | + <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent"> |
| 79 | + <dc:Bounds x="173" y="102" width="36" height="36" /> |
| 80 | + <bpmndi:BPMNLabel> |
| 81 | + <dc:Bounds x="171" y="138" width="41" height="24" /> |
| 82 | + </bpmndi:BPMNLabel> |
| 83 | + </bpmndi:BPMNShape> |
| 84 | + <bpmndi:BPMNShape id="EndEvent_0fkea3f_di" bpmnElement="EndEvent"> |
| 85 | + <dc:Bounds x="942" y="102" width="36" height="36" /> |
| 86 | + <bpmndi:BPMNLabel> |
| 87 | + <dc:Bounds x="940" y="138" width="41" height="27" /> |
| 88 | + </bpmndi:BPMNLabel> |
| 89 | + </bpmndi:BPMNShape> |
| 90 | + <bpmndi:BPMNEdge id="SequenceFlow_08va5r8_di" bpmnElement="SequenceFlow1"> |
| 91 | + <di:waypoint x="209" y="120" /> |
| 92 | + <di:waypoint x="337" y="120" /> |
| 93 | + <bpmndi:BPMNLabel> |
| 94 | + <dc:Bounds x="228" y="95" width="90" height="20" /> |
| 95 | + </bpmndi:BPMNLabel> |
| 96 | + </bpmndi:BPMNEdge> |
| 97 | + <bpmndi:BPMNEdge id="SequenceFlow_18o7zqy_di" bpmnElement="SequenceFlow_18o7zqy"> |
| 98 | + <di:waypoint x="437" y="120" /> |
| 99 | + <di:waypoint x="545" y="120" /> |
| 100 | + <bpmndi:BPMNLabel> |
| 101 | + <dc:Bounds x="496.5" y="99" width="0" height="12" /> |
| 102 | + </bpmndi:BPMNLabel> |
| 103 | + </bpmndi:BPMNEdge> |
| 104 | + <bpmndi:BPMNShape id="ServiceTask_16vok30_di" bpmnElement="ServiceTask_Logger"> |
| 105 | + <dc:Bounds x="337" y="80" width="100" height="80" /> |
| 106 | + </bpmndi:BPMNShape> |
| 107 | + <bpmndi:BPMNShape id="ExclusiveGateway_0vgkf2i_di" bpmnElement="ExclusiveGateway_0vgkf2i" isMarkerVisible="true"> |
| 108 | + <dc:Bounds x="545" y="95" width="50" height="50" /> |
| 109 | + <bpmndi:BPMNLabel> |
| 110 | + <dc:Bounds x="528" y="65" width="84" height="14" /> |
| 111 | + </bpmndi:BPMNLabel> |
| 112 | + </bpmndi:BPMNShape> |
| 113 | + <bpmndi:BPMNEdge id="SequenceFlow_14cynn5_di" bpmnElement="SequenceFlow_14cynn5"> |
| 114 | + <di:waypoint x="595" y="120" /> |
| 115 | + <di:waypoint x="702" y="120" /> |
| 116 | + <bpmndi:BPMNLabel> |
| 117 | + <dc:Bounds x="607" y="102" width="6" height="14" /> |
| 118 | + </bpmndi:BPMNLabel> |
| 119 | + </bpmndi:BPMNEdge> |
| 120 | + <bpmndi:BPMNEdge id="SequenceFlow_0ny8yfe_di" bpmnElement="SequenceFlow_0ny8yfe"> |
| 121 | + <di:waypoint x="570" y="145" /> |
| 122 | + <di:waypoint x="570" y="250" /> |
| 123 | + <di:waypoint x="650" y="250" /> |
| 124 | + <bpmndi:BPMNLabel> |
| 125 | + <dc:Bounds x="607" y="223" width="6" height="14" /> |
| 126 | + </bpmndi:BPMNLabel> |
| 127 | + </bpmndi:BPMNEdge> |
| 128 | + <bpmndi:BPMNShape id="EndEvent_0tqk6qk_di" bpmnElement="EndEvent_0tqk6qk"> |
| 129 | + <dc:Bounds x="942" y="232" width="36" height="36" /> |
| 130 | + </bpmndi:BPMNShape> |
| 131 | + <bpmndi:BPMNEdge id="SequenceFlow_1qmev44_di" bpmnElement="SequenceFlow_1qmev44"> |
| 132 | + <di:waypoint x="750" y="250" /> |
| 133 | + <di:waypoint x="790" y="250" /> |
| 134 | + </bpmndi:BPMNEdge> |
| 135 | + <bpmndi:BPMNEdge id="SequenceFlow_163dgt3_di" bpmnElement="SequenceFlow_163dgt3"> |
| 136 | + <di:waypoint x="570" y="145" /> |
| 137 | + <di:waypoint x="570" y="390" /> |
| 138 | + <di:waypoint x="650" y="390" /> |
| 139 | + <bpmndi:BPMNLabel> |
| 140 | + <dc:Bounds x="607" y="363" width="6" height="14" /> |
| 141 | + </bpmndi:BPMNLabel> |
| 142 | + </bpmndi:BPMNEdge> |
| 143 | + <bpmndi:BPMNShape id="EndEvent_102ggsf_di" bpmnElement="EndEvent_102ggsf"> |
| 144 | + <dc:Bounds x="942" y="372" width="36" height="36" /> |
| 145 | + </bpmndi:BPMNShape> |
| 146 | + <bpmndi:BPMNEdge id="SequenceFlow_18c5nog_di" bpmnElement="SequenceFlow_18c5nog"> |
| 147 | + <di:waypoint x="750" y="390" /> |
| 148 | + <di:waypoint x="942" y="390" /> |
| 149 | + </bpmndi:BPMNEdge> |
| 150 | + <bpmndi:BPMNShape id="IntermediateThrowEvent_03ycj5s_di" bpmnElement="IntermediateThrowEvent_03ycj5s"> |
| 151 | + <dc:Bounds x="702" y="102" width="36" height="36" /> |
| 152 | + <bpmndi:BPMNLabel> |
| 153 | + <dc:Bounds x="694" y="145" width="52" height="14" /> |
| 154 | + </bpmndi:BPMNLabel> |
| 155 | + </bpmndi:BPMNShape> |
| 156 | + <bpmndi:BPMNEdge id="SequenceFlow_06uzq6z_di" bpmnElement="SequenceFlow_06uzq6z"> |
| 157 | + <di:waypoint x="738" y="120" /> |
| 158 | + <di:waypoint x="942" y="120" /> |
| 159 | + </bpmndi:BPMNEdge> |
| 160 | + <bpmndi:BPMNShape id="UserTask_1b9nosk_di" bpmnElement="Task_0tmp1dk"> |
| 161 | + <dc:Bounds x="650" y="210" width="100" height="80" /> |
| 162 | + </bpmndi:BPMNShape> |
| 163 | + <bpmndi:BPMNShape id="UserTask_1yelxq1_di" bpmnElement="Task_1y0su7e"> |
| 164 | + <dc:Bounds x="650" y="350" width="100" height="80" /> |
| 165 | + </bpmndi:BPMNShape> |
| 166 | + <bpmndi:BPMNEdge id="SequenceFlow_13t0dak_di" bpmnElement="SequenceFlow_13t0dak"> |
| 167 | + <di:waypoint x="890" y="250" /> |
| 168 | + <di:waypoint x="942" y="250" /> |
| 169 | + </bpmndi:BPMNEdge> |
| 170 | + <bpmndi:BPMNShape id="UserTask_0ooe9qj_di" bpmnElement="Task_12d640m"> |
| 171 | + <dc:Bounds x="790" y="210" width="100" height="80" /> |
| 172 | + </bpmndi:BPMNShape> |
| 173 | + </bpmndi:BPMNPlane> |
| 174 | + </bpmndi:BPMNDiagram> |
| 175 | +</bpmn:definitions> |
0 commit comments