@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.
@@ -429,7 +429,7 @@
429
429
  },
430
430
  "@5minds/node-red-contrib-processcube": {
431
431
  "name": "@5minds/node-red-contrib-processcube",
432
- "version": "1.8.4",
432
+ "version": "1.8.6",
433
433
  "local": false,
434
434
  "user": false,
435
435
  "nodes": {
@@ -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: 'green', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count}).` });
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: 'green', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count}).` });
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: 'green', shape: 'dot', text: `tasks(${msgCounter}) ->'${node._step}'.` });
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: 'green', shape: 'dot', text: `tasks(${msgCounter}).` });
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: 'blue', shape: 'ring', text: `subcribed.` });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.8.5-develop-bbf751-m7pcta62",
3
+ "version": "1.8.8-develop-655470-m7ss9len",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -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 &#34;Test&#34;" camunda:type="external" camunda:topic="Test">
23
- <bpmn:extensionElements>
24
- <camunda:properties>
25
- <camunda:property name="payload" value="{&#10; &#34;hello&#34;: &#34;world&#34;&#10;}" />
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="false" />
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">*/10 * * * * *</bpmn:timeCycle>
50
+ <bpmn:timeCycle xsi:type="bpmn:tFormalExpression">*/5 * * * * *</bpmn:timeCycle>
56
51
  </bpmn:timerEventDefinition>
57
52
  </bpmn:startEvent>
58
53
  </bpmn:process>