@5minds/node-red-contrib-processcube 1.9.3-develop-5b0ff9-m8m7v00n → 1.9.3

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.
Files changed (40) hide show
  1. package/package.json +1 -1
  2. package/.github/workflows/build-and-publish.yml +0 -72
  3. package/.processcube/authority/config/config.json +0 -36
  4. package/.processcube/authority/config/upeSeedingData.json +0 -12
  5. package/.processcube/engine/config/config.json +0 -17
  6. package/.processcube/nodered/.config.nodes.json +0 -658
  7. package/.processcube/nodered/.config.runtime.json +0 -3
  8. package/.processcube/nodered/.config.users.json +0 -31
  9. package/.processcube/nodered/config.js +0 -20
  10. package/.processcube/nodered/flows.json +0 -3487
  11. package/.processcube/nodered/flows_cred.json +0 -3
  12. package/.processcube/nodered/package-lock.json +0 -5169
  13. package/.processcube/nodered/package.json +0 -6
  14. package/.processcube/nodered/settings.js +0 -562
  15. package/.processcube/nodered/static/ProcessCube_Logo.svg +0 -53
  16. package/DEVELOPMENT.md +0 -16
  17. package/Dockerfile +0 -22
  18. package/doc_generator/README.md +0 -6
  19. package/doc_generator/_process_instances_query.md +0 -121
  20. package/doc_generator/generator.js +0 -41
  21. package/doc_generator/generator_with_swagger.js +0 -89
  22. package/doc_generator/outputs/.gitkeep +0 -0
  23. package/doc_generator/package-lock.json +0 -176
  24. package/doc_generator/package.json +0 -15
  25. package/doc_generator/query_template.mustache +0 -20
  26. package/doc_generator/swagger.json +0 -4110
  27. package/docker-compose.yml +0 -78
  28. package/postgres/init.sql +0 -13
  29. package/processes/Call-Activity-Sample.bpmn +0 -88
  30. package/processes/External-Task-Auth-Sample.bpmn +0 -82
  31. package/processes/External-Task-Env-Topic.bpmn +0 -57
  32. package/processes/External-Task-Sample.bpmn +0 -122
  33. package/processes/ProcessModelToDeploy.bpmn +0 -58
  34. package/processes/SampleEvent.bpmn +0 -73
  35. package/processes/SimpleExternalTask.bpmn +0 -52
  36. package/processes/StartProcessSample.bpmn +0 -54
  37. package/processes/TriggerMessageEvent.bpmn +0 -79
  38. package/processes/User-Task-Auth-Sample.bpmn +0 -63
  39. package/processes/User-Task-Sample.bpmn +0 -76
  40. package/processes/Wait-For-Usertask.bpmn +0 -74
@@ -1,3487 +0,0 @@
1
- [
2
- {
3
- "id": "a23d2e782beb66f4",
4
- "type": "tab",
5
- "label": "External Task",
6
- "disabled": false,
7
- "info": "",
8
- "env": []
9
- },
10
- {
11
- "id": "c9ab699769824f2f",
12
- "type": "tab",
13
- "label": "External Task Auth",
14
- "disabled": false,
15
- "info": "",
16
- "env": []
17
- },
18
- {
19
- "id": "fd3c725340de4f74",
20
- "type": "tab",
21
- "label": "User Task",
22
- "disabled": false,
23
- "info": "",
24
- "env": []
25
- },
26
- {
27
- "id": "90fa3991405c6248",
28
- "type": "tab",
29
- "label": "User Task Auth",
30
- "disabled": false,
31
- "info": "",
32
- "env": []
33
- },
34
- {
35
- "id": "5d27ab4d14b947e9",
36
- "type": "tab",
37
- "label": "Instances Query",
38
- "disabled": false,
39
- "info": "",
40
- "env": []
41
- },
42
- {
43
- "id": "821add3dc3391985",
44
- "type": "tab",
45
- "label": "Instance Query Auth",
46
- "disabled": false,
47
- "info": "",
48
- "env": []
49
- },
50
- {
51
- "id": "f28ae6aa3a05069e",
52
- "type": "tab",
53
- "label": "Definition Query",
54
- "disabled": false,
55
- "info": "",
56
- "env": []
57
- },
58
- {
59
- "id": "9b69648e1614122a",
60
- "type": "tab",
61
- "label": "Definition Query Auth",
62
- "disabled": false,
63
- "info": "",
64
- "env": []
65
- },
66
- {
67
- "id": "d6c450fe98faa45f",
68
- "type": "tab",
69
- "label": "Wait for usertask",
70
- "disabled": false,
71
- "info": "",
72
- "env": []
73
- },
74
- {
75
- "id": "76c047e0d8770a20",
76
- "type": "tab",
77
- "label": "Other Events",
78
- "disabled": false,
79
- "info": "",
80
- "env": []
81
- },
82
- {
83
- "id": "2766c40d84283368",
84
- "type": "tab",
85
- "label": "Placeholder",
86
- "disabled": false,
87
- "info": "",
88
- "env": []
89
- },
90
- {
91
- "id": "2d4f4d815c889920",
92
- "type": "tab",
93
- "label": "Test Trigger-Event",
94
- "disabled": false,
95
- "info": "",
96
- "env": []
97
- },
98
- {
99
- "id": "b5a25174d4dff5e2",
100
- "type": "tab",
101
- "label": "Start process",
102
- "disabled": false,
103
- "info": "",
104
- "env": []
105
- },
106
- {
107
- "id": "ecd7ca447e4d1f47",
108
- "type": "tab",
109
- "label": "Deploy process model",
110
- "disabled": false,
111
- "info": "",
112
- "env": []
113
- },
114
- {
115
- "id": "9f5057a8990f0afb",
116
- "type": "tab",
117
- "label": "Flow 1",
118
- "disabled": false,
119
- "info": "",
120
- "env": []
121
- },
122
- {
123
- "id": "8eb64bb58f95989d",
124
- "type": "subflow",
125
- "name": "ETW Error Handling",
126
- "info": "",
127
- "category": "",
128
- "in": [
129
- {
130
- "x": 80,
131
- "y": 80,
132
- "wires": [
133
- {
134
- "id": "b7ddfedf82d8120f"
135
- }
136
- ]
137
- }
138
- ],
139
- "out": [],
140
- "env": [],
141
- "meta": {},
142
- "color": "#DDAA99"
143
- },
144
- {
145
- "id": "4c59118134081e05",
146
- "type": "group",
147
- "z": "f28ae6aa3a05069e",
148
- "style": {
149
- "stroke": "#999999",
150
- "stroke-opacity": "1",
151
- "fill": "none",
152
- "fill-opacity": "1",
153
- "label": true,
154
- "label-position": "nw",
155
- "color": "#a4a4a4"
156
- },
157
- "nodes": [
158
- "d97caca0ec54a633",
159
- "f74139117c9dab27",
160
- "5539a5c4c0f9cbe2",
161
- "a8e2b5a6ca25c924"
162
- ],
163
- "x": 14,
164
- "y": 39,
165
- "w": 592,
166
- "h": 142
167
- },
168
- {
169
- "id": "f1d4eaed7570324e",
170
- "type": "group",
171
- "z": "f28ae6aa3a05069e",
172
- "style": {
173
- "stroke": "#999999",
174
- "stroke-opacity": "1",
175
- "fill": "none",
176
- "fill-opacity": "1",
177
- "label": true,
178
- "label-position": "nw",
179
- "color": "#a4a4a4"
180
- },
181
- "nodes": [
182
- "bcc97a73cff5a086",
183
- "b418463be836efbb",
184
- "0633b709dd9c166f",
185
- "fbb37831549d41ff"
186
- ],
187
- "x": 14,
188
- "y": 219,
189
- "w": 572,
190
- "h": 142
191
- },
192
- {
193
- "id": "31cb6729aac0ba46",
194
- "type": "group",
195
- "z": "a23d2e782beb66f4",
196
- "style": {
197
- "stroke": "#999999",
198
- "stroke-opacity": "1",
199
- "fill": "none",
200
- "fill-opacity": "1",
201
- "label": true,
202
- "label-position": "nw",
203
- "color": "#a4a4a4"
204
- },
205
- "nodes": [
206
- "18e05d562d48f32d",
207
- "49aee03a7885fae8",
208
- "e4555d9019cd3f47",
209
- "bd68c4bdc53b8f80",
210
- "fb87f79852b22e4a",
211
- "1ba1e62c9935255f",
212
- "b49f226ba865e164"
213
- ],
214
- "x": 14,
215
- "y": 379,
216
- "w": 832,
217
- "h": 202
218
- },
219
- {
220
- "id": "390ad4a596a3c002",
221
- "type": "group",
222
- "z": "a23d2e782beb66f4",
223
- "style": {
224
- "stroke": "#999999",
225
- "stroke-opacity": "1",
226
- "fill": "none",
227
- "fill-opacity": "1",
228
- "label": true,
229
- "label-position": "nw",
230
- "color": "#a4a4a4"
231
- },
232
- "nodes": [
233
- "529b24c862f7039d",
234
- "f4011d6a57c6e13f",
235
- "fba605329413c78d",
236
- "5e5394e458d1de7c",
237
- "18e9e15ef645a908",
238
- "eb96f3128ece1be8"
239
- ],
240
- "x": 34,
241
- "y": 619,
242
- "w": 832,
243
- "h": 202
244
- },
245
- {
246
- "id": "887f3fb69ad1d1fb",
247
- "type": "group",
248
- "z": "fd3c725340de4f74",
249
- "style": {
250
- "stroke": "#999999",
251
- "stroke-opacity": "1",
252
- "fill": "none",
253
- "fill-opacity": "1",
254
- "label": true,
255
- "label-position": "nw",
256
- "color": "#a4a4a4"
257
- },
258
- "nodes": [
259
- "020d34cd4ab43900",
260
- "127bc6e092c5724e",
261
- "394bf2c574d29c0d",
262
- "30354355d2a0eeb8"
263
- ],
264
- "x": 34,
265
- "y": 19,
266
- "w": 532,
267
- "h": 202
268
- },
269
- {
270
- "id": "72d3db13edc2486b",
271
- "type": "group",
272
- "z": "fd3c725340de4f74",
273
- "style": {
274
- "stroke": "#999999",
275
- "stroke-opacity": "1",
276
- "fill": "none",
277
- "fill-opacity": "1",
278
- "label": true,
279
- "label-position": "nw",
280
- "color": "#a4a4a4"
281
- },
282
- "nodes": [
283
- "f7c7682e3a6adaaa",
284
- "8ef39e83173d41e3",
285
- "f524b8cc35d56849",
286
- "9fb4017c1d0ac7c9",
287
- "fc23f271b106648f"
288
- ],
289
- "x": 34,
290
- "y": 239,
291
- "w": 652,
292
- "h": 202
293
- },
294
- {
295
- "id": "a71a168415778e2c",
296
- "type": "group",
297
- "z": "5d27ab4d14b947e9",
298
- "style": {
299
- "stroke": "#999999",
300
- "stroke-opacity": "1",
301
- "fill": "none",
302
- "fill-opacity": "1",
303
- "label": true,
304
- "label-position": "nw",
305
- "color": "#a4a4a4"
306
- },
307
- "nodes": [
308
- "baa5d814f2e1f1d8",
309
- "2af2c5031c617e3d",
310
- "81af643792f131f0",
311
- "2166b0f822b3e71d"
312
- ],
313
- "x": 34,
314
- "y": 39,
315
- "w": 652,
316
- "h": 142
317
- },
318
- {
319
- "id": "bb94db89ecb73d7b",
320
- "type": "group",
321
- "z": "c9ab699769824f2f",
322
- "style": {
323
- "stroke": "#999999",
324
- "stroke-opacity": "1",
325
- "fill": "none",
326
- "fill-opacity": "1",
327
- "label": true,
328
- "label-position": "nw",
329
- "color": "#a4a4a4"
330
- },
331
- "nodes": [
332
- "d0e1fa5361aba536",
333
- "b70555e181d5d470",
334
- "9680c9f332962628",
335
- "7a9659b774fdd8cb"
336
- ],
337
- "x": 34,
338
- "y": 79,
339
- "w": 512,
340
- "h": 142
341
- },
342
- {
343
- "id": "ec665c16c4c4a6e0",
344
- "type": "group",
345
- "z": "c9ab699769824f2f",
346
- "style": {
347
- "stroke": "#999999",
348
- "stroke-opacity": "1",
349
- "fill": "none",
350
- "fill-opacity": "1",
351
- "label": true,
352
- "label-position": "nw",
353
- "color": "#a4a4a4"
354
- },
355
- "nodes": [
356
- "7af11dd03dd0fc02",
357
- "658f9b10e93f7a39",
358
- "1b62418c924f95eb",
359
- "89b4959f9a4a71e3",
360
- "7f28bcd6aebeed99",
361
- "f517338178966789",
362
- "ccf0bd22b299d625"
363
- ],
364
- "x": 34,
365
- "y": 259,
366
- "w": 852,
367
- "h": 202
368
- },
369
- {
370
- "id": "8455bc870589205b",
371
- "type": "group",
372
- "z": "c9ab699769824f2f",
373
- "style": {
374
- "stroke": "#999999",
375
- "stroke-opacity": "1",
376
- "fill": "none",
377
- "fill-opacity": "1",
378
- "label": true,
379
- "label-position": "nw",
380
- "color": "#a4a4a4"
381
- },
382
- "nodes": [
383
- "541a0e06fe48c2b5",
384
- "c3224cc0ab3d3e80",
385
- "30f8a269dd7ed601",
386
- "90dd20b9ed76fbe7",
387
- "562334e6f0c16931",
388
- "423ab3a50b55e37e"
389
- ],
390
- "x": 34,
391
- "y": 499,
392
- "w": 832,
393
- "h": 202
394
- },
395
- {
396
- "id": "4f03c1eb4784b442",
397
- "type": "group",
398
- "z": "90fa3991405c6248",
399
- "style": {
400
- "stroke": "#999999",
401
- "stroke-opacity": "1",
402
- "fill": "none",
403
- "fill-opacity": "1",
404
- "label": true,
405
- "label-position": "nw",
406
- "color": "#a4a4a4"
407
- },
408
- "nodes": [
409
- "c4f20aefe585bdad",
410
- "451fc49b81cfe869",
411
- "07e2258a732baddb",
412
- "58202f3750a9762b"
413
- ],
414
- "x": 54,
415
- "y": 39,
416
- "w": 432,
417
- "h": 202
418
- },
419
- {
420
- "id": "a135da7e3b76f6dd",
421
- "type": "group",
422
- "z": "90fa3991405c6248",
423
- "style": {
424
- "stroke": "#999999",
425
- "stroke-opacity": "1",
426
- "fill": "none",
427
- "fill-opacity": "1",
428
- "label": true,
429
- "label-position": "nw",
430
- "color": "#a4a4a4"
431
- },
432
- "nodes": [
433
- "682a3e6e49c407c0",
434
- "5c9668cbe4b31919",
435
- "693e6d63e82ee961",
436
- "c63cac30d2627c52",
437
- "771e1802a60ea5cc"
438
- ],
439
- "x": 54,
440
- "y": 279,
441
- "w": 632,
442
- "h": 202
443
- },
444
- {
445
- "id": "e17f65347110575e",
446
- "type": "group",
447
- "z": "821add3dc3391985",
448
- "style": {
449
- "stroke": "#999999",
450
- "stroke-opacity": "1",
451
- "fill": "none",
452
- "fill-opacity": "1",
453
- "label": true,
454
- "label-position": "nw",
455
- "color": "#a4a4a4"
456
- },
457
- "nodes": [
458
- "1591cb53c1f1982a",
459
- "c2a2b1c1108ee3e1",
460
- "78828be9c878b621",
461
- "47a52efd5f9ec550"
462
- ],
463
- "x": 34,
464
- "y": 39,
465
- "w": 652,
466
- "h": 142
467
- },
468
- {
469
- "id": "037eeeef4db91107",
470
- "type": "group",
471
- "z": "9b69648e1614122a",
472
- "style": {
473
- "stroke": "#999999",
474
- "stroke-opacity": "1",
475
- "fill": "none",
476
- "fill-opacity": "1",
477
- "label": true,
478
- "label-position": "nw",
479
- "color": "#a4a4a4"
480
- },
481
- "nodes": [
482
- "2ecd778293bc1e58",
483
- "7a330fb2934bb4ab",
484
- "eaa25b48e24cea10",
485
- "2d2e2586dfed611a"
486
- ],
487
- "x": 34,
488
- "y": 39,
489
- "w": 592,
490
- "h": 142
491
- },
492
- {
493
- "id": "437a2209643cfba5",
494
- "type": "group",
495
- "z": "9b69648e1614122a",
496
- "style": {
497
- "stroke": "#999999",
498
- "stroke-opacity": "1",
499
- "fill": "none",
500
- "fill-opacity": "1",
501
- "label": true,
502
- "label-position": "nw",
503
- "color": "#a4a4a4"
504
- },
505
- "nodes": [
506
- "443f898ac8d21376",
507
- "ab161eea047e8ce0",
508
- "6ef8711acb760a7f",
509
- "8a8d0227dceb9ebb"
510
- ],
511
- "x": 34,
512
- "y": 219,
513
- "w": 572,
514
- "h": 142
515
- },
516
- {
517
- "id": "3f3c01daebb2d215",
518
- "type": "group",
519
- "z": "fd3c725340de4f74",
520
- "style": {
521
- "stroke": "#999999",
522
- "stroke-opacity": "1",
523
- "fill": "none",
524
- "fill-opacity": "1",
525
- "label": true,
526
- "label-position": "nw",
527
- "color": "#a4a4a4"
528
- },
529
- "nodes": [
530
- "2fadb4c4667ecaf2",
531
- "93331783b7ef3fc5",
532
- "bc26f9821540f097",
533
- "cc3fb9c2cb0edd3a"
534
- ],
535
- "x": 34,
536
- "y": 459,
537
- "w": 552,
538
- "h": 142
539
- },
540
- {
541
- "id": "73ca179de59cdabf",
542
- "type": "group",
543
- "z": "a23d2e782beb66f4",
544
- "style": {
545
- "stroke": "#999999",
546
- "stroke-opacity": "1",
547
- "fill": "none",
548
- "fill-opacity": "1",
549
- "label": true,
550
- "label-position": "nw",
551
- "color": "#a4a4a4"
552
- },
553
- "nodes": [
554
- "3283986789f6f865",
555
- "f2b869714547df91",
556
- "7a24dd57f7964be1",
557
- "9be410342a64e57a",
558
- "7bc885294b6f6b08",
559
- "412d03bddecd4fd4"
560
- ],
561
- "x": 34,
562
- "y": 859,
563
- "w": 692,
564
- "h": 202
565
- },
566
- {
567
- "id": "48f72a8b2cb5ead9",
568
- "type": "group",
569
- "z": "2d4f4d815c889920",
570
- "style": {
571
- "stroke": "#5d5d5d",
572
- "stroke-opacity": "1",
573
- "fill": "#27272a",
574
- "fill-opacity": "0.5",
575
- "label": true,
576
- "label-position": "nw",
577
- "color": "#e2e8f0"
578
- },
579
- "nodes": [
580
- "9aaa1850f6cf0c5b",
581
- "b92f9b7c8839bd52",
582
- "e7c528682ace1eee",
583
- "1795b84421188c56",
584
- "0217c4f569ceb289"
585
- ],
586
- "x": 54,
587
- "y": 39,
588
- "w": 752,
589
- "h": 142
590
- },
591
- {
592
- "id": "4736a27919052199",
593
- "type": "group",
594
- "z": "2d4f4d815c889920",
595
- "style": {
596
- "stroke": "#5d5d5d",
597
- "stroke-opacity": "1",
598
- "fill": "#27272a",
599
- "fill-opacity": "0.5",
600
- "label": true,
601
- "label-position": "nw",
602
- "color": "#e2e8f0"
603
- },
604
- "nodes": [
605
- "d0d55ea4c120f824",
606
- "9fa5516904f5ddc9",
607
- "25c81fa425019087",
608
- "4ff784bd746f357a",
609
- "1605dca966cb1ca3",
610
- "15c494ef7b808eee",
611
- "e62b0d58687ce755",
612
- "700a1f33a7472ace"
613
- ],
614
- "x": 54,
615
- "y": 199,
616
- "w": 792,
617
- "h": 262
618
- },
619
- {
620
- "id": "8532caa2120a8ff3",
621
- "type": "group",
622
- "z": "2d4f4d815c889920",
623
- "style": {
624
- "stroke": "#5d5d5d",
625
- "stroke-opacity": "1",
626
- "fill": "#27272a",
627
- "fill-opacity": "0.5",
628
- "label": true,
629
- "label-position": "nw",
630
- "color": "#e2e8f0"
631
- },
632
- "nodes": [
633
- "3da3f0919d261dbb",
634
- "499158b3e609a621",
635
- "b463ae80bf2b5886",
636
- "1db58abf4179cb33",
637
- "01610786730a8edb"
638
- ],
639
- "x": 54,
640
- "y": 479,
641
- "w": 792,
642
- "h": 142
643
- },
644
- {
645
- "id": "be22a2d8eb2e28c4",
646
- "type": "group",
647
- "z": "a23d2e782beb66f4",
648
- "style": {
649
- "stroke": "#999999",
650
- "stroke-opacity": "1",
651
- "fill": "none",
652
- "fill-opacity": "1",
653
- "label": true,
654
- "label-position": "nw",
655
- "color": "#a4a4a4"
656
- },
657
- "nodes": [
658
- "53a1d67f1dfa05fe",
659
- "d513d7e0c850c44d",
660
- "6f6e80c41332e9c1",
661
- "0cf6a2ec7112f5f6"
662
- ],
663
- "x": 34,
664
- "y": 1099,
665
- "w": 652,
666
- "h": 142
667
- },
668
- {
669
- "id": "70d7a70e375b162a",
670
- "type": "group",
671
- "z": "a23d2e782beb66f4",
672
- "style": {
673
- "stroke": "#999999",
674
- "stroke-opacity": "1",
675
- "fill": "none",
676
- "fill-opacity": "1",
677
- "label": true,
678
- "label-position": "nw",
679
- "color": "#a4a4a4"
680
- },
681
- "nodes": [
682
- "2991a5e6df2b87d2",
683
- "911fde53bcbb7e3f",
684
- "15a5f64b9e2e05fc",
685
- "c937c772bb4b6a9d",
686
- "664cb218bba78642",
687
- "17c7bb9f5f18dca0",
688
- "f503048db777642f",
689
- "7b7e536ce13ff02e",
690
- "d289b450aca4064e",
691
- "9a3c7f3da50bdb42",
692
- "0c6c1e1971d965e2",
693
- "d37ef0e9d22656fa",
694
- "c5767dbad7531af1",
695
- "524809756ac6a16d"
696
- ],
697
- "x": 14,
698
- "y": 79,
699
- "w": 1452,
700
- "h": 262
701
- },
702
- {
703
- "id": "42e6796dddd9d4db",
704
- "type": "processcube-engine-config",
705
- "name": "Engine 8000",
706
- "url": "http://engine:8000"
707
- },
708
- {
709
- "id": "b78932d162d8d468",
710
- "type": "processcube-engine-config",
711
- "name": "Engine Auth 8000",
712
- "url": "http://engine:8000"
713
- },
714
- {
715
- "id": "b7ddfedf82d8120f",
716
- "type": "externaltask-error",
717
- "z": "8eb64bb58f95989d",
718
- "name": "Subflow handle error",
719
- "error": "handleSubFlowError",
720
- "x": 240,
721
- "y": 80,
722
- "wires": [
723
- []
724
- ]
725
- },
726
- {
727
- "id": "2991a5e6df2b87d2",
728
- "type": "externaltask-input",
729
- "z": "a23d2e782beb66f4",
730
- "g": "70d7a70e375b162a",
731
- "name": "Test",
732
- "engine": "42e6796dddd9d4db",
733
- "topic": "Test",
734
- "topicType": "str",
735
- "workerConfig": "{\"maxTasks\":1}",
736
- "workerConfigType": "json",
737
- "x": 110,
738
- "y": 180,
739
- "wires": [
740
- [
741
- "c937c772bb4b6a9d",
742
- "d289b450aca4064e"
743
- ]
744
- ]
745
- },
746
- {
747
- "id": "911fde53bcbb7e3f",
748
- "type": "externaltask-output",
749
- "z": "a23d2e782beb66f4",
750
- "g": "70d7a70e375b162a",
751
- "name": "Test Ende",
752
- "x": 1380,
753
- "y": 180,
754
- "wires": []
755
- },
756
- {
757
- "id": "18e05d562d48f32d",
758
- "type": "externaltask-input",
759
- "z": "a23d2e782beb66f4",
760
- "g": "31cb6729aac0ba46",
761
- "name": "SampleError",
762
- "engine": "42e6796dddd9d4db",
763
- "topic": "SampleError",
764
- "topicType": "str",
765
- "workerConfig": "{}",
766
- "workerConfigType": "json",
767
- "x": 110,
768
- "y": 480,
769
- "wires": [
770
- [
771
- "49aee03a7885fae8"
772
- ]
773
- ]
774
- },
775
- {
776
- "id": "49aee03a7885fae8",
777
- "type": "delay",
778
- "z": "a23d2e782beb66f4",
779
- "g": "31cb6729aac0ba46",
780
- "name": "",
781
- "pauseType": "delay",
782
- "timeout": "5",
783
- "timeoutUnits": "seconds",
784
- "rate": "1",
785
- "nbRateUnits": "1",
786
- "rateUnits": "second",
787
- "randomFirst": "1",
788
- "randomLast": "5",
789
- "randomUnits": "seconds",
790
- "drop": false,
791
- "allowrate": false,
792
- "outputs": 1,
793
- "x": 320,
794
- "y": 480,
795
- "wires": [
796
- [
797
- "bd68c4bdc53b8f80"
798
- ]
799
- ]
800
- },
801
- {
802
- "id": "e4555d9019cd3f47",
803
- "type": "catch",
804
- "z": "a23d2e782beb66f4",
805
- "g": "31cb6729aac0ba46",
806
- "name": "",
807
- "scope": "group",
808
- "uncaught": false,
809
- "x": 510,
810
- "y": 540,
811
- "wires": [
812
- [
813
- "fb87f79852b22e4a"
814
- ]
815
- ]
816
- },
817
- {
818
- "id": "bd68c4bdc53b8f80",
819
- "type": "function",
820
- "z": "a23d2e782beb66f4",
821
- "g": "31cb6729aac0ba46",
822
- "name": "raise Error",
823
- "func": "const randomDelay = Math.floor(Math.random() * (10000 - 1000 + 1)) + 1000; // Zufall zwischen 1000 und 10000 ms\n\nsetTimeout(() => {\n node.send(msg);\n}, randomDelay);\n\n//throw Error(\"hello error\");",
824
- "outputs": 1,
825
- "timeout": 0,
826
- "noerr": 0,
827
- "initialize": "",
828
- "finalize": "",
829
- "libs": [],
830
- "x": 510,
831
- "y": 480,
832
- "wires": [
833
- [
834
- "1ba1e62c9935255f"
835
- ]
836
- ]
837
- },
838
- {
839
- "id": "fb87f79852b22e4a",
840
- "type": "externaltask-error",
841
- "z": "a23d2e782beb66f4",
842
- "g": "31cb6729aac0ba46",
843
- "name": "Send Error to Engine",
844
- "error": "MyErrorCode",
845
- "x": 720,
846
- "y": 540,
847
- "wires": [
848
- []
849
- ]
850
- },
851
- {
852
- "id": "1ba1e62c9935255f",
853
- "type": "externaltask-output",
854
- "z": "a23d2e782beb66f4",
855
- "g": "31cb6729aac0ba46",
856
- "name": "",
857
- "x": 710,
858
- "y": 480,
859
- "wires": []
860
- },
861
- {
862
- "id": "15a5f64b9e2e05fc",
863
- "type": "comment",
864
- "z": "a23d2e782beb66f4",
865
- "g": "70d7a70e375b162a",
866
- "name": "Simple External Task handling - raise an error if payload not empty",
867
- "info": "",
868
- "x": 300,
869
- "y": 120,
870
- "wires": []
871
- },
872
- {
873
- "id": "b49f226ba865e164",
874
- "type": "comment",
875
- "z": "a23d2e782beb66f4",
876
- "g": "31cb6729aac0ba46",
877
- "name": "Error handling with external tasks",
878
- "info": "",
879
- "x": 190,
880
- "y": 420,
881
- "wires": []
882
- },
883
- {
884
- "id": "799125e21de02f13",
885
- "type": "comment",
886
- "z": "a23d2e782beb66f4",
887
- "name": "For Testing, deploy \"External-Task-Sample.bpmn\" and start the process.",
888
- "info": "",
889
- "x": 300,
890
- "y": 40,
891
- "wires": []
892
- },
893
- {
894
- "id": "529b24c862f7039d",
895
- "type": "endevent-finished-listener",
896
- "z": "a23d2e782beb66f4",
897
- "d": true,
898
- "g": "390ad4a596a3c002",
899
- "name": "",
900
- "engine": "42e6796dddd9d4db",
901
- "x": 170,
902
- "y": 720,
903
- "wires": [
904
- [
905
- "f4011d6a57c6e13f"
906
- ]
907
- ]
908
- },
909
- {
910
- "id": "f4011d6a57c6e13f",
911
- "type": "delay",
912
- "z": "a23d2e782beb66f4",
913
- "g": "390ad4a596a3c002",
914
- "name": "",
915
- "pauseType": "delay",
916
- "timeout": "5",
917
- "timeoutUnits": "seconds",
918
- "rate": "1",
919
- "nbRateUnits": "1",
920
- "rateUnits": "second",
921
- "randomFirst": "1",
922
- "randomLast": "5",
923
- "randomUnits": "seconds",
924
- "drop": false,
925
- "allowrate": false,
926
- "outputs": 1,
927
- "x": 400,
928
- "y": 720,
929
- "wires": [
930
- [
931
- "18e9e15ef645a908"
932
- ]
933
- ]
934
- },
935
- {
936
- "id": "fba605329413c78d",
937
- "type": "process-start",
938
- "z": "a23d2e782beb66f4",
939
- "g": "390ad4a596a3c002",
940
- "name": "",
941
- "engine": "42e6796dddd9d4db",
942
- "processmodel": "External-Task-Sample_Process",
943
- "startevent": "StartEvent_1",
944
- "x": 770,
945
- "y": 720,
946
- "wires": [
947
- []
948
- ]
949
- },
950
- {
951
- "id": "5e5394e458d1de7c",
952
- "type": "inject",
953
- "z": "a23d2e782beb66f4",
954
- "g": "390ad4a596a3c002",
955
- "name": "",
956
- "props": [
957
- {
958
- "p": "payload"
959
- }
960
- ],
961
- "repeat": "",
962
- "crontab": "",
963
- "once": false,
964
- "onceDelay": 0.1,
965
- "topic": "",
966
- "payload": "start",
967
- "payloadType": "str",
968
- "x": 430,
969
- "y": 780,
970
- "wires": [
971
- [
972
- "18e9e15ef645a908"
973
- ]
974
- ]
975
- },
976
- {
977
- "id": "18e9e15ef645a908",
978
- "type": "function",
979
- "z": "a23d2e782beb66f4",
980
- "g": "390ad4a596a3c002",
981
- "name": "pre payload",
982
- "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\nreturn msg;",
983
- "outputs": 1,
984
- "timeout": 0,
985
- "noerr": 0,
986
- "initialize": "",
987
- "finalize": "",
988
- "libs": [],
989
- "x": 590,
990
- "y": 720,
991
- "wires": [
992
- [
993
- "fba605329413c78d"
994
- ]
995
- ]
996
- },
997
- {
998
- "id": "eb96f3128ece1be8",
999
- "type": "comment",
1000
- "z": "a23d2e782beb66f4",
1001
- "g": "390ad4a596a3c002",
1002
- "name": "Start of Process and restart if it is finished",
1003
- "info": "",
1004
- "x": 220,
1005
- "y": 660,
1006
- "wires": []
1007
- },
1008
- {
1009
- "id": "3283986789f6f865",
1010
- "type": "externaltask-input",
1011
- "z": "a23d2e782beb66f4",
1012
- "d": true,
1013
- "g": "73ca179de59cdabf",
1014
- "name": "TopicFromENV",
1015
- "engine": "42e6796dddd9d4db",
1016
- "topic": "TOPIC",
1017
- "topicType": "env",
1018
- "workerConfig": "{}",
1019
- "workerConfigType": "json",
1020
- "x": 140,
1021
- "y": 960,
1022
- "wires": [
1023
- [
1024
- "f2b869714547df91"
1025
- ]
1026
- ]
1027
- },
1028
- {
1029
- "id": "f2b869714547df91",
1030
- "type": "delay",
1031
- "z": "a23d2e782beb66f4",
1032
- "g": "73ca179de59cdabf",
1033
- "name": "",
1034
- "pauseType": "delay",
1035
- "timeout": "5",
1036
- "timeoutUnits": "seconds",
1037
- "rate": "1",
1038
- "nbRateUnits": "1",
1039
- "rateUnits": "second",
1040
- "randomFirst": "1",
1041
- "randomLast": "5",
1042
- "randomUnits": "seconds",
1043
- "drop": false,
1044
- "allowrate": false,
1045
- "outputs": 1,
1046
- "x": 400,
1047
- "y": 960,
1048
- "wires": [
1049
- [
1050
- "7a24dd57f7964be1"
1051
- ]
1052
- ]
1053
- },
1054
- {
1055
- "id": "7a24dd57f7964be1",
1056
- "type": "externaltask-output",
1057
- "z": "a23d2e782beb66f4",
1058
- "g": "73ca179de59cdabf",
1059
- "name": "",
1060
- "x": 600,
1061
- "y": 960,
1062
- "wires": []
1063
- },
1064
- {
1065
- "id": "9be410342a64e57a",
1066
- "type": "externaltask-error",
1067
- "z": "a23d2e782beb66f4",
1068
- "g": "73ca179de59cdabf",
1069
- "name": "",
1070
- "error": "",
1071
- "x": 610,
1072
- "y": 1020,
1073
- "wires": [
1074
- []
1075
- ]
1076
- },
1077
- {
1078
- "id": "7bc885294b6f6b08",
1079
- "type": "catch",
1080
- "z": "a23d2e782beb66f4",
1081
- "g": "73ca179de59cdabf",
1082
- "name": "",
1083
- "scope": "group",
1084
- "uncaught": false,
1085
- "x": 410,
1086
- "y": 1020,
1087
- "wires": [
1088
- [
1089
- "9be410342a64e57a"
1090
- ]
1091
- ]
1092
- },
1093
- {
1094
- "id": "412d03bddecd4fd4",
1095
- "type": "comment",
1096
- "z": "a23d2e782beb66f4",
1097
- "g": "73ca179de59cdabf",
1098
- "name": "External Task with Topic from ENV",
1099
- "info": "",
1100
- "x": 200,
1101
- "y": 900,
1102
- "wires": []
1103
- },
1104
- {
1105
- "id": "53a1d67f1dfa05fe",
1106
- "type": "externaltask-input",
1107
- "z": "a23d2e782beb66f4",
1108
- "d": true,
1109
- "g": "be22a2d8eb2e28c4",
1110
- "name": "the_simple_topic",
1111
- "engine": "42e6796dddd9d4db",
1112
- "topic": "the_simple_topic",
1113
- "topicType": "str",
1114
- "workerConfig": "{}",
1115
- "workerConfigType": "json",
1116
- "x": 140,
1117
- "y": 1200,
1118
- "wires": [
1119
- [
1120
- "d513d7e0c850c44d"
1121
- ]
1122
- ]
1123
- },
1124
- {
1125
- "id": "d513d7e0c850c44d",
1126
- "type": "delay",
1127
- "z": "a23d2e782beb66f4",
1128
- "g": "be22a2d8eb2e28c4",
1129
- "name": "",
1130
- "pauseType": "delay",
1131
- "timeout": "10",
1132
- "timeoutUnits": "seconds",
1133
- "rate": "1",
1134
- "nbRateUnits": "1",
1135
- "rateUnits": "second",
1136
- "randomFirst": "1",
1137
- "randomLast": "5",
1138
- "randomUnits": "seconds",
1139
- "drop": false,
1140
- "allowrate": false,
1141
- "outputs": 1,
1142
- "x": 350,
1143
- "y": 1200,
1144
- "wires": [
1145
- [
1146
- "6f6e80c41332e9c1"
1147
- ]
1148
- ]
1149
- },
1150
- {
1151
- "id": "6f6e80c41332e9c1",
1152
- "type": "externaltask-output",
1153
- "z": "a23d2e782beb66f4",
1154
- "g": "be22a2d8eb2e28c4",
1155
- "name": "",
1156
- "x": 570,
1157
- "y": 1200,
1158
- "wires": []
1159
- },
1160
- {
1161
- "id": "0cf6a2ec7112f5f6",
1162
- "type": "comment",
1163
- "z": "a23d2e782beb66f4",
1164
- "g": "be22a2d8eb2e28c4",
1165
- "name": "Handle: the_simple_topic",
1166
- "info": "",
1167
- "x": 170,
1168
- "y": 1140,
1169
- "wires": []
1170
- },
1171
- {
1172
- "id": "c937c772bb4b6a9d",
1173
- "type": "debug",
1174
- "z": "a23d2e782beb66f4",
1175
- "g": "70d7a70e375b162a",
1176
- "name": "debug 3",
1177
- "active": false,
1178
- "tosidebar": true,
1179
- "console": false,
1180
- "tostatus": false,
1181
- "complete": "false",
1182
- "statusVal": "",
1183
- "statusType": "auto",
1184
- "x": 280,
1185
- "y": 280,
1186
- "wires": []
1187
- },
1188
- {
1189
- "id": "664cb218bba78642",
1190
- "type": "catch",
1191
- "z": "a23d2e782beb66f4",
1192
- "g": "70d7a70e375b162a",
1193
- "name": "",
1194
- "scope": "group",
1195
- "uncaught": false,
1196
- "x": 850,
1197
- "y": 300,
1198
- "wires": [
1199
- [
1200
- "17c7bb9f5f18dca0"
1201
- ]
1202
- ]
1203
- },
1204
- {
1205
- "id": "17c7bb9f5f18dca0",
1206
- "type": "subflow:8eb64bb58f95989d",
1207
- "z": "a23d2e782beb66f4",
1208
- "g": "70d7a70e375b162a",
1209
- "name": "",
1210
- "x": 1070,
1211
- "y": 300,
1212
- "wires": []
1213
- },
1214
- {
1215
- "id": "d37ef0e9d22656fa",
1216
- "type": "join",
1217
- "z": "a23d2e782beb66f4",
1218
- "g": "70d7a70e375b162a",
1219
- "name": "",
1220
- "mode": "auto",
1221
- "build": "array",
1222
- "property": "payload",
1223
- "propertyType": "msg",
1224
- "key": "payload",
1225
- "joiner": "\\n",
1226
- "joinerType": "str",
1227
- "useparts": false,
1228
- "accumulate": false,
1229
- "timeout": "",
1230
- "count": "2",
1231
- "reduceRight": false,
1232
- "reduceExp": "",
1233
- "reduceInit": "",
1234
- "reduceInitType": "",
1235
- "reduceFixup": "",
1236
- "x": 870,
1237
- "y": 180,
1238
- "wires": [
1239
- [
1240
- "9a3c7f3da50bdb42"
1241
- ]
1242
- ]
1243
- },
1244
- {
1245
- "id": "77854a01cb815c27",
1246
- "type": "split",
1247
- "z": "a23d2e782beb66f4",
1248
- "name": "",
1249
- "splt": ",",
1250
- "spltType": "str",
1251
- "arraySplt": "2",
1252
- "arraySpltType": "len",
1253
- "stream": false,
1254
- "addname": "",
1255
- "property": "payload",
1256
- "x": 410,
1257
- "y": 180,
1258
- "wires": [
1259
- [
1260
- "0c6c1e1971d965e2"
1261
- ]
1262
- ]
1263
- },
1264
- {
1265
- "id": "7b7e536ce13ff02e",
1266
- "type": "delay",
1267
- "z": "a23d2e782beb66f4",
1268
- "g": "70d7a70e375b162a",
1269
- "name": "",
1270
- "pauseType": "delayv",
1271
- "timeout": "2",
1272
- "timeoutUnits": "seconds",
1273
- "rate": "1",
1274
- "nbRateUnits": "1",
1275
- "rateUnits": "second",
1276
- "randomFirst": "1",
1277
- "randomLast": "5",
1278
- "randomUnits": "seconds",
1279
- "drop": false,
1280
- "allowrate": false,
1281
- "outputs": 1,
1282
- "x": 720,
1283
- "y": 180,
1284
- "wires": [
1285
- [
1286
- "d37ef0e9d22656fa"
1287
- ]
1288
- ]
1289
- },
1290
- {
1291
- "id": "f503048db777642f",
1292
- "type": "inject",
1293
- "z": "a23d2e782beb66f4",
1294
- "g": "70d7a70e375b162a",
1295
- "name": "",
1296
- "props": [
1297
- {
1298
- "p": "payload"
1299
- }
1300
- ],
1301
- "repeat": "",
1302
- "crontab": "",
1303
- "once": false,
1304
- "onceDelay": 0.1,
1305
- "topic": "",
1306
- "payload": "[{\"test\":\"value\"},{\"test\":\"value\"}]",
1307
- "payloadType": "json",
1308
- "x": 110,
1309
- "y": 280,
1310
- "wires": [
1311
- [
1312
- "d289b450aca4064e"
1313
- ]
1314
- ]
1315
- },
1316
- {
1317
- "id": "d289b450aca4064e",
1318
- "type": "function",
1319
- "z": "a23d2e782beb66f4",
1320
- "g": "70d7a70e375b162a",
1321
- "name": "function 1",
1322
- "func": "msg.payload = \"30000,50000\";\n\nreturn msg;",
1323
- "outputs": 1,
1324
- "timeout": 0,
1325
- "noerr": 0,
1326
- "initialize": "",
1327
- "finalize": "",
1328
- "libs": [],
1329
- "x": 260,
1330
- "y": 180,
1331
- "wires": [
1332
- [
1333
- "77854a01cb815c27"
1334
- ]
1335
- ]
1336
- },
1337
- {
1338
- "id": "9a3c7f3da50bdb42",
1339
- "type": "delay",
1340
- "z": "a23d2e782beb66f4",
1341
- "g": "70d7a70e375b162a",
1342
- "name": "",
1343
- "pauseType": "delay",
1344
- "timeout": "5",
1345
- "timeoutUnits": "seconds",
1346
- "rate": "1",
1347
- "nbRateUnits": "1",
1348
- "rateUnits": "second",
1349
- "randomFirst": "1",
1350
- "randomLast": "5",
1351
- "randomUnits": "seconds",
1352
- "drop": false,
1353
- "allowrate": false,
1354
- "outputs": 1,
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,
1417
- "y": 180,
1418
- "wires": [
1419
- [
1420
- "911fde53bcbb7e3f"
1421
- ]
1422
- ]
1423
- },
1424
- {
1425
- "id": "82533b02fb9a9f04",
1426
- "type": "comment",
1427
- "z": "c9ab699769824f2f",
1428
- "name": "For Testing, deploy \"External-Task-Sample.bpmn\" and start the process.",
1429
- "info": "",
1430
- "x": 300,
1431
- "y": 40,
1432
- "wires": []
1433
- },
1434
- {
1435
- "id": "d0e1fa5361aba536",
1436
- "type": "externaltask-input",
1437
- "z": "c9ab699769824f2f",
1438
- "d": true,
1439
- "g": "bb94db89ecb73d7b",
1440
- "name": "Test_Auth",
1441
- "engine": "b78932d162d8d468",
1442
- "topic": "Test_Auth",
1443
- "topicType": "str",
1444
- "workerConfig": "{}",
1445
- "workerConfigType": "json",
1446
- "x": 120,
1447
- "y": 180,
1448
- "wires": [
1449
- [
1450
- "9680c9f332962628"
1451
- ]
1452
- ]
1453
- },
1454
- {
1455
- "id": "b70555e181d5d470",
1456
- "type": "externaltask-output",
1457
- "z": "c9ab699769824f2f",
1458
- "g": "bb94db89ecb73d7b",
1459
- "name": "Test Ende",
1460
- "x": 460,
1461
- "y": 180,
1462
- "wires": []
1463
- },
1464
- {
1465
- "id": "9680c9f332962628",
1466
- "type": "delay",
1467
- "z": "c9ab699769824f2f",
1468
- "g": "bb94db89ecb73d7b",
1469
- "name": "",
1470
- "pauseType": "delay",
1471
- "timeout": "1",
1472
- "timeoutUnits": "seconds",
1473
- "rate": "1",
1474
- "nbRateUnits": "1",
1475
- "rateUnits": "second",
1476
- "randomFirst": "1",
1477
- "randomLast": "5",
1478
- "randomUnits": "seconds",
1479
- "drop": false,
1480
- "allowrate": false,
1481
- "outputs": 1,
1482
- "x": 280,
1483
- "y": 180,
1484
- "wires": [
1485
- [
1486
- "b70555e181d5d470"
1487
- ]
1488
- ]
1489
- },
1490
- {
1491
- "id": "7a9659b774fdd8cb",
1492
- "type": "comment",
1493
- "z": "c9ab699769824f2f",
1494
- "g": "bb94db89ecb73d7b",
1495
- "name": "Simple External Task handling",
1496
- "info": "",
1497
- "x": 180,
1498
- "y": 120,
1499
- "wires": []
1500
- },
1501
- {
1502
- "id": "7af11dd03dd0fc02",
1503
- "type": "externaltask-input",
1504
- "z": "c9ab699769824f2f",
1505
- "d": true,
1506
- "g": "ec665c16c4c4a6e0",
1507
- "name": "SampleError_Auth",
1508
- "engine": "b78932d162d8d468",
1509
- "topic": "SampleError_Auth",
1510
- "topicType": "str",
1511
- "workerConfig": "{}",
1512
- "workerConfigType": "json",
1513
- "x": 150,
1514
- "y": 360,
1515
- "wires": [
1516
- [
1517
- "658f9b10e93f7a39"
1518
- ]
1519
- ]
1520
- },
1521
- {
1522
- "id": "658f9b10e93f7a39",
1523
- "type": "delay",
1524
- "z": "c9ab699769824f2f",
1525
- "g": "ec665c16c4c4a6e0",
1526
- "name": "",
1527
- "pauseType": "delay",
1528
- "timeout": "5",
1529
- "timeoutUnits": "seconds",
1530
- "rate": "1",
1531
- "nbRateUnits": "1",
1532
- "rateUnits": "second",
1533
- "randomFirst": "1",
1534
- "randomLast": "5",
1535
- "randomUnits": "seconds",
1536
- "drop": false,
1537
- "allowrate": false,
1538
- "outputs": 1,
1539
- "x": 360,
1540
- "y": 360,
1541
- "wires": [
1542
- [
1543
- "89b4959f9a4a71e3"
1544
- ]
1545
- ]
1546
- },
1547
- {
1548
- "id": "1b62418c924f95eb",
1549
- "type": "catch",
1550
- "z": "c9ab699769824f2f",
1551
- "g": "ec665c16c4c4a6e0",
1552
- "name": "",
1553
- "scope": "group",
1554
- "uncaught": false,
1555
- "x": 550,
1556
- "y": 420,
1557
- "wires": [
1558
- [
1559
- "7f28bcd6aebeed99"
1560
- ]
1561
- ]
1562
- },
1563
- {
1564
- "id": "89b4959f9a4a71e3",
1565
- "type": "function",
1566
- "z": "c9ab699769824f2f",
1567
- "g": "ec665c16c4c4a6e0",
1568
- "name": "raise Error",
1569
- "func": "throw Error(\"hello error\");\n\nreturn msg;",
1570
- "outputs": 1,
1571
- "timeout": 0,
1572
- "noerr": 0,
1573
- "initialize": "",
1574
- "finalize": "",
1575
- "libs": [],
1576
- "x": 550,
1577
- "y": 360,
1578
- "wires": [
1579
- [
1580
- "f517338178966789"
1581
- ]
1582
- ]
1583
- },
1584
- {
1585
- "id": "7f28bcd6aebeed99",
1586
- "type": "externaltask-error",
1587
- "z": "c9ab699769824f2f",
1588
- "g": "ec665c16c4c4a6e0",
1589
- "name": "Send Error to Engine",
1590
- "error": "MyErrorCode",
1591
- "x": 760,
1592
- "y": 420,
1593
- "wires": [
1594
- []
1595
- ]
1596
- },
1597
- {
1598
- "id": "f517338178966789",
1599
- "type": "externaltask-output",
1600
- "z": "c9ab699769824f2f",
1601
- "g": "ec665c16c4c4a6e0",
1602
- "name": "",
1603
- "x": 750,
1604
- "y": 360,
1605
- "wires": []
1606
- },
1607
- {
1608
- "id": "ccf0bd22b299d625",
1609
- "type": "comment",
1610
- "z": "c9ab699769824f2f",
1611
- "g": "ec665c16c4c4a6e0",
1612
- "name": "Error handling with external tasks",
1613
- "info": "",
1614
- "x": 190,
1615
- "y": 300,
1616
- "wires": []
1617
- },
1618
- {
1619
- "id": "541a0e06fe48c2b5",
1620
- "type": "endevent-finished-listener",
1621
- "z": "c9ab699769824f2f",
1622
- "d": true,
1623
- "g": "8455bc870589205b",
1624
- "name": "",
1625
- "engine": "b78932d162d8d468",
1626
- "x": 170,
1627
- "y": 600,
1628
- "wires": [
1629
- [
1630
- "c3224cc0ab3d3e80"
1631
- ]
1632
- ]
1633
- },
1634
- {
1635
- "id": "c3224cc0ab3d3e80",
1636
- "type": "delay",
1637
- "z": "c9ab699769824f2f",
1638
- "g": "8455bc870589205b",
1639
- "name": "",
1640
- "pauseType": "delay",
1641
- "timeout": "5",
1642
- "timeoutUnits": "seconds",
1643
- "rate": "1",
1644
- "nbRateUnits": "1",
1645
- "rateUnits": "second",
1646
- "randomFirst": "1",
1647
- "randomLast": "5",
1648
- "randomUnits": "seconds",
1649
- "drop": false,
1650
- "allowrate": false,
1651
- "outputs": 1,
1652
- "x": 400,
1653
- "y": 600,
1654
- "wires": [
1655
- [
1656
- "562334e6f0c16931"
1657
- ]
1658
- ]
1659
- },
1660
- {
1661
- "id": "30f8a269dd7ed601",
1662
- "type": "process-start",
1663
- "z": "c9ab699769824f2f",
1664
- "g": "8455bc870589205b",
1665
- "name": "",
1666
- "engine": "b78932d162d8d468",
1667
- "processmodel": "External-Task-Auth-Sample_Process",
1668
- "startevent": "StartEvent_1",
1669
- "x": 770,
1670
- "y": 600,
1671
- "wires": [
1672
- []
1673
- ]
1674
- },
1675
- {
1676
- "id": "90dd20b9ed76fbe7",
1677
- "type": "inject",
1678
- "z": "c9ab699769824f2f",
1679
- "g": "8455bc870589205b",
1680
- "name": "",
1681
- "props": [
1682
- {
1683
- "p": "payload"
1684
- }
1685
- ],
1686
- "repeat": "",
1687
- "crontab": "",
1688
- "once": false,
1689
- "onceDelay": 0.1,
1690
- "topic": "",
1691
- "payload": "start",
1692
- "payloadType": "str",
1693
- "x": 430,
1694
- "y": 660,
1695
- "wires": [
1696
- [
1697
- "562334e6f0c16931"
1698
- ]
1699
- ]
1700
- },
1701
- {
1702
- "id": "562334e6f0c16931",
1703
- "type": "function",
1704
- "z": "c9ab699769824f2f",
1705
- "g": "8455bc870589205b",
1706
- "name": "pre payload",
1707
- "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\nreturn msg;",
1708
- "outputs": 1,
1709
- "timeout": 0,
1710
- "noerr": 0,
1711
- "initialize": "",
1712
- "finalize": "",
1713
- "libs": [],
1714
- "x": 590,
1715
- "y": 600,
1716
- "wires": [
1717
- [
1718
- "30f8a269dd7ed601"
1719
- ]
1720
- ]
1721
- },
1722
- {
1723
- "id": "423ab3a50b55e37e",
1724
- "type": "comment",
1725
- "z": "c9ab699769824f2f",
1726
- "g": "8455bc870589205b",
1727
- "name": "Start of Process and restart if it is finished",
1728
- "info": "",
1729
- "x": 220,
1730
- "y": 540,
1731
- "wires": []
1732
- },
1733
- {
1734
- "id": "020d34cd4ab43900",
1735
- "type": "debug",
1736
- "z": "fd3c725340de4f74",
1737
- "g": "887f3fb69ad1d1fb",
1738
- "name": "Show User Task",
1739
- "active": false,
1740
- "tosidebar": true,
1741
- "console": false,
1742
- "tostatus": false,
1743
- "complete": "payload",
1744
- "targetType": "msg",
1745
- "statusVal": "",
1746
- "statusType": "auto",
1747
- "x": 440,
1748
- "y": 120,
1749
- "wires": []
1750
- },
1751
- {
1752
- "id": "127bc6e092c5724e",
1753
- "type": "comment",
1754
- "z": "fd3c725340de4f74",
1755
- "g": "887f3fb69ad1d1fb",
1756
- "name": "User Task Events",
1757
- "info": "",
1758
- "x": 140,
1759
- "y": 60,
1760
- "wires": []
1761
- },
1762
- {
1763
- "id": "f7c7682e3a6adaaa",
1764
- "type": "usertask-input",
1765
- "z": "fd3c725340de4f74",
1766
- "g": "72d3db13edc2486b",
1767
- "name": "",
1768
- "engine": "42e6796dddd9d4db",
1769
- "query": "payload",
1770
- "query_type": "msg",
1771
- "x": 180,
1772
- "y": 400,
1773
- "wires": [
1774
- [
1775
- "8ef39e83173d41e3"
1776
- ]
1777
- ]
1778
- },
1779
- {
1780
- "id": "8ef39e83173d41e3",
1781
- "type": "function",
1782
- "z": "fd3c725340de4f74",
1783
- "g": "72d3db13edc2486b",
1784
- "name": "build result",
1785
- "func": "msg.payload.result = {\n \"field_01\": \"value 01\",\n \"field_02\": \"value 02\"\n}\nreturn msg;",
1786
- "outputs": 1,
1787
- "timeout": 0,
1788
- "noerr": 0,
1789
- "initialize": "",
1790
- "finalize": "",
1791
- "libs": [],
1792
- "x": 390,
1793
- "y": 400,
1794
- "wires": [
1795
- [
1796
- "f524b8cc35d56849"
1797
- ]
1798
- ]
1799
- },
1800
- {
1801
- "id": "f524b8cc35d56849",
1802
- "type": "usertask-output",
1803
- "z": "fd3c725340de4f74",
1804
- "g": "72d3db13edc2486b",
1805
- "name": "",
1806
- "engine": "42e6796dddd9d4db",
1807
- "result": "payload.result",
1808
- "result_type": "msg",
1809
- "x": 580,
1810
- "y": 400,
1811
- "wires": [
1812
- []
1813
- ]
1814
- },
1815
- {
1816
- "id": "9fb4017c1d0ac7c9",
1817
- "type": "comment",
1818
- "z": "fd3c725340de4f74",
1819
- "g": "72d3db13edc2486b",
1820
- "name": "Demo to listen on a new usertask an finish them",
1821
- "info": "",
1822
- "x": 240,
1823
- "y": 280,
1824
- "wires": []
1825
- },
1826
- {
1827
- "id": "fc23f271b106648f",
1828
- "type": "usertask-event-listener",
1829
- "z": "fd3c725340de4f74",
1830
- "g": "72d3db13edc2486b",
1831
- "name": "",
1832
- "engine": "42e6796dddd9d4db",
1833
- "usertask": "user_task",
1834
- "eventtype": "new",
1835
- "query": "{}",
1836
- "query_type": "json",
1837
- "x": 160,
1838
- "y": 340,
1839
- "wires": [
1840
- [
1841
- "f7c7682e3a6adaaa"
1842
- ]
1843
- ]
1844
- },
1845
- {
1846
- "id": "394bf2c574d29c0d",
1847
- "type": "usertask-event-listener",
1848
- "z": "fd3c725340de4f74",
1849
- "g": "887f3fb69ad1d1fb",
1850
- "name": "",
1851
- "engine": "42e6796dddd9d4db",
1852
- "usertask": "user_task",
1853
- "eventtype": "new",
1854
- "query": "{}",
1855
- "query_type": "json",
1856
- "x": 160,
1857
- "y": 120,
1858
- "wires": [
1859
- [
1860
- "020d34cd4ab43900"
1861
- ]
1862
- ]
1863
- },
1864
- {
1865
- "id": "30354355d2a0eeb8",
1866
- "type": "usertask-event-listener",
1867
- "z": "fd3c725340de4f74",
1868
- "g": "887f3fb69ad1d1fb",
1869
- "name": "",
1870
- "engine": "42e6796dddd9d4db",
1871
- "usertask": "user_task",
1872
- "eventtype": "finished",
1873
- "query": "{}",
1874
- "query_type": "json",
1875
- "x": 160,
1876
- "y": 180,
1877
- "wires": [
1878
- [
1879
- "020d34cd4ab43900"
1880
- ]
1881
- ]
1882
- },
1883
- {
1884
- "id": "2fadb4c4667ecaf2",
1885
- "type": "usertask-input",
1886
- "z": "fd3c725340de4f74",
1887
- "g": "3f3c01daebb2d215",
1888
- "name": "",
1889
- "engine": "42e6796dddd9d4db",
1890
- "query": "{\"state\":\"suspended\"}",
1891
- "query_type": "json",
1892
- "sendtype": "array",
1893
- "x": 300,
1894
- "y": 560,
1895
- "wires": [
1896
- [
1897
- "bc26f9821540f097"
1898
- ]
1899
- ]
1900
- },
1901
- {
1902
- "id": "93331783b7ef3fc5",
1903
- "type": "inject",
1904
- "z": "fd3c725340de4f74",
1905
- "g": "3f3c01daebb2d215",
1906
- "name": "",
1907
- "props": [],
1908
- "repeat": "",
1909
- "crontab": "",
1910
- "once": false,
1911
- "onceDelay": 0.1,
1912
- "topic": "",
1913
- "x": 130,
1914
- "y": 560,
1915
- "wires": [
1916
- [
1917
- "2fadb4c4667ecaf2"
1918
- ]
1919
- ]
1920
- },
1921
- {
1922
- "id": "bc26f9821540f097",
1923
- "type": "debug",
1924
- "z": "fd3c725340de4f74",
1925
- "g": "3f3c01daebb2d215",
1926
- "name": "debug 34",
1927
- "active": true,
1928
- "tosidebar": true,
1929
- "console": false,
1930
- "tostatus": false,
1931
- "complete": "false",
1932
- "statusVal": "",
1933
- "statusType": "auto",
1934
- "x": 480,
1935
- "y": 560,
1936
- "wires": []
1937
- },
1938
- {
1939
- "id": "cc3fb9c2cb0edd3a",
1940
- "type": "comment",
1941
- "z": "fd3c725340de4f74",
1942
- "g": "3f3c01daebb2d215",
1943
- "name": "Search UserTasks",
1944
- "info": "",
1945
- "x": 150,
1946
- "y": 500,
1947
- "wires": []
1948
- },
1949
- {
1950
- "id": "c4f20aefe585bdad",
1951
- "type": "comment",
1952
- "z": "90fa3991405c6248",
1953
- "g": "4f03c1eb4784b442",
1954
- "name": "User Task Events",
1955
- "info": "",
1956
- "x": 160,
1957
- "y": 80,
1958
- "wires": []
1959
- },
1960
- {
1961
- "id": "682a3e6e49c407c0",
1962
- "type": "usertask-input",
1963
- "z": "90fa3991405c6248",
1964
- "g": "a135da7e3b76f6dd",
1965
- "name": "",
1966
- "engine": "b78932d162d8d468",
1967
- "query": "payload",
1968
- "query_type": "msg",
1969
- "x": 200,
1970
- "y": 440,
1971
- "wires": [
1972
- [
1973
- "5c9668cbe4b31919"
1974
- ]
1975
- ]
1976
- },
1977
- {
1978
- "id": "5c9668cbe4b31919",
1979
- "type": "function",
1980
- "z": "90fa3991405c6248",
1981
- "g": "a135da7e3b76f6dd",
1982
- "name": "build result",
1983
- "func": "msg.payload.result = {\n \"field_01\": \"value 01\",\n \"field_02\": \"value 02\"\n}\nreturn msg;",
1984
- "outputs": 1,
1985
- "timeout": 0,
1986
- "noerr": 0,
1987
- "initialize": "",
1988
- "finalize": "",
1989
- "libs": [],
1990
- "x": 390,
1991
- "y": 440,
1992
- "wires": [
1993
- [
1994
- "693e6d63e82ee961"
1995
- ]
1996
- ]
1997
- },
1998
- {
1999
- "id": "693e6d63e82ee961",
2000
- "type": "usertask-output",
2001
- "z": "90fa3991405c6248",
2002
- "g": "a135da7e3b76f6dd",
2003
- "name": "",
2004
- "engine": "b78932d162d8d468",
2005
- "result": "payload.result",
2006
- "result_type": "msg",
2007
- "x": 580,
2008
- "y": 440,
2009
- "wires": [
2010
- []
2011
- ]
2012
- },
2013
- {
2014
- "id": "c63cac30d2627c52",
2015
- "type": "comment",
2016
- "z": "90fa3991405c6248",
2017
- "g": "a135da7e3b76f6dd",
2018
- "name": "Demo to listen on a new usertask an finish them",
2019
- "info": "",
2020
- "x": 260,
2021
- "y": 320,
2022
- "wires": []
2023
- },
2024
- {
2025
- "id": "771e1802a60ea5cc",
2026
- "type": "usertask-event-listener",
2027
- "z": "90fa3991405c6248",
2028
- "g": "a135da7e3b76f6dd",
2029
- "name": "",
2030
- "engine": "b78932d162d8d468",
2031
- "usertask": "user_task_auth",
2032
- "eventtype": "new",
2033
- "query": "{}",
2034
- "query_type": "json",
2035
- "x": 180,
2036
- "y": 380,
2037
- "wires": [
2038
- [
2039
- "682a3e6e49c407c0"
2040
- ]
2041
- ]
2042
- },
2043
- {
2044
- "id": "451fc49b81cfe869",
2045
- "type": "usertask-event-listener",
2046
- "z": "90fa3991405c6248",
2047
- "g": "4f03c1eb4784b442",
2048
- "name": "",
2049
- "engine": "b78932d162d8d468",
2050
- "usertask": "user_task_auth",
2051
- "eventtype": "new",
2052
- "query": "{}",
2053
- "query_type": "json",
2054
- "x": 180,
2055
- "y": 140,
2056
- "wires": [
2057
- [
2058
- "58202f3750a9762b"
2059
- ]
2060
- ]
2061
- },
2062
- {
2063
- "id": "07e2258a732baddb",
2064
- "type": "usertask-event-listener",
2065
- "z": "90fa3991405c6248",
2066
- "g": "4f03c1eb4784b442",
2067
- "name": "",
2068
- "engine": "b78932d162d8d468",
2069
- "usertask": "user_task_auth",
2070
- "eventtype": "finished",
2071
- "query": "{}",
2072
- "query_type": "json",
2073
- "x": 180,
2074
- "y": 200,
2075
- "wires": [
2076
- [
2077
- "58202f3750a9762b"
2078
- ]
2079
- ]
2080
- },
2081
- {
2082
- "id": "58202f3750a9762b",
2083
- "type": "debug",
2084
- "z": "90fa3991405c6248",
2085
- "g": "4f03c1eb4784b442",
2086
- "name": "debug 31",
2087
- "active": false,
2088
- "tosidebar": true,
2089
- "console": false,
2090
- "tostatus": false,
2091
- "complete": "false",
2092
- "statusVal": "",
2093
- "statusType": "auto",
2094
- "x": 380,
2095
- "y": 140,
2096
- "wires": []
2097
- },
2098
- {
2099
- "id": "baa5d814f2e1f1d8",
2100
- "type": "processinstance-query",
2101
- "z": "5d27ab4d14b947e9",
2102
- "g": "a71a168415778e2c",
2103
- "name": "",
2104
- "engine": "42e6796dddd9d4db",
2105
- "query": "{\"includeXml\":false,\"processDefinitionId\":\"External-Task-Sample_Definition\"}",
2106
- "query_type": "json",
2107
- "x": 320,
2108
- "y": 140,
2109
- "wires": [
2110
- [
2111
- "2af2c5031c617e3d"
2112
- ]
2113
- ]
2114
- },
2115
- {
2116
- "id": "2af2c5031c617e3d",
2117
- "type": "debug",
2118
- "z": "5d27ab4d14b947e9",
2119
- "g": "a71a168415778e2c",
2120
- "name": "debug 25",
2121
- "active": true,
2122
- "tosidebar": true,
2123
- "console": false,
2124
- "tostatus": false,
2125
- "complete": "false",
2126
- "statusVal": "",
2127
- "statusType": "auto",
2128
- "x": 520,
2129
- "y": 140,
2130
- "wires": []
2131
- },
2132
- {
2133
- "id": "81af643792f131f0",
2134
- "type": "inject",
2135
- "z": "5d27ab4d14b947e9",
2136
- "g": "a71a168415778e2c",
2137
- "name": "",
2138
- "props": [
2139
- {
2140
- "p": "payload"
2141
- }
2142
- ],
2143
- "repeat": "",
2144
- "crontab": "",
2145
- "once": false,
2146
- "onceDelay": 0.1,
2147
- "topic": "",
2148
- "payload": "go",
2149
- "payloadType": "str",
2150
- "x": 130,
2151
- "y": 140,
2152
- "wires": [
2153
- [
2154
- "baa5d814f2e1f1d8"
2155
- ]
2156
- ]
2157
- },
2158
- {
2159
- "id": "2166b0f822b3e71d",
2160
- "type": "comment",
2161
- "z": "5d27ab4d14b947e9",
2162
- "g": "a71a168415778e2c",
2163
- "name": "Query all processinstances from the engine, see the config of `processinstance-query`",
2164
- "info": "",
2165
- "x": 360,
2166
- "y": 80,
2167
- "wires": []
2168
- },
2169
- {
2170
- "id": "1591cb53c1f1982a",
2171
- "type": "processinstance-query",
2172
- "z": "821add3dc3391985",
2173
- "g": "e17f65347110575e",
2174
- "name": "",
2175
- "engine": "b78932d162d8d468",
2176
- "query": "{\"includeXml\":false}",
2177
- "query_type": "json",
2178
- "x": 320,
2179
- "y": 140,
2180
- "wires": [
2181
- [
2182
- "c2a2b1c1108ee3e1"
2183
- ]
2184
- ]
2185
- },
2186
- {
2187
- "id": "c2a2b1c1108ee3e1",
2188
- "type": "debug",
2189
- "z": "821add3dc3391985",
2190
- "g": "e17f65347110575e",
2191
- "name": "debug 28",
2192
- "active": true,
2193
- "tosidebar": true,
2194
- "console": false,
2195
- "tostatus": false,
2196
- "complete": "false",
2197
- "statusVal": "",
2198
- "statusType": "auto",
2199
- "x": 520,
2200
- "y": 140,
2201
- "wires": []
2202
- },
2203
- {
2204
- "id": "78828be9c878b621",
2205
- "type": "inject",
2206
- "z": "821add3dc3391985",
2207
- "g": "e17f65347110575e",
2208
- "name": "",
2209
- "props": [
2210
- {
2211
- "p": "payload"
2212
- }
2213
- ],
2214
- "repeat": "",
2215
- "crontab": "",
2216
- "once": false,
2217
- "onceDelay": 0.1,
2218
- "topic": "",
2219
- "payload": "go",
2220
- "payloadType": "str",
2221
- "x": 130,
2222
- "y": 140,
2223
- "wires": [
2224
- [
2225
- "1591cb53c1f1982a"
2226
- ]
2227
- ]
2228
- },
2229
- {
2230
- "id": "47a52efd5f9ec550",
2231
- "type": "comment",
2232
- "z": "821add3dc3391985",
2233
- "g": "e17f65347110575e",
2234
- "name": "Query all processinstances from the engine, see the config of `processinstance-query`",
2235
- "info": "",
2236
- "x": 360,
2237
- "y": 80,
2238
- "wires": []
2239
- },
2240
- {
2241
- "id": "d97caca0ec54a633",
2242
- "type": "processdefinition-query",
2243
- "z": "f28ae6aa3a05069e",
2244
- "g": "4c59118134081e05",
2245
- "name": "Query definitions",
2246
- "engine": "42e6796dddd9d4db",
2247
- "query": "{\"includeXml\":false}",
2248
- "query_type": "json",
2249
- "models_only": false,
2250
- "x": 310,
2251
- "y": 140,
2252
- "wires": [
2253
- [
2254
- "5539a5c4c0f9cbe2"
2255
- ]
2256
- ]
2257
- },
2258
- {
2259
- "id": "f74139117c9dab27",
2260
- "type": "inject",
2261
- "z": "f28ae6aa3a05069e",
2262
- "g": "4c59118134081e05",
2263
- "name": "",
2264
- "props": [
2265
- {
2266
- "p": "payload"
2267
- },
2268
- {
2269
- "p": "topic",
2270
- "vt": "str"
2271
- }
2272
- ],
2273
- "repeat": "",
2274
- "crontab": "",
2275
- "once": false,
2276
- "onceDelay": 0.1,
2277
- "topic": "",
2278
- "payload": "",
2279
- "payloadType": "date",
2280
- "x": 120,
2281
- "y": 140,
2282
- "wires": [
2283
- [
2284
- "d97caca0ec54a633"
2285
- ]
2286
- ]
2287
- },
2288
- {
2289
- "id": "5539a5c4c0f9cbe2",
2290
- "type": "debug",
2291
- "z": "f28ae6aa3a05069e",
2292
- "g": "4c59118134081e05",
2293
- "name": "debug 26",
2294
- "active": true,
2295
- "tosidebar": true,
2296
- "console": false,
2297
- "tostatus": false,
2298
- "complete": "false",
2299
- "statusVal": "",
2300
- "statusType": "auto",
2301
- "x": 500,
2302
- "y": 140,
2303
- "wires": []
2304
- },
2305
- {
2306
- "id": "bcc97a73cff5a086",
2307
- "type": "processdefinition-query",
2308
- "z": "f28ae6aa3a05069e",
2309
- "g": "f1d4eaed7570324e",
2310
- "name": "Query models",
2311
- "engine": "42e6796dddd9d4db",
2312
- "query": "{\"includeXml\":false}",
2313
- "query_type": "json",
2314
- "models_only": true,
2315
- "x": 300,
2316
- "y": 320,
2317
- "wires": [
2318
- [
2319
- "0633b709dd9c166f"
2320
- ]
2321
- ]
2322
- },
2323
- {
2324
- "id": "b418463be836efbb",
2325
- "type": "inject",
2326
- "z": "f28ae6aa3a05069e",
2327
- "g": "f1d4eaed7570324e",
2328
- "name": "",
2329
- "props": [
2330
- {
2331
- "p": "payload"
2332
- },
2333
- {
2334
- "p": "topic",
2335
- "vt": "str"
2336
- }
2337
- ],
2338
- "repeat": "",
2339
- "crontab": "",
2340
- "once": false,
2341
- "onceDelay": 0.1,
2342
- "topic": "",
2343
- "payload": "",
2344
- "payloadType": "date",
2345
- "x": 120,
2346
- "y": 320,
2347
- "wires": [
2348
- [
2349
- "bcc97a73cff5a086"
2350
- ]
2351
- ]
2352
- },
2353
- {
2354
- "id": "0633b709dd9c166f",
2355
- "type": "debug",
2356
- "z": "f28ae6aa3a05069e",
2357
- "g": "f1d4eaed7570324e",
2358
- "name": "debug 27",
2359
- "active": true,
2360
- "tosidebar": true,
2361
- "console": false,
2362
- "tostatus": false,
2363
- "complete": "false",
2364
- "statusVal": "",
2365
- "statusType": "auto",
2366
- "x": 480,
2367
- "y": 320,
2368
- "wires": []
2369
- },
2370
- {
2371
- "id": "a8e2b5a6ca25c924",
2372
- "type": "comment",
2373
- "z": "f28ae6aa3a05069e",
2374
- "g": "4c59118134081e05",
2375
- "name": "Definitions",
2376
- "info": "",
2377
- "x": 100,
2378
- "y": 80,
2379
- "wires": []
2380
- },
2381
- {
2382
- "id": "fbb37831549d41ff",
2383
- "type": "comment",
2384
- "z": "f28ae6aa3a05069e",
2385
- "g": "f1d4eaed7570324e",
2386
- "name": "Models",
2387
- "info": "",
2388
- "x": 90,
2389
- "y": 260,
2390
- "wires": []
2391
- },
2392
- {
2393
- "id": "2ecd778293bc1e58",
2394
- "type": "processdefinition-query",
2395
- "z": "9b69648e1614122a",
2396
- "g": "037eeeef4db91107",
2397
- "name": "Query definitions",
2398
- "engine": "b78932d162d8d468",
2399
- "query": "{\"includeXml\":false}",
2400
- "query_type": "json",
2401
- "models_only": false,
2402
- "x": 330,
2403
- "y": 140,
2404
- "wires": [
2405
- [
2406
- "eaa25b48e24cea10"
2407
- ]
2408
- ]
2409
- },
2410
- {
2411
- "id": "7a330fb2934bb4ab",
2412
- "type": "inject",
2413
- "z": "9b69648e1614122a",
2414
- "g": "037eeeef4db91107",
2415
- "name": "",
2416
- "props": [
2417
- {
2418
- "p": "payload"
2419
- },
2420
- {
2421
- "p": "topic",
2422
- "vt": "str"
2423
- }
2424
- ],
2425
- "repeat": "",
2426
- "crontab": "",
2427
- "once": false,
2428
- "onceDelay": 0.1,
2429
- "topic": "",
2430
- "payload": "",
2431
- "payloadType": "date",
2432
- "x": 140,
2433
- "y": 140,
2434
- "wires": [
2435
- [
2436
- "2ecd778293bc1e58"
2437
- ]
2438
- ]
2439
- },
2440
- {
2441
- "id": "eaa25b48e24cea10",
2442
- "type": "debug",
2443
- "z": "9b69648e1614122a",
2444
- "g": "037eeeef4db91107",
2445
- "name": "debug 29",
2446
- "active": true,
2447
- "tosidebar": true,
2448
- "console": false,
2449
- "tostatus": false,
2450
- "complete": "false",
2451
- "statusVal": "",
2452
- "statusType": "auto",
2453
- "x": 520,
2454
- "y": 140,
2455
- "wires": []
2456
- },
2457
- {
2458
- "id": "2d2e2586dfed611a",
2459
- "type": "comment",
2460
- "z": "9b69648e1614122a",
2461
- "g": "037eeeef4db91107",
2462
- "name": "Definitions",
2463
- "info": "",
2464
- "x": 120,
2465
- "y": 80,
2466
- "wires": []
2467
- },
2468
- {
2469
- "id": "443f898ac8d21376",
2470
- "type": "processdefinition-query",
2471
- "z": "9b69648e1614122a",
2472
- "g": "437a2209643cfba5",
2473
- "name": "Query models",
2474
- "engine": "b78932d162d8d468",
2475
- "query": "{\"includeXml\":false}",
2476
- "query_type": "json",
2477
- "models_only": true,
2478
- "x": 320,
2479
- "y": 320,
2480
- "wires": [
2481
- [
2482
- "6ef8711acb760a7f"
2483
- ]
2484
- ]
2485
- },
2486
- {
2487
- "id": "ab161eea047e8ce0",
2488
- "type": "inject",
2489
- "z": "9b69648e1614122a",
2490
- "g": "437a2209643cfba5",
2491
- "name": "",
2492
- "props": [
2493
- {
2494
- "p": "payload"
2495
- },
2496
- {
2497
- "p": "topic",
2498
- "vt": "str"
2499
- }
2500
- ],
2501
- "repeat": "",
2502
- "crontab": "",
2503
- "once": false,
2504
- "onceDelay": 0.1,
2505
- "topic": "",
2506
- "payload": "",
2507
- "payloadType": "date",
2508
- "x": 140,
2509
- "y": 320,
2510
- "wires": [
2511
- [
2512
- "443f898ac8d21376"
2513
- ]
2514
- ]
2515
- },
2516
- {
2517
- "id": "6ef8711acb760a7f",
2518
- "type": "debug",
2519
- "z": "9b69648e1614122a",
2520
- "g": "437a2209643cfba5",
2521
- "name": "debug 30",
2522
- "active": true,
2523
- "tosidebar": true,
2524
- "console": false,
2525
- "tostatus": false,
2526
- "complete": "false",
2527
- "statusVal": "",
2528
- "statusType": "auto",
2529
- "x": 500,
2530
- "y": 320,
2531
- "wires": []
2532
- },
2533
- {
2534
- "id": "8a8d0227dceb9ebb",
2535
- "type": "comment",
2536
- "z": "9b69648e1614122a",
2537
- "g": "437a2209643cfba5",
2538
- "name": "Models",
2539
- "info": "",
2540
- "x": 110,
2541
- "y": 260,
2542
- "wires": []
2543
- },
2544
- {
2545
- "id": "30b8f9c606a2bb83",
2546
- "type": "wait-for-usertask",
2547
- "z": "d6c450fe98faa45f",
2548
- "name": "",
2549
- "engine": "42e6796dddd9d4db",
2550
- "query": "payload",
2551
- "query_type": "msg",
2552
- "only_for_new": true,
2553
- "x": 590,
2554
- "y": 120,
2555
- "wires": [
2556
- [
2557
- "d9cb8e69e985d6df",
2558
- "a5c0ea907e64e759"
2559
- ]
2560
- ]
2561
- },
2562
- {
2563
- "id": "20fd37adf0fb6f39",
2564
- "type": "process-start",
2565
- "z": "d6c450fe98faa45f",
2566
- "name": "",
2567
- "engine": "42e6796dddd9d4db",
2568
- "processmodel": "Wait-For-Usertask_Process",
2569
- "startevent": "StartEvent_1",
2570
- "x": 250,
2571
- "y": 120,
2572
- "wires": [
2573
- [
2574
- "1e1e9c428172eae2",
2575
- "c65a4ba5461e7ee0"
2576
- ]
2577
- ]
2578
- },
2579
- {
2580
- "id": "e18451d69a169f5f",
2581
- "type": "inject",
2582
- "z": "d6c450fe98faa45f",
2583
- "name": "",
2584
- "props": [
2585
- {
2586
- "p": "payload"
2587
- }
2588
- ],
2589
- "repeat": "",
2590
- "crontab": "",
2591
- "once": false,
2592
- "onceDelay": 0.1,
2593
- "topic": "",
2594
- "payload": "{}",
2595
- "payloadType": "json",
2596
- "x": 90,
2597
- "y": 120,
2598
- "wires": [
2599
- [
2600
- "20fd37adf0fb6f39"
2601
- ]
2602
- ]
2603
- },
2604
- {
2605
- "id": "d9cb8e69e985d6df",
2606
- "type": "delay",
2607
- "z": "d6c450fe98faa45f",
2608
- "name": "",
2609
- "pauseType": "delay",
2610
- "timeout": "5",
2611
- "timeoutUnits": "seconds",
2612
- "rate": "1",
2613
- "nbRateUnits": "1",
2614
- "rateUnits": "second",
2615
- "randomFirst": "1",
2616
- "randomLast": "5",
2617
- "randomUnits": "seconds",
2618
- "drop": false,
2619
- "allowrate": false,
2620
- "outputs": 1,
2621
- "x": 540,
2622
- "y": 200,
2623
- "wires": [
2624
- [
2625
- "acecfeef70b5c4ad"
2626
- ]
2627
- ]
2628
- },
2629
- {
2630
- "id": "44f4c6c64263d366",
2631
- "type": "usertask-output",
2632
- "z": "d6c450fe98faa45f",
2633
- "name": "",
2634
- "engine": "42e6796dddd9d4db",
2635
- "result": "payload.formResult",
2636
- "result_type": "msg",
2637
- "x": 880,
2638
- "y": 200,
2639
- "wires": [
2640
- [
2641
- "82e58f4fb135162c"
2642
- ]
2643
- ]
2644
- },
2645
- {
2646
- "id": "acecfeef70b5c4ad",
2647
- "type": "function",
2648
- "z": "d6c450fe98faa45f",
2649
- "name": "pre",
2650
- "func": "msg.payload.formResult = {\n \"resultFrom\": \"userTask\"\n};\nreturn msg;",
2651
- "outputs": 1,
2652
- "timeout": 0,
2653
- "noerr": 0,
2654
- "initialize": "",
2655
- "finalize": "",
2656
- "libs": [],
2657
- "x": 710,
2658
- "y": 200,
2659
- "wires": [
2660
- [
2661
- "44f4c6c64263d366"
2662
- ]
2663
- ]
2664
- },
2665
- {
2666
- "id": "1e1e9c428172eae2",
2667
- "type": "function",
2668
- "z": "d6c450fe98faa45f",
2669
- "name": "query",
2670
- "func": "msg.payload = {\n \"processInstanceId\": msg.payload.processInstanceId,\n \"flowNodeId\": \"make_it\"\n};\n\nreturn msg;",
2671
- "outputs": 1,
2672
- "timeout": 0,
2673
- "noerr": 0,
2674
- "initialize": "",
2675
- "finalize": "",
2676
- "libs": [],
2677
- "x": 410,
2678
- "y": 120,
2679
- "wires": [
2680
- [
2681
- "30b8f9c606a2bb83"
2682
- ]
2683
- ]
2684
- },
2685
- {
2686
- "id": "c65a4ba5461e7ee0",
2687
- "type": "debug",
2688
- "z": "d6c450fe98faa45f",
2689
- "name": "debug 32",
2690
- "active": true,
2691
- "tosidebar": true,
2692
- "console": false,
2693
- "tostatus": false,
2694
- "complete": "false",
2695
- "statusVal": "",
2696
- "statusType": "auto",
2697
- "x": 370,
2698
- "y": 60,
2699
- "wires": []
2700
- },
2701
- {
2702
- "id": "a5c0ea907e64e759",
2703
- "type": "debug",
2704
- "z": "d6c450fe98faa45f",
2705
- "name": "debug 33",
2706
- "active": true,
2707
- "tosidebar": true,
2708
- "console": false,
2709
- "tostatus": false,
2710
- "complete": "false",
2711
- "statusVal": "",
2712
- "statusType": "auto",
2713
- "x": 760,
2714
- "y": 60,
2715
- "wires": []
2716
- },
2717
- {
2718
- "id": "82e58f4fb135162c",
2719
- "type": "debug",
2720
- "z": "d6c450fe98faa45f",
2721
- "name": "debug 1",
2722
- "active": true,
2723
- "tosidebar": true,
2724
- "console": false,
2725
- "tostatus": false,
2726
- "complete": "false",
2727
- "statusVal": "",
2728
- "statusType": "auto",
2729
- "x": 990,
2730
- "y": 240,
2731
- "wires": []
2732
- },
2733
- {
2734
- "id": "930624edc6169c55",
2735
- "type": "process-event-listener",
2736
- "z": "76c047e0d8770a20",
2737
- "d": true,
2738
- "name": "",
2739
- "engine": "42e6796dddd9d4db",
2740
- "processmodel": "External-Task-Sample_Process",
2741
- "eventtype": "starting",
2742
- "query": "{}",
2743
- "query_type": "json",
2744
- "x": 160,
2745
- "y": 140,
2746
- "wires": [
2747
- [
2748
- "2f2ec1cc0213eab5"
2749
- ]
2750
- ]
2751
- },
2752
- {
2753
- "id": "2f2ec1cc0213eab5",
2754
- "type": "debug",
2755
- "z": "76c047e0d8770a20",
2756
- "name": "debug 34",
2757
- "active": false,
2758
- "tosidebar": true,
2759
- "console": false,
2760
- "tostatus": false,
2761
- "complete": "false",
2762
- "statusVal": "",
2763
- "statusType": "auto",
2764
- "x": 430,
2765
- "y": 140,
2766
- "wires": []
2767
- },
2768
- {
2769
- "id": "bde205e77cd20558",
2770
- "type": "comment",
2771
- "z": "76c047e0d8770a20",
2772
- "name": "Hört auf die Events der Processe",
2773
- "info": "",
2774
- "x": 190,
2775
- "y": 80,
2776
- "wires": []
2777
- },
2778
- {
2779
- "id": "798de686e9cec9e3",
2780
- "type": "process-event-listener",
2781
- "z": "76c047e0d8770a20",
2782
- "d": true,
2783
- "name": "deployed",
2784
- "engine": "42e6796dddd9d4db",
2785
- "processmodel": "",
2786
- "eventtype": "deployed",
2787
- "query": "{}",
2788
- "query_type": "json",
2789
- "x": 120,
2790
- "y": 220,
2791
- "wires": [
2792
- [
2793
- "75af9579297b63ce"
2794
- ]
2795
- ]
2796
- },
2797
- {
2798
- "id": "75af9579297b63ce",
2799
- "type": "debug",
2800
- "z": "76c047e0d8770a20",
2801
- "name": "debug 36",
2802
- "active": true,
2803
- "tosidebar": true,
2804
- "console": false,
2805
- "tostatus": false,
2806
- "complete": "false",
2807
- "statusVal": "",
2808
- "statusType": "auto",
2809
- "x": 370,
2810
- "y": 220,
2811
- "wires": []
2812
- },
2813
- {
2814
- "id": "78dd82dbc5fe824e",
2815
- "type": "process-event-listener",
2816
- "z": "76c047e0d8770a20",
2817
- "d": true,
2818
- "name": "undeployed",
2819
- "engine": "42e6796dddd9d4db",
2820
- "processmodel": "",
2821
- "eventtype": "undeployed",
2822
- "query": "{}",
2823
- "query_type": "json",
2824
- "x": 130,
2825
- "y": 300,
2826
- "wires": [
2827
- [
2828
- "341e4f4a311175e2"
2829
- ]
2830
- ]
2831
- },
2832
- {
2833
- "id": "341e4f4a311175e2",
2834
- "type": "debug",
2835
- "z": "76c047e0d8770a20",
2836
- "name": "debug 37",
2837
- "active": true,
2838
- "tosidebar": true,
2839
- "console": false,
2840
- "tostatus": false,
2841
- "complete": "false",
2842
- "statusVal": "",
2843
- "statusType": "auto",
2844
- "x": 310,
2845
- "y": 300,
2846
- "wires": []
2847
- },
2848
- {
2849
- "id": "6b1eeb91a71c7bcb",
2850
- "type": "process-event-listener",
2851
- "z": "76c047e0d8770a20",
2852
- "d": true,
2853
- "name": "is-exeutable-changed",
2854
- "engine": "42e6796dddd9d4db",
2855
- "processmodel": "",
2856
- "eventtype": "is-executable-changed",
2857
- "query": "{}",
2858
- "query_type": "json",
2859
- "x": 160,
2860
- "y": 380,
2861
- "wires": [
2862
- [
2863
- "5a2e8be2d8f3a1be"
2864
- ]
2865
- ]
2866
- },
2867
- {
2868
- "id": "5a2e8be2d8f3a1be",
2869
- "type": "debug",
2870
- "z": "76c047e0d8770a20",
2871
- "name": "debug 38",
2872
- "active": true,
2873
- "tosidebar": true,
2874
- "console": false,
2875
- "tostatus": false,
2876
- "complete": "false",
2877
- "statusVal": "",
2878
- "statusType": "auto",
2879
- "x": 350,
2880
- "y": 380,
2881
- "wires": []
2882
- },
2883
- {
2884
- "id": "03ac7bc273197c45",
2885
- "type": "process-terminate",
2886
- "z": "2766c40d84283368",
2887
- "name": "",
2888
- "engine": "42e6796dddd9d4db",
2889
- "x": 170,
2890
- "y": 140,
2891
- "wires": [
2892
- [
2893
- "bb734a85d4b37728"
2894
- ]
2895
- ]
2896
- },
2897
- {
2898
- "id": "bb734a85d4b37728",
2899
- "type": "debug",
2900
- "z": "2766c40d84283368",
2901
- "name": "debug 35",
2902
- "active": true,
2903
- "tosidebar": true,
2904
- "console": false,
2905
- "tostatus": false,
2906
- "complete": "false",
2907
- "statusVal": "",
2908
- "statusType": "auto",
2909
- "x": 370,
2910
- "y": 140,
2911
- "wires": []
2912
- },
2913
- {
2914
- "id": "3d03550f7d93bfd3",
2915
- "type": "comment",
2916
- "z": "2766c40d84283368",
2917
- "name": "Event for Terminating a Process",
2918
- "info": "",
2919
- "x": 210,
2920
- "y": 80,
2921
- "wires": []
2922
- },
2923
- {
2924
- "id": "9aaa1850f6cf0c5b",
2925
- "type": "message-event-trigger",
2926
- "z": "2d4f4d815c889920",
2927
- "g": "48f72a8b2cb5ead9",
2928
- "name": "send message (json)",
2929
- "engine": "42e6796dddd9d4db",
2930
- "messagename": "TheMessage",
2931
- "x": 500,
2932
- "y": 140,
2933
- "wires": [
2934
- [
2935
- "e7c528682ace1eee"
2936
- ]
2937
- ]
2938
- },
2939
- {
2940
- "id": "b92f9b7c8839bd52",
2941
- "type": "inject",
2942
- "z": "2d4f4d815c889920",
2943
- "g": "48f72a8b2cb5ead9",
2944
- "name": "",
2945
- "props": [],
2946
- "repeat": "",
2947
- "crontab": "",
2948
- "once": false,
2949
- "onceDelay": 0.1,
2950
- "topic": "",
2951
- "x": 150,
2952
- "y": 140,
2953
- "wires": [
2954
- [
2955
- "1795b84421188c56"
2956
- ]
2957
- ]
2958
- },
2959
- {
2960
- "id": "e7c528682ace1eee",
2961
- "type": "debug",
2962
- "z": "2d4f4d815c889920",
2963
- "g": "48f72a8b2cb5ead9",
2964
- "name": "debug 9",
2965
- "active": true,
2966
- "tosidebar": true,
2967
- "console": false,
2968
- "tostatus": false,
2969
- "complete": "false",
2970
- "statusVal": "",
2971
- "statusType": "auto",
2972
- "x": 700,
2973
- "y": 140,
2974
- "wires": []
2975
- },
2976
- {
2977
- "id": "d0d55ea4c120f824",
2978
- "type": "inject",
2979
- "z": "2d4f4d815c889920",
2980
- "g": "4736a27919052199",
2981
- "name": "",
2982
- "props": [],
2983
- "repeat": "",
2984
- "crontab": "",
2985
- "once": false,
2986
- "onceDelay": 0.1,
2987
- "topic": "",
2988
- "x": 150,
2989
- "y": 300,
2990
- "wires": [
2991
- [
2992
- "4ff784bd746f357a"
2993
- ]
2994
- ]
2995
- },
2996
- {
2997
- "id": "9fa5516904f5ddc9",
2998
- "type": "message-event-trigger",
2999
- "z": "2d4f4d815c889920",
3000
- "g": "4736a27919052199",
3001
- "name": "send message (xml)",
3002
- "engine": "42e6796dddd9d4db",
3003
- "messagename": "TheMessage",
3004
- "x": 500,
3005
- "y": 300,
3006
- "wires": [
3007
- [
3008
- "25c81fa425019087"
3009
- ]
3010
- ]
3011
- },
3012
- {
3013
- "id": "25c81fa425019087",
3014
- "type": "debug",
3015
- "z": "2d4f4d815c889920",
3016
- "g": "4736a27919052199",
3017
- "name": "debug 10",
3018
- "active": true,
3019
- "tosidebar": true,
3020
- "console": false,
3021
- "tostatus": false,
3022
- "complete": "false",
3023
- "statusVal": "",
3024
- "statusType": "auto",
3025
- "x": 700,
3026
- "y": 300,
3027
- "wires": []
3028
- },
3029
- {
3030
- "id": "1795b84421188c56",
3031
- "type": "function",
3032
- "z": "2d4f4d815c889920",
3033
- "g": "48f72a8b2cb5ead9",
3034
- "name": "build json",
3035
- "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\n\nreturn msg;",
3036
- "outputs": 1,
3037
- "timeout": 0,
3038
- "noerr": 0,
3039
- "initialize": "",
3040
- "finalize": "",
3041
- "libs": [],
3042
- "x": 300,
3043
- "y": 140,
3044
- "wires": [
3045
- [
3046
- "9aaa1850f6cf0c5b"
3047
- ]
3048
- ]
3049
- },
3050
- {
3051
- "id": "4ff784bd746f357a",
3052
- "type": "function",
3053
- "z": "2d4f4d815c889920",
3054
- "g": "4736a27919052199",
3055
- "name": "build xml",
3056
- "func": "msg.payload = `\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>\n <hello>world</hello>\n</root>\n`;\n\nreturn msg;",
3057
- "outputs": 1,
3058
- "timeout": 0,
3059
- "noerr": 0,
3060
- "initialize": "",
3061
- "finalize": "",
3062
- "libs": [],
3063
- "x": 300,
3064
- "y": 300,
3065
- "wires": [
3066
- [
3067
- "9fa5516904f5ddc9"
3068
- ]
3069
- ]
3070
- },
3071
- {
3072
- "id": "0217c4f569ceb289",
3073
- "type": "comment",
3074
- "z": "2d4f4d815c889920",
3075
- "g": "48f72a8b2cb5ead9",
3076
- "name": "Daten im Payload als JSON an TheMessage versenden",
3077
- "info": "",
3078
- "x": 280,
3079
- "y": 80,
3080
- "wires": []
3081
- },
3082
- {
3083
- "id": "1605dca966cb1ca3",
3084
- "type": "comment",
3085
- "z": "2d4f4d815c889920",
3086
- "g": "4736a27919052199",
3087
- "name": "Daten im Payload als XML an TheMessage versenden",
3088
- "info": "",
3089
- "x": 280,
3090
- "y": 240,
3091
- "wires": []
3092
- },
3093
- {
3094
- "id": "15c494ef7b808eee",
3095
- "type": "comment",
3096
- "z": "2d4f4d815c889920",
3097
- "g": "4736a27919052199",
3098
- "name": "Fehler: da Payload kein JSON ist, darf aber nicht zu 'Internal-Server' führen",
3099
- "info": "",
3100
- "x": 340,
3101
- "y": 420,
3102
- "wires": []
3103
- },
3104
- {
3105
- "id": "3da3f0919d261dbb",
3106
- "type": "inject",
3107
- "z": "2d4f4d815c889920",
3108
- "g": "8532caa2120a8ff3",
3109
- "name": "",
3110
- "props": [],
3111
- "repeat": "",
3112
- "crontab": "",
3113
- "once": false,
3114
- "onceDelay": 0.1,
3115
- "topic": "",
3116
- "x": 150,
3117
- "y": 580,
3118
- "wires": [
3119
- [
3120
- "1db58abf4179cb33"
3121
- ]
3122
- ]
3123
- },
3124
- {
3125
- "id": "499158b3e609a621",
3126
- "type": "message-event-trigger",
3127
- "z": "2d4f4d815c889920",
3128
- "g": "8532caa2120a8ff3",
3129
- "name": "send message (xml)",
3130
- "engine": "42e6796dddd9d4db",
3131
- "messagename": "TheMessage",
3132
- "x": 540,
3133
- "y": 580,
3134
- "wires": [
3135
- [
3136
- "b463ae80bf2b5886"
3137
- ]
3138
- ]
3139
- },
3140
- {
3141
- "id": "b463ae80bf2b5886",
3142
- "type": "debug",
3143
- "z": "2d4f4d815c889920",
3144
- "g": "8532caa2120a8ff3",
3145
- "name": "debug 11",
3146
- "active": true,
3147
- "tosidebar": true,
3148
- "console": false,
3149
- "tostatus": false,
3150
- "complete": "false",
3151
- "statusVal": "",
3152
- "statusType": "auto",
3153
- "x": 740,
3154
- "y": 580,
3155
- "wires": []
3156
- },
3157
- {
3158
- "id": "1db58abf4179cb33",
3159
- "type": "function",
3160
- "z": "2d4f4d815c889920",
3161
- "g": "8532caa2120a8ff3",
3162
- "name": "pack xml in json",
3163
- "func": "const sampleXML = `\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>\n <hello>world</hello>\n</root>\n`;\n\nmsg.payload = {\n \"xmlData\": sampleXML\n};\n\nreturn msg;",
3164
- "outputs": 1,
3165
- "timeout": 0,
3166
- "noerr": 0,
3167
- "initialize": "",
3168
- "finalize": "",
3169
- "libs": [],
3170
- "x": 320,
3171
- "y": 580,
3172
- "wires": [
3173
- [
3174
- "499158b3e609a621"
3175
- ]
3176
- ]
3177
- },
3178
- {
3179
- "id": "01610786730a8edb",
3180
- "type": "comment",
3181
- "z": "2d4f4d815c889920",
3182
- "g": "8532caa2120a8ff3",
3183
- "name": "Daten im Payload als XML in JSON verpackt an TheMessage versenden",
3184
- "info": "",
3185
- "x": 330,
3186
- "y": 520,
3187
- "wires": []
3188
- },
3189
- {
3190
- "id": "e62b0d58687ce755",
3191
- "type": "catch",
3192
- "z": "2d4f4d815c889920",
3193
- "g": "4736a27919052199",
3194
- "name": "",
3195
- "scope": "group",
3196
- "uncaught": false,
3197
- "x": 550,
3198
- "y": 360,
3199
- "wires": [
3200
- [
3201
- "700a1f33a7472ace"
3202
- ]
3203
- ]
3204
- },
3205
- {
3206
- "id": "700a1f33a7472ace",
3207
- "type": "debug",
3208
- "z": "2d4f4d815c889920",
3209
- "g": "4736a27919052199",
3210
- "name": "Send XML error",
3211
- "active": true,
3212
- "tosidebar": true,
3213
- "console": false,
3214
- "tostatus": false,
3215
- "complete": "true",
3216
- "targetType": "full",
3217
- "statusVal": "",
3218
- "statusType": "auto",
3219
- "x": 720,
3220
- "y": 360,
3221
- "wires": []
3222
- },
3223
- {
3224
- "id": "8c8d9afd13c5c796",
3225
- "type": "process-start",
3226
- "z": "b5a25174d4dff5e2",
3227
- "name": "",
3228
- "engine": "42e6796dddd9d4db",
3229
- "processmodel": "StartProcessSample_Process",
3230
- "startevent": "StartEvent_1",
3231
- "x": 370,
3232
- "y": 100,
3233
- "wires": [
3234
- [
3235
- "086b45f917f5297a"
3236
- ]
3237
- ]
3238
- },
3239
- {
3240
- "id": "086b45f917f5297a",
3241
- "type": "debug",
3242
- "z": "b5a25174d4dff5e2",
3243
- "name": "debug 39",
3244
- "active": true,
3245
- "tosidebar": true,
3246
- "console": false,
3247
- "tostatus": false,
3248
- "complete": "false",
3249
- "statusVal": "",
3250
- "statusType": "auto",
3251
- "x": 540,
3252
- "y": 100,
3253
- "wires": []
3254
- },
3255
- {
3256
- "id": "c944ebbfc5a55f46",
3257
- "type": "inject",
3258
- "z": "b5a25174d4dff5e2",
3259
- "name": "",
3260
- "props": [
3261
- {
3262
- "p": "payload"
3263
- }
3264
- ],
3265
- "repeat": "",
3266
- "crontab": "",
3267
- "once": false,
3268
- "onceDelay": 0.1,
3269
- "topic": "",
3270
- "payload": "{\"hello\":\"world\"}",
3271
- "payloadType": "json",
3272
- "x": 140,
3273
- "y": 100,
3274
- "wires": [
3275
- [
3276
- "8c8d9afd13c5c796"
3277
- ]
3278
- ]
3279
- },
3280
- {
3281
- "id": "b74eab538ce0ddbe",
3282
- "type": "inject",
3283
- "z": "b5a25174d4dff5e2",
3284
- "name": "mit undefined payload",
3285
- "props": [],
3286
- "repeat": "",
3287
- "crontab": "",
3288
- "once": false,
3289
- "onceDelay": 0.1,
3290
- "topic": "",
3291
- "x": 160,
3292
- "y": 160,
3293
- "wires": [
3294
- [
3295
- "8c8d9afd13c5c796"
3296
- ]
3297
- ]
3298
- },
3299
- {
3300
- "id": "f380d237ed2a51a4",
3301
- "type": "processdefinition-query",
3302
- "z": "ecd7ca447e4d1f47",
3303
- "name": "",
3304
- "engine": "42e6796dddd9d4db",
3305
- "query": "{}",
3306
- "query_type": "json",
3307
- "models_only": false,
3308
- "x": 390,
3309
- "y": 120,
3310
- "wires": [
3311
- [
3312
- "0dca34052917987a"
3313
- ]
3314
- ]
3315
- },
3316
- {
3317
- "id": "89e4082b2afa6ed4",
3318
- "type": "inject",
3319
- "z": "ecd7ca447e4d1f47",
3320
- "name": "",
3321
- "props": [
3322
- {
3323
- "p": "payload"
3324
- },
3325
- {
3326
- "p": "topic",
3327
- "vt": "str"
3328
- }
3329
- ],
3330
- "repeat": "",
3331
- "crontab": "",
3332
- "once": false,
3333
- "onceDelay": 0.1,
3334
- "topic": "",
3335
- "payload": "",
3336
- "payloadType": "date",
3337
- "x": 190,
3338
- "y": 120,
3339
- "wires": [
3340
- [
3341
- "f380d237ed2a51a4"
3342
- ]
3343
- ]
3344
- },
3345
- {
3346
- "id": "af52431420fa7e15",
3347
- "type": "debug",
3348
- "z": "ecd7ca447e4d1f47",
3349
- "name": "debug 2",
3350
- "active": true,
3351
- "tosidebar": true,
3352
- "console": false,
3353
- "tostatus": false,
3354
- "complete": "false",
3355
- "statusVal": "",
3356
- "statusType": "auto",
3357
- "x": 1060,
3358
- "y": 120,
3359
- "wires": []
3360
- },
3361
- {
3362
- "id": "0dca34052917987a",
3363
- "type": "function",
3364
- "z": "ecd7ca447e4d1f47",
3365
- "name": "get process to deploy",
3366
- "func": "const processDefinitionToDeploy = msg.payload.processDefinitions.find(def => def.processDefinitionId === 'ProcessModelToDeploy_Definition');\n\nmsg.payload = processDefinitionToDeploy.xml;\n\nreturn msg;",
3367
- "outputs": 1,
3368
- "timeout": 0,
3369
- "noerr": 0,
3370
- "initialize": "",
3371
- "finalize": "",
3372
- "libs": [],
3373
- "x": 640,
3374
- "y": 120,
3375
- "wires": [
3376
- [
3377
- "86888146d3f4b2a6"
3378
- ]
3379
- ]
3380
- },
3381
- {
3382
- "id": "86888146d3f4b2a6",
3383
- "type": "processdefinition-deploy",
3384
- "z": "ecd7ca447e4d1f47",
3385
- "name": "Deploy Process",
3386
- "engine": "42e6796dddd9d4db",
3387
- "x": 860,
3388
- "y": 120,
3389
- "wires": [
3390
- [
3391
- "af52431420fa7e15"
3392
- ]
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": []
3486
- }
3487
- ]