@5minds/node-red-contrib-processcube 1.7.1-feature-232d56-m6q8orak → 1.7.1-feature-4c268d-m6xftyy2
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.
- package/.processcube/nodered/.config.nodes.json +45 -7
- package/.processcube/nodered/.config.nodes.json.backup +9 -0
- package/.processcube/nodered/.flows.json.backup +79 -2
- package/.processcube/nodered/.flows_cred.json.backup +3 -0
- package/.processcube/nodered/flows.json +77 -0
- package/.processcube/nodered/flows_cred.json +1 -1
- package/package.json +1 -1
- package/register-hooks.js +16 -0
@@ -433,6 +433,15 @@
|
|
433
433
|
"local": false,
|
434
434
|
"user": false,
|
435
435
|
"nodes": {
|
436
|
+
"register-hooks": {
|
437
|
+
"name": "register-hooks",
|
438
|
+
"types": [],
|
439
|
+
"enabled": true,
|
440
|
+
"local": false,
|
441
|
+
"user": false,
|
442
|
+
"module": "@5minds/node-red-contrib-processcube",
|
443
|
+
"file": "/usr/src/node-red/node_modules/@5minds/node-red-contrib-processcube/register-hooks.js"
|
444
|
+
},
|
436
445
|
"EndEventFinishedListener": {
|
437
446
|
"name": "EndEventFinishedListener",
|
438
447
|
"types": [
|
@@ -641,15 +650,44 @@
|
|
641
650
|
"user": false,
|
642
651
|
"module": "@5minds/node-red-contrib-processcube",
|
643
652
|
"file": "/usr/src/node-red/node_modules/@5minds/node-red-contrib-processcube/wait-for-usertask.js"
|
644
|
-
}
|
645
|
-
|
646
|
-
|
647
|
-
|
653
|
+
}
|
654
|
+
}
|
655
|
+
},
|
656
|
+
"node-red-node-rbe": {
|
657
|
+
"name": "node-red-node-rbe",
|
658
|
+
"version": "0.5.0",
|
659
|
+
"local": true,
|
660
|
+
"user": false,
|
661
|
+
"nodes": {
|
662
|
+
"rbe": {
|
663
|
+
"name": "rbe",
|
664
|
+
"types": [
|
665
|
+
"rbe"
|
666
|
+
],
|
648
667
|
"enabled": true,
|
649
|
-
"local":
|
668
|
+
"local": true,
|
650
669
|
"user": false,
|
651
|
-
"module": "
|
652
|
-
"file": "/
|
670
|
+
"module": "node-red-node-rbe",
|
671
|
+
"file": "/data/node_modules/node-red-node-rbe/rbe.js"
|
672
|
+
}
|
673
|
+
}
|
674
|
+
},
|
675
|
+
"node-red-node-tail": {
|
676
|
+
"name": "node-red-node-tail",
|
677
|
+
"version": "0.3.2",
|
678
|
+
"local": true,
|
679
|
+
"user": false,
|
680
|
+
"nodes": {
|
681
|
+
"tail": {
|
682
|
+
"name": "tail",
|
683
|
+
"types": [
|
684
|
+
"tail"
|
685
|
+
],
|
686
|
+
"enabled": true,
|
687
|
+
"local": true,
|
688
|
+
"user": false,
|
689
|
+
"module": "node-red-node-tail",
|
690
|
+
"file": "/data/node_modules/node-red-node-tail/28-tail.js"
|
653
691
|
}
|
654
692
|
}
|
655
693
|
}
|
@@ -641,6 +641,15 @@
|
|
641
641
|
"user": false,
|
642
642
|
"module": "@5minds/node-red-contrib-processcube",
|
643
643
|
"file": "/usr/src/node-red/node_modules/@5minds/node-red-contrib-processcube/wait-for-usertask.js"
|
644
|
+
},
|
645
|
+
"register-hooks": {
|
646
|
+
"name": "register-hooks",
|
647
|
+
"types": [],
|
648
|
+
"enabled": true,
|
649
|
+
"local": false,
|
650
|
+
"user": false,
|
651
|
+
"module": "@5minds/node-red-contrib-processcube",
|
652
|
+
"file": "/usr/src/node-red/node_modules/@5minds/node-red-contrib-processcube/register-hooks.js"
|
644
653
|
}
|
645
654
|
}
|
646
655
|
}
|
@@ -111,6 +111,14 @@
|
|
111
111
|
"info": "",
|
112
112
|
"env": []
|
113
113
|
},
|
114
|
+
{
|
115
|
+
"id": "598a05cc24b8559f",
|
116
|
+
"type": "tab",
|
117
|
+
"label": "Flow 1",
|
118
|
+
"disabled": false,
|
119
|
+
"info": "",
|
120
|
+
"env": []
|
121
|
+
},
|
114
122
|
{
|
115
123
|
"id": "4c59118134081e05",
|
116
124
|
"type": "group",
|
@@ -656,7 +664,7 @@
|
|
656
664
|
],
|
657
665
|
"x": 34,
|
658
666
|
"y": 979,
|
659
|
-
"w":
|
667
|
+
"w": 652,
|
660
668
|
"h": 142
|
661
669
|
},
|
662
670
|
{
|
@@ -1122,7 +1130,7 @@
|
|
1122
1130
|
"z": "a23d2e782beb66f4",
|
1123
1131
|
"g": "be22a2d8eb2e28c4",
|
1124
1132
|
"name": "",
|
1125
|
-
"x":
|
1133
|
+
"x": 570,
|
1126
1134
|
"y": 1080,
|
1127
1135
|
"wires": []
|
1128
1136
|
},
|
@@ -3099,5 +3107,74 @@
|
|
3099
3107
|
"af52431420fa7e15"
|
3100
3108
|
]
|
3101
3109
|
]
|
3110
|
+
},
|
3111
|
+
{
|
3112
|
+
"id": "c5260ee198fa0c2c",
|
3113
|
+
"type": "inject",
|
3114
|
+
"z": "598a05cc24b8559f",
|
3115
|
+
"name": "",
|
3116
|
+
"props": [
|
3117
|
+
{
|
3118
|
+
"p": "payload"
|
3119
|
+
},
|
3120
|
+
{
|
3121
|
+
"p": "topic",
|
3122
|
+
"vt": "str"
|
3123
|
+
}
|
3124
|
+
],
|
3125
|
+
"repeat": "",
|
3126
|
+
"crontab": "",
|
3127
|
+
"once": false,
|
3128
|
+
"onceDelay": 0.1,
|
3129
|
+
"topic": "",
|
3130
|
+
"payload": "",
|
3131
|
+
"payloadType": "date",
|
3132
|
+
"x": 200,
|
3133
|
+
"y": 140,
|
3134
|
+
"wires": [
|
3135
|
+
[
|
3136
|
+
"a1ff60cf666c101a"
|
3137
|
+
]
|
3138
|
+
]
|
3139
|
+
},
|
3140
|
+
{
|
3141
|
+
"id": "29fca97816153a5f",
|
3142
|
+
"type": "debug",
|
3143
|
+
"z": "598a05cc24b8559f",
|
3144
|
+
"name": "debug 3",
|
3145
|
+
"active": true,
|
3146
|
+
"tosidebar": true,
|
3147
|
+
"console": false,
|
3148
|
+
"tostatus": false,
|
3149
|
+
"complete": "false",
|
3150
|
+
"statusVal": "",
|
3151
|
+
"statusType": "auto",
|
3152
|
+
"x": 680,
|
3153
|
+
"y": 140,
|
3154
|
+
"wires": []
|
3155
|
+
},
|
3156
|
+
{
|
3157
|
+
"id": "a1ff60cf666c101a",
|
3158
|
+
"type": "http request",
|
3159
|
+
"z": "598a05cc24b8559f",
|
3160
|
+
"name": "Mockit",
|
3161
|
+
"method": "GET",
|
3162
|
+
"ret": "txt",
|
3163
|
+
"paytoqs": "ignore",
|
3164
|
+
"url": "https://dieserserviceistnichterreichbar",
|
3165
|
+
"tls": "",
|
3166
|
+
"persist": false,
|
3167
|
+
"proxy": "",
|
3168
|
+
"insecureHTTPParser": false,
|
3169
|
+
"authType": "",
|
3170
|
+
"senderr": false,
|
3171
|
+
"headers": [],
|
3172
|
+
"x": 410,
|
3173
|
+
"y": 140,
|
3174
|
+
"wires": [
|
3175
|
+
[
|
3176
|
+
"29fca97816153a5f"
|
3177
|
+
]
|
3178
|
+
]
|
3102
3179
|
}
|
3103
3180
|
]
|
@@ -111,6 +111,14 @@
|
|
111
111
|
"info": "",
|
112
112
|
"env": []
|
113
113
|
},
|
114
|
+
{
|
115
|
+
"id": "598a05cc24b8559f",
|
116
|
+
"type": "tab",
|
117
|
+
"label": "Flow 1",
|
118
|
+
"disabled": false,
|
119
|
+
"info": "",
|
120
|
+
"env": []
|
121
|
+
},
|
114
122
|
{
|
115
123
|
"id": "4c59118134081e05",
|
116
124
|
"type": "group",
|
@@ -3099,5 +3107,74 @@
|
|
3099
3107
|
"af52431420fa7e15"
|
3100
3108
|
]
|
3101
3109
|
]
|
3110
|
+
},
|
3111
|
+
{
|
3112
|
+
"id": "c5260ee198fa0c2c",
|
3113
|
+
"type": "inject",
|
3114
|
+
"z": "598a05cc24b8559f",
|
3115
|
+
"name": "",
|
3116
|
+
"props": [
|
3117
|
+
{
|
3118
|
+
"p": "payload"
|
3119
|
+
},
|
3120
|
+
{
|
3121
|
+
"p": "topic",
|
3122
|
+
"vt": "str"
|
3123
|
+
}
|
3124
|
+
],
|
3125
|
+
"repeat": "",
|
3126
|
+
"crontab": "",
|
3127
|
+
"once": false,
|
3128
|
+
"onceDelay": 0.1,
|
3129
|
+
"topic": "",
|
3130
|
+
"payload": "",
|
3131
|
+
"payloadType": "date",
|
3132
|
+
"x": 180,
|
3133
|
+
"y": 140,
|
3134
|
+
"wires": [
|
3135
|
+
[
|
3136
|
+
"a1ff60cf666c101a"
|
3137
|
+
]
|
3138
|
+
]
|
3139
|
+
},
|
3140
|
+
{
|
3141
|
+
"id": "29fca97816153a5f",
|
3142
|
+
"type": "debug",
|
3143
|
+
"z": "598a05cc24b8559f",
|
3144
|
+
"name": "debug 3",
|
3145
|
+
"active": true,
|
3146
|
+
"tosidebar": true,
|
3147
|
+
"console": false,
|
3148
|
+
"tostatus": false,
|
3149
|
+
"complete": "false",
|
3150
|
+
"statusVal": "",
|
3151
|
+
"statusType": "auto",
|
3152
|
+
"x": 680,
|
3153
|
+
"y": 140,
|
3154
|
+
"wires": []
|
3155
|
+
},
|
3156
|
+
{
|
3157
|
+
"id": "a1ff60cf666c101a",
|
3158
|
+
"type": "http request",
|
3159
|
+
"z": "598a05cc24b8559f",
|
3160
|
+
"name": "Mockit",
|
3161
|
+
"method": "GET",
|
3162
|
+
"ret": "txt",
|
3163
|
+
"paytoqs": "ignore",
|
3164
|
+
"url": "https://dieserserviceistnichterreichbar",
|
3165
|
+
"tls": "",
|
3166
|
+
"persist": false,
|
3167
|
+
"proxy": "",
|
3168
|
+
"insecureHTTPParser": false,
|
3169
|
+
"authType": "",
|
3170
|
+
"senderr": false,
|
3171
|
+
"headers": [],
|
3172
|
+
"x": 410,
|
3173
|
+
"y": 140,
|
3174
|
+
"wires": [
|
3175
|
+
[
|
3176
|
+
"29fca97816153a5f"
|
3177
|
+
]
|
3178
|
+
]
|
3102
3179
|
}
|
3103
3180
|
]
|
@@ -1,3 +1,3 @@
|
|
1
1
|
{
|
2
|
-
"$": "
|
2
|
+
"$": "83bffe39d4c82de5c598592d34e4f9bfBE0YmfA497A9mYPe3MaTIyvTFDfuMNqdDlMCUZuMweODYADtAP2Tl2MrCHpzAzljEuoxokL9CLUgDCrFbwU8uzBL2bQUAmvPz+af2wdoOPwKhcwV9Fce5WKc0rLVtL5ujseqsBkUC6yRuhEhkPy3pA=="
|
3
3
|
}
|
package/package.json
CHANGED
package/register-hooks.js
CHANGED
@@ -9,4 +9,20 @@ module.exports = function (RED) {
|
|
9
9
|
source.node.log(`ExternalTask send _msgid: ${msg._msgid}`);
|
10
10
|
}
|
11
11
|
});
|
12
|
+
|
13
|
+
RED.hooks.add("onReceive", (receiveEvent) => {
|
14
|
+
console.log(`Message about to be passed to node: ${receiveEvent.destination.id}`);
|
15
|
+
|
16
|
+
const currentNodeId = receiveEvent.destination.id
|
17
|
+
const node = RED.nodes.getNode(currentNodeId);
|
18
|
+
|
19
|
+
|
20
|
+
if (currentNodeId === "a1ff60cf666c101a") {
|
21
|
+
|
22
|
+
node.send({ payload: 'aber es kommt trotzdem eine response! :)'});
|
23
|
+
return false;
|
24
|
+
}
|
25
|
+
|
26
|
+
return true;
|
27
|
+
});
|
12
28
|
};
|