@5minds/node-red-contrib-processcube
Advanced tools
Comparing version 1.6.3 to 1.6.4-develop-8a2d56-m5vhmmbw
@@ -124,6 +124,7 @@ const EventEmitter = require('node:events'); | ||
let options = RED.util.evaluateNodeProperty(config.workerConfig, 'json', node); | ||
let options = RED.util.evaluateNodeProperty(config.workerConfig, config.workerConfigType, node); | ||
let topic = RED.util.evaluateNodeProperty(config.topic, config.topicType, node) | ||
client.externalTasks | ||
.subscribeToExternalTaskTopic(config.topic, etwCallback, options) | ||
.subscribeToExternalTaskTopic(topic, etwCallback, options) | ||
.then(async (externalTaskWorker) => { | ||
@@ -130,0 +131,0 @@ node.status({ fill: 'blue', shape: 'ring', text: 'subcribed' }); |
@@ -511,2 +511,28 @@ [ | ||
{ | ||
"id": "73ca179de59cdabf", | ||
"type": "group", | ||
"z": "a23d2e782beb66f4", | ||
"style": { | ||
"stroke": "#999999", | ||
"stroke-opacity": "1", | ||
"fill": "none", | ||
"fill-opacity": "1", | ||
"label": true, | ||
"label-position": "nw", | ||
"color": "#a4a4a4" | ||
}, | ||
"nodes": [ | ||
"3283986789f6f865", | ||
"f2b869714547df91", | ||
"7a24dd57f7964be1", | ||
"9be410342a64e57a", | ||
"7bc885294b6f6b08", | ||
"412d03bddecd4fd4" | ||
], | ||
"x": 34, | ||
"y": 739, | ||
"w": 682, | ||
"h": 202 | ||
}, | ||
{ | ||
"id": "42e6796dddd9d4db", | ||
@@ -829,2 +855,97 @@ "type": "processcube-engine-config", | ||
{ | ||
"id": "3283986789f6f865", | ||
"type": "externaltask-input", | ||
"z": "a23d2e782beb66f4", | ||
"g": "73ca179de59cdabf", | ||
"name": "TopicFromENV", | ||
"engine": "42e6796dddd9d4db", | ||
"topic": "TOPIC", | ||
"topicType": "env", | ||
"workerConfig": "{}", | ||
"workerConfigType": "json", | ||
"x": 140, | ||
"y": 840, | ||
"wires": [ | ||
[ | ||
"f2b869714547df91" | ||
] | ||
] | ||
}, | ||
{ | ||
"id": "f2b869714547df91", | ||
"type": "delay", | ||
"z": "a23d2e782beb66f4", | ||
"g": "73ca179de59cdabf", | ||
"name": "", | ||
"pauseType": "delay", | ||
"timeout": "5", | ||
"timeoutUnits": "seconds", | ||
"rate": "1", | ||
"nbRateUnits": "1", | ||
"rateUnits": "second", | ||
"randomFirst": "1", | ||
"randomLast": "5", | ||
"randomUnits": "seconds", | ||
"drop": false, | ||
"allowrate": false, | ||
"outputs": 1, | ||
"x": 400, | ||
"y": 840, | ||
"wires": [ | ||
[ | ||
"7a24dd57f7964be1" | ||
] | ||
] | ||
}, | ||
{ | ||
"id": "7a24dd57f7964be1", | ||
"type": "externaltask-output", | ||
"z": "a23d2e782beb66f4", | ||
"g": "73ca179de59cdabf", | ||
"name": "", | ||
"x": 600, | ||
"y": 840, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "9be410342a64e57a", | ||
"type": "externaltask-error", | ||
"z": "a23d2e782beb66f4", | ||
"g": "73ca179de59cdabf", | ||
"name": "", | ||
"error": "", | ||
"x": 510, | ||
"y": 900, | ||
"wires": [ | ||
[] | ||
] | ||
}, | ||
{ | ||
"id": "7bc885294b6f6b08", | ||
"type": "catch", | ||
"z": "a23d2e782beb66f4", | ||
"g": "73ca179de59cdabf", | ||
"name": "", | ||
"scope": null, | ||
"uncaught": false, | ||
"x": 320, | ||
"y": 900, | ||
"wires": [ | ||
[ | ||
"9be410342a64e57a" | ||
] | ||
] | ||
}, | ||
{ | ||
"id": "412d03bddecd4fd4", | ||
"type": "comment", | ||
"z": "a23d2e782beb66f4", | ||
"g": "73ca179de59cdabf", | ||
"name": "External Task with Topic from ENV", | ||
"info": "", | ||
"x": 200, | ||
"y": 780, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "82533b02fb9a9f04", | ||
@@ -831,0 +952,0 @@ "type": "comment", |
{ | ||
"name": "@5minds/node-red-contrib-processcube", | ||
"version": "1.6.3", | ||
"version": "1.6.4-develop-8a2d56-m5vhmmbw", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Node-RED nodes for ProcessCube", |
@@ -10,4 +10,9 @@ module.exports = function (RED) { | ||
const userTaskResult = RED.util.evaluateNodeProperty(config.result, config.result_type, node, msg); | ||
let userTaskResult = RED.util.evaluateNodeProperty(config.result, config.result_type, node, msg); | ||
// remote msg and format from result | ||
delete userTaskResult.format; | ||
delete userTaskResult.msg; | ||
node.engine = RED.nodes.getNode(config.engine); | ||
@@ -14,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
523598
92
10015
2