@@ -35,20 +35,6 @@ execution.setVariable("lon", lon);</bpmn:script>
35
35
<bpmn : sequenceFlow id =" Flow_08b5esk" sourceRef =" Activity_1nrekgz" targetRef =" Activity_02bbqmi" />
36
36
<bpmn : sequenceFlow id =" Flow_1m419sa" sourceRef =" Activity_02bbqmi" targetRef =" Activity_0tafzgr" />
37
37
<bpmn : sequenceFlow id =" Flow_03ix5a2" sourceRef =" Activity_0tafzgr" targetRef =" Event_1ne92b0" />
38
- <bpmn : serviceTask id =" Activity_02bbqmi" name =" ask for weather" >
39
- <bpmn : extensionElements >
40
- <camunda : connector >
41
- <camunda : inputOutput >
42
- <camunda : inputParameter name =" url" >https://api.openweathermap.org/data/2.5/weather?lat=${lat}& lon=${lon}& appid=f350db2bd88588efbe929a3adedf926e</camunda : inputParameter >
43
- <camunda : inputParameter name =" method" >GET</camunda : inputParameter >
44
- <camunda : outputParameter name =" weatherResponse" >${response}</camunda : outputParameter >
45
- </camunda : inputOutput >
46
- <camunda : connectorId >http-connector</camunda : connectorId >
47
- </camunda : connector >
48
- </bpmn : extensionElements >
49
- <bpmn : incoming >Flow_08b5esk</bpmn : incoming >
50
- <bpmn : outgoing >Flow_1m419sa</bpmn : outgoing >
51
- </bpmn : serviceTask >
52
38
<bpmn : scriptTask id =" Activity_0tafzgr" name =" extract temp" scriptFormat =" javascript" >
53
39
<bpmn : incoming >Flow_1m419sa</bpmn : incoming >
54
40
<bpmn : outgoing >Flow_03ix5a2</bpmn : outgoing >
@@ -81,6 +67,20 @@ execution.setVariable("temp", temp);</bpmn:script>
81
67
<bpmn : extensionElements />
82
68
<bpmn : outgoing >Flow_0h1c5x5</bpmn : outgoing >
83
69
</bpmn : startEvent >
70
+ <bpmn : serviceTask id =" Activity_02bbqmi" name =" ask for weather" >
71
+ <bpmn : extensionElements >
72
+ <camunda : connector >
73
+ <camunda : inputOutput >
74
+ <camunda : inputParameter name =" url" >https://api.openweathermap.org/data/2.5/weather?lat=${lat}& lon=${lon}& units=metric& appid=f350db2bd88588efbe929a3adedf926e</camunda : inputParameter >
75
+ <camunda : inputParameter name =" method" >GET</camunda : inputParameter >
76
+ <camunda : outputParameter name =" weatherResponse" >${response}</camunda : outputParameter >
77
+ </camunda : inputOutput >
78
+ <camunda : connectorId >http-connector</camunda : connectorId >
79
+ </camunda : connector >
80
+ </bpmn : extensionElements >
81
+ <bpmn : incoming >Flow_08b5esk</bpmn : incoming >
82
+ <bpmn : outgoing >Flow_1m419sa</bpmn : outgoing >
83
+ </bpmn : serviceTask >
84
84
</bpmn : process >
85
85
<bpmndi : BPMNDiagram id =" BPMNDiagram_1" >
86
86
<bpmndi : BPMNPlane id =" BPMNPlane_1" bpmnElement =" Collaboration_1ca8pj6" >
@@ -95,10 +95,6 @@ execution.setVariable("temp", temp);</bpmn:script>
95
95
<dc : Bounds x =" 550" y =" 170" width =" 100" height =" 80" />
96
96
<bpmndi : BPMNLabel />
97
97
</bpmndi : BPMNShape >
98
- <bpmndi : BPMNShape id =" Activity_02bbqmi_di" bpmnElement =" Activity_02bbqmi" >
99
- <dc : Bounds x =" 530" y =" 310" width =" 100" height =" 80" />
100
- <bpmndi : BPMNLabel />
101
- </bpmndi : BPMNShape >
102
98
<bpmndi : BPMNShape id =" Activity_0tafzgr_di" bpmnElement =" Activity_0tafzgr" >
103
99
<dc : Bounds x =" 790" y =" 310" width =" 100" height =" 80" />
104
100
<bpmndi : BPMNLabel />
@@ -119,6 +115,10 @@ execution.setVariable("temp", temp);</bpmn:script>
119
115
<dc : Bounds x =" 259" y =" 235" width =" 22" height =" 14" />
120
116
</bpmndi : BPMNLabel >
121
117
</bpmndi : BPMNShape >
118
+ <bpmndi : BPMNShape id =" Activity_02bbqmi_di" bpmnElement =" Activity_02bbqmi" >
119
+ <dc : Bounds x =" 550" y =" 310" width =" 100" height =" 80" />
120
+ <bpmndi : BPMNLabel />
121
+ </bpmndi : BPMNShape >
122
122
<bpmndi : BPMNEdge id =" Flow_0h1c5x5_di" bpmnElement =" Flow_0h1c5x5" >
123
123
<di : waypoint x =" 288" y =" 210" />
124
124
<di : waypoint x =" 370" y =" 210" />
@@ -132,7 +132,7 @@ execution.setVariable("temp", temp);</bpmn:script>
132
132
<di : waypoint x =" 600" y =" 310" />
133
133
</bpmndi : BPMNEdge >
134
134
<bpmndi : BPMNEdge id =" Flow_1m419sa_di" bpmnElement =" Flow_1m419sa" >
135
- <di : waypoint x =" 630 " y =" 350" />
135
+ <di : waypoint x =" 650 " y =" 350" />
136
136
<di : waypoint x =" 790" y =" 350" />
137
137
</bpmndi : BPMNEdge >
138
138
<bpmndi : BPMNEdge id =" Flow_03ix5a2_di" bpmnElement =" Flow_03ix5a2" >
0 commit comments