@5minds/node-red-contrib-processcube 1.8.5-develop-bbf751-m7pcta62 → 1.8.8-develop-655470-m7ss9len
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/externaltask-input.js
CHANGED
@@ -60,7 +60,7 @@ module.exports = function (RED) {
|
|
60
60
|
node._tracking_for_etw[msg.flowNodeInstanceId].push(theNode);
|
61
61
|
}
|
62
62
|
|
63
|
-
theNode.status({ fill: '
|
63
|
+
theNode.status({ fill: 'blue', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count})` });
|
64
64
|
};
|
65
65
|
|
66
66
|
node.decrMsgOnNode = (theNode, msg) => {
|
@@ -89,7 +89,7 @@ module.exports = function (RED) {
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
|
92
|
-
theNode.status({ fill: '
|
92
|
+
theNode.status({ fill: 'blue', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count})` });
|
93
93
|
};
|
94
94
|
|
95
95
|
RED.hooks.add('preDeliver', (sendEvent) => {
|
@@ -181,28 +181,29 @@ module.exports = function (RED) {
|
|
181
181
|
nodeName: node.name,
|
182
182
|
nodeType: 'externaltask-input',
|
183
183
|
message: message
|
184
|
+
});
|
184
185
|
};
|
185
186
|
|
186
187
|
node.showStatus = () => {
|
187
188
|
const msgCounter = Object.keys(this.started_external_tasks).length;
|
188
189
|
|
189
190
|
if (this._subscribed === false) {
|
190
|
-
this.status({ fill: 'red', shape: 'ring', text: `subscription failed (${msgCounter})
|
191
|
+
this.status({ fill: 'red', shape: 'ring', text: `subscription failed (${msgCounter})` });
|
191
192
|
|
192
|
-
this.sendStatus('NotOk', `subscription failed (${msgCounter})
|
193
|
+
this.sendStatus('NotOk', `subscription failed (${msgCounter})`);
|
193
194
|
} else {
|
194
195
|
if (msgCounter >= 1) {
|
195
196
|
if (node._step) {
|
196
|
-
this.status({ fill: '
|
197
|
+
this.status({ fill: 'blue', shape: 'dot', text: `tasks(${msgCounter}) ->'${node._step}'` });
|
197
198
|
this.sendStatus('Ok', `tasks(${msgCounter}) ->'${node._step}'.`);
|
198
199
|
} else {
|
199
|
-
this.status({ fill: '
|
200
|
-
this.sendStatus('Ok', `tasks(${msgCounter})
|
200
|
+
this.status({ fill: 'blue', shape: 'dot', text: `tasks(${msgCounter})` });
|
201
|
+
this.sendStatus('Ok', `tasks(${msgCounter})`);
|
201
202
|
}
|
202
203
|
this.log(`handling tasks ${msgCounter}.`);
|
203
204
|
} else {
|
204
|
-
this.status({ fill: '
|
205
|
-
this.sendStatus('Ok', `subcribed
|
205
|
+
this.status({ fill: 'green', shape: 'ring', text: `subcribed` });
|
206
|
+
this.sendStatus('Ok', `subcribed`);
|
206
207
|
}
|
207
208
|
}
|
208
209
|
};
|
package/package.json
CHANGED
@@ -20,11 +20,6 @@
|
|
20
20
|
</bpmn:endEvent>
|
21
21
|
<bpmn:sequenceFlow id="Flow_0y6es1p" sourceRef="Event_0o7qlkd" targetRef="Event_0yn9mzh" />
|
22
22
|
<bpmn:serviceTask id="Activity_02ykwt2" name="Topic "Test"" camunda:type="external" camunda:topic="Test">
|
23
|
-
<bpmn:extensionElements>
|
24
|
-
<camunda:properties>
|
25
|
-
<camunda:property name="payload" value="{ "hello": "world" }" />
|
26
|
-
</camunda:properties>
|
27
|
-
</bpmn:extensionElements>
|
28
23
|
<bpmn:incoming>Flow_0qmxzxk</bpmn:incoming>
|
29
24
|
<bpmn:outgoing>Flow_16dfeac</bpmn:outgoing>
|
30
25
|
</bpmn:serviceTask>
|
@@ -47,12 +42,12 @@
|
|
47
42
|
<bpmn:startEvent id="StartEvent_1" name="Start">
|
48
43
|
<bpmn:extensionElements>
|
49
44
|
<camunda:properties>
|
50
|
-
<camunda:property name="enabled" value="
|
45
|
+
<camunda:property name="enabled" value="true" />
|
51
46
|
</camunda:properties>
|
52
47
|
</bpmn:extensionElements>
|
53
48
|
<bpmn:outgoing>Flow_0qmxzxk</bpmn:outgoing>
|
54
49
|
<bpmn:timerEventDefinition id="TimerEventDefinition_02zdsh9">
|
55
|
-
<bpmn:timeCycle xsi:type="bpmn:tFormalExpression">*/
|
50
|
+
<bpmn:timeCycle xsi:type="bpmn:tFormalExpression">*/5 * * * * *</bpmn:timeCycle>
|
56
51
|
</bpmn:timerEventDefinition>
|
57
52
|
</bpmn:startEvent>
|
58
53
|
</bpmn:process>
|