Skip to content

Commit 9a093eb

Browse files
FlurinFlurin
Flurin
authored and
Flurin
committed
fixes
1 parent 86a5d09 commit 9a093eb

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

soemi-moen/soemi-moen.bpmn

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ execution.setVariable("lon", lon);</bpmn:script>
3535
<bpmn:sequenceFlow id="Flow_08b5esk" sourceRef="Activity_1nrekgz" targetRef="Activity_02bbqmi" />
3636
<bpmn:sequenceFlow id="Flow_1m419sa" sourceRef="Activity_02bbqmi" targetRef="Activity_0tafzgr" />
3737
<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}&amp;lon=${lon}&amp;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>
5238
<bpmn:scriptTask id="Activity_0tafzgr" name="extract temp" scriptFormat="javascript">
5339
<bpmn:incoming>Flow_1m419sa</bpmn:incoming>
5440
<bpmn:outgoing>Flow_03ix5a2</bpmn:outgoing>
@@ -81,6 +67,20 @@ execution.setVariable("temp", temp);</bpmn:script>
8167
<bpmn:extensionElements />
8268
<bpmn:outgoing>Flow_0h1c5x5</bpmn:outgoing>
8369
</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}&amp;lon=${lon}&amp;units=metric&amp;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>
8484
</bpmn:process>
8585
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
8686
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1ca8pj6">
@@ -95,10 +95,6 @@ execution.setVariable("temp", temp);</bpmn:script>
9595
<dc:Bounds x="550" y="170" width="100" height="80" />
9696
<bpmndi:BPMNLabel />
9797
</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>
10298
<bpmndi:BPMNShape id="Activity_0tafzgr_di" bpmnElement="Activity_0tafzgr">
10399
<dc:Bounds x="790" y="310" width="100" height="80" />
104100
<bpmndi:BPMNLabel />
@@ -119,6 +115,10 @@ execution.setVariable("temp", temp);</bpmn:script>
119115
<dc:Bounds x="259" y="235" width="22" height="14" />
120116
</bpmndi:BPMNLabel>
121117
</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>
122122
<bpmndi:BPMNEdge id="Flow_0h1c5x5_di" bpmnElement="Flow_0h1c5x5">
123123
<di:waypoint x="288" y="210" />
124124
<di:waypoint x="370" y="210" />
@@ -132,7 +132,7 @@ execution.setVariable("temp", temp);</bpmn:script>
132132
<di:waypoint x="600" y="310" />
133133
</bpmndi:BPMNEdge>
134134
<bpmndi:BPMNEdge id="Flow_1m419sa_di" bpmnElement="Flow_1m419sa">
135-
<di:waypoint x="630" y="350" />
135+
<di:waypoint x="650" y="350" />
136136
<di:waypoint x="790" y="350" />
137137
</bpmndi:BPMNEdge>
138138
<bpmndi:BPMNEdge id="Flow_03ix5a2_di" bpmnElement="Flow_03ix5a2">

soemi-woeb/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function App() {
4444
console.log(varRes);
4545
const varJson = await varRes.json();
4646
console.log(varJson);
47-
const temp = varJson.value;
47+
const temp = varJson[0].value;
4848
console.log(temp);
4949

5050
return temp;

0 commit comments

Comments
 (0)