@5minds/node-red-contrib-processcube 0.2.6-feature-ca8d7d-lvnq9i3m → 0.2.6-feature-56f704-lvnqzr5u

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "0.2.6-feature-ca8d7d-lvnq9i3m",
3
+ "version": "0.2.6-feature-56f704-lvnqzr5u",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "authors": [
package/usertask-input.js CHANGED
@@ -59,6 +59,9 @@ module.exports = function(RED) {
59
59
  client.userTasks.onUserTaskWaiting((userTaskWaitingNotification) => {
60
60
  console.log(`UserTask with id ${userTaskWaitingNotification.flowNodeInstanceId} is waiting.`);
61
61
 
62
+ // Abschließend mit - client.userTasks.finishUserTask(waitingUserTask?.flowNodeInstanceId, sampleResult)
63
+
64
+ // flowNodeInstanceId
62
65
  // processModelName
63
66
  // flowNodeId
64
67
  client.userTasks.query({
@@ -71,15 +74,12 @@ module.exports = function(RED) {
71
74
 
72
75
  let formFields = mapUserTaskToMsg(userTask);
73
76
 
74
- node.send({ payload: {formFields: formFields, userTask: userTask }});
77
+ node.send({ payload: {formFields: formFields, userTask: userTask }, _flowNodeInstanceId: userTaskWaitingNotification.flowNodeInstanceId });
75
78
 
76
79
  } else {
77
80
  node.send({ payload: matchingFlowNodes });
78
81
  }
79
-
80
-
81
82
  });
82
-
83
83
  });
84
84
  }
85
85
  RED.nodes.registerType("usertask-input", UserTaskInput);