@5minds/node-red-contrib-processcube 1.5.2-debug-ea65c8-m35v1ji4 → 1.5.2-debug-1ac394-m35x7rk5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,10 +110,16 @@ 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
 
121
+ node.log('engine_identiy777', engine.identity);
122
+ node.log(engine.identity);
117
123
  externalTaskWorker.identity = engine.identity;
118
124
  engine.registerOnIdentityChanged((identity) => {
119
125
  externalTaskWorker.identity = identity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.5.2-debug-ea65c8-m35v1ji4",
3
+ "version": "1.5.2-debug-1ac394-m35x7rk5",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -143,7 +143,7 @@ async function startRefreshingIdentityCycle(clientId, clientSecret, authorityUrl
143
143
  configNode.setIdentity(freshIdentity);
144
144
 
145
145
  retries = 5;
146
- setTimeout(refresh, 2000);
146
+ setTimeout(refresh, delay);
147
147
  } catch (error) {
148
148
  if (retries === 0) {
149
149
  console.error(