@5minds/node-red-contrib-processcube 1.12.0 → 1.12.1
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.html +2 -1
- package/externaltask-input.js +10 -1
- package/package.json +1 -1
package/externaltask-input.html
CHANGED
@@ -39,7 +39,8 @@
|
|
39
39
|
{ value: "start", label: "Start" },
|
40
40
|
{ value: "enter", label: "Enter" },
|
41
41
|
{ value: "exit", label: "Exit" },
|
42
|
-
{ value: "
|
42
|
+
{ value: "error", label: "Error" }
|
43
|
+
{ value: "finish", label: "Finish" },
|
43
44
|
];
|
44
45
|
|
45
46
|
const selectEl = $("#node-input-traces");
|
package/externaltask-input.js
CHANGED
@@ -271,7 +271,6 @@ module.exports = function (RED) {
|
|
271
271
|
|
272
272
|
node.traceExecution(debugMsg);
|
273
273
|
|
274
|
-
|
275
274
|
this.clearTracking(externalTask); // as msg
|
276
275
|
this.showStatus();
|
277
276
|
};
|
@@ -284,6 +283,16 @@ module.exports = function (RED) {
|
|
284
283
|
this._subscribed_error = error;
|
285
284
|
this.error(`finished task failed (topic: ${node.topic}).`);
|
286
285
|
|
286
|
+
const debugMsg = {
|
287
|
+
event: 'error',
|
288
|
+
topic: node.topic,
|
289
|
+
flowNodeInstanceId: externalTask.flowNodeInstanceId,
|
290
|
+
timestamp: new Date().toISOString(),
|
291
|
+
};
|
292
|
+
|
293
|
+
node.traceExecution(debugMsg);
|
294
|
+
|
295
|
+
|
287
296
|
this.showStatus();
|
288
297
|
};
|
289
298
|
|