@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.
@@ -39,7 +39,8 @@
39
39
  { value: "start", label: "Start" },
40
40
  { value: "enter", label: "Enter" },
41
41
  { value: "exit", label: "Exit" },
42
- { value: "finish", label: "Finish" }
42
+ { value: "error", label: "Error" }
43
+ { value: "finish", label: "Finish" },
43
44
  ];
44
45
 
45
46
  const selectEl = $("#node-input-traces");
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {