@5minds/node-red-contrib-processcube 0.0.9 → 0.2.0
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.
@@ -7,7 +7,7 @@ on:
|
|
7
7
|
- '*/*'
|
8
8
|
|
9
9
|
env:
|
10
|
-
CI_TOOLS_VERSION: '^4.
|
10
|
+
CI_TOOLS_VERSION: '^4.2.0'
|
11
11
|
# NOTE: Um den Releasezyklus von Alpha nach Beta zu ändern, einfach die nachfolgend deklarierten Env Variablen switchen.
|
12
12
|
CI_TOOLS_ALPHA_BRANCH: next
|
13
13
|
CI_TOOLS_ALPHA_NPM_TAG: next
|
@@ -28,10 +28,10 @@ jobs:
|
|
28
28
|
fetch-depth: 0
|
29
29
|
token: ${{ secrets.GH_TOKEN }}
|
30
30
|
|
31
|
-
- name: Use Node.js
|
31
|
+
- name: Use Node.js 20
|
32
32
|
uses: actions/setup-node@v4
|
33
33
|
with:
|
34
|
-
node-version: '
|
34
|
+
node-version: '20'
|
35
35
|
registry-url: 'https://registry.npmjs.org'
|
36
36
|
|
37
37
|
- name: Install CI Tools
|
@@ -561,7 +561,7 @@
|
|
561
561
|
"z": "a23d2e782beb66f4",
|
562
562
|
"name": "",
|
563
563
|
"pauseType": "delay",
|
564
|
-
"timeout": "
|
564
|
+
"timeout": "1",
|
565
565
|
"timeoutUnits": "seconds",
|
566
566
|
"rate": "1",
|
567
567
|
"nbRateUnits": "1",
|
@@ -610,7 +610,7 @@
|
|
610
610
|
"z": "a23d2e782beb66f4",
|
611
611
|
"name": "",
|
612
612
|
"pauseType": "delay",
|
613
|
-
"timeout": "
|
613
|
+
"timeout": "1",
|
614
614
|
"timeoutUnits": "seconds",
|
615
615
|
"rate": "1",
|
616
616
|
"nbRateUnits": "1",
|
@@ -726,7 +726,7 @@
|
|
726
726
|
"statusVal": "",
|
727
727
|
"statusType": "auto",
|
728
728
|
"x": 380,
|
729
|
-
"y":
|
729
|
+
"y": 180,
|
730
730
|
"wires": []
|
731
731
|
},
|
732
732
|
{
|
package/externaltask-input.js
CHANGED
@@ -17,14 +17,24 @@ module.exports = function(RED) {
|
|
17
17
|
var node = this;
|
18
18
|
var msgCounter = 0;
|
19
19
|
var flowContext = node.context().flow;
|
20
|
+
var nodeContext = node.context();
|
20
21
|
|
21
22
|
const engineUrl = config.engine || process.env.ENGINE_URL || 'http://engine:8000';
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
24
|
+
var client = nodeContext.get('client');
|
25
|
+
|
26
|
+
if (!client) {
|
27
|
+
nodeContext.set('client', new engine_client.EngineClient(engineUrl));
|
28
|
+
client = nodeContext.get('client');
|
29
|
+
}
|
30
|
+
|
26
31
|
var eventEmitter = flowContext.get('emitter');
|
27
32
|
|
33
|
+
if (!eventEmitter) {
|
34
|
+
flowContext.set('emitter', new EventEmitter());
|
35
|
+
eventEmitter = flowContext.get('emitter');
|
36
|
+
}
|
37
|
+
|
28
38
|
client.externalTasks.subscribeToExternalTaskTopic(
|
29
39
|
config.topic,
|
30
40
|
async (payload, externalTask) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@5minds/node-red-contrib-processcube",
|
3
|
-
"version": "0.0
|
3
|
+
"version": "0.2.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Node-RED nodes for ProcessCube",
|
6
6
|
"keywords": [
|
@@ -14,7 +14,14 @@
|
|
14
14
|
"name": "5Minds IT-Solutions GmbH & Co. KG",
|
15
15
|
"email": "processcube@5minds.de"
|
16
16
|
},
|
17
|
+
"bugs": {
|
18
|
+
"url": "https://github.com/5minds/processcube_nodered/issues"
|
19
|
+
},
|
20
|
+
"engines": {
|
21
|
+
"node": ">=20.0.0"
|
22
|
+
},
|
17
23
|
"node-red": {
|
24
|
+
"version": ">=3.0.0",
|
18
25
|
"nodes": {
|
19
26
|
"externaltaskInput": "externaltask-input.js",
|
20
27
|
"externaltaskOutput": "externaltask-output.js",
|
@@ -23,6 +30,6 @@
|
|
23
30
|
}
|
24
31
|
},
|
25
32
|
"dependencies": {
|
26
|
-
"@5minds/processcube_engine_client": "^
|
33
|
+
"@5minds/processcube_engine_client": "^5.0.0"
|
27
34
|
}
|
28
35
|
}
|