@5minds/node-red-contrib-processcube 1.9.2-develop-932951-m8ir4yoy → 1.9.3-develop-5b0ff9-m8m7v00n
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.
@@ -111,6 +111,14 @@
|
|
111
111
|
"info": "",
|
112
112
|
"env": []
|
113
113
|
},
|
114
|
+
{
|
115
|
+
"id": "9f5057a8990f0afb",
|
116
|
+
"type": "tab",
|
117
|
+
"label": "Flow 1",
|
118
|
+
"disabled": false,
|
119
|
+
"info": "",
|
120
|
+
"env": []
|
121
|
+
},
|
114
122
|
{
|
115
123
|
"id": "8eb64bb58f95989d",
|
116
124
|
"type": "subflow",
|
@@ -679,13 +687,16 @@
|
|
679
687
|
"17c7bb9f5f18dca0",
|
680
688
|
"f503048db777642f",
|
681
689
|
"7b7e536ce13ff02e",
|
682
|
-
"ee77f6e85bd2d76f",
|
683
690
|
"d289b450aca4064e",
|
684
|
-
"9a3c7f3da50bdb42"
|
691
|
+
"9a3c7f3da50bdb42",
|
692
|
+
"0c6c1e1971d965e2",
|
693
|
+
"d37ef0e9d22656fa",
|
694
|
+
"c5767dbad7531af1",
|
695
|
+
"524809756ac6a16d"
|
685
696
|
],
|
686
697
|
"x": 14,
|
687
698
|
"y": 79,
|
688
|
-
"w":
|
699
|
+
"w": 1452,
|
689
700
|
"h": 262
|
690
701
|
},
|
691
702
|
{
|
@@ -738,7 +749,7 @@
|
|
738
749
|
"z": "a23d2e782beb66f4",
|
739
750
|
"g": "70d7a70e375b162a",
|
740
751
|
"name": "Test Ende",
|
741
|
-
"x":
|
752
|
+
"x": 1380,
|
742
753
|
"y": 180,
|
743
754
|
"wires": []
|
744
755
|
},
|
@@ -1204,6 +1215,7 @@
|
|
1204
1215
|
"id": "d37ef0e9d22656fa",
|
1205
1216
|
"type": "join",
|
1206
1217
|
"z": "a23d2e782beb66f4",
|
1218
|
+
"g": "70d7a70e375b162a",
|
1207
1219
|
"name": "",
|
1208
1220
|
"mode": "auto",
|
1209
1221
|
"build": "array",
|
@@ -1221,7 +1233,7 @@
|
|
1221
1233
|
"reduceInit": "",
|
1222
1234
|
"reduceInitType": "",
|
1223
1235
|
"reduceFixup": "",
|
1224
|
-
"x":
|
1236
|
+
"x": 870,
|
1225
1237
|
"y": 180,
|
1226
1238
|
"wires": [
|
1227
1239
|
[
|
@@ -1234,7 +1246,7 @@
|
|
1234
1246
|
"type": "split",
|
1235
1247
|
"z": "a23d2e782beb66f4",
|
1236
1248
|
"name": "",
|
1237
|
-
"splt": "
|
1249
|
+
"splt": ",",
|
1238
1250
|
"spltType": "str",
|
1239
1251
|
"arraySplt": "2",
|
1240
1252
|
"arraySpltType": "len",
|
@@ -1245,8 +1257,7 @@
|
|
1245
1257
|
"y": 180,
|
1246
1258
|
"wires": [
|
1247
1259
|
[
|
1248
|
-
"
|
1249
|
-
"ee77f6e85bd2d76f"
|
1260
|
+
"0c6c1e1971d965e2"
|
1250
1261
|
]
|
1251
1262
|
]
|
1252
1263
|
},
|
@@ -1256,7 +1267,7 @@
|
|
1256
1267
|
"z": "a23d2e782beb66f4",
|
1257
1268
|
"g": "70d7a70e375b162a",
|
1258
1269
|
"name": "",
|
1259
|
-
"pauseType": "
|
1270
|
+
"pauseType": "delayv",
|
1260
1271
|
"timeout": "2",
|
1261
1272
|
"timeoutUnits": "seconds",
|
1262
1273
|
"rate": "1",
|
@@ -1268,34 +1279,8 @@
|
|
1268
1279
|
"drop": false,
|
1269
1280
|
"allowrate": false,
|
1270
1281
|
"outputs": 1,
|
1271
|
-
"x":
|
1272
|
-
"y":
|
1273
|
-
"wires": [
|
1274
|
-
[
|
1275
|
-
"d37ef0e9d22656fa"
|
1276
|
-
]
|
1277
|
-
]
|
1278
|
-
},
|
1279
|
-
{
|
1280
|
-
"id": "ee77f6e85bd2d76f",
|
1281
|
-
"type": "delay",
|
1282
|
-
"z": "a23d2e782beb66f4",
|
1283
|
-
"g": "70d7a70e375b162a",
|
1284
|
-
"name": "",
|
1285
|
-
"pauseType": "delay",
|
1286
|
-
"timeout": "3",
|
1287
|
-
"timeoutUnits": "seconds",
|
1288
|
-
"rate": "1",
|
1289
|
-
"nbRateUnits": "1",
|
1290
|
-
"rateUnits": "second",
|
1291
|
-
"randomFirst": "1",
|
1292
|
-
"randomLast": "5",
|
1293
|
-
"randomUnits": "seconds",
|
1294
|
-
"drop": false,
|
1295
|
-
"allowrate": false,
|
1296
|
-
"outputs": 1,
|
1297
|
-
"x": 580,
|
1298
|
-
"y": 220,
|
1282
|
+
"x": 720,
|
1283
|
+
"y": 180,
|
1299
1284
|
"wires": [
|
1300
1285
|
[
|
1301
1286
|
"d37ef0e9d22656fa"
|
@@ -1334,7 +1319,7 @@
|
|
1334
1319
|
"z": "a23d2e782beb66f4",
|
1335
1320
|
"g": "70d7a70e375b162a",
|
1336
1321
|
"name": "function 1",
|
1337
|
-
"func": "msg.payload =
|
1322
|
+
"func": "msg.payload = \"30000,50000\";\n\nreturn msg;",
|
1338
1323
|
"outputs": 1,
|
1339
1324
|
"timeout": 0,
|
1340
1325
|
"noerr": 0,
|
@@ -1367,7 +1352,68 @@
|
|
1367
1352
|
"drop": false,
|
1368
1353
|
"allowrate": false,
|
1369
1354
|
"outputs": 1,
|
1370
|
-
"x":
|
1355
|
+
"x": 1040,
|
1356
|
+
"y": 180,
|
1357
|
+
"wires": [
|
1358
|
+
[
|
1359
|
+
"524809756ac6a16d"
|
1360
|
+
]
|
1361
|
+
]
|
1362
|
+
},
|
1363
|
+
{
|
1364
|
+
"id": "0c6c1e1971d965e2",
|
1365
|
+
"type": "function",
|
1366
|
+
"z": "a23d2e782beb66f4",
|
1367
|
+
"g": "70d7a70e375b162a",
|
1368
|
+
"name": "function 2",
|
1369
|
+
"func": "msg.delay = Number(msg.payload);\nreturn msg;",
|
1370
|
+
"outputs": 1,
|
1371
|
+
"timeout": 0,
|
1372
|
+
"noerr": 0,
|
1373
|
+
"initialize": "",
|
1374
|
+
"finalize": "",
|
1375
|
+
"libs": [],
|
1376
|
+
"x": 560,
|
1377
|
+
"y": 180,
|
1378
|
+
"wires": [
|
1379
|
+
[
|
1380
|
+
"7b7e536ce13ff02e",
|
1381
|
+
"c5767dbad7531af1"
|
1382
|
+
]
|
1383
|
+
]
|
1384
|
+
},
|
1385
|
+
{
|
1386
|
+
"id": "c5767dbad7531af1",
|
1387
|
+
"type": "debug",
|
1388
|
+
"z": "a23d2e782beb66f4",
|
1389
|
+
"g": "70d7a70e375b162a",
|
1390
|
+
"name": "debug 4",
|
1391
|
+
"active": true,
|
1392
|
+
"tosidebar": true,
|
1393
|
+
"console": false,
|
1394
|
+
"tostatus": false,
|
1395
|
+
"complete": "true",
|
1396
|
+
"targetType": "full",
|
1397
|
+
"statusVal": "",
|
1398
|
+
"statusType": "auto",
|
1399
|
+
"x": 670,
|
1400
|
+
"y": 240,
|
1401
|
+
"wires": []
|
1402
|
+
},
|
1403
|
+
{
|
1404
|
+
"id": "524809756ac6a16d",
|
1405
|
+
"type": "function",
|
1406
|
+
"z": "a23d2e782beb66f4",
|
1407
|
+
"g": "70d7a70e375b162a",
|
1408
|
+
"name": "function 3",
|
1409
|
+
"func": "msg.payload = {};\n\nreturn msg;",
|
1410
|
+
"outputs": 1,
|
1411
|
+
"timeout": 0,
|
1412
|
+
"noerr": 0,
|
1413
|
+
"initialize": "",
|
1414
|
+
"finalize": "",
|
1415
|
+
"libs": [],
|
1416
|
+
"x": 1220,
|
1371
1417
|
"y": 180,
|
1372
1418
|
"wires": [
|
1373
1419
|
[
|
@@ -3345,5 +3391,97 @@
|
|
3345
3391
|
"af52431420fa7e15"
|
3346
3392
|
]
|
3347
3393
|
]
|
3394
|
+
},
|
3395
|
+
{
|
3396
|
+
"id": "split-node",
|
3397
|
+
"type": "split",
|
3398
|
+
"z": "9f5057a8990f0afb",
|
3399
|
+
"name": "Split",
|
3400
|
+
"splt": "\\n",
|
3401
|
+
"spltType": "str",
|
3402
|
+
"arraySplt": 1,
|
3403
|
+
"arraySpltType": "len",
|
3404
|
+
"stream": false,
|
3405
|
+
"addname": "",
|
3406
|
+
"x": 430,
|
3407
|
+
"y": 220,
|
3408
|
+
"wires": [
|
3409
|
+
[
|
3410
|
+
"process-node"
|
3411
|
+
]
|
3412
|
+
]
|
3413
|
+
},
|
3414
|
+
{
|
3415
|
+
"id": "join-node",
|
3416
|
+
"type": "join",
|
3417
|
+
"z": "9f5057a8990f0afb",
|
3418
|
+
"name": "Join",
|
3419
|
+
"mode": "auto",
|
3420
|
+
"build": "array",
|
3421
|
+
"property": "payload",
|
3422
|
+
"useparts": true,
|
3423
|
+
"x": 790,
|
3424
|
+
"y": 220,
|
3425
|
+
"wires": [
|
3426
|
+
[
|
3427
|
+
"debug-node"
|
3428
|
+
]
|
3429
|
+
]
|
3430
|
+
},
|
3431
|
+
{
|
3432
|
+
"id": "inject-node",
|
3433
|
+
"type": "inject",
|
3434
|
+
"z": "9f5057a8990f0afb",
|
3435
|
+
"name": "Start",
|
3436
|
+
"props": [
|
3437
|
+
{
|
3438
|
+
"p": "payload"
|
3439
|
+
}
|
3440
|
+
],
|
3441
|
+
"repeat": "",
|
3442
|
+
"crontab": "",
|
3443
|
+
"once": false,
|
3444
|
+
"onceDelay": 0.1,
|
3445
|
+
"topic": "",
|
3446
|
+
"payload": "[\"Apfel\",\"Banane\",\"Kirsche\"]",
|
3447
|
+
"payloadType": "json",
|
3448
|
+
"x": 270,
|
3449
|
+
"y": 220,
|
3450
|
+
"wires": [
|
3451
|
+
[
|
3452
|
+
"split-node"
|
3453
|
+
]
|
3454
|
+
]
|
3455
|
+
},
|
3456
|
+
{
|
3457
|
+
"id": "process-node",
|
3458
|
+
"type": "function",
|
3459
|
+
"z": "9f5057a8990f0afb",
|
3460
|
+
"name": "Bearbeite",
|
3461
|
+
"func": "msg.payload = msg.payload.toUpperCase();\nreturn msg;",
|
3462
|
+
"outputs": 1,
|
3463
|
+
"noerr": 0,
|
3464
|
+
"x": 610,
|
3465
|
+
"y": 220,
|
3466
|
+
"wires": [
|
3467
|
+
[
|
3468
|
+
"join-node"
|
3469
|
+
]
|
3470
|
+
]
|
3471
|
+
},
|
3472
|
+
{
|
3473
|
+
"id": "debug-node",
|
3474
|
+
"type": "debug",
|
3475
|
+
"z": "9f5057a8990f0afb",
|
3476
|
+
"name": "Ergebnis",
|
3477
|
+
"active": true,
|
3478
|
+
"tosidebar": true,
|
3479
|
+
"console": false,
|
3480
|
+
"tostatus": false,
|
3481
|
+
"complete": "true",
|
3482
|
+
"targetType": "full",
|
3483
|
+
"x": 950,
|
3484
|
+
"y": 220,
|
3485
|
+
"wires": []
|
3348
3486
|
}
|
3349
3487
|
]
|
package/externaltask-input.js
CHANGED
@@ -73,9 +73,7 @@ module.exports = function (RED) {
|
|
73
73
|
node._tracking_for_etw[msg.flowNodeInstanceId].push(theNode);
|
74
74
|
}
|
75
75
|
|
76
|
-
|
77
|
-
theNode.status({ fill: 'blue', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count})` });
|
78
|
-
}
|
76
|
+
theNode.status({ fill: 'blue', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count})` });
|
79
77
|
};
|
80
78
|
|
81
79
|
node.decrMsgOnNode = (theNode, msg) => {
|
@@ -120,9 +118,7 @@ module.exports = function (RED) {
|
|
120
118
|
}
|
121
119
|
}
|
122
120
|
|
123
|
-
|
124
|
-
theNode.status({ fill: 'blue', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count})` });
|
125
|
-
}
|
121
|
+
theNode.status({ fill: 'blue', shape: 'dot', text: `tasks(${node._tracking_nodes[theNode.id].count})` });
|
126
122
|
};
|
127
123
|
|
128
124
|
RED.hooks.add('preDeliver', (sendEvent) => {
|
@@ -331,6 +327,8 @@ module.exports = function (RED) {
|
|
331
327
|
});
|
332
328
|
};
|
333
329
|
|
330
|
+
node.setUnsubscribedStatus(new Error('Worker starting.'));
|
331
|
+
|
334
332
|
client.externalTasks
|
335
333
|
.subscribeToExternalTaskTopic(topic, etwCallback, options)
|
336
334
|
.then(async (externalTaskWorker) => {
|
@@ -381,7 +379,6 @@ module.exports = function (RED) {
|
|
381
379
|
|
382
380
|
try {
|
383
381
|
externalTaskWorker.start();
|
384
|
-
node.setUnsubscribedStatus(new Error('Worker starting.'));
|
385
382
|
} catch (error) {
|
386
383
|
node.error(`Worker start 'externalTaskWorker.start' failed: ${error.message}`, {});
|
387
384
|
}
|