@yousolution/node-red-contrib-you-sap-service-layer 0.2.2 → 0.2.4
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/.prettierrc +6 -6
- package/.vscode/launch.json +23 -23
- package/CHANGELOG.md +61 -52
- package/README.md +126 -126
- package/docker-compose.yml +14 -14
- package/examples/example.json +625 -625
- package/nodes/SQLQuery.html +179 -179
- package/nodes/SQLQuery.js +46 -46
- package/nodes/authenticateSap.html +146 -146
- package/nodes/authenticateSap.js +129 -129
- package/nodes/closeSap.html +128 -97
- package/nodes/closeSap.js +36 -36
- package/nodes/createSQLQuery.html +165 -165
- package/nodes/createSQLQuery.js +70 -70
- package/nodes/createSap.html +391 -391
- package/nodes/createSap.js +40 -40
- package/nodes/crossJoinSap.html +394 -394
- package/nodes/crossJoinSap.js +37 -37
- package/nodes/deleteSap.html +406 -406
- package/nodes/deleteSap.js +35 -35
- package/nodes/getSap.html +427 -427
- package/nodes/getSap.js +34 -34
- package/nodes/listSap.html +402 -402
- package/nodes/listSap.js +37 -37
- package/nodes/manageErrors.js +38 -38
- package/nodes/manipulateEntitySap.html +176 -176
- package/nodes/manipulateEntitySap.js +46 -46
- package/nodes/nextLink.html +100 -100
- package/nodes/nextLink.js +18 -18
- package/nodes/patchSap.html +424 -424
- package/nodes/patchSap.js +40 -40
- package/nodes/serviceSap.html +160 -206
- package/nodes/serviceSap.js +39 -39
- package/nodes/support.js +363 -363
- package/package.json +65 -65
- package/resources/entities.json +59 -59
- package/resources/services.json +343 -343
- package/test/authenticateSap.spec.js +307 -307
- package/test/closeSap.spec.js +156 -156
- package/test/createSQLQuery.spec.js +174 -174
- package/test/createSap.spec.js +183 -183
- package/test/crossJoinSap.spec.js +156 -156
- package/test/deleteSap.spec.js +156 -156
- package/test/getSap.spec.js +156 -156
- package/test/listSap.spec.js +156 -156
- package/test/manipulateEntitySap.spec.js +191 -191
- package/test/patchSap.spec.js +184 -184
- package/test/serviceSap.spec.js +170 -170
- package/test/support.spec.js +1419 -1419
- package/data/.gitkeep +0 -0
package/examples/example.json
CHANGED
|
@@ -1,626 +1,626 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "2b38c957604c963e",
|
|
4
|
-
"type": "tab",
|
|
5
|
-
"label": "Sap Service Layer",
|
|
6
|
-
"disabled": false,
|
|
7
|
-
"info": ""
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"id": "7bc10473336cee5e",
|
|
11
|
-
"type": "inject",
|
|
12
|
-
"z": "2b38c957604c963e",
|
|
13
|
-
"name": "",
|
|
14
|
-
"props": [
|
|
15
|
-
{
|
|
16
|
-
"p": "payload"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"p": "topic",
|
|
20
|
-
"vt": "str"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"repeat": "",
|
|
24
|
-
"crontab": "",
|
|
25
|
-
"once": false,
|
|
26
|
-
"onceDelay": 0.1,
|
|
27
|
-
"topic": "",
|
|
28
|
-
"payload": "",
|
|
29
|
-
"payloadType": "date",
|
|
30
|
-
"x": 140,
|
|
31
|
-
"y": 300,
|
|
32
|
-
"wires": [
|
|
33
|
-
[
|
|
34
|
-
"84c4d696e3c141c1"
|
|
35
|
-
]
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"id": "47987b38c28c1d23",
|
|
40
|
-
"type": "debug",
|
|
41
|
-
"z": "2b38c957604c963e",
|
|
42
|
-
"name": "",
|
|
43
|
-
"active": true,
|
|
44
|
-
"tosidebar": true,
|
|
45
|
-
"console": false,
|
|
46
|
-
"tostatus": false,
|
|
47
|
-
"complete": "true",
|
|
48
|
-
"targetType": "full",
|
|
49
|
-
"statusVal": "",
|
|
50
|
-
"statusType": "auto",
|
|
51
|
-
"x": 990,
|
|
52
|
-
"y": 300,
|
|
53
|
-
"wires": []
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"id": "1b38e903df1dd9c6",
|
|
57
|
-
"type": "getSap",
|
|
58
|
-
"z": "2b38c957604c963e",
|
|
59
|
-
"name": "",
|
|
60
|
-
"entity": "BusinessPartners",
|
|
61
|
-
"udo": "",
|
|
62
|
-
"entityId": "entityId",
|
|
63
|
-
"docEntry": "",
|
|
64
|
-
"headers": "myHeaders",
|
|
65
|
-
"query": "// query = msg.paramsQuery;",
|
|
66
|
-
"x": 700,
|
|
67
|
-
"y": 260,
|
|
68
|
-
"wires": [
|
|
69
|
-
[
|
|
70
|
-
"47987b38c28c1d23"
|
|
71
|
-
]
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"id": "9cde2e06a4a797ec",
|
|
76
|
-
"type": "createSap",
|
|
77
|
-
"z": "2b38c957604c963e",
|
|
78
|
-
"name": "",
|
|
79
|
-
"entity": "Items",
|
|
80
|
-
"udo": "U_Items",
|
|
81
|
-
"udt": "",
|
|
82
|
-
"partnerName": "",
|
|
83
|
-
"scriptName": "",
|
|
84
|
-
"headers": "myHeaders",
|
|
85
|
-
"bodyPost": "bodyPost",
|
|
86
|
-
"x": 710,
|
|
87
|
-
"y": 380,
|
|
88
|
-
"wires": [
|
|
89
|
-
[
|
|
90
|
-
"47987b38c28c1d23"
|
|
91
|
-
]
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"id": "7467f0b88fef7e44",
|
|
96
|
-
"type": "deleteSap",
|
|
97
|
-
"z": "2b38c957604c963e",
|
|
98
|
-
"name": "",
|
|
99
|
-
"entity": "Items",
|
|
100
|
-
"udo": "",
|
|
101
|
-
"entityId": "entityId",
|
|
102
|
-
"headers": "myHeaders",
|
|
103
|
-
"x": 710,
|
|
104
|
-
"y": 320,
|
|
105
|
-
"wires": [
|
|
106
|
-
[
|
|
107
|
-
"47987b38c28c1d23"
|
|
108
|
-
]
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"id": "fb931e4efa318665",
|
|
113
|
-
"type": "patchSap",
|
|
114
|
-
"z": "2b38c957604c963e",
|
|
115
|
-
"name": "",
|
|
116
|
-
"entity": "BusinessPartners",
|
|
117
|
-
"udo": "U_items",
|
|
118
|
-
"entityId": "entityId",
|
|
119
|
-
"headers": "myHeaders",
|
|
120
|
-
"bodyPatch": "bodyPatch",
|
|
121
|
-
"x": 700,
|
|
122
|
-
"y": 200,
|
|
123
|
-
"wires": [
|
|
124
|
-
[
|
|
125
|
-
"47987b38c28c1d23"
|
|
126
|
-
]
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"id": "caaa38613a09de3b",
|
|
131
|
-
"type": "listSap",
|
|
132
|
-
"z": "2b38c957604c963e",
|
|
133
|
-
"name": "",
|
|
134
|
-
"entity": "Items",
|
|
135
|
-
"udo": "U_Items",
|
|
136
|
-
"udt": "",
|
|
137
|
-
"headers": "myHeaders",
|
|
138
|
-
"nextLink": "nextLink",
|
|
139
|
-
"query": "// query = {\n// select: ['CardCode'],\n// skip: 50000\n// };",
|
|
140
|
-
"x": 700,
|
|
141
|
-
"y": 440,
|
|
142
|
-
"wires": [
|
|
143
|
-
[
|
|
144
|
-
"47987b38c28c1d23",
|
|
145
|
-
"7a9b213982e4c6e6"
|
|
146
|
-
]
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"id": "0f7c82bbd851d3f0",
|
|
151
|
-
"type": "function",
|
|
152
|
-
"z": "2b38c957604c963e",
|
|
153
|
-
"name": "CrossJoin Parameters",
|
|
154
|
-
"func": "const filter = {\n 'Orders/CardCode': {\n eq: {\n type: 'raw',\n value: `BusinessPartners/CardCode`\n \n }\n }\n};\n\nconst expand = {\n Orders: {\n select: ['DocEntry', 'DocNum'],\n },\n BusinessPartners : {\n select: ['CardCode', 'CardName'],\n }\n};\n\nquery = {expand, filter, orderBy: ['CardCode desc']};\n\nmsg.crossJoin = query\nreturn msg;",
|
|
155
|
-
"outputs": 1,
|
|
156
|
-
"noerr": 0,
|
|
157
|
-
"initialize": "",
|
|
158
|
-
"finalize": "",
|
|
159
|
-
"libs": [],
|
|
160
|
-
"x": 500,
|
|
161
|
-
"y": 560,
|
|
162
|
-
"wires": [
|
|
163
|
-
[
|
|
164
|
-
"d887e5156e3dc77d"
|
|
165
|
-
]
|
|
166
|
-
]
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"id": "dc938328d52c32d8",
|
|
170
|
-
"type": "closeSap",
|
|
171
|
-
"z": "2b38c957604c963e",
|
|
172
|
-
"name": "",
|
|
173
|
-
"entity": "DeliveryNotes",
|
|
174
|
-
"entityId": "entityId",
|
|
175
|
-
"x": 700,
|
|
176
|
-
"y": 500,
|
|
177
|
-
"wires": [
|
|
178
|
-
[
|
|
179
|
-
"47987b38c28c1d23"
|
|
180
|
-
]
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"id": "84c4d696e3c141c1",
|
|
185
|
-
"type": "authenticateSap",
|
|
186
|
-
"z": "2b38c957604c963e",
|
|
187
|
-
"name": "",
|
|
188
|
-
"host": "srvsap02.dominione.local",
|
|
189
|
-
"port": "50000",
|
|
190
|
-
"version": "v1",
|
|
191
|
-
"credentials": {},
|
|
192
|
-
"x": 190,
|
|
193
|
-
"y": 380,
|
|
194
|
-
"wires": [
|
|
195
|
-
[
|
|
196
|
-
"e0d0bdefda2809a5"
|
|
197
|
-
]
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"id": "2048ab555e57d629",
|
|
202
|
-
"type": "function",
|
|
203
|
-
"z": "2b38c957604c963e",
|
|
204
|
-
"name": "parameters",
|
|
205
|
-
"func": "//msg.paramsQuery = {\n// select: ['ItemCode', 'ItemName']\n//};\n\n//msg.bodyPost = {\n// \"CardCode\": \"card01\"\n//}\n\nmsg.myHeaders = {\n Prefer: \"odata.maxpagesize=5\"\n}\n\nreturn msg;",
|
|
206
|
-
"outputs": 1,
|
|
207
|
-
"noerr": 0,
|
|
208
|
-
"initialize": "",
|
|
209
|
-
"finalize": "",
|
|
210
|
-
"libs": [],
|
|
211
|
-
"x": 510,
|
|
212
|
-
"y": 440,
|
|
213
|
-
"wires": [
|
|
214
|
-
[
|
|
215
|
-
"caaa38613a09de3b"
|
|
216
|
-
]
|
|
217
|
-
]
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"id": "d887e5156e3dc77d",
|
|
221
|
-
"type": "crossJoinSap",
|
|
222
|
-
"z": "2b38c957604c963e",
|
|
223
|
-
"name": "",
|
|
224
|
-
"entity": "BusinessPartners,Orders",
|
|
225
|
-
"headers": "myHeaders",
|
|
226
|
-
"nextLink": "nextLink",
|
|
227
|
-
"query": "query = msg.crossJoin",
|
|
228
|
-
"x": 720,
|
|
229
|
-
"y": 560,
|
|
230
|
-
"wires": [
|
|
231
|
-
[
|
|
232
|
-
"47987b38c28c1d23"
|
|
233
|
-
]
|
|
234
|
-
]
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"id": "7ae3f4c03d172c30",
|
|
238
|
-
"type": "nextLink",
|
|
239
|
-
"z": "2b38c957604c963e",
|
|
240
|
-
"name": "",
|
|
241
|
-
"nextLink": "nextLink",
|
|
242
|
-
"x": 1140,
|
|
243
|
-
"y": 440,
|
|
244
|
-
"wires": [
|
|
245
|
-
[]
|
|
246
|
-
]
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"id": "7a9b213982e4c6e6",
|
|
250
|
-
"type": "delay",
|
|
251
|
-
"z": "2b38c957604c963e",
|
|
252
|
-
"name": "",
|
|
253
|
-
"pauseType": "delay",
|
|
254
|
-
"timeout": "3",
|
|
255
|
-
"timeoutUnits": "seconds",
|
|
256
|
-
"rate": "1",
|
|
257
|
-
"nbRateUnits": "1",
|
|
258
|
-
"rateUnits": "second",
|
|
259
|
-
"randomFirst": "1",
|
|
260
|
-
"randomLast": "5",
|
|
261
|
-
"randomUnits": "seconds",
|
|
262
|
-
"drop": false,
|
|
263
|
-
"allowrate": false,
|
|
264
|
-
"x": 960,
|
|
265
|
-
"y": 440,
|
|
266
|
-
"wires": [
|
|
267
|
-
[
|
|
268
|
-
"7ae3f4c03d172c30"
|
|
269
|
-
]
|
|
270
|
-
]
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"id": "c7445f8acb20cf64",
|
|
274
|
-
"type": "catch",
|
|
275
|
-
"z": "2b38c957604c963e",
|
|
276
|
-
"name": "",
|
|
277
|
-
"scope": null,
|
|
278
|
-
"uncaught": false,
|
|
279
|
-
"x": 200,
|
|
280
|
-
"y": 760,
|
|
281
|
-
"wires": [
|
|
282
|
-
[
|
|
283
|
-
"b5ef1bfdf637ee89"
|
|
284
|
-
]
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"id": "b5ef1bfdf637ee89",
|
|
289
|
-
"type": "debug",
|
|
290
|
-
"z": "2b38c957604c963e",
|
|
291
|
-
"name": "",
|
|
292
|
-
"active": true,
|
|
293
|
-
"tosidebar": true,
|
|
294
|
-
"console": false,
|
|
295
|
-
"tostatus": false,
|
|
296
|
-
"complete": "error",
|
|
297
|
-
"targetType": "msg",
|
|
298
|
-
"statusVal": "",
|
|
299
|
-
"statusType": "auto",
|
|
300
|
-
"x": 320,
|
|
301
|
-
"y": 700,
|
|
302
|
-
"wires": []
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"id": "2245c42c887404b4",
|
|
306
|
-
"type": "function",
|
|
307
|
-
"z": "2b38c957604c963e",
|
|
308
|
-
"name": "get BP Params",
|
|
309
|
-
"func": "msg.entityId = '00002780435';\nreturn msg;",
|
|
310
|
-
"outputs": 1,
|
|
311
|
-
"noerr": 0,
|
|
312
|
-
"initialize": "",
|
|
313
|
-
"finalize": "",
|
|
314
|
-
"libs": [],
|
|
315
|
-
"x": 500,
|
|
316
|
-
"y": 260,
|
|
317
|
-
"wires": [
|
|
318
|
-
[
|
|
319
|
-
"1b38e903df1dd9c6"
|
|
320
|
-
]
|
|
321
|
-
]
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"id": "eda147127cc676b5",
|
|
325
|
-
"type": "function",
|
|
326
|
-
"z": "2b38c957604c963e",
|
|
327
|
-
"name": "Create parameters",
|
|
328
|
-
"func": "msg.bodyPost = {\n \"ItemCode\": \"nodered001\",\n \"ItemName\": \"TestNodeRed1\",\n \"ItemType\": \"itItems\"\n}\n\nmsg.myHeaders = {\n Prefer: \"odata.maxpagesize=5\"\n}\n\nreturn msg;",
|
|
329
|
-
"outputs": 1,
|
|
330
|
-
"noerr": 0,
|
|
331
|
-
"initialize": "",
|
|
332
|
-
"finalize": "",
|
|
333
|
-
"libs": [],
|
|
334
|
-
"x": 490,
|
|
335
|
-
"y": 380,
|
|
336
|
-
"wires": [
|
|
337
|
-
[
|
|
338
|
-
"9cde2e06a4a797ec"
|
|
339
|
-
]
|
|
340
|
-
]
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"id": "276900e1e4088fc7",
|
|
344
|
-
"type": "function",
|
|
345
|
-
"z": "2b38c957604c963e",
|
|
346
|
-
"name": "delete Items Params",
|
|
347
|
-
"func": "msg.entityId = \"nodered001\";\nreturn msg;",
|
|
348
|
-
"outputs": 1,
|
|
349
|
-
"noerr": 0,
|
|
350
|
-
"initialize": "",
|
|
351
|
-
"finalize": "",
|
|
352
|
-
"libs": [],
|
|
353
|
-
"x": 480,
|
|
354
|
-
"y": 320,
|
|
355
|
-
"wires": [
|
|
356
|
-
[
|
|
357
|
-
"7467f0b88fef7e44"
|
|
358
|
-
]
|
|
359
|
-
]
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"id": "8f6d0b0c62e2f825",
|
|
363
|
-
"type": "function",
|
|
364
|
-
"z": "2b38c957604c963e",
|
|
365
|
-
"name": "PATCH Params",
|
|
366
|
-
"func": "msg.entityId = '00002780435';\nmsg.bodyPatch = {\n CardName: 'SIRA CUCINE COMPONIBILI'\n}\nreturn msg;",
|
|
367
|
-
"outputs": 1,
|
|
368
|
-
"noerr": 0,
|
|
369
|
-
"initialize": "",
|
|
370
|
-
"finalize": "",
|
|
371
|
-
"libs": [],
|
|
372
|
-
"x": 500,
|
|
373
|
-
"y": 200,
|
|
374
|
-
"wires": [
|
|
375
|
-
[
|
|
376
|
-
"fb931e4efa318665"
|
|
377
|
-
]
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"id": "51b7be3dea20e190",
|
|
382
|
-
"type": "comment",
|
|
383
|
-
"z": "2b38c957604c963e",
|
|
384
|
-
"name": "Error handling",
|
|
385
|
-
"info": "Handle error",
|
|
386
|
-
"x": 110,
|
|
387
|
-
"y": 720,
|
|
388
|
-
"wires": []
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"id": "0d0e40f49ddb089e",
|
|
392
|
-
"type": "comment",
|
|
393
|
-
"z": "2b38c957604c963e",
|
|
394
|
-
"name": "Connects the node you wish to test. \\n Remember to set the data required for the connection \\n and the various parameters on the nodes.",
|
|
395
|
-
"info": "",
|
|
396
|
-
"x": 200,
|
|
397
|
-
"y": 180,
|
|
398
|
-
"wires": []
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"id": "f9f63d795fe7d667",
|
|
402
|
-
"type": "listSap",
|
|
403
|
-
"z": "2b38c957604c963e",
|
|
404
|
-
"name": "",
|
|
405
|
-
"entity": "UDO",
|
|
406
|
-
"udo": "IEO_LPN_RISORSE",
|
|
407
|
-
"headers": "myHeaders",
|
|
408
|
-
"nextLink": "nextLink",
|
|
409
|
-
"query": "// query = {\n// select: ['CardCode'],\n// skip: 50000\n// };",
|
|
410
|
-
"x": 700,
|
|
411
|
-
"y": 620,
|
|
412
|
-
"wires": [
|
|
413
|
-
[
|
|
414
|
-
"47987b38c28c1d23"
|
|
415
|
-
]
|
|
416
|
-
]
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"id": "5ddd481c44be7f85",
|
|
420
|
-
"type": "getSap",
|
|
421
|
-
"z": "2b38c957604c963e",
|
|
422
|
-
"name": "",
|
|
423
|
-
"entity": "UDT",
|
|
424
|
-
"udo": "IEO_LPN_RISORSE",
|
|
425
|
-
"udt": "IEO_LPN_RISORSE",
|
|
426
|
-
"entityId": "entityId",
|
|
427
|
-
"docEntry": "DocEntry",
|
|
428
|
-
"code": "Code",
|
|
429
|
-
"headers": "myHeaders",
|
|
430
|
-
"query": "// query = msg.paramsQuery;",
|
|
431
|
-
"x": 700,
|
|
432
|
-
"y": 680,
|
|
433
|
-
"wires": [
|
|
434
|
-
[
|
|
435
|
-
"47987b38c28c1d23"
|
|
436
|
-
]
|
|
437
|
-
]
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"id": "d48327e1d4277ba4",
|
|
441
|
-
"type": "function",
|
|
442
|
-
"z": "2b38c957604c963e",
|
|
443
|
-
"name": "get BP Params",
|
|
444
|
-
"func": "msg.Code = '001';\nreturn msg;",
|
|
445
|
-
"outputs": 1,
|
|
446
|
-
"noerr": 0,
|
|
447
|
-
"initialize": "",
|
|
448
|
-
"finalize": "",
|
|
449
|
-
"libs": [],
|
|
450
|
-
"x": 520,
|
|
451
|
-
"y": 680,
|
|
452
|
-
"wires": [
|
|
453
|
-
[
|
|
454
|
-
"5ddd481c44be7f85"
|
|
455
|
-
]
|
|
456
|
-
]
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"id": "f8d4de354b8696d3",
|
|
460
|
-
"type": "function",
|
|
461
|
-
"z": "2b38c957604c963e",
|
|
462
|
-
"name": "Create parameters",
|
|
463
|
-
"func": "msg.bodyPost = {\n \"ItemCode\": \"nodered001\",\n \"ItemName\": \"TestNodeRed1\",\n \"BarCode\": \"978020137962\"\n}\n\nmsg.myHeaders = {\n Prefer: \"odata.maxpagesize=5\"\n}\n\nreturn msg;",
|
|
464
|
-
"outputs": 1,
|
|
465
|
-
"noerr": 0,
|
|
466
|
-
"initialize": "",
|
|
467
|
-
"finalize": "",
|
|
468
|
-
"libs": [],
|
|
469
|
-
"x": 510,
|
|
470
|
-
"y": 780,
|
|
471
|
-
"wires": [
|
|
472
|
-
[
|
|
473
|
-
"6a1df45aed7e2781"
|
|
474
|
-
]
|
|
475
|
-
]
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"id": "6a1df45aed7e2781",
|
|
479
|
-
"type": "createSap",
|
|
480
|
-
"z": "2b38c957604c963e",
|
|
481
|
-
"name": "",
|
|
482
|
-
"entity": "Items",
|
|
483
|
-
"udo": "U_Items",
|
|
484
|
-
"udt": "",
|
|
485
|
-
"partnerName": "",
|
|
486
|
-
"scriptName": "",
|
|
487
|
-
"headers": "myHeaders",
|
|
488
|
-
"bodyPost": "bodyPost",
|
|
489
|
-
"x": 690,
|
|
490
|
-
"y": 780,
|
|
491
|
-
"wires": [
|
|
492
|
-
[]
|
|
493
|
-
]
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
"id": "3c830bb0efd613d1",
|
|
497
|
-
"type": "getSap",
|
|
498
|
-
"z": "2b38c957604c963e",
|
|
499
|
-
"name": "",
|
|
500
|
-
"entity": "Items",
|
|
501
|
-
"udo": "",
|
|
502
|
-
"udt": "",
|
|
503
|
-
"entityId": "entityId",
|
|
504
|
-
"docEntry": "",
|
|
505
|
-
"code": "",
|
|
506
|
-
"headers": "myHeaders",
|
|
507
|
-
"query": "// query = msg.paramsQuery;",
|
|
508
|
-
"x": 680,
|
|
509
|
-
"y": 920,
|
|
510
|
-
"wires": [
|
|
511
|
-
[
|
|
512
|
-
"47987b38c28c1d23"
|
|
513
|
-
]
|
|
514
|
-
]
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
"id": "a9d94fa2a7a44837",
|
|
518
|
-
"type": "function",
|
|
519
|
-
"z": "2b38c957604c963e",
|
|
520
|
-
"name": "get BP Params",
|
|
521
|
-
"func": "msg.entityId = 'nodered001';\nreturn msg;",
|
|
522
|
-
"outputs": 1,
|
|
523
|
-
"noerr": 0,
|
|
524
|
-
"initialize": "",
|
|
525
|
-
"finalize": "",
|
|
526
|
-
"libs": [],
|
|
527
|
-
"x": 480,
|
|
528
|
-
"y": 920,
|
|
529
|
-
"wires": [
|
|
530
|
-
[
|
|
531
|
-
"3c830bb0efd613d1"
|
|
532
|
-
]
|
|
533
|
-
]
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"id": "1d8a552be83ad51a",
|
|
537
|
-
"type": "deleteSap",
|
|
538
|
-
"z": "2b38c957604c963e",
|
|
539
|
-
"name": "",
|
|
540
|
-
"entity": "Items",
|
|
541
|
-
"udo": "",
|
|
542
|
-
"entityId": "entityId",
|
|
543
|
-
"headers": "myHeaders",
|
|
544
|
-
"x": 710,
|
|
545
|
-
"y": 1000,
|
|
546
|
-
"wires": [
|
|
547
|
-
[
|
|
548
|
-
"47987b38c28c1d23"
|
|
549
|
-
]
|
|
550
|
-
]
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"id": "e0d0bdefda2809a5",
|
|
554
|
-
"type": "function",
|
|
555
|
-
"z": "2b38c957604c963e",
|
|
556
|
-
"name": "delete Items Params",
|
|
557
|
-
"func": "msg.entityId = \"ctest0001\";\nreturn msg;",
|
|
558
|
-
"outputs": 1,
|
|
559
|
-
"noerr": 0,
|
|
560
|
-
"initialize": "",
|
|
561
|
-
"finalize": "",
|
|
562
|
-
"libs": [],
|
|
563
|
-
"x": 480,
|
|
564
|
-
"y": 1000,
|
|
565
|
-
"wires": [
|
|
566
|
-
[
|
|
567
|
-
"1d8a552be83ad51a"
|
|
568
|
-
]
|
|
569
|
-
]
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"id": "2c13665355baa655",
|
|
573
|
-
"type": "function",
|
|
574
|
-
"z": "2b38c957604c963e",
|
|
575
|
-
"name": "",
|
|
576
|
-
"func": "\nreturn msg;",
|
|
577
|
-
"outputs": 1,
|
|
578
|
-
"noerr": 0,
|
|
579
|
-
"initialize": "",
|
|
580
|
-
"finalize": "",
|
|
581
|
-
"libs": [],
|
|
582
|
-
"x": 190,
|
|
583
|
-
"y": 560,
|
|
584
|
-
"wires": [
|
|
585
|
-
[]
|
|
586
|
-
]
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"id": "1121920884466e30",
|
|
590
|
-
"type": "getSap",
|
|
591
|
-
"z": "2b38c957604c963e",
|
|
592
|
-
"name": "",
|
|
593
|
-
"entity": "UDT",
|
|
594
|
-
"udo": "IEO_LPN_RISORSE",
|
|
595
|
-
"udt": "IEO_LPN_RISORSE",
|
|
596
|
-
"entityId": "entityId",
|
|
597
|
-
"docEntry": "DocEntry",
|
|
598
|
-
"code": "Code",
|
|
599
|
-
"headers": "myHeaders",
|
|
600
|
-
"query": "// query = msg.paramsQuery;",
|
|
601
|
-
"x": 1100,
|
|
602
|
-
"y": 1220,
|
|
603
|
-
"wires": [
|
|
604
|
-
[]
|
|
605
|
-
]
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"id": "a62c916019dd3d52",
|
|
609
|
-
"type": "function",
|
|
610
|
-
"z": "2b38c957604c963e",
|
|
611
|
-
"name": "get BP Params",
|
|
612
|
-
"func": "msg.Code = '001';\nreturn msg;",
|
|
613
|
-
"outputs": 1,
|
|
614
|
-
"noerr": 0,
|
|
615
|
-
"initialize": "",
|
|
616
|
-
"finalize": "",
|
|
617
|
-
"libs": [],
|
|
618
|
-
"x": 920,
|
|
619
|
-
"y": 1220,
|
|
620
|
-
"wires": [
|
|
621
|
-
[
|
|
622
|
-
"1121920884466e30"
|
|
623
|
-
]
|
|
624
|
-
]
|
|
625
|
-
}
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "2b38c957604c963e",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "Sap Service Layer",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": ""
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"id": "7bc10473336cee5e",
|
|
11
|
+
"type": "inject",
|
|
12
|
+
"z": "2b38c957604c963e",
|
|
13
|
+
"name": "",
|
|
14
|
+
"props": [
|
|
15
|
+
{
|
|
16
|
+
"p": "payload"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"p": "topic",
|
|
20
|
+
"vt": "str"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"repeat": "",
|
|
24
|
+
"crontab": "",
|
|
25
|
+
"once": false,
|
|
26
|
+
"onceDelay": 0.1,
|
|
27
|
+
"topic": "",
|
|
28
|
+
"payload": "",
|
|
29
|
+
"payloadType": "date",
|
|
30
|
+
"x": 140,
|
|
31
|
+
"y": 300,
|
|
32
|
+
"wires": [
|
|
33
|
+
[
|
|
34
|
+
"84c4d696e3c141c1"
|
|
35
|
+
]
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "47987b38c28c1d23",
|
|
40
|
+
"type": "debug",
|
|
41
|
+
"z": "2b38c957604c963e",
|
|
42
|
+
"name": "",
|
|
43
|
+
"active": true,
|
|
44
|
+
"tosidebar": true,
|
|
45
|
+
"console": false,
|
|
46
|
+
"tostatus": false,
|
|
47
|
+
"complete": "true",
|
|
48
|
+
"targetType": "full",
|
|
49
|
+
"statusVal": "",
|
|
50
|
+
"statusType": "auto",
|
|
51
|
+
"x": 990,
|
|
52
|
+
"y": 300,
|
|
53
|
+
"wires": []
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "1b38e903df1dd9c6",
|
|
57
|
+
"type": "getSap",
|
|
58
|
+
"z": "2b38c957604c963e",
|
|
59
|
+
"name": "",
|
|
60
|
+
"entity": "BusinessPartners",
|
|
61
|
+
"udo": "",
|
|
62
|
+
"entityId": "entityId",
|
|
63
|
+
"docEntry": "",
|
|
64
|
+
"headers": "myHeaders",
|
|
65
|
+
"query": "// query = msg.paramsQuery;",
|
|
66
|
+
"x": 700,
|
|
67
|
+
"y": 260,
|
|
68
|
+
"wires": [
|
|
69
|
+
[
|
|
70
|
+
"47987b38c28c1d23"
|
|
71
|
+
]
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "9cde2e06a4a797ec",
|
|
76
|
+
"type": "createSap",
|
|
77
|
+
"z": "2b38c957604c963e",
|
|
78
|
+
"name": "",
|
|
79
|
+
"entity": "Items",
|
|
80
|
+
"udo": "U_Items",
|
|
81
|
+
"udt": "",
|
|
82
|
+
"partnerName": "",
|
|
83
|
+
"scriptName": "",
|
|
84
|
+
"headers": "myHeaders",
|
|
85
|
+
"bodyPost": "bodyPost",
|
|
86
|
+
"x": 710,
|
|
87
|
+
"y": 380,
|
|
88
|
+
"wires": [
|
|
89
|
+
[
|
|
90
|
+
"47987b38c28c1d23"
|
|
91
|
+
]
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "7467f0b88fef7e44",
|
|
96
|
+
"type": "deleteSap",
|
|
97
|
+
"z": "2b38c957604c963e",
|
|
98
|
+
"name": "",
|
|
99
|
+
"entity": "Items",
|
|
100
|
+
"udo": "",
|
|
101
|
+
"entityId": "entityId",
|
|
102
|
+
"headers": "myHeaders",
|
|
103
|
+
"x": 710,
|
|
104
|
+
"y": 320,
|
|
105
|
+
"wires": [
|
|
106
|
+
[
|
|
107
|
+
"47987b38c28c1d23"
|
|
108
|
+
]
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "fb931e4efa318665",
|
|
113
|
+
"type": "patchSap",
|
|
114
|
+
"z": "2b38c957604c963e",
|
|
115
|
+
"name": "",
|
|
116
|
+
"entity": "BusinessPartners",
|
|
117
|
+
"udo": "U_items",
|
|
118
|
+
"entityId": "entityId",
|
|
119
|
+
"headers": "myHeaders",
|
|
120
|
+
"bodyPatch": "bodyPatch",
|
|
121
|
+
"x": 700,
|
|
122
|
+
"y": 200,
|
|
123
|
+
"wires": [
|
|
124
|
+
[
|
|
125
|
+
"47987b38c28c1d23"
|
|
126
|
+
]
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "caaa38613a09de3b",
|
|
131
|
+
"type": "listSap",
|
|
132
|
+
"z": "2b38c957604c963e",
|
|
133
|
+
"name": "",
|
|
134
|
+
"entity": "Items",
|
|
135
|
+
"udo": "U_Items",
|
|
136
|
+
"udt": "",
|
|
137
|
+
"headers": "myHeaders",
|
|
138
|
+
"nextLink": "nextLink",
|
|
139
|
+
"query": "// query = {\n// select: ['CardCode'],\n// skip: 50000\n// };",
|
|
140
|
+
"x": 700,
|
|
141
|
+
"y": 440,
|
|
142
|
+
"wires": [
|
|
143
|
+
[
|
|
144
|
+
"47987b38c28c1d23",
|
|
145
|
+
"7a9b213982e4c6e6"
|
|
146
|
+
]
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "0f7c82bbd851d3f0",
|
|
151
|
+
"type": "function",
|
|
152
|
+
"z": "2b38c957604c963e",
|
|
153
|
+
"name": "CrossJoin Parameters",
|
|
154
|
+
"func": "const filter = {\n 'Orders/CardCode': {\n eq: {\n type: 'raw',\n value: `BusinessPartners/CardCode`\n \n }\n }\n};\n\nconst expand = {\n Orders: {\n select: ['DocEntry', 'DocNum'],\n },\n BusinessPartners : {\n select: ['CardCode', 'CardName'],\n }\n};\n\nquery = {expand, filter, orderBy: ['CardCode desc']};\n\nmsg.crossJoin = query\nreturn msg;",
|
|
155
|
+
"outputs": 1,
|
|
156
|
+
"noerr": 0,
|
|
157
|
+
"initialize": "",
|
|
158
|
+
"finalize": "",
|
|
159
|
+
"libs": [],
|
|
160
|
+
"x": 500,
|
|
161
|
+
"y": 560,
|
|
162
|
+
"wires": [
|
|
163
|
+
[
|
|
164
|
+
"d887e5156e3dc77d"
|
|
165
|
+
]
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "dc938328d52c32d8",
|
|
170
|
+
"type": "closeSap",
|
|
171
|
+
"z": "2b38c957604c963e",
|
|
172
|
+
"name": "",
|
|
173
|
+
"entity": "DeliveryNotes",
|
|
174
|
+
"entityId": "entityId",
|
|
175
|
+
"x": 700,
|
|
176
|
+
"y": 500,
|
|
177
|
+
"wires": [
|
|
178
|
+
[
|
|
179
|
+
"47987b38c28c1d23"
|
|
180
|
+
]
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "84c4d696e3c141c1",
|
|
185
|
+
"type": "authenticateSap",
|
|
186
|
+
"z": "2b38c957604c963e",
|
|
187
|
+
"name": "",
|
|
188
|
+
"host": "srvsap02.dominione.local",
|
|
189
|
+
"port": "50000",
|
|
190
|
+
"version": "v1",
|
|
191
|
+
"credentials": {},
|
|
192
|
+
"x": 190,
|
|
193
|
+
"y": 380,
|
|
194
|
+
"wires": [
|
|
195
|
+
[
|
|
196
|
+
"e0d0bdefda2809a5"
|
|
197
|
+
]
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id": "2048ab555e57d629",
|
|
202
|
+
"type": "function",
|
|
203
|
+
"z": "2b38c957604c963e",
|
|
204
|
+
"name": "parameters",
|
|
205
|
+
"func": "//msg.paramsQuery = {\n// select: ['ItemCode', 'ItemName']\n//};\n\n//msg.bodyPost = {\n// \"CardCode\": \"card01\"\n//}\n\nmsg.myHeaders = {\n Prefer: \"odata.maxpagesize=5\"\n}\n\nreturn msg;",
|
|
206
|
+
"outputs": 1,
|
|
207
|
+
"noerr": 0,
|
|
208
|
+
"initialize": "",
|
|
209
|
+
"finalize": "",
|
|
210
|
+
"libs": [],
|
|
211
|
+
"x": 510,
|
|
212
|
+
"y": 440,
|
|
213
|
+
"wires": [
|
|
214
|
+
[
|
|
215
|
+
"caaa38613a09de3b"
|
|
216
|
+
]
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": "d887e5156e3dc77d",
|
|
221
|
+
"type": "crossJoinSap",
|
|
222
|
+
"z": "2b38c957604c963e",
|
|
223
|
+
"name": "",
|
|
224
|
+
"entity": "BusinessPartners,Orders",
|
|
225
|
+
"headers": "myHeaders",
|
|
226
|
+
"nextLink": "nextLink",
|
|
227
|
+
"query": "query = msg.crossJoin",
|
|
228
|
+
"x": 720,
|
|
229
|
+
"y": 560,
|
|
230
|
+
"wires": [
|
|
231
|
+
[
|
|
232
|
+
"47987b38c28c1d23"
|
|
233
|
+
]
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": "7ae3f4c03d172c30",
|
|
238
|
+
"type": "nextLink",
|
|
239
|
+
"z": "2b38c957604c963e",
|
|
240
|
+
"name": "",
|
|
241
|
+
"nextLink": "nextLink",
|
|
242
|
+
"x": 1140,
|
|
243
|
+
"y": 440,
|
|
244
|
+
"wires": [
|
|
245
|
+
[]
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "7a9b213982e4c6e6",
|
|
250
|
+
"type": "delay",
|
|
251
|
+
"z": "2b38c957604c963e",
|
|
252
|
+
"name": "",
|
|
253
|
+
"pauseType": "delay",
|
|
254
|
+
"timeout": "3",
|
|
255
|
+
"timeoutUnits": "seconds",
|
|
256
|
+
"rate": "1",
|
|
257
|
+
"nbRateUnits": "1",
|
|
258
|
+
"rateUnits": "second",
|
|
259
|
+
"randomFirst": "1",
|
|
260
|
+
"randomLast": "5",
|
|
261
|
+
"randomUnits": "seconds",
|
|
262
|
+
"drop": false,
|
|
263
|
+
"allowrate": false,
|
|
264
|
+
"x": 960,
|
|
265
|
+
"y": 440,
|
|
266
|
+
"wires": [
|
|
267
|
+
[
|
|
268
|
+
"7ae3f4c03d172c30"
|
|
269
|
+
]
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "c7445f8acb20cf64",
|
|
274
|
+
"type": "catch",
|
|
275
|
+
"z": "2b38c957604c963e",
|
|
276
|
+
"name": "",
|
|
277
|
+
"scope": null,
|
|
278
|
+
"uncaught": false,
|
|
279
|
+
"x": 200,
|
|
280
|
+
"y": 760,
|
|
281
|
+
"wires": [
|
|
282
|
+
[
|
|
283
|
+
"b5ef1bfdf637ee89"
|
|
284
|
+
]
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "b5ef1bfdf637ee89",
|
|
289
|
+
"type": "debug",
|
|
290
|
+
"z": "2b38c957604c963e",
|
|
291
|
+
"name": "",
|
|
292
|
+
"active": true,
|
|
293
|
+
"tosidebar": true,
|
|
294
|
+
"console": false,
|
|
295
|
+
"tostatus": false,
|
|
296
|
+
"complete": "error",
|
|
297
|
+
"targetType": "msg",
|
|
298
|
+
"statusVal": "",
|
|
299
|
+
"statusType": "auto",
|
|
300
|
+
"x": 320,
|
|
301
|
+
"y": 700,
|
|
302
|
+
"wires": []
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"id": "2245c42c887404b4",
|
|
306
|
+
"type": "function",
|
|
307
|
+
"z": "2b38c957604c963e",
|
|
308
|
+
"name": "get BP Params",
|
|
309
|
+
"func": "msg.entityId = '00002780435';\nreturn msg;",
|
|
310
|
+
"outputs": 1,
|
|
311
|
+
"noerr": 0,
|
|
312
|
+
"initialize": "",
|
|
313
|
+
"finalize": "",
|
|
314
|
+
"libs": [],
|
|
315
|
+
"x": 500,
|
|
316
|
+
"y": 260,
|
|
317
|
+
"wires": [
|
|
318
|
+
[
|
|
319
|
+
"1b38e903df1dd9c6"
|
|
320
|
+
]
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"id": "eda147127cc676b5",
|
|
325
|
+
"type": "function",
|
|
326
|
+
"z": "2b38c957604c963e",
|
|
327
|
+
"name": "Create parameters",
|
|
328
|
+
"func": "msg.bodyPost = {\n \"ItemCode\": \"nodered001\",\n \"ItemName\": \"TestNodeRed1\",\n \"ItemType\": \"itItems\"\n}\n\nmsg.myHeaders = {\n Prefer: \"odata.maxpagesize=5\"\n}\n\nreturn msg;",
|
|
329
|
+
"outputs": 1,
|
|
330
|
+
"noerr": 0,
|
|
331
|
+
"initialize": "",
|
|
332
|
+
"finalize": "",
|
|
333
|
+
"libs": [],
|
|
334
|
+
"x": 490,
|
|
335
|
+
"y": 380,
|
|
336
|
+
"wires": [
|
|
337
|
+
[
|
|
338
|
+
"9cde2e06a4a797ec"
|
|
339
|
+
]
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "276900e1e4088fc7",
|
|
344
|
+
"type": "function",
|
|
345
|
+
"z": "2b38c957604c963e",
|
|
346
|
+
"name": "delete Items Params",
|
|
347
|
+
"func": "msg.entityId = \"nodered001\";\nreturn msg;",
|
|
348
|
+
"outputs": 1,
|
|
349
|
+
"noerr": 0,
|
|
350
|
+
"initialize": "",
|
|
351
|
+
"finalize": "",
|
|
352
|
+
"libs": [],
|
|
353
|
+
"x": 480,
|
|
354
|
+
"y": 320,
|
|
355
|
+
"wires": [
|
|
356
|
+
[
|
|
357
|
+
"7467f0b88fef7e44"
|
|
358
|
+
]
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"id": "8f6d0b0c62e2f825",
|
|
363
|
+
"type": "function",
|
|
364
|
+
"z": "2b38c957604c963e",
|
|
365
|
+
"name": "PATCH Params",
|
|
366
|
+
"func": "msg.entityId = '00002780435';\nmsg.bodyPatch = {\n CardName: 'SIRA CUCINE COMPONIBILI'\n}\nreturn msg;",
|
|
367
|
+
"outputs": 1,
|
|
368
|
+
"noerr": 0,
|
|
369
|
+
"initialize": "",
|
|
370
|
+
"finalize": "",
|
|
371
|
+
"libs": [],
|
|
372
|
+
"x": 500,
|
|
373
|
+
"y": 200,
|
|
374
|
+
"wires": [
|
|
375
|
+
[
|
|
376
|
+
"fb931e4efa318665"
|
|
377
|
+
]
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"id": "51b7be3dea20e190",
|
|
382
|
+
"type": "comment",
|
|
383
|
+
"z": "2b38c957604c963e",
|
|
384
|
+
"name": "Error handling",
|
|
385
|
+
"info": "Handle error",
|
|
386
|
+
"x": 110,
|
|
387
|
+
"y": 720,
|
|
388
|
+
"wires": []
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"id": "0d0e40f49ddb089e",
|
|
392
|
+
"type": "comment",
|
|
393
|
+
"z": "2b38c957604c963e",
|
|
394
|
+
"name": "Connects the node you wish to test. \\n Remember to set the data required for the connection \\n and the various parameters on the nodes.",
|
|
395
|
+
"info": "",
|
|
396
|
+
"x": 200,
|
|
397
|
+
"y": 180,
|
|
398
|
+
"wires": []
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"id": "f9f63d795fe7d667",
|
|
402
|
+
"type": "listSap",
|
|
403
|
+
"z": "2b38c957604c963e",
|
|
404
|
+
"name": "",
|
|
405
|
+
"entity": "UDO",
|
|
406
|
+
"udo": "IEO_LPN_RISORSE",
|
|
407
|
+
"headers": "myHeaders",
|
|
408
|
+
"nextLink": "nextLink",
|
|
409
|
+
"query": "// query = {\n// select: ['CardCode'],\n// skip: 50000\n// };",
|
|
410
|
+
"x": 700,
|
|
411
|
+
"y": 620,
|
|
412
|
+
"wires": [
|
|
413
|
+
[
|
|
414
|
+
"47987b38c28c1d23"
|
|
415
|
+
]
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"id": "5ddd481c44be7f85",
|
|
420
|
+
"type": "getSap",
|
|
421
|
+
"z": "2b38c957604c963e",
|
|
422
|
+
"name": "",
|
|
423
|
+
"entity": "UDT",
|
|
424
|
+
"udo": "IEO_LPN_RISORSE",
|
|
425
|
+
"udt": "IEO_LPN_RISORSE",
|
|
426
|
+
"entityId": "entityId",
|
|
427
|
+
"docEntry": "DocEntry",
|
|
428
|
+
"code": "Code",
|
|
429
|
+
"headers": "myHeaders",
|
|
430
|
+
"query": "// query = msg.paramsQuery;",
|
|
431
|
+
"x": 700,
|
|
432
|
+
"y": 680,
|
|
433
|
+
"wires": [
|
|
434
|
+
[
|
|
435
|
+
"47987b38c28c1d23"
|
|
436
|
+
]
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"id": "d48327e1d4277ba4",
|
|
441
|
+
"type": "function",
|
|
442
|
+
"z": "2b38c957604c963e",
|
|
443
|
+
"name": "get BP Params",
|
|
444
|
+
"func": "msg.Code = '001';\nreturn msg;",
|
|
445
|
+
"outputs": 1,
|
|
446
|
+
"noerr": 0,
|
|
447
|
+
"initialize": "",
|
|
448
|
+
"finalize": "",
|
|
449
|
+
"libs": [],
|
|
450
|
+
"x": 520,
|
|
451
|
+
"y": 680,
|
|
452
|
+
"wires": [
|
|
453
|
+
[
|
|
454
|
+
"5ddd481c44be7f85"
|
|
455
|
+
]
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"id": "f8d4de354b8696d3",
|
|
460
|
+
"type": "function",
|
|
461
|
+
"z": "2b38c957604c963e",
|
|
462
|
+
"name": "Create parameters",
|
|
463
|
+
"func": "msg.bodyPost = {\n \"ItemCode\": \"nodered001\",\n \"ItemName\": \"TestNodeRed1\",\n \"BarCode\": \"978020137962\"\n}\n\nmsg.myHeaders = {\n Prefer: \"odata.maxpagesize=5\"\n}\n\nreturn msg;",
|
|
464
|
+
"outputs": 1,
|
|
465
|
+
"noerr": 0,
|
|
466
|
+
"initialize": "",
|
|
467
|
+
"finalize": "",
|
|
468
|
+
"libs": [],
|
|
469
|
+
"x": 510,
|
|
470
|
+
"y": 780,
|
|
471
|
+
"wires": [
|
|
472
|
+
[
|
|
473
|
+
"6a1df45aed7e2781"
|
|
474
|
+
]
|
|
475
|
+
]
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"id": "6a1df45aed7e2781",
|
|
479
|
+
"type": "createSap",
|
|
480
|
+
"z": "2b38c957604c963e",
|
|
481
|
+
"name": "",
|
|
482
|
+
"entity": "Items",
|
|
483
|
+
"udo": "U_Items",
|
|
484
|
+
"udt": "",
|
|
485
|
+
"partnerName": "",
|
|
486
|
+
"scriptName": "",
|
|
487
|
+
"headers": "myHeaders",
|
|
488
|
+
"bodyPost": "bodyPost",
|
|
489
|
+
"x": 690,
|
|
490
|
+
"y": 780,
|
|
491
|
+
"wires": [
|
|
492
|
+
[]
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"id": "3c830bb0efd613d1",
|
|
497
|
+
"type": "getSap",
|
|
498
|
+
"z": "2b38c957604c963e",
|
|
499
|
+
"name": "",
|
|
500
|
+
"entity": "Items",
|
|
501
|
+
"udo": "",
|
|
502
|
+
"udt": "",
|
|
503
|
+
"entityId": "entityId",
|
|
504
|
+
"docEntry": "",
|
|
505
|
+
"code": "",
|
|
506
|
+
"headers": "myHeaders",
|
|
507
|
+
"query": "// query = msg.paramsQuery;",
|
|
508
|
+
"x": 680,
|
|
509
|
+
"y": 920,
|
|
510
|
+
"wires": [
|
|
511
|
+
[
|
|
512
|
+
"47987b38c28c1d23"
|
|
513
|
+
]
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"id": "a9d94fa2a7a44837",
|
|
518
|
+
"type": "function",
|
|
519
|
+
"z": "2b38c957604c963e",
|
|
520
|
+
"name": "get BP Params",
|
|
521
|
+
"func": "msg.entityId = 'nodered001';\nreturn msg;",
|
|
522
|
+
"outputs": 1,
|
|
523
|
+
"noerr": 0,
|
|
524
|
+
"initialize": "",
|
|
525
|
+
"finalize": "",
|
|
526
|
+
"libs": [],
|
|
527
|
+
"x": 480,
|
|
528
|
+
"y": 920,
|
|
529
|
+
"wires": [
|
|
530
|
+
[
|
|
531
|
+
"3c830bb0efd613d1"
|
|
532
|
+
]
|
|
533
|
+
]
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"id": "1d8a552be83ad51a",
|
|
537
|
+
"type": "deleteSap",
|
|
538
|
+
"z": "2b38c957604c963e",
|
|
539
|
+
"name": "",
|
|
540
|
+
"entity": "Items",
|
|
541
|
+
"udo": "",
|
|
542
|
+
"entityId": "entityId",
|
|
543
|
+
"headers": "myHeaders",
|
|
544
|
+
"x": 710,
|
|
545
|
+
"y": 1000,
|
|
546
|
+
"wires": [
|
|
547
|
+
[
|
|
548
|
+
"47987b38c28c1d23"
|
|
549
|
+
]
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"id": "e0d0bdefda2809a5",
|
|
554
|
+
"type": "function",
|
|
555
|
+
"z": "2b38c957604c963e",
|
|
556
|
+
"name": "delete Items Params",
|
|
557
|
+
"func": "msg.entityId = \"ctest0001\";\nreturn msg;",
|
|
558
|
+
"outputs": 1,
|
|
559
|
+
"noerr": 0,
|
|
560
|
+
"initialize": "",
|
|
561
|
+
"finalize": "",
|
|
562
|
+
"libs": [],
|
|
563
|
+
"x": 480,
|
|
564
|
+
"y": 1000,
|
|
565
|
+
"wires": [
|
|
566
|
+
[
|
|
567
|
+
"1d8a552be83ad51a"
|
|
568
|
+
]
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"id": "2c13665355baa655",
|
|
573
|
+
"type": "function",
|
|
574
|
+
"z": "2b38c957604c963e",
|
|
575
|
+
"name": "",
|
|
576
|
+
"func": "\nreturn msg;",
|
|
577
|
+
"outputs": 1,
|
|
578
|
+
"noerr": 0,
|
|
579
|
+
"initialize": "",
|
|
580
|
+
"finalize": "",
|
|
581
|
+
"libs": [],
|
|
582
|
+
"x": 190,
|
|
583
|
+
"y": 560,
|
|
584
|
+
"wires": [
|
|
585
|
+
[]
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"id": "1121920884466e30",
|
|
590
|
+
"type": "getSap",
|
|
591
|
+
"z": "2b38c957604c963e",
|
|
592
|
+
"name": "",
|
|
593
|
+
"entity": "UDT",
|
|
594
|
+
"udo": "IEO_LPN_RISORSE",
|
|
595
|
+
"udt": "IEO_LPN_RISORSE",
|
|
596
|
+
"entityId": "entityId",
|
|
597
|
+
"docEntry": "DocEntry",
|
|
598
|
+
"code": "Code",
|
|
599
|
+
"headers": "myHeaders",
|
|
600
|
+
"query": "// query = msg.paramsQuery;",
|
|
601
|
+
"x": 1100,
|
|
602
|
+
"y": 1220,
|
|
603
|
+
"wires": [
|
|
604
|
+
[]
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"id": "a62c916019dd3d52",
|
|
609
|
+
"type": "function",
|
|
610
|
+
"z": "2b38c957604c963e",
|
|
611
|
+
"name": "get BP Params",
|
|
612
|
+
"func": "msg.Code = '001';\nreturn msg;",
|
|
613
|
+
"outputs": 1,
|
|
614
|
+
"noerr": 0,
|
|
615
|
+
"initialize": "",
|
|
616
|
+
"finalize": "",
|
|
617
|
+
"libs": [],
|
|
618
|
+
"x": 920,
|
|
619
|
+
"y": 1220,
|
|
620
|
+
"wires": [
|
|
621
|
+
[
|
|
622
|
+
"1121920884466e30"
|
|
623
|
+
]
|
|
624
|
+
]
|
|
625
|
+
}
|
|
626
626
|
]
|