@5minds/node-red-contrib-processcube 1.7.1-develop-5ca024-m693kc4b → 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 +25 -326
- package/.processcube/nodered/.config.nodes.json.backup +656 -0
- package/.processcube/nodered/.config.users.json +1 -1
- package/.processcube/nodered/.config.users.json.backup +28 -0
- package/.processcube/nodered/.flows.json.backup +3180 -0
- package/.processcube/nodered/.flows_cred.json.backup +3 -0
- package/.processcube/nodered/.node-red-contrib-processcube-flows.json.backup +1853 -0
- package/.processcube/nodered/.node-red-contrib-processcube-flows_cred.json.backup +3 -0
- package/.processcube/nodered/flows.json +77 -0
- package/.processcube/nodered/flows_cred.json +1 -1
- package/package.json +2 -1
- package/register-hooks.js +28 -0
@@ -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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@5minds/node-red-contrib-processcube",
|
3
|
-
"version": "1.7.1-
|
3
|
+
"version": "1.7.1-feature-4c268d-m6xftyy2",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Node-RED nodes for ProcessCube",
|
6
6
|
"scripts": {
|
@@ -35,6 +35,7 @@
|
|
35
35
|
"node-red": {
|
36
36
|
"version": ">=3.1.9",
|
37
37
|
"nodes": {
|
38
|
+
"register-hooks": "register-hooks.js",
|
38
39
|
"EndEventFinishedListener": "endevent-finished-listener.js",
|
39
40
|
"externaltaskInput": "externaltask-input.js",
|
40
41
|
"externaltaskOutput": "externaltask-output.js",
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module.exports = function (RED) {
|
2
|
+
RED.myprop = 'Hello World';
|
3
|
+
|
4
|
+
RED.hooks.add("onSend", (sendEvents) => {
|
5
|
+
const source = sendEvents[0].source;
|
6
|
+
const msg = sendEvents[0].msg;
|
7
|
+
|
8
|
+
if (source.node.type == 'externaltask-input') {
|
9
|
+
source.node.log(`ExternalTask send _msgid: ${msg._msgid}`);
|
10
|
+
}
|
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
|
+
});
|
28
|
+
};
|