@5minds/node-red-contrib-processcube 1.5.1-feature-7901c3-m2ep49go → 1.5.1-feature-6ba46c-m2lk79r9

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.
@@ -23,7 +23,7 @@ module.exports = function (RED) {
23
23
  }
24
24
 
25
25
  const error = new Error(msgError.message);
26
- error.errorCode = config.error;
26
+ error.errorCode = config.error || {};
27
27
  error.errorDetails = RED.util.encodeObject(msg);
28
28
 
29
29
  msg.errorCode = config.error;
@@ -98,7 +98,7 @@ module.exports = function (RED) {
98
98
  task: RED.util.encodeObject(externalTask),
99
99
  payload: payload,
100
100
  flowNodeInstanceId: externalTask.flowNodeInstanceId,
101
- processInstanceId: externalTask.processInstanceId
101
+ processInstanceId: externalTask.processInstanceId,
102
102
  };
103
103
 
104
104
  node.log(
@@ -110,7 +110,11 @@ module.exports = function (RED) {
110
110
  };
111
111
 
112
112
  client.externalTasks
113
- .subscribeToExternalTaskTopic(config.topic, etwCallback, RED.util.evaluateNodeProperty(config.workerConfig, 'json', node))
113
+ .subscribeToExternalTaskTopic(
114
+ config.topic,
115
+ etwCallback,
116
+ RED.util.evaluateNodeProperty(config.workerConfig, 'json', node)
117
+ )
114
118
  .then(async (externalTaskWorker) => {
115
119
  node.status({ fill: 'blue', shape: 'ring', text: 'subcribed' });
116
120
 
@@ -135,6 +139,9 @@ module.exports = function (RED) {
135
139
 
136
140
  showStatus(node, Object.keys(started_external_tasks).length);
137
141
  break;
142
+ case 'fetchAndLock':
143
+ node.status({});
144
+ node.error(`Worker error ${errorType}: ${error.message}`);
138
145
  default:
139
146
  node.error(`Worker error ${errorType}: ${error.message}`);
140
147
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.5.1-feature-7901c3-m2ep49go",
3
+ "version": "1.5.1-feature-6ba46c-m2lk79r9",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {