-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess.bpmn
96 lines (96 loc) · 5.12 KB
/
process.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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: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.7.0">
<bpmn:process id="soap" name="soap" isExecutable="true">
<bpmn:startEvent id="StartEvent" name="Process started" camunda:formKey="embedded:app:forms/startForm.html">
<bpmn:extensionElements>
<camunda:executionListener event="end">
<camunda:script scriptFormat="javascript" resource="cities.js" />
</camunda:executionListener>
</bpmn:extensionElements>
<bpmn:outgoing>SequenceFlow1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="EndEvent" name="Process ended">
<bpmn:incoming>Flow_1behdch</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="SequenceFlow1" sourceRef="StartEvent" targetRef="ServiceTask_Logger" />
<bpmn:sequenceFlow id="SequenceFlow_18o7zqy" sourceRef="ServiceTask_Logger" targetRef="Activity_0io2buq" />
<bpmn:serviceTask id="ServiceTask_Logger" name="Call SOAP Service">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="url">https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php</camunda:inputParameter>
<camunda:inputParameter name="payload">
<camunda:script scriptFormat="freemarker" resource="soapEnvelope.ftl" />
</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Content-Type">text/xml;charset=UTF-8</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:outputParameter name="result">${S(response).childElement("Body").textContent()}</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>soap-http-connector</camunda:connectorId>
</camunda:connector>
<camunda:executionListener event="end">
<camunda:script scriptFormat="javascript" resource="parseResult.js" />
</camunda:executionListener>
<camunda:inputOutput>
<camunda:inputParameter name="todaysDate">
<camunda:script scriptFormat="javascript">var dTime = new Date();
execution.setVariable("dTime",dTime.toISOString());</camunda:script>
</camunda:inputParameter>
<camunda:outputParameter name="temperature">
<camunda:script scriptFormat="javascript" resource="parseResult.js" />
</camunda:outputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow1</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_18o7zqy</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1behdch" sourceRef="Activity_0io2buq" targetRef="EndEvent" />
<bpmn:userTask id="Activity_0io2buq" name="See result">
<bpmn:incoming>SequenceFlow_18o7zqy</bpmn:incoming>
<bpmn:outgoing>Flow_1behdch</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="soap">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent">
<dc:Bounds x="173" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="171" y="138" width="41" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_0fkea3f_di" bpmnElement="EndEvent">
<dc:Bounds x="742" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="740" y="138" width="41" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_08va5r8_di" bpmnElement="SequenceFlow1">
<di:waypoint x="209" y="120" />
<di:waypoint x="337" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="228" y="95" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_18o7zqy_di" bpmnElement="SequenceFlow_18o7zqy">
<di:waypoint x="437" y="120" />
<di:waypoint x="540" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="496.5" y="99" width="0" height="12" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ServiceTask_16vok30_di" bpmnElement="ServiceTask_Logger">
<dc:Bounds x="337" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1behdch_di" bpmnElement="Flow_1behdch">
<di:waypoint x="640" y="120" />
<di:waypoint x="742" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Activity_1ixhcj9_di" bpmnElement="Activity_0io2buq">
<dc:Bounds x="540" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>