@5minds/node-red-contrib-processcube 1.1.3 → 1.1.4-develop-e31a04-m025nm40
Sign up to get free protection for your applications and to get access to all the features.
- package/externaltask-output.js +5 -0
- package/package.json +1 -1
package/externaltask-output.js
CHANGED
@@ -6,6 +6,11 @@ module.exports = function (RED) {
|
|
6
6
|
var flowContext = node.context().flow;
|
7
7
|
var eventEmitter = flowContext.get('emitter');
|
8
8
|
|
9
|
+
if (!eventEmitter) {
|
10
|
+
flowContext.set('emitter', new EventEmitter());
|
11
|
+
eventEmitter = flowContext.get('emitter');
|
12
|
+
}
|
13
|
+
|
9
14
|
node.on('input', function (msg) {
|
10
15
|
const flowNodeInstanceId = msg.flowNodeInstanceId;
|
11
16
|
|