@5minds/node-red-contrib-processcube 1.8.8-develop-655470-m7ss9len → 1.8.8-develop-cdf681-m7tddlu4

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.6",
432
+ "version": "1.8.8",
433
433
  "local": false,
434
434
  "user": false,
435
435
  "nodes": {
@@ -1254,8 +1254,8 @@
1254
1254
  "g": "70d7a70e375b162a",
1255
1255
  "name": "",
1256
1256
  "pauseType": "delay",
1257
- "timeout": "5",
1258
- "timeoutUnits": "seconds",
1257
+ "timeout": "2",
1258
+ "timeoutUnits": "minutes",
1259
1259
  "rate": "1",
1260
1260
  "nbRateUnits": "1",
1261
1261
  "rateUnits": "second",
@@ -1,6 +1,4 @@
1
1
  const EventEmitter = require('node:events');
2
- const { send } = require('node:process');
3
-
4
2
 
5
3
  module.exports = function (RED) {
6
4
  function ExternalTaskInput(config) {
@@ -233,7 +231,7 @@ module.exports = function (RED) {
233
231
  } catch (error) {
234
232
  node.setErrorFinishHandlingTaskStatus(externalTask, error);
235
233
  msg.error = error;
236
- node.error(`failed send to engine *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* ${externalTask.processInstanceId}: ${erro?.message}`, msg);
234
+ node.error(`failed send to engine *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* ${externalTask.processInstanceId}: ${error?.message}`, msg);
237
235
  }
238
236
  };
239
237
 
@@ -326,6 +324,10 @@ module.exports = function (RED) {
326
324
 
327
325
  node.setUnsubscribedStatus(error);
328
326
 
327
+ // abort the external task MM: waiting for a fix in the client.ts
328
+ //externalTaskWorker.abortExternalTaskIfPresent(externalTask.id);
329
+ //node.log(`Cancel external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}'.`)
330
+
329
331
  break;
330
332
  case 'fetchAndLock':
331
333
  node.setUnsubscribedStatus(error);
@@ -338,7 +340,7 @@ module.exports = function (RED) {
338
340
 
339
341
  try {
340
342
  externalTaskWorker.start();
341
- node.setUnsubscribedStatus();
343
+ node.setUnsubscribedStatus(new Error('Worker starting.'));
342
344
  } catch (error) {
343
345
  node.error(`Worker start 'externalTaskWorker.start' failed: ${error.message}`, {});
344
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.8.8-develop-655470-m7ss9len",
3
+ "version": "1.8.8-develop-cdf681-m7tddlu4",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -59,7 +59,7 @@
59
59
  "examples": "examples"
60
60
  },
61
61
  "dependencies": {
62
- "@5minds/processcube_engine_client": "5.1.10",
62
+ "@5minds/processcube_engine_client": "5.2.0",
63
63
  "jwt-decode": "^4.0.0",
64
64
  "openid-client": "^5.5.0"
65
65
  },