@5minds/node-red-contrib-processcube 0.6.0-develop-a016f3-lxu6osmc → 0.7.0-develop-8969df-ly2v8202
Sign up to get free protection for your applications and to get access to all the features.
- package/externaltask-input.js +6 -1
- package/package.json +1 -1
- package/usertask-input.js +11 -4
- package/usertask-new-listener.js +1 -2
- package/usertask-output.js +1 -1
package/externaltask-input.js
CHANGED
@@ -72,7 +72,12 @@ module.exports = function(RED) {
|
|
72
72
|
});
|
73
73
|
|
74
74
|
showStatus(node, msgCounter);
|
75
|
-
|
75
|
+
|
76
|
+
msg.topic = externalTask.topic;
|
77
|
+
msg.externalTaskId = externalTask.flowNodeInstanceId;
|
78
|
+
msg.payload = payload;
|
79
|
+
|
80
|
+
node.send(msg);
|
76
81
|
});
|
77
82
|
},
|
78
83
|
).then(externalTaskWorker => {
|
package/package.json
CHANGED
package/usertask-input.js
CHANGED
@@ -53,18 +53,25 @@ module.exports = function(RED) {
|
|
53
53
|
if (!config.force_send_array && matchingFlowNodes && matchingFlowNodes.userTasks && matchingFlowNodes.userTasks.length == 1) {
|
54
54
|
userTask = matchingFlowNodes.userTasks[0];
|
55
55
|
|
56
|
-
|
56
|
+
msg.payload = { userTask: userTask };
|
57
|
+
node.send(msg);
|
57
58
|
} else {
|
58
59
|
if (!config.force_send_array) {
|
59
60
|
if (config.multisend && matchingFlowNodes.userTasks && matchingFlowNodes.userTasks.length > 1) {
|
60
61
|
matchingFlowNodes.userTasks.forEach((userTask) => {
|
61
|
-
|
62
|
+
|
63
|
+
msg.payload = { userTask: userTask } ;
|
64
|
+
node.send(msg);
|
62
65
|
});
|
63
66
|
} else {
|
64
|
-
|
67
|
+
|
68
|
+
msg.payload = { userTasks: matchingFlowNodes.userTasks };
|
69
|
+
node.send(msg);
|
65
70
|
}
|
66
71
|
} else {
|
67
|
-
|
72
|
+
|
73
|
+
msg.payload = { userTasks: matchingFlowNodes.userTasks || [] };
|
74
|
+
node.send(msg);
|
68
75
|
}
|
69
76
|
}
|
70
77
|
});
|
package/usertask-new-listener.js
CHANGED
@@ -5,9 +5,8 @@ const engine_client = require('@5minds/processcube_engine_client');
|
|
5
5
|
|
6
6
|
module.exports = function(RED) {
|
7
7
|
function UserTaskNewListener(config) {
|
8
|
-
RED.nodes.createNode(this,config);
|
8
|
+
RED.nodes.createNode(this, config);
|
9
9
|
var node = this;
|
10
|
-
var msgCounter = 0;
|
11
10
|
var flowContext = node.context().flow;
|
12
11
|
var nodeContext = node.context();
|
13
12
|
|
package/usertask-output.js
CHANGED