-
Notifications
You must be signed in to change notification settings - Fork 58
/
calculation.bpmn
76 lines (76 loc) · 4.16 KB
/
calculation.bpmn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="calculate" name="Simple Calculate" isExecutable="true">
<bpmn:startEvent id="StartEvent" name="Calculation requested">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="x" label="First Number ('x')" type="long" />
<camunda:formField id="y" label="Second Number ('y')" type="long" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:outgoing>SequenceFlow_1ap1fum</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_1ap1fum" sourceRef="StartEvent" targetRef="ServiceTaskCalculate" />
<bpmn:serviceTask id="ServiceTaskCalculate" name="Calculate" camunda:type="external" camunda:topic="calculate">
<bpmn:incoming>SequenceFlow_1ap1fum</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1rm1qjm</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="SequenceFlow_1rm1qjm" sourceRef="ServiceTaskCalculate" targetRef="UserTaskReviewResult" />
<bpmn:userTask id="UserTaskReviewResult" name="Review result">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="result" label="Calculation Result" type="long" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_1rm1qjm</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1t0tmo6</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="EndEvent" name="Calculation finished">
<bpmn:incoming>SequenceFlow_1t0tmo6</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="SequenceFlow_1t0tmo6" sourceRef="UserTaskReviewResult" targetRef="EndEvent" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="calculate">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent">
<dc:Bounds x="155" y="127" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="128" y="163" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1ap1fum_di" bpmnElement="SequenceFlow_1ap1fum">
<di:waypoint xsi:type="dc:Point" x="191" y="145" />
<di:waypoint xsi:type="dc:Point" x="314" y="145" />
<bpmndi:BPMNLabel>
<dc:Bounds x="170.5" y="135" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ServiceTask_1jseq4k_di" bpmnElement="ServiceTaskCalculate">
<dc:Bounds x="314" y="105" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1rm1qjm_di" bpmnElement="SequenceFlow_1rm1qjm">
<di:waypoint xsi:type="dc:Point" x="414" y="145" />
<di:waypoint xsi:type="dc:Point" x="500" y="145" />
<bpmndi:BPMNLabel>
<dc:Bounds x="475" y="135" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="UserTask_1tp1pqp_di" bpmnElement="UserTaskReviewResult">
<dc:Bounds x="500" y="105" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_1000x9l_di" bpmnElement="EndEvent">
<dc:Bounds x="687" y="127" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="660" y="163" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1t0tmo6_di" bpmnElement="SequenceFlow_1t0tmo6">
<di:waypoint xsi:type="dc:Point" x="600" y="145" />
<di:waypoint xsi:type="dc:Point" x="687" y="145" />
<bpmndi:BPMNLabel>
<dc:Bounds x="623" y="135" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>