@5minds/node-red-contrib-processcube 1.7.5-feature-f9d61e-m6l18es1 → 1.7.5-feature-b0ec94-m6q67f5m

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.
Files changed (39) hide show
  1. package/.processcube/nodered/.config.nodes.json +1 -1
  2. package/.processcube/nodered/config.js +3 -2
  3. package/.processcube/nodered/settings.js +1 -1
  4. package/doc_generator/generator.js +5 -5
  5. package/doc_generator/generator_with_swagger.js +78 -80
  6. package/endevent-finished-listener.html +16 -16
  7. package/externaltask-error.html +11 -11
  8. package/externaltask-error.js +1 -3
  9. package/externaltask-event-listener.html +9 -9
  10. package/externaltask-input.html +26 -26
  11. package/externaltask-input.js +8 -6
  12. package/externaltask-output.html +7 -7
  13. package/message-event-trigger.html +8 -8
  14. package/message-event-trigger.js +2 -2
  15. package/package.json +2 -5
  16. package/process-event-listener.html +74 -74
  17. package/process-event-listener.js +2 -1
  18. package/process-start.html +12 -12
  19. package/process-start.js +3 -3
  20. package/process-terminate.html +9 -9
  21. package/process-terminate.js +1 -1
  22. package/processcube-engine-config.html +8 -8
  23. package/processdefinition-deploy.html +9 -9
  24. package/processdefinition-deploy.js +2 -2
  25. package/processdefinition-query.html +140 -139
  26. package/processdefinition-query.js +1 -1
  27. package/processinstance-delete.html +46 -48
  28. package/processinstance-delete.js +11 -20
  29. package/processinstance-query.html +119 -120
  30. package/processinstance-query.js +2 -2
  31. package/signal-event-trigger.html +9 -8
  32. package/signal-event-trigger.js +2 -2
  33. package/usertask-event-listener.html +127 -126
  34. package/usertask-input.html +125 -126
  35. package/usertask-input.js +2 -2
  36. package/usertask-output.html +7 -7
  37. package/usertask-output.js +3 -4
  38. package/wait-for-usertask.html +164 -173
  39. package/wait-for-usertask.js +28 -35
@@ -429,7 +429,7 @@
429
429
  },
430
430
  "@5minds/node-red-contrib-processcube": {
431
431
  "name": "@5minds/node-red-contrib-processcube",
432
- "version": "1.7.4",
432
+ "version": "2.0.0",
433
433
  "local": false,
434
434
  "user": false,
435
435
  "nodes": {
@@ -1,3 +1,4 @@
1
+
1
2
  // let cause of merge custom settings
2
3
 
3
4
  let config = {};
@@ -5,7 +6,7 @@ let config = {};
5
6
  try {
6
7
  config = require('./settings.js');
7
8
  } catch (e) {
8
- console.log('>>>', e);
9
+ console.log(">>>", e);
9
10
  }
10
11
 
11
12
  process.on('uncaughtException', (err) => {
@@ -14,6 +15,6 @@ process.on('uncaughtException', (err) => {
14
15
 
15
16
  process.on('unhandledRejection', (reason, promise) => {
16
17
  console.error(`Unhandled Rejection at ${promise} reason: ${reason}`, {});
17
- });
18
+ });
18
19
 
19
20
  module.exports = config;
@@ -383,7 +383,7 @@ module.exports = {
383
383
 
384
384
  header: {
385
385
  title: ' powers by Node-RED',
386
- image: '/data/static/ProcessCube_Logo.svg',
386
+ image: "/data/static/ProcessCube_Logo.svg",
387
387
  url: 'https://processcube.io', // optional url to make the header text/image a link to this url
388
388
  },
389
389
  palette: {
@@ -1,14 +1,14 @@
1
1
  const Mustache = require('mustache');
2
2
  const fs = require('fs');
3
3
 
4
- const swaggerFilename = '../../ProcessCube.Engine/docs/swagger/swagger.json'; // Dateiname der Swagger-Datei
4
+ const swaggerFilename = '../../ProcessCube.Engine/docs/swagger/swagger.json'; // Dateiname der Swagger-Datei
5
5
 
6
6
  const swaggerJson = JSON.parse(fs.readFileSync(swaggerFilename, 'utf-8'));
7
7
 
8
8
  //console.log(Object.keys(swaggerJson.paths));
9
9
  //return
10
10
 
11
- const apiPath = '/process_instances/query'; // Die API-Route, die du dokumentieren möchtest
11
+ const apiPath = '/process_instances/query'; // Die API-Route, die du dokumentieren möchtest
12
12
  const routeData = swaggerJson.paths[apiPath];
13
13
 
14
14
  if (routeData) {
@@ -20,14 +20,14 @@ if (routeData) {
20
20
  // API-Route-Information vorbereiten
21
21
  const apiRouteData = {
22
22
  path: apiPath,
23
- method: Object.keys(routeData)[0], // z.B. GET, POST, etc.
23
+ method: Object.keys(routeData)[0], // z.B. GET, POST, etc.
24
24
  summary: routeData[Object.keys(routeData)[0]].summary,
25
25
  description: routeData[Object.keys(routeData)[0]].description,
26
26
  parameters: routeData[Object.keys(routeData)[0]].parameters || [],
27
27
  responses: Object.entries(routeData[Object.keys(routeData)[0]].responses).map(([status, response]) => ({
28
28
  status,
29
- description: response.description,
30
- })),
29
+ description: response.description
30
+ }))
31
31
  };
32
32
 
33
33
  // Mustache-Template einlesen
@@ -6,86 +6,84 @@ const SwaggerParser = require('swagger-parser');
6
6
  //const swaggerFilename = '../../ProcessCube.Engine/docs/swagger/swagger.json'; // Dateiname der Swagger-Datei
7
7
  //const swaggerFilename = 'swagger.json'; // Dateiname der Swagger-Datei
8
8
 
9
- SwaggerParser.dereference('http://localhost:56100/atlas_engine/api/v1/swagger')
10
- //SwaggerParser.dereference(swaggerFilename)
11
- .then((swaggerJson) => {
12
- console.log('Dereferenced API:', swaggerJson);
13
9
 
14
- const apiPaths = [
15
- {
16
- 'ProcessInstance Query': {
17
- path: '/process_instances/query',
18
- method: 'get',
19
- },
20
- 'UserTasks Input': {
21
- path: '/process_instances/query',
22
- method: 'get',
23
- },
24
- 'Wait for UserTask': {
25
- path: '/process_instances/query',
26
- method: 'get',
27
- },
28
- 'UserTask Event Listener': {
29
- path: '/process_instances/query',
30
- method: 'get',
31
- },
32
- },
33
- ];
34
-
35
- apiPaths.forEach((apiEntry) => {
36
- console.log('API Entry:', apiEntry);
37
- console.log('API Entry Keys:', Object.keys(apiEntry));
38
-
39
- Object.keys(apiEntry).forEach((apiName) => {
40
- console.log('API Name:', apiName);
41
- console.log('API Data:', apiEntry[apiName]);
42
-
43
- let apiPath = apiEntry[apiName].path; // Die API-Route, die du dokumentieren möchtest
44
-
45
- //let apiPath = '/process_instances/query'; // Die API-Route, die du dokumentieren möchtest
46
- const routeData = swaggerJson.paths[apiPath];
47
-
48
- if (routeData) {
49
- console.log(`Details for ${apiPath}:`, routeData);
50
- } else {
51
- console.error(`Route ${apiPath} not found in Swagger documentation.`);
52
- }
53
-
54
- let description = routeData[Object.keys(routeData)[0]].description;
55
-
56
- description = `Filter result for '${apiName}'`;
57
-
58
- // API-Route-Information vorbereiten
59
- const apiRouteData = {
60
- path: apiPath,
61
- method: Object.keys(routeData)[0], // z.B. GET, POST, etc.
62
- summary: routeData[Object.keys(routeData)[0]].summary,
63
- description: description,
64
- parameters: routeData[Object.keys(routeData)[0]].parameters || [],
65
- responses: Object.entries(routeData[Object.keys(routeData)[0]].responses).map(
66
- ([status, response]) => ({
67
- status,
68
- description: response.description,
69
- }),
70
- ),
71
- };
72
-
73
- // Mustache-Template einlesen
74
- const template = fs.readFileSync('query_template.mustache', 'utf-8');
75
-
76
- // Mustache-Rendering
77
- const output = Mustache.render(template, apiRouteData);
78
-
79
- // Ausgabe in eine Datei schreiben oder anzeigen
80
- //console.log(output);
81
-
82
- const outputFilename = apiName.replace(/\/ /g, '_') + '.md';
83
- console.log(`Writing output to ${outputFilename}`);
84
-
85
- fs.writeFileSync(`outputs/${outputFilename}`, output);
86
- });
10
+ SwaggerParser.dereference("http://localhost:56100/atlas_engine/api/v1/swagger")
11
+ //SwaggerParser.dereference(swaggerFilename)
12
+ .then(swaggerJson => {
13
+ console.log('Dereferenced API:', swaggerJson);
14
+
15
+ const apiPaths = [{
16
+ "ProcessInstance Query": {
17
+ "path": "/process_instances/query",
18
+ "method": "get"
19
+ },
20
+ "UserTasks Input": {
21
+ "path": "/process_instances/query",
22
+ "method": "get"
23
+ },
24
+ "Wait for UserTask": {
25
+ "path": "/process_instances/query",
26
+ "method": "get"
27
+ },
28
+ "UserTask Event Listener": {
29
+ "path": "/process_instances/query",
30
+ "method": "get"
31
+ }
32
+ }];
33
+
34
+ apiPaths.forEach(apiEntry => {
35
+ console.log('API Entry:', apiEntry);
36
+ console.log('API Entry Keys:', Object.keys(apiEntry));
37
+
38
+ Object.keys(apiEntry).forEach(apiName => {
39
+ console.log('API Name:', apiName);
40
+ console.log('API Data:', apiEntry[apiName]);
41
+
42
+ let apiPath = apiEntry[apiName].path; // Die API-Route, die du dokumentieren möchtest
43
+
44
+ //let apiPath = '/process_instances/query'; // Die API-Route, die du dokumentieren möchtest
45
+ const routeData = swaggerJson.paths[apiPath];
46
+
47
+ if (routeData) {
48
+ console.log(`Details for ${apiPath}:`, routeData);
49
+ } else {
50
+ console.error(`Route ${apiPath} not found in Swagger documentation.`);
51
+ }
52
+
53
+ let description = routeData[Object.keys(routeData)[0]].description;
54
+
55
+ description = `Filter result for '${apiName}'`;
56
+
57
+ // API-Route-Information vorbereiten
58
+ const apiRouteData = {
59
+ path: apiPath,
60
+ method: Object.keys(routeData)[0], // z.B. GET, POST, etc.
61
+ summary: routeData[Object.keys(routeData)[0]].summary,
62
+ description: description,
63
+ parameters: routeData[Object.keys(routeData)[0]].parameters || [],
64
+ responses: Object.entries(routeData[Object.keys(routeData)[0]].responses).map(([status, response]) => ({
65
+ status,
66
+ description: response.description
67
+ }))
68
+ };
69
+
70
+ // Mustache-Template einlesen
71
+ const template = fs.readFileSync('query_template.mustache', 'utf-8');
72
+
73
+ // Mustache-Rendering
74
+ const output = Mustache.render(template, apiRouteData);
75
+
76
+ // Ausgabe in eine Datei schreiben oder anzeigen
77
+ //console.log(output);
78
+
79
+ const outputFilename = apiName.replace(/\/ /g, '_') + '.md';
80
+ console.log(`Writing output to ${outputFilename}`);
81
+
82
+ fs.writeFileSync(`outputs/${outputFilename}`, output);
87
83
  });
88
- })
89
- .catch((err) => {
90
- console.error('Dereferencing failed:', err);
91
84
  });
85
+
86
+ })
87
+ .catch(err => {
88
+ console.error('Dereferencing failed:', err);
89
+ });
@@ -27,24 +27,24 @@
27
27
  </script>
28
28
 
29
29
  <script type="text/markdown" data-help-name="endevent-finished-listener">
30
- Waiting for end events that are finished.
30
+ Waiting for end events that are finished.
31
31
 
32
- ## Outputs
32
+ ## Outputs
33
33
 
34
- : correlationId (string): The unique identifier for the correlation.
35
- : processDefinitionId (string): The identifier for the process definition.
36
- : processModelId (string): The identifier for the process model.
37
- : processModelName (string): The name of the process model.
38
- : processInstanceId (string): The unique identifier for the process instance.
39
- : flowNodeId (string): The identifier for the flow node.
40
- : flowNodeName (string): The name of the flow node.
41
- : flowNodeInstanceId (string): The unique identifier for the flow node instance.
42
- : previousFlowNodeInstanceId (string): The unique identifier for the previous flow node instance.
43
- : ownerId (string): The identifier of the owner.
44
- : currentToken (Object): An object representing the current token.
34
+ : correlationId (string): The unique identifier for the correlation.
35
+ : processDefinitionId (string): The identifier for the process definition.
36
+ : processModelId (string): The identifier for the process model.
37
+ : processModelName (string): The name of the process model.
38
+ : processInstanceId (string): The unique identifier for the process instance.
39
+ : flowNodeId (string): The identifier for the flow node.
40
+ : flowNodeName (string): The name of the flow node.
41
+ : flowNodeInstanceId (string): The unique identifier for the flow node instance.
42
+ : previousFlowNodeInstanceId (string): The unique identifier for the previous flow node instance.
43
+ : ownerId (string): The identifier of the owner.
44
+ : currentToken (Object): An object representing the current token.
45
45
 
46
- ### References
46
+ ### References
47
47
 
48
- - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
49
- - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
48
+ - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
49
+ - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
50
50
  </script>
@@ -28,19 +28,19 @@
28
28
  </script>
29
29
 
30
30
  <script type="text/markdown" data-help-name="externaltask-error">
31
- Used for reporting errors in the processing of external tasks. The error
32
- code `Error` in the configuration is forwarded to the ProcessCube engine for
33
- handling within _Error-Boundary-Events_.
31
+ Used for reporting errors in the processing of external tasks. The error
32
+ code `Error` in the configuration is forwarded to the ProcessCube engine for
33
+ handling within _Error-Boundary-Events_.
34
34
 
35
- ## Inputs
35
+ ## Inputs
36
36
 
37
- : msg (Object) : Passed as `ErrorDetails` to the engine
38
- : Error (string) : From the configuration
39
- : Message (string) : The caught exception message
40
- : StackTrace (string) : The stack trace of the exception
37
+ : msg (Object) : Passed as `ErrorDetails` to the engine
38
+ : Error (string) : From the configuration
39
+ : Message (string) : The caught exception message
40
+ : StackTrace (string) : The stack trace of the exception
41
41
 
42
- ### References
42
+ ### References
43
43
 
44
- - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
45
- - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
44
+ - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
45
+ - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
46
46
  </script>
@@ -28,9 +28,7 @@ module.exports = function (RED) {
28
28
  msg.errorCode = config.error;
29
29
  msg.errorMessage = msgError.message;
30
30
 
31
- node.log(
32
- `handle-${flowNodeInstanceId}: *flowNodeInstanceId* '${flowNodeInstanceId}' with *msg._msgid* '${msg._msgid}'`,
33
- );
31
+ node.log(`handle-${flowNodeInstanceId}: *flowNodeInstanceId* '${flowNodeInstanceId}' with *msg._msgid* '${msg._msgid}'`);
34
32
 
35
33
  etwInputNode.eventEmitter.emit(`handle-${flowNodeInstanceId}`, error, true);
36
34
 
@@ -41,17 +41,17 @@
41
41
  </script>
42
42
 
43
43
  <script type="text/markdown" data-help-name="externaltask-event-listener">
44
- A node which listens for events triggered by externaltasks
44
+ A node which listens for events triggered by externaltasks
45
45
 
46
- ## Outputs
46
+ ## Outputs
47
47
 
48
- : flowNodeInstanceId (string): The unique identifier for the flow node instance.
49
- : externalTaskEvent (Object): An Object containing the event data returned by the engine.
50
- : action (string): The event that occured.
51
- : type (string): The target of the event.
48
+ : flowNodeInstanceId (string): The unique identifier for the flow node instance.
49
+ : externalTaskEvent (Object): An Object containing the event data returned by the engine.
50
+ : action (string): The event that occured.
51
+ : type (string): The target of the event.
52
52
 
53
- ### References
53
+ ### References
54
54
 
55
- - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
56
- - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
55
+ - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
56
+ - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
57
57
  </script>
@@ -7,8 +7,8 @@
7
7
  engine: { value: '', type: 'processcube-engine-config' },
8
8
  topic: { value: '' },
9
9
  topicType: { value: '' },
10
- workerConfig: { value: '{}' },
11
- workerConfigType: { value: 'json' },
10
+ workerConfig: { value: '{}'},
11
+ workerConfigType: { value: 'json'}
12
12
  },
13
13
  inputs: 0,
14
14
  outputs: 1,
@@ -36,7 +36,7 @@
36
36
  oneditsave: function () {
37
37
  this.workerConfig = $('#node-input-workerConfig').typedInput('value');
38
38
  if (this.workerConfig == '') {
39
- this.workerConfig = '{}';
39
+ this.workerConfig = '{}'
40
40
  $('#node-input-workerConfig').typedInput('value', '{}');
41
41
  }
42
42
  this.workerConfigType = $('#node-input-workerConfig').typedInput('type');
@@ -66,37 +66,37 @@
66
66
  </script>
67
67
 
68
68
  <script type="text/markdown" data-help-name="externaltask-input">
69
- Waiting for external tasks that correspond to the `Topic` configured in
70
- the connected ProcessCube Engine for processing.
69
+ Waiting for external tasks that correspond to the `Topic` configured in
70
+ the connected ProcessCube Engine for processing.
71
71
 
72
- ## Configs
72
+ ## Configs
73
73
 
74
- : name (string) : The name of the node
75
- : engine (string) : The ProcessCube Engine to connect to
76
- : topic (string) : The topic of the external task
77
- : workerConfig (object) : The configuration for the worker
74
+ : name (string) : The name of the node
75
+ : engine (string) : The ProcessCube Engine to connect to
76
+ : topic (string) : The topic of the external task
77
+ : workerConfig (object) : The configuration for the worker
78
78
 
79
- ### workerConfig
79
+ ### workerConfig
80
80
 
81
- - workerId (string): The id of the worker
82
- - lockDuration (number): The duration in milliseconds the external task is locked for execution
83
- - maxTasks (number): The maximum number of tasks that can be fetched at once
84
- - longpollingTimeout (number): The duration in milliseconds the external task is locked for execution
85
- - payloadFilter (Req-Expression): The filter for the payload of the external task
81
+ - workerId (string): The id of the worker
82
+ - lockDuration (number): The duration in milliseconds the external task is locked for execution
83
+ - maxTasks (number): The maximum number of tasks that can be fetched at once
84
+ - longpollingTimeout (number): The duration in milliseconds the external task is locked for execution
85
+ - payloadFilter (Req-Expression): The filter for the payload of the external task
86
86
 
87
- ## Outputs
87
+ ## Outputs
88
88
 
89
- : payload (string) : The payload the external task was started with.
90
- : task (object) : The external task object
91
- : flowNodeInstanceId (string) : The unique identifier of the external task, which is needed to complete the task
89
+ : payload (string) : The payload the external task was started with.
90
+ : task (object) : The external task object
91
+ : flowNodeInstanceId (string) : The unique identifier of the external task, which is needed to complete the task
92
92
 
93
- ### Details
93
+ ### Details
94
94
 
95
- - To finish the external task the `externaltask-output` node is required.
96
- - For handling a error while executing a flow as external task the `externaltask-error` node is required.
95
+ - To finish the external task the `externaltask-output` node is required.
96
+ - For handling a error while executing a flow as external task the `externaltask-error` node is required.
97
97
 
98
- ### References
98
+ ### References
99
99
 
100
- - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
101
- - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
100
+ - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
101
+ - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
102
102
  </script>
@@ -10,6 +10,7 @@ function showStatus(node, msgCounter) {
10
10
  }
11
11
  }
12
12
 
13
+
13
14
  module.exports = function (RED) {
14
15
  function ExternalTaskInput(config) {
15
16
  RED.nodes.createNode(this, config);
@@ -17,6 +18,7 @@ module.exports = function (RED) {
17
18
 
18
19
  node.started_external_tasks = {};
19
20
 
21
+
20
22
  node.engine = RED.nodes.getNode(config.engine);
21
23
 
22
24
  node.eventEmitter = new EventEmitter();
@@ -54,7 +56,7 @@ module.exports = function (RED) {
54
56
  delete result.msg;
55
57
 
56
58
  node.log(
57
- `handle event for *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* ${externalTask.processInstanceId} with result ${JSON.stringify(result)} on msg._msgid ${msg._msgid}.`,
59
+ `handle event for *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* ${externalTask.processInstanceId} with result ${JSON.stringify(result)} on msg._msgid ${msg._msgid}.`
58
60
  );
59
61
 
60
62
  if (externalTask.flowNodeInstanceId) {
@@ -69,7 +71,7 @@ module.exports = function (RED) {
69
71
 
70
72
  const handleErrorTask = (msg) => {
71
73
  node.log(
72
- `handle error event for *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}' on *msg._msgid* '${msg._msgid}'.`,
74
+ `handle error event for *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}' on *msg._msgid* '${msg._msgid}'.`
73
75
  );
74
76
 
75
77
  if (externalTask.flowNodeInstanceId) {
@@ -87,7 +89,7 @@ module.exports = function (RED) {
87
89
 
88
90
  node.eventEmitter.once(`handle-${externalTask.flowNodeInstanceId}`, (msg, isError = false) => {
89
91
  node.log(
90
- `handle event for *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}' with *msg._msgid* '${msg._msgid}' and *isError* '${isError}'`,
92
+ `handle event for *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}' with *msg._msgid* '${msg._msgid}' and *isError* '${isError}'`
91
93
  );
92
94
 
93
95
  if (isError) {
@@ -111,7 +113,7 @@ module.exports = function (RED) {
111
113
  };
112
114
 
113
115
  node.log(
114
- `Received *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}' with *msg._msgid* '${msg._msgid}'`,
116
+ `Received *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}' with *msg._msgid* '${msg._msgid}'`
115
117
  );
116
118
 
117
119
  node.send(msg);
@@ -119,7 +121,7 @@ module.exports = function (RED) {
119
121
  };
120
122
 
121
123
  let options = RED.util.evaluateNodeProperty(config.workerConfig, config.workerConfigType, node);
122
- let topic = RED.util.evaluateNodeProperty(config.topic, config.topicType, node);
124
+ let topic = RED.util.evaluateNodeProperty(config.topic, config.topicType, node)
123
125
 
124
126
  client.externalTasks
125
127
  .subscribeToExternalTaskTopic(topic, etwCallback, options)
@@ -139,7 +141,7 @@ module.exports = function (RED) {
139
141
  case 'processExternalTask':
140
142
  node.error(
141
143
  `Worker error ${errorType} for *external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}': ${error.message}`,
142
- {},
144
+ {}
143
145
  );
144
146
 
145
147
  if (externalTask) {
@@ -22,15 +22,15 @@
22
22
  </script>
23
23
 
24
24
  <script type="text/markdown" data-help-name="externaltask-output">
25
- Used to complete the external task. The `msg.payload` is returned to the ProcessCube
26
- engine as the result of the external task.
25
+ Used to complete the external task. The `msg.payload` is returned to the ProcessCube
26
+ engine as the result of the external task.
27
27
 
28
- ## Inputs
28
+ ## Inputs
29
29
 
30
- : payload (Object) : Returned to the ProcessCube engine as the result of the external task
30
+ : payload (Object) : Returned to the ProcessCube engine as the result of the external task
31
31
 
32
- ### References
32
+ ### References
33
33
 
34
- - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
35
- - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
34
+ - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
35
+ - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
36
36
  </script>
@@ -32,17 +32,17 @@
32
32
  </script>
33
33
 
34
34
  <script type="text/markdown" data-help-name="externaltask-input">
35
- A node to trigger an event that will be send to the corresponding intermediate message event in the connected ProcessCube Engine.
35
+ A node to trigger an event that will be send to the corresponding intermediate message event in the connected ProcessCube Engine.
36
36
 
37
- From the config the `messagename` and the `processInstanceId` must be set.
37
+ From the config the `messagename` and the `processInstanceId` must be set.
38
38
 
39
- ## Inputs
39
+ ## Inputs
40
40
 
41
- : payload (Object) : The payload will be sent to the message event and be used as a new token payload.
42
- : processInstanceId (string) : The process instance where the message event should be triggered.
41
+ : payload (Object) : The payload will be sent to the message event and be used as a new token payload.
42
+ : processInstanceId (string) : The process instance where the message event should be triggered.
43
43
 
44
- ### References
44
+ ### References
45
45
 
46
- - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
47
- - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
46
+ - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform
47
+ - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy;
48
48
  </script>
@@ -6,7 +6,7 @@ module.exports = function (RED) {
6
6
  node.on('input', function (msg) {
7
7
  node.engine = RED.nodes.getNode(config.engine);
8
8
  const client = node.engine.engineClient;
9
- const isUser = !!msg._client?.user;
9
+ const isUser = !!msg._client?.user
10
10
  const userIdentity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
11
11
 
12
12
  if (!client) {
@@ -18,7 +18,7 @@ module.exports = function (RED) {
18
18
  .triggerMessageEvent(config.messagename, {
19
19
  processInstanceId: msg.processinstanceid,
20
20
  payload: msg.payload,
21
- identity: userIdentity,
21
+ identity: userIdentity
22
22
  })
23
23
  .then((result) => {
24
24
  msg.payload = result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.7.5-feature-f9d61e-m6l18es1",
3
+ "version": "1.7.5-feature-b0ec94-m6q67f5m",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -68,8 +68,5 @@
68
68
  "workflow",
69
69
  "bpmn",
70
70
  "low-code"
71
- ],
72
- "devDependencies": {
73
- "prettier": "^3.4.2"
74
- }
71
+ ]
75
72
  }