@5minds/node-red-contrib-processcube 1.5.10-feature-495a3f-m4mrvan4 → 1.5.10-feature-b754b9-m4mtb82p

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.
@@ -21,7 +21,7 @@ module.exports = function (RED) {
21
21
  });
22
22
  });
23
23
  } catch (error) {
24
- node.error(error);
24
+ node.error(JSON.stringify(error));
25
25
  }
26
26
 
27
27
  node.on('close', async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.5.10-feature-495a3f-m4mrvan4",
3
+ "version": "1.5.10-feature-b754b9-m4mtb82p",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -40,7 +40,6 @@ module.exports = function (RED) {
40
40
  matchingInstances.processInstances.length == 1
41
41
  ) {
42
42
  const processInstance = matchingInstances.processInstances[0];
43
-
44
43
  node.send({
45
44
  payload: {
46
45
  processInstanceId: processNotification.processInstanceId,
@@ -52,8 +51,9 @@ module.exports = function (RED) {
52
51
  });
53
52
  }
54
53
  } catch (error) {
55
- node.error(error);
54
+ node.error(JSON.stringify(error));
56
55
  }
56
+
57
57
  });
58
58
  case 'started':
59
59
  return await client.notification.onProcessStarted(async (processNotification) => {
@@ -90,7 +90,7 @@ module.exports = function (RED) {
90
90
  });
91
91
  }
92
92
  } catch (error) {
93
- node.error(error);
93
+ node.error(JSON.stringify(error));
94
94
  }
95
95
  });
96
96
  case 'resumed':
@@ -123,7 +123,7 @@ module.exports = function (RED) {
123
123
  });
124
124
  }
125
125
  } catch (error) {
126
- node.error(error);
126
+ node.error(JSON.stringify(error));
127
127
  }
128
128
  });
129
129
  case 'finished':
@@ -157,7 +157,7 @@ module.exports = function (RED) {
157
157
  });
158
158
  }
159
159
  } catch (error) {
160
- node.error(error);
160
+ node.error(JSON.stringify(error));
161
161
  }
162
162
  });
163
163
  case 'terminated':
@@ -189,7 +189,7 @@ module.exports = function (RED) {
189
189
  });
190
190
  }
191
191
  } catch (error) {
192
- node.error(error);
192
+ node.error(JSON.stringify(error));
193
193
  }
194
194
  });
195
195
  case 'error':
@@ -222,7 +222,7 @@ module.exports = function (RED) {
222
222
  });
223
223
  }
224
224
  } catch (error) {
225
- node.error(error);
225
+ node.error(JSON.stringify(error));
226
226
  }
227
227
  });
228
228
  case 'owner-changed':
@@ -254,7 +254,7 @@ module.exports = function (RED) {
254
254
  });
255
255
  }
256
256
  } catch (error) {
257
- node.error(error);
257
+ node.error(JSON.stringify(error));
258
258
  }
259
259
  });
260
260
  case 'instances-deleted':
@@ -286,7 +286,7 @@ module.exports = function (RED) {
286
286
  });
287
287
  }
288
288
  } catch (error) {
289
- node.error(error);
289
+ node.error(JSON.stringify(error));
290
290
  }
291
291
  });
292
292
  case 'is-executable-changed':
package/process-start.js CHANGED
@@ -43,7 +43,10 @@ module.exports = function (RED) {
43
43
  });
44
44
  })
45
45
  .catch((error) => {
46
+ <<<<<<< HEAD
46
47
  node.log("luis888J")
48
+ =======
49
+ >>>>>>> develop
47
50
  node.error(JSON.stringify(error));
48
51
  });
49
52
  });
@@ -18,7 +18,7 @@ module.exports = function (RED) {
18
18
  node.send(msg);
19
19
  })
20
20
  .catch((error) => {
21
- node.error(error);
21
+ node.error(JSON.stringify(error));
22
22
  });
23
23
  });
24
24
  }
@@ -11,14 +11,18 @@ module.exports = function (RED) {
11
11
  node.credentials.clientId = RED.util.evaluateNodeProperty(n.clientId, n.clientIdType, node);
12
12
  node.credentials.clientSecret = RED.util.evaluateNodeProperty(n.clientSecret, n.clientSecretType, node);
13
13
 
14
- if (node.credentials.clientId && node.credentials.clientSecret) {
15
- node.engineClient = new engine_client.EngineClient(node.url, {
16
- clientId: node.credentials.clientId,
17
- clientSecret: node.credentials.clientSecret,
18
- scope: 'engine_etw engine_read engine_write',
19
- });
20
- } else {
21
- node.engineClient = new engine_client.EngineClient(node.url);
14
+ try {
15
+ if (node.credentials.clientId && node.credentials.clientSecret) {
16
+ node.engineClient = new engine_client.EngineClient(node.url, {
17
+ clientId: node.credentials.clientId,
18
+ clientSecret: node.credentials.clientSecret,
19
+ scope: 'engine_etw engine_read engine_write',
20
+ });
21
+ } else {
22
+ node.engineClient = new engine_client.EngineClient(node.url);
23
+ }
24
+ } catch (error) {
25
+ node.error(JSON.stringify(error));
22
26
  }
23
27
 
24
28
  node.on('close', async () => {
@@ -39,7 +39,7 @@ module.exports = function (RED) {
39
39
  node.send(msg);
40
40
  })
41
41
  .catch((error) => {
42
- node.error(error);
42
+ node.error(JSON.stringify(error));
43
43
  });
44
44
  });
45
45
  }
@@ -48,7 +48,7 @@ module.exports = function (RED) {
48
48
  await client.processInstances.deleteProcessInstances(ids, true, node.engine.identity);
49
49
  node.send(msg);
50
50
  } catch (error) {
51
- node.error(error);
51
+ node.error(JSON.stringify(error));
52
52
  }
53
53
  });
54
54
  }
@@ -29,7 +29,7 @@ module.exports = function (RED) {
29
29
  });
30
30
  })
31
31
  .catch((error) => {
32
- node.error(error);
32
+ node.error(JSON.stringify(error));
33
33
  });
34
34
  });
35
35
  }
@@ -42,7 +42,7 @@ module.exports = function (RED) {
42
42
  });
43
43
  }
44
44
  } catch (error) {
45
- node.error(error);
45
+ node.error(JSON.stringify(error));
46
46
  }
47
47
  };
48
48
  }
package/usertask-input.js CHANGED
@@ -32,7 +32,7 @@ module.exports = function (RED) {
32
32
  } else node.log(`No user tasks found for query: ${JSON.stringify(query)}`);
33
33
  })
34
34
  .catch((error) => {
35
- node.error(error);
35
+ node.error(JSON.stringify(error));
36
36
  });
37
37
  });
38
38
  }
@@ -24,7 +24,7 @@ module.exports = function (RED) {
24
24
  node.send(msg);
25
25
  })
26
26
  .catch((error) => {
27
- node.error(error);
27
+ node.error(JSON.stringify(error));
28
28
  });
29
29
  } else {
30
30
  node.error(`No UserTask found in message: ${JSON.stringify(msg.payload)}`);
@@ -39,7 +39,7 @@ module.exports = function (RED) {
39
39
  // nothing todo - wait for next notification
40
40
  }
41
41
  } catch (error) {
42
- node.error(error);
42
+ node.error(JSON.stringify(error));
43
43
  }
44
44
  });
45
45
 
@@ -67,7 +67,7 @@ module.exports = function (RED) {
67
67
  // let the *currentIdentity* be active
68
68
  }
69
69
  } catch (error) {
70
- node.error(error);
70
+ node.error(JSON.stringify(error));
71
71
  }
72
72
  }
73
73
  };