@5minds/node-red-contrib-processcube 1.0.1 → 1.1.0-develop-df258e-lz2taz5p

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,16 @@
1
1
  [
2
2
  {
3
- "id": "3f916448523ed12b",
3
+ "id": "a23d2e782beb66f4",
4
4
  "type": "tab",
5
- "label": "Node-Inspector",
5
+ "label": "External Task",
6
6
  "disabled": false,
7
7
  "info": "",
8
8
  "env": []
9
9
  },
10
10
  {
11
- "id": "a23d2e782beb66f4",
11
+ "id": "c9ab699769824f2f",
12
12
  "type": "tab",
13
- "label": "External Task Sample",
13
+ "label": "External Task Auth",
14
14
  "disabled": false,
15
15
  "info": "",
16
16
  "env": []
@@ -18,7 +18,15 @@
18
18
  {
19
19
  "id": "fd3c725340de4f74",
20
20
  "type": "tab",
21
- "label": "User Task Sample",
21
+ "label": "User Task",
22
+ "disabled": false,
23
+ "info": "",
24
+ "env": []
25
+ },
26
+ {
27
+ "id": "90fa3991405c6248",
28
+ "type": "tab",
29
+ "label": "User Task Auth",
22
30
  "disabled": false,
23
31
  "info": "",
24
32
  "env": []
@@ -26,7 +34,15 @@
26
34
  {
27
35
  "id": "5d27ab4d14b947e9",
28
36
  "type": "tab",
29
- "label": "Instances Query Sample",
37
+ "label": "Instances Query",
38
+ "disabled": false,
39
+ "info": "",
40
+ "env": []
41
+ },
42
+ {
43
+ "id": "821add3dc3391985",
44
+ "type": "tab",
45
+ "label": "Instance Query Auth",
30
46
  "disabled": false,
31
47
  "info": "",
32
48
  "env": []
@@ -34,7 +50,15 @@
34
50
  {
35
51
  "id": "f28ae6aa3a05069e",
36
52
  "type": "tab",
37
- "label": "Definition Query Sample",
53
+ "label": "Definition Query",
54
+ "disabled": false,
55
+ "info": "",
56
+ "env": []
57
+ },
58
+ {
59
+ "id": "9b69648e1614122a",
60
+ "type": "tab",
61
+ "label": "Definition Query Auth",
38
62
  "disabled": false,
39
63
  "info": "",
40
64
  "env": []
@@ -138,30 +162,6 @@
138
162
  "w": 812,
139
163
  "h": 202
140
164
  },
141
- {
142
- "id": "dd43902998ad7630",
143
- "type": "group",
144
- "z": "3f916448523ed12b",
145
- "style": {
146
- "stroke": "#999999",
147
- "stroke-opacity": "1",
148
- "fill": "none",
149
- "fill-opacity": "1",
150
- "label": true,
151
- "label-position": "nw",
152
- "color": "#a4a4a4"
153
- },
154
- "nodes": [
155
- "3add02d7.7df60e",
156
- "8cf9f9cd.1a6a88",
157
- "4b2a8ca1.de70e4",
158
- "97dbbfedba44a728"
159
- ],
160
- "x": 34,
161
- "y": 59,
162
- "w": 712,
163
- "h": 202
164
- },
165
165
  {
166
166
  "id": "390ad4a596a3c002",
167
167
  "type": "group",
@@ -263,86 +263,215 @@
263
263
  "h": 142
264
264
  },
265
265
  {
266
- "id": "42e6796dddd9d4db",
267
- "type": "processcube-engine-config",
268
- "url": "http://engine:8000"
266
+ "id": "bb94db89ecb73d7b",
267
+ "type": "group",
268
+ "z": "c9ab699769824f2f",
269
+ "style": {
270
+ "stroke": "#999999",
271
+ "stroke-opacity": "1",
272
+ "fill": "none",
273
+ "fill-opacity": "1",
274
+ "label": true,
275
+ "label-position": "nw",
276
+ "color": "#a4a4a4"
277
+ },
278
+ "nodes": [
279
+ "d0e1fa5361aba536",
280
+ "b70555e181d5d470",
281
+ "9680c9f332962628",
282
+ "7a9659b774fdd8cb"
283
+ ],
284
+ "x": 34,
285
+ "y": 79,
286
+ "w": 512,
287
+ "h": 142
269
288
  },
270
289
  {
271
- "id": "3add02d7.7df60e",
272
- "type": "node-inspector",
273
- "z": "3f916448523ed12b",
274
- "g": "dd43902998ad7630",
275
- "inputField": "payload",
276
- "host": "0.0.0.0",
277
- "portNumber": 9229,
278
- "autoStart": false,
279
- "name": "",
280
- "x": 400,
281
- "y": 160,
282
- "wires": []
290
+ "id": "ec665c16c4c4a6e0",
291
+ "type": "group",
292
+ "z": "c9ab699769824f2f",
293
+ "style": {
294
+ "stroke": "#999999",
295
+ "stroke-opacity": "1",
296
+ "fill": "none",
297
+ "fill-opacity": "1",
298
+ "label": true,
299
+ "label-position": "nw",
300
+ "color": "#a4a4a4"
301
+ },
302
+ "nodes": [
303
+ "7af11dd03dd0fc02",
304
+ "658f9b10e93f7a39",
305
+ "1b62418c924f95eb",
306
+ "89b4959f9a4a71e3",
307
+ "7f28bcd6aebeed99",
308
+ "f517338178966789",
309
+ "ccf0bd22b299d625"
310
+ ],
311
+ "x": 34,
312
+ "y": 259,
313
+ "w": 852,
314
+ "h": 202
283
315
  },
284
316
  {
285
- "id": "8cf9f9cd.1a6a88",
286
- "type": "inject",
287
- "z": "3f916448523ed12b",
288
- "g": "dd43902998ad7630",
289
- "name": "",
290
- "props": [
291
- {
292
- "p": "payload"
293
- }
317
+ "id": "8455bc870589205b",
318
+ "type": "group",
319
+ "z": "c9ab699769824f2f",
320
+ "style": {
321
+ "stroke": "#999999",
322
+ "stroke-opacity": "1",
323
+ "fill": "none",
324
+ "fill-opacity": "1",
325
+ "label": true,
326
+ "label-position": "nw",
327
+ "color": "#a4a4a4"
328
+ },
329
+ "nodes": [
330
+ "541a0e06fe48c2b5",
331
+ "c3224cc0ab3d3e80",
332
+ "30f8a269dd7ed601",
333
+ "90dd20b9ed76fbe7",
334
+ "562334e6f0c16931",
335
+ "423ab3a50b55e37e"
294
336
  ],
295
- "repeat": "",
296
- "crontab": "",
297
- "once": false,
298
- "onceDelay": 0.1,
299
- "topic": "",
300
- "payload": "open_inspector",
301
- "payloadType": "str",
302
- "x": 160,
303
- "y": 160,
304
- "wires": [
305
- [
306
- "3add02d7.7df60e"
307
- ]
308
- ]
337
+ "x": 34,
338
+ "y": 499,
339
+ "w": 832,
340
+ "h": 202
309
341
  },
310
342
  {
311
- "id": "4b2a8ca1.de70e4",
312
- "type": "inject",
313
- "z": "3f916448523ed12b",
314
- "g": "dd43902998ad7630",
315
- "name": "",
316
- "props": [
317
- {
318
- "p": "payload"
319
- }
343
+ "id": "4f03c1eb4784b442",
344
+ "type": "group",
345
+ "z": "90fa3991405c6248",
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
+ "81a5b763cddfa482",
357
+ "9bfd3131d8d4529e",
358
+ "fcfec4ae86b4aec2",
359
+ "c4f20aefe585bdad"
320
360
  ],
321
- "repeat": "",
322
- "crontab": "",
323
- "once": false,
324
- "onceDelay": 0.1,
325
- "topic": "",
326
- "payload": "close_inspector",
327
- "payloadType": "str",
328
- "x": 160,
329
- "y": 220,
330
- "wires": [
331
- [
332
- "3add02d7.7df60e"
333
- ]
334
- ]
361
+ "x": 54,
362
+ "y": 39,
363
+ "w": 452,
364
+ "h": 202
335
365
  },
336
366
  {
337
- "id": "97dbbfedba44a728",
338
- "type": "comment",
339
- "z": "3f916448523ed12b",
340
- "g": "dd43902998ad7630",
341
- "name": "Start Node-Inspector on Port 9229 - be sure, that you expose the port from the docker-container",
342
- "info": "",
343
- "x": 390,
344
- "y": 100,
345
- "wires": []
367
+ "id": "a135da7e3b76f6dd",
368
+ "type": "group",
369
+ "z": "90fa3991405c6248",
370
+ "style": {
371
+ "stroke": "#999999",
372
+ "stroke-opacity": "1",
373
+ "fill": "none",
374
+ "fill-opacity": "1",
375
+ "label": true,
376
+ "label-position": "nw",
377
+ "color": "#a4a4a4"
378
+ },
379
+ "nodes": [
380
+ "59f3d5ea3d920f94",
381
+ "682a3e6e49c407c0",
382
+ "30ac2bbbc0d63b17",
383
+ "5c9668cbe4b31919",
384
+ "693e6d63e82ee961",
385
+ "c63cac30d2627c52"
386
+ ],
387
+ "x": 54,
388
+ "y": 279,
389
+ "w": 652,
390
+ "h": 262
391
+ },
392
+ {
393
+ "id": "e17f65347110575e",
394
+ "type": "group",
395
+ "z": "821add3dc3391985",
396
+ "style": {
397
+ "stroke": "#999999",
398
+ "stroke-opacity": "1",
399
+ "fill": "none",
400
+ "fill-opacity": "1",
401
+ "label": true,
402
+ "label-position": "nw",
403
+ "color": "#a4a4a4"
404
+ },
405
+ "nodes": [
406
+ "1591cb53c1f1982a",
407
+ "c2a2b1c1108ee3e1",
408
+ "78828be9c878b621",
409
+ "47a52efd5f9ec550"
410
+ ],
411
+ "x": 34,
412
+ "y": 39,
413
+ "w": 652,
414
+ "h": 142
415
+ },
416
+ {
417
+ "id": "037eeeef4db91107",
418
+ "type": "group",
419
+ "z": "9b69648e1614122a",
420
+ "style": {
421
+ "stroke": "#999999",
422
+ "stroke-opacity": "1",
423
+ "fill": "none",
424
+ "fill-opacity": "1",
425
+ "label": true,
426
+ "label-position": "nw",
427
+ "color": "#a4a4a4"
428
+ },
429
+ "nodes": [
430
+ "2ecd778293bc1e58",
431
+ "7a330fb2934bb4ab",
432
+ "eaa25b48e24cea10",
433
+ "2d2e2586dfed611a"
434
+ ],
435
+ "x": 34,
436
+ "y": 39,
437
+ "w": 592,
438
+ "h": 142
439
+ },
440
+ {
441
+ "id": "437a2209643cfba5",
442
+ "type": "group",
443
+ "z": "9b69648e1614122a",
444
+ "style": {
445
+ "stroke": "#999999",
446
+ "stroke-opacity": "1",
447
+ "fill": "none",
448
+ "fill-opacity": "1",
449
+ "label": true,
450
+ "label-position": "nw",
451
+ "color": "#a4a4a4"
452
+ },
453
+ "nodes": [
454
+ "443f898ac8d21376",
455
+ "ab161eea047e8ce0",
456
+ "6ef8711acb760a7f",
457
+ "8a8d0227dceb9ebb"
458
+ ],
459
+ "x": 34,
460
+ "y": 219,
461
+ "w": 572,
462
+ "h": 142
463
+ },
464
+ {
465
+ "id": "42e6796dddd9d4db",
466
+ "type": "processcube-engine-config",
467
+ "name": "Engine 8000",
468
+ "url": "http://engine:8000"
469
+ },
470
+ {
471
+ "id": "b78932d162d8d468",
472
+ "type": "processcube-engine-config",
473
+ "name": "Engine Auth 8000",
474
+ "url": "http://engine:8000"
346
475
  },
347
476
  {
348
477
  "id": "2991a5e6df2b87d2",
@@ -646,128 +775,592 @@
646
775
  "wires": []
647
776
  },
648
777
  {
649
- "id": "f7a9604a17188737",
650
- "type": "usertask-new-listener",
651
- "z": "fd3c725340de4f74",
652
- "d": true,
653
- "g": "887f3fb69ad1d1fb",
654
- "name": "New User Task",
655
- "engine": "42e6796dddd9d4db",
656
- "multisend": false,
657
- "x": 160,
658
- "y": 120,
778
+ "id": "82533b02fb9a9f04",
779
+ "type": "comment",
780
+ "z": "c9ab699769824f2f",
781
+ "name": "For Testing, deploy \"External-Task-Sample.bpmn\" and start the process.",
782
+ "info": "",
783
+ "x": 300,
784
+ "y": 40,
785
+ "wires": []
786
+ },
787
+ {
788
+ "id": "d0e1fa5361aba536",
789
+ "type": "externaltask-input",
790
+ "z": "c9ab699769824f2f",
791
+ "g": "bb94db89ecb73d7b",
792
+ "name": "Test_Auth",
793
+ "engine": "b78932d162d8d468",
794
+ "topic": "Test_Auth",
795
+ "x": 120,
796
+ "y": 180,
659
797
  "wires": [
660
798
  [
661
- "020d34cd4ab43900"
799
+ "9680c9f332962628"
662
800
  ]
663
801
  ]
664
802
  },
665
803
  {
666
- "id": "020d34cd4ab43900",
667
- "type": "debug",
668
- "z": "fd3c725340de4f74",
669
- "g": "887f3fb69ad1d1fb",
670
- "name": "Show User Task",
671
- "active": true,
672
- "tosidebar": true,
673
- "console": false,
674
- "tostatus": false,
675
- "complete": "payload",
676
- "targetType": "msg",
677
- "statusVal": "",
678
- "statusType": "auto",
679
- "x": 360,
680
- "y": 120,
681
- "wires": []
682
- },
804
+ "id": "b70555e181d5d470",
805
+ "type": "externaltask-output",
806
+ "z": "c9ab699769824f2f",
807
+ "g": "bb94db89ecb73d7b",
808
+ "name": "Test Ende",
809
+ "x": 460,
810
+ "y": 180,
811
+ "wires": []
812
+ },
813
+ {
814
+ "id": "9680c9f332962628",
815
+ "type": "delay",
816
+ "z": "c9ab699769824f2f",
817
+ "g": "bb94db89ecb73d7b",
818
+ "name": "",
819
+ "pauseType": "delay",
820
+ "timeout": "1",
821
+ "timeoutUnits": "seconds",
822
+ "rate": "1",
823
+ "nbRateUnits": "1",
824
+ "rateUnits": "second",
825
+ "randomFirst": "1",
826
+ "randomLast": "5",
827
+ "randomUnits": "seconds",
828
+ "drop": false,
829
+ "allowrate": false,
830
+ "outputs": 1,
831
+ "x": 280,
832
+ "y": 180,
833
+ "wires": [
834
+ [
835
+ "b70555e181d5d470"
836
+ ]
837
+ ]
838
+ },
839
+ {
840
+ "id": "7a9659b774fdd8cb",
841
+ "type": "comment",
842
+ "z": "c9ab699769824f2f",
843
+ "g": "bb94db89ecb73d7b",
844
+ "name": "Simple External Task handling",
845
+ "info": "",
846
+ "x": 180,
847
+ "y": 120,
848
+ "wires": []
849
+ },
850
+ {
851
+ "id": "7af11dd03dd0fc02",
852
+ "type": "externaltask-input",
853
+ "z": "c9ab699769824f2f",
854
+ "g": "ec665c16c4c4a6e0",
855
+ "name": "SampleError_Auth",
856
+ "engine": "b78932d162d8d468",
857
+ "topic": "SampleError_Auth",
858
+ "x": 150,
859
+ "y": 360,
860
+ "wires": [
861
+ [
862
+ "658f9b10e93f7a39"
863
+ ]
864
+ ]
865
+ },
866
+ {
867
+ "id": "658f9b10e93f7a39",
868
+ "type": "delay",
869
+ "z": "c9ab699769824f2f",
870
+ "g": "ec665c16c4c4a6e0",
871
+ "name": "",
872
+ "pauseType": "delay",
873
+ "timeout": "5",
874
+ "timeoutUnits": "seconds",
875
+ "rate": "1",
876
+ "nbRateUnits": "1",
877
+ "rateUnits": "second",
878
+ "randomFirst": "1",
879
+ "randomLast": "5",
880
+ "randomUnits": "seconds",
881
+ "drop": false,
882
+ "allowrate": false,
883
+ "outputs": 1,
884
+ "x": 360,
885
+ "y": 360,
886
+ "wires": [
887
+ [
888
+ "89b4959f9a4a71e3"
889
+ ]
890
+ ]
891
+ },
892
+ {
893
+ "id": "1b62418c924f95eb",
894
+ "type": "catch",
895
+ "z": "c9ab699769824f2f",
896
+ "g": "ec665c16c4c4a6e0",
897
+ "name": "",
898
+ "scope": "group",
899
+ "uncaught": false,
900
+ "x": 550,
901
+ "y": 420,
902
+ "wires": [
903
+ [
904
+ "7f28bcd6aebeed99"
905
+ ]
906
+ ]
907
+ },
908
+ {
909
+ "id": "89b4959f9a4a71e3",
910
+ "type": "function",
911
+ "z": "c9ab699769824f2f",
912
+ "g": "ec665c16c4c4a6e0",
913
+ "name": "raise Error",
914
+ "func": "throw Error(\"hello error\");\n\nreturn msg;",
915
+ "outputs": 1,
916
+ "timeout": 0,
917
+ "noerr": 0,
918
+ "initialize": "",
919
+ "finalize": "",
920
+ "libs": [],
921
+ "x": 550,
922
+ "y": 360,
923
+ "wires": [
924
+ [
925
+ "f517338178966789"
926
+ ]
927
+ ]
928
+ },
929
+ {
930
+ "id": "7f28bcd6aebeed99",
931
+ "type": "externaltask-error",
932
+ "z": "c9ab699769824f2f",
933
+ "g": "ec665c16c4c4a6e0",
934
+ "name": "Send Error to Engine",
935
+ "error": "MyErrorCode",
936
+ "x": 760,
937
+ "y": 420,
938
+ "wires": [
939
+ []
940
+ ]
941
+ },
942
+ {
943
+ "id": "f517338178966789",
944
+ "type": "externaltask-output",
945
+ "z": "c9ab699769824f2f",
946
+ "g": "ec665c16c4c4a6e0",
947
+ "name": "",
948
+ "x": 750,
949
+ "y": 360,
950
+ "wires": []
951
+ },
952
+ {
953
+ "id": "ccf0bd22b299d625",
954
+ "type": "comment",
955
+ "z": "c9ab699769824f2f",
956
+ "g": "ec665c16c4c4a6e0",
957
+ "name": "Error handling with external tasks",
958
+ "info": "",
959
+ "x": 190,
960
+ "y": 300,
961
+ "wires": []
962
+ },
963
+ {
964
+ "id": "541a0e06fe48c2b5",
965
+ "type": "endevent-finished-listener",
966
+ "z": "c9ab699769824f2f",
967
+ "d": true,
968
+ "g": "8455bc870589205b",
969
+ "name": "",
970
+ "engine": "b78932d162d8d468",
971
+ "x": 170,
972
+ "y": 600,
973
+ "wires": [
974
+ [
975
+ "c3224cc0ab3d3e80"
976
+ ]
977
+ ]
978
+ },
979
+ {
980
+ "id": "c3224cc0ab3d3e80",
981
+ "type": "delay",
982
+ "z": "c9ab699769824f2f",
983
+ "g": "8455bc870589205b",
984
+ "name": "",
985
+ "pauseType": "delay",
986
+ "timeout": "5",
987
+ "timeoutUnits": "seconds",
988
+ "rate": "1",
989
+ "nbRateUnits": "1",
990
+ "rateUnits": "second",
991
+ "randomFirst": "1",
992
+ "randomLast": "5",
993
+ "randomUnits": "seconds",
994
+ "drop": false,
995
+ "allowrate": false,
996
+ "outputs": 1,
997
+ "x": 400,
998
+ "y": 600,
999
+ "wires": [
1000
+ [
1001
+ "562334e6f0c16931"
1002
+ ]
1003
+ ]
1004
+ },
1005
+ {
1006
+ "id": "30f8a269dd7ed601",
1007
+ "type": "process-start",
1008
+ "z": "c9ab699769824f2f",
1009
+ "g": "8455bc870589205b",
1010
+ "name": "",
1011
+ "engine": "b78932d162d8d468",
1012
+ "processmodel": "External-Task-Auth-Sample_Process",
1013
+ "startevent": "StartEvent_1",
1014
+ "x": 770,
1015
+ "y": 600,
1016
+ "wires": [
1017
+ []
1018
+ ]
1019
+ },
1020
+ {
1021
+ "id": "90dd20b9ed76fbe7",
1022
+ "type": "inject",
1023
+ "z": "c9ab699769824f2f",
1024
+ "g": "8455bc870589205b",
1025
+ "name": "",
1026
+ "props": [
1027
+ {
1028
+ "p": "payload"
1029
+ }
1030
+ ],
1031
+ "repeat": "",
1032
+ "crontab": "",
1033
+ "once": false,
1034
+ "onceDelay": 0.1,
1035
+ "topic": "",
1036
+ "payload": "start",
1037
+ "payloadType": "str",
1038
+ "x": 430,
1039
+ "y": 660,
1040
+ "wires": [
1041
+ [
1042
+ "562334e6f0c16931"
1043
+ ]
1044
+ ]
1045
+ },
1046
+ {
1047
+ "id": "562334e6f0c16931",
1048
+ "type": "function",
1049
+ "z": "c9ab699769824f2f",
1050
+ "g": "8455bc870589205b",
1051
+ "name": "pre payload",
1052
+ "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\nreturn msg;",
1053
+ "outputs": 1,
1054
+ "timeout": 0,
1055
+ "noerr": 0,
1056
+ "initialize": "",
1057
+ "finalize": "",
1058
+ "libs": [],
1059
+ "x": 590,
1060
+ "y": 600,
1061
+ "wires": [
1062
+ [
1063
+ "30f8a269dd7ed601"
1064
+ ]
1065
+ ]
1066
+ },
1067
+ {
1068
+ "id": "423ab3a50b55e37e",
1069
+ "type": "comment",
1070
+ "z": "c9ab699769824f2f",
1071
+ "g": "8455bc870589205b",
1072
+ "name": "Start of Process and restart if it is finished",
1073
+ "info": "",
1074
+ "x": 220,
1075
+ "y": 540,
1076
+ "wires": []
1077
+ },
1078
+ {
1079
+ "id": "f7a9604a17188737",
1080
+ "type": "usertask-new-listener",
1081
+ "z": "fd3c725340de4f74",
1082
+ "g": "887f3fb69ad1d1fb",
1083
+ "name": "New User Task",
1084
+ "engine": "42e6796dddd9d4db",
1085
+ "multisend": false,
1086
+ "x": 160,
1087
+ "y": 120,
1088
+ "wires": [
1089
+ [
1090
+ "020d34cd4ab43900"
1091
+ ]
1092
+ ]
1093
+ },
1094
+ {
1095
+ "id": "020d34cd4ab43900",
1096
+ "type": "debug",
1097
+ "z": "fd3c725340de4f74",
1098
+ "g": "887f3fb69ad1d1fb",
1099
+ "name": "Show User Task",
1100
+ "active": true,
1101
+ "tosidebar": true,
1102
+ "console": false,
1103
+ "tostatus": false,
1104
+ "complete": "payload",
1105
+ "targetType": "msg",
1106
+ "statusVal": "",
1107
+ "statusType": "auto",
1108
+ "x": 360,
1109
+ "y": 120,
1110
+ "wires": []
1111
+ },
1112
+ {
1113
+ "id": "1db0ae57c1b8486b",
1114
+ "type": "usertask-finished-listener",
1115
+ "z": "fd3c725340de4f74",
1116
+ "g": "887f3fb69ad1d1fb",
1117
+ "name": "Finished User Task",
1118
+ "engine": "42e6796dddd9d4db",
1119
+ "multisend": false,
1120
+ "x": 150,
1121
+ "y": 180,
1122
+ "wires": [
1123
+ [
1124
+ "020d34cd4ab43900"
1125
+ ]
1126
+ ]
1127
+ },
1128
+ {
1129
+ "id": "127bc6e092c5724e",
1130
+ "type": "comment",
1131
+ "z": "fd3c725340de4f74",
1132
+ "g": "887f3fb69ad1d1fb",
1133
+ "name": "User Task Events",
1134
+ "info": "",
1135
+ "x": 140,
1136
+ "y": 60,
1137
+ "wires": []
1138
+ },
1139
+ {
1140
+ "id": "ae0583e83c762956",
1141
+ "type": "usertask-new-listener",
1142
+ "z": "fd3c725340de4f74",
1143
+ "g": "72d3db13edc2486b",
1144
+ "name": "",
1145
+ "engine": "42e6796dddd9d4db",
1146
+ "multisend": true,
1147
+ "x": 160,
1148
+ "y": 360,
1149
+ "wires": [
1150
+ [
1151
+ "a2fb6369b16c12fa"
1152
+ ]
1153
+ ]
1154
+ },
1155
+ {
1156
+ "id": "f7c7682e3a6adaaa",
1157
+ "type": "usertask-input",
1158
+ "z": "fd3c725340de4f74",
1159
+ "g": "72d3db13edc2486b",
1160
+ "name": "",
1161
+ "engine": "42e6796dddd9d4db",
1162
+ "query": "payload",
1163
+ "query_type": "msg",
1164
+ "force_send_array": false,
1165
+ "multisend": false,
1166
+ "x": 380,
1167
+ "y": 420,
1168
+ "wires": [
1169
+ [
1170
+ "8ef39e83173d41e3"
1171
+ ]
1172
+ ]
1173
+ },
1174
+ {
1175
+ "id": "a2fb6369b16c12fa",
1176
+ "type": "function",
1177
+ "z": "fd3c725340de4f74",
1178
+ "g": "72d3db13edc2486b",
1179
+ "name": "query",
1180
+ "func": "msg.payload = {\n flowNodeInstanceId: msg.payload.flowNodeInstanceId,\n flowNodeId: \"user_task\"\n};\n\nreturn msg;",
1181
+ "outputs": 1,
1182
+ "timeout": 0,
1183
+ "noerr": 0,
1184
+ "initialize": "",
1185
+ "finalize": "",
1186
+ "libs": [],
1187
+ "x": 210,
1188
+ "y": 420,
1189
+ "wires": [
1190
+ [
1191
+ "f7c7682e3a6adaaa"
1192
+ ]
1193
+ ]
1194
+ },
1195
+ {
1196
+ "id": "8ef39e83173d41e3",
1197
+ "type": "function",
1198
+ "z": "fd3c725340de4f74",
1199
+ "g": "72d3db13edc2486b",
1200
+ "name": "build result",
1201
+ "func": "msg.payload.result = {\n \"field_01\": \"value 01\",\n \"field_02\": \"value 02\"\n}\nreturn msg;",
1202
+ "outputs": 1,
1203
+ "timeout": 0,
1204
+ "noerr": 0,
1205
+ "initialize": "",
1206
+ "finalize": "",
1207
+ "libs": [],
1208
+ "x": 390,
1209
+ "y": 480,
1210
+ "wires": [
1211
+ [
1212
+ "f524b8cc35d56849"
1213
+ ]
1214
+ ]
1215
+ },
1216
+ {
1217
+ "id": "f524b8cc35d56849",
1218
+ "type": "usertask-output",
1219
+ "z": "fd3c725340de4f74",
1220
+ "g": "72d3db13edc2486b",
1221
+ "name": "",
1222
+ "engine": "42e6796dddd9d4db",
1223
+ "result": "payload.result",
1224
+ "result_type": "msg",
1225
+ "x": 580,
1226
+ "y": 480,
1227
+ "wires": [
1228
+ []
1229
+ ]
1230
+ },
1231
+ {
1232
+ "id": "9fb4017c1d0ac7c9",
1233
+ "type": "comment",
1234
+ "z": "fd3c725340de4f74",
1235
+ "g": "72d3db13edc2486b",
1236
+ "name": "Demo to listen on a new usertask an finish them",
1237
+ "info": "",
1238
+ "x": 240,
1239
+ "y": 300,
1240
+ "wires": []
1241
+ },
683
1242
  {
684
- "id": "1db0ae57c1b8486b",
1243
+ "id": "81a5b763cddfa482",
1244
+ "type": "usertask-new-listener",
1245
+ "z": "90fa3991405c6248",
1246
+ "g": "4f03c1eb4784b442",
1247
+ "name": "New User Task",
1248
+ "engine": "b78932d162d8d468",
1249
+ "multisend": false,
1250
+ "x": 180,
1251
+ "y": 140,
1252
+ "wires": [
1253
+ [
1254
+ "9bfd3131d8d4529e"
1255
+ ]
1256
+ ]
1257
+ },
1258
+ {
1259
+ "id": "9bfd3131d8d4529e",
1260
+ "type": "debug",
1261
+ "z": "90fa3991405c6248",
1262
+ "g": "4f03c1eb4784b442",
1263
+ "name": "Show User Task",
1264
+ "active": true,
1265
+ "tosidebar": true,
1266
+ "console": false,
1267
+ "tostatus": false,
1268
+ "complete": "payload",
1269
+ "targetType": "msg",
1270
+ "statusVal": "",
1271
+ "statusType": "auto",
1272
+ "x": 380,
1273
+ "y": 140,
1274
+ "wires": []
1275
+ },
1276
+ {
1277
+ "id": "fcfec4ae86b4aec2",
685
1278
  "type": "usertask-finished-listener",
686
- "z": "fd3c725340de4f74",
687
- "g": "887f3fb69ad1d1fb",
1279
+ "z": "90fa3991405c6248",
1280
+ "g": "4f03c1eb4784b442",
688
1281
  "name": "Finished User Task",
689
- "engine": "42e6796dddd9d4db",
1282
+ "engine": "b78932d162d8d468",
690
1283
  "multisend": false,
691
- "x": 150,
692
- "y": 180,
1284
+ "x": 170,
1285
+ "y": 200,
693
1286
  "wires": [
694
1287
  [
695
- "020d34cd4ab43900"
1288
+ "9bfd3131d8d4529e"
696
1289
  ]
697
1290
  ]
698
1291
  },
699
1292
  {
700
- "id": "127bc6e092c5724e",
1293
+ "id": "c4f20aefe585bdad",
701
1294
  "type": "comment",
702
- "z": "fd3c725340de4f74",
703
- "g": "887f3fb69ad1d1fb",
1295
+ "z": "90fa3991405c6248",
1296
+ "g": "4f03c1eb4784b442",
704
1297
  "name": "User Task Events",
705
1298
  "info": "",
706
- "x": 140,
707
- "y": 60,
1299
+ "x": 160,
1300
+ "y": 80,
708
1301
  "wires": []
709
1302
  },
710
1303
  {
711
- "id": "ae0583e83c762956",
1304
+ "id": "59f3d5ea3d920f94",
712
1305
  "type": "usertask-new-listener",
713
- "z": "fd3c725340de4f74",
714
- "g": "72d3db13edc2486b",
1306
+ "z": "90fa3991405c6248",
1307
+ "g": "a135da7e3b76f6dd",
715
1308
  "name": "",
716
- "engine": "42e6796dddd9d4db",
1309
+ "engine": "b78932d162d8d468",
717
1310
  "multisend": true,
718
- "x": 160,
719
- "y": 360,
1311
+ "x": 180,
1312
+ "y": 380,
720
1313
  "wires": [
721
1314
  [
722
- "a2fb6369b16c12fa"
1315
+ "30ac2bbbc0d63b17"
723
1316
  ]
724
1317
  ]
725
1318
  },
726
1319
  {
727
- "id": "f7c7682e3a6adaaa",
1320
+ "id": "682a3e6e49c407c0",
728
1321
  "type": "usertask-input",
729
- "z": "fd3c725340de4f74",
730
- "g": "72d3db13edc2486b",
1322
+ "z": "90fa3991405c6248",
1323
+ "g": "a135da7e3b76f6dd",
731
1324
  "name": "",
732
- "engine": "42e6796dddd9d4db",
1325
+ "engine": "b78932d162d8d468",
733
1326
  "query": "payload",
734
1327
  "query_type": "msg",
735
1328
  "force_send_array": false,
736
1329
  "multisend": false,
737
- "x": 380,
738
- "y": 420,
1330
+ "x": 400,
1331
+ "y": 440,
739
1332
  "wires": [
740
1333
  [
741
- "8ef39e83173d41e3"
1334
+ "5c9668cbe4b31919"
742
1335
  ]
743
1336
  ]
744
1337
  },
745
1338
  {
746
- "id": "a2fb6369b16c12fa",
1339
+ "id": "30ac2bbbc0d63b17",
747
1340
  "type": "function",
748
- "z": "fd3c725340de4f74",
749
- "g": "72d3db13edc2486b",
1341
+ "z": "90fa3991405c6248",
1342
+ "g": "a135da7e3b76f6dd",
750
1343
  "name": "query",
751
- "func": "msg.payload = {\n flowNodeInstanceId: msg.payload.flowNodeInstanceId,\n flowNodeId: \"user_task\"\n};\n\nreturn msg;",
1344
+ "func": "msg.payload = {\n flowNodeInstanceId: msg.payload.flowNodeInstanceId,\n flowNodeId: \"user_task_auth\"\n};\n\nreturn msg;",
752
1345
  "outputs": 1,
753
1346
  "timeout": 0,
754
1347
  "noerr": 0,
755
1348
  "initialize": "",
756
1349
  "finalize": "",
757
1350
  "libs": [],
758
- "x": 210,
759
- "y": 420,
1351
+ "x": 230,
1352
+ "y": 440,
760
1353
  "wires": [
761
1354
  [
762
- "f7c7682e3a6adaaa"
1355
+ "682a3e6e49c407c0"
763
1356
  ]
764
1357
  ]
765
1358
  },
766
1359
  {
767
- "id": "8ef39e83173d41e3",
1360
+ "id": "5c9668cbe4b31919",
768
1361
  "type": "function",
769
- "z": "fd3c725340de4f74",
770
- "g": "72d3db13edc2486b",
1362
+ "z": "90fa3991405c6248",
1363
+ "g": "a135da7e3b76f6dd",
771
1364
  "name": "build result",
772
1365
  "func": "msg.payload.result = {\n \"field_01\": \"value 01\",\n \"field_02\": \"value 02\"\n}\nreturn msg;",
773
1366
  "outputs": 1,
@@ -776,38 +1369,38 @@
776
1369
  "initialize": "",
777
1370
  "finalize": "",
778
1371
  "libs": [],
779
- "x": 390,
780
- "y": 480,
1372
+ "x": 410,
1373
+ "y": 500,
781
1374
  "wires": [
782
1375
  [
783
- "f524b8cc35d56849"
1376
+ "693e6d63e82ee961"
784
1377
  ]
785
1378
  ]
786
1379
  },
787
1380
  {
788
- "id": "f524b8cc35d56849",
1381
+ "id": "693e6d63e82ee961",
789
1382
  "type": "usertask-output",
790
- "z": "fd3c725340de4f74",
791
- "g": "72d3db13edc2486b",
1383
+ "z": "90fa3991405c6248",
1384
+ "g": "a135da7e3b76f6dd",
792
1385
  "name": "",
793
- "engine": "42e6796dddd9d4db",
1386
+ "engine": "b78932d162d8d468",
794
1387
  "result": "payload.result",
795
1388
  "result_type": "msg",
796
- "x": 580,
797
- "y": 480,
1389
+ "x": 600,
1390
+ "y": 500,
798
1391
  "wires": [
799
1392
  []
800
1393
  ]
801
1394
  },
802
1395
  {
803
- "id": "9fb4017c1d0ac7c9",
1396
+ "id": "c63cac30d2627c52",
804
1397
  "type": "comment",
805
- "z": "fd3c725340de4f74",
806
- "g": "72d3db13edc2486b",
1398
+ "z": "90fa3991405c6248",
1399
+ "g": "a135da7e3b76f6dd",
807
1400
  "name": "Demo to listen on a new usertask an finish them",
808
1401
  "info": "",
809
- "x": 240,
810
- "y": 300,
1402
+ "x": 260,
1403
+ "y": 320,
811
1404
  "wires": []
812
1405
  },
813
1406
  {
@@ -881,6 +1474,77 @@
881
1474
  "y": 80,
882
1475
  "wires": []
883
1476
  },
1477
+ {
1478
+ "id": "1591cb53c1f1982a",
1479
+ "type": "processinstance-query",
1480
+ "z": "821add3dc3391985",
1481
+ "g": "e17f65347110575e",
1482
+ "name": "",
1483
+ "engine": "b78932d162d8d468",
1484
+ "query": "{\"includeXml\":false}",
1485
+ "query_type": "json",
1486
+ "x": 320,
1487
+ "y": 140,
1488
+ "wires": [
1489
+ [
1490
+ "c2a2b1c1108ee3e1"
1491
+ ]
1492
+ ]
1493
+ },
1494
+ {
1495
+ "id": "c2a2b1c1108ee3e1",
1496
+ "type": "debug",
1497
+ "z": "821add3dc3391985",
1498
+ "g": "e17f65347110575e",
1499
+ "name": "debug 28",
1500
+ "active": true,
1501
+ "tosidebar": true,
1502
+ "console": false,
1503
+ "tostatus": false,
1504
+ "complete": "false",
1505
+ "statusVal": "",
1506
+ "statusType": "auto",
1507
+ "x": 520,
1508
+ "y": 140,
1509
+ "wires": []
1510
+ },
1511
+ {
1512
+ "id": "78828be9c878b621",
1513
+ "type": "inject",
1514
+ "z": "821add3dc3391985",
1515
+ "g": "e17f65347110575e",
1516
+ "name": "",
1517
+ "props": [
1518
+ {
1519
+ "p": "payload"
1520
+ }
1521
+ ],
1522
+ "repeat": "",
1523
+ "crontab": "",
1524
+ "once": false,
1525
+ "onceDelay": 0.1,
1526
+ "topic": "",
1527
+ "payload": "go",
1528
+ "payloadType": "str",
1529
+ "x": 130,
1530
+ "y": 140,
1531
+ "wires": [
1532
+ [
1533
+ "1591cb53c1f1982a"
1534
+ ]
1535
+ ]
1536
+ },
1537
+ {
1538
+ "id": "47a52efd5f9ec550",
1539
+ "type": "comment",
1540
+ "z": "821add3dc3391985",
1541
+ "g": "e17f65347110575e",
1542
+ "name": "Query all processinstances from the engine, see the config of `processinstance-query`",
1543
+ "info": "",
1544
+ "x": 360,
1545
+ "y": 80,
1546
+ "wires": []
1547
+ },
884
1548
  {
885
1549
  "id": "d97caca0ec54a633",
886
1550
  "type": "processdefinition-query",
@@ -1032,5 +1696,157 @@
1032
1696
  "x": 90,
1033
1697
  "y": 260,
1034
1698
  "wires": []
1699
+ },
1700
+ {
1701
+ "id": "2ecd778293bc1e58",
1702
+ "type": "processdefinition-query",
1703
+ "z": "9b69648e1614122a",
1704
+ "g": "037eeeef4db91107",
1705
+ "name": "Query definitions",
1706
+ "engine": "b78932d162d8d468",
1707
+ "query": "{\"includeXml\":false}",
1708
+ "query_type": "json",
1709
+ "models_only": false,
1710
+ "x": 330,
1711
+ "y": 140,
1712
+ "wires": [
1713
+ [
1714
+ "eaa25b48e24cea10"
1715
+ ]
1716
+ ]
1717
+ },
1718
+ {
1719
+ "id": "7a330fb2934bb4ab",
1720
+ "type": "inject",
1721
+ "z": "9b69648e1614122a",
1722
+ "g": "037eeeef4db91107",
1723
+ "name": "",
1724
+ "props": [
1725
+ {
1726
+ "p": "payload"
1727
+ },
1728
+ {
1729
+ "p": "topic",
1730
+ "vt": "str"
1731
+ }
1732
+ ],
1733
+ "repeat": "",
1734
+ "crontab": "",
1735
+ "once": false,
1736
+ "onceDelay": 0.1,
1737
+ "topic": "",
1738
+ "payload": "",
1739
+ "payloadType": "date",
1740
+ "x": 140,
1741
+ "y": 140,
1742
+ "wires": [
1743
+ [
1744
+ "2ecd778293bc1e58"
1745
+ ]
1746
+ ]
1747
+ },
1748
+ {
1749
+ "id": "eaa25b48e24cea10",
1750
+ "type": "debug",
1751
+ "z": "9b69648e1614122a",
1752
+ "g": "037eeeef4db91107",
1753
+ "name": "debug 29",
1754
+ "active": true,
1755
+ "tosidebar": true,
1756
+ "console": false,
1757
+ "tostatus": false,
1758
+ "complete": "false",
1759
+ "statusVal": "",
1760
+ "statusType": "auto",
1761
+ "x": 520,
1762
+ "y": 140,
1763
+ "wires": []
1764
+ },
1765
+ {
1766
+ "id": "2d2e2586dfed611a",
1767
+ "type": "comment",
1768
+ "z": "9b69648e1614122a",
1769
+ "g": "037eeeef4db91107",
1770
+ "name": "Definitions",
1771
+ "info": "",
1772
+ "x": 120,
1773
+ "y": 80,
1774
+ "wires": []
1775
+ },
1776
+ {
1777
+ "id": "443f898ac8d21376",
1778
+ "type": "processdefinition-query",
1779
+ "z": "9b69648e1614122a",
1780
+ "g": "437a2209643cfba5",
1781
+ "name": "Query models",
1782
+ "engine": "b78932d162d8d468",
1783
+ "query": "{\"includeXml\":false}",
1784
+ "query_type": "json",
1785
+ "models_only": true,
1786
+ "x": 320,
1787
+ "y": 320,
1788
+ "wires": [
1789
+ [
1790
+ "6ef8711acb760a7f"
1791
+ ]
1792
+ ]
1793
+ },
1794
+ {
1795
+ "id": "ab161eea047e8ce0",
1796
+ "type": "inject",
1797
+ "z": "9b69648e1614122a",
1798
+ "g": "437a2209643cfba5",
1799
+ "name": "",
1800
+ "props": [
1801
+ {
1802
+ "p": "payload"
1803
+ },
1804
+ {
1805
+ "p": "topic",
1806
+ "vt": "str"
1807
+ }
1808
+ ],
1809
+ "repeat": "",
1810
+ "crontab": "",
1811
+ "once": false,
1812
+ "onceDelay": 0.1,
1813
+ "topic": "",
1814
+ "payload": "",
1815
+ "payloadType": "date",
1816
+ "x": 140,
1817
+ "y": 320,
1818
+ "wires": [
1819
+ [
1820
+ "443f898ac8d21376"
1821
+ ]
1822
+ ]
1823
+ },
1824
+ {
1825
+ "id": "6ef8711acb760a7f",
1826
+ "type": "debug",
1827
+ "z": "9b69648e1614122a",
1828
+ "g": "437a2209643cfba5",
1829
+ "name": "debug 30",
1830
+ "active": true,
1831
+ "tosidebar": true,
1832
+ "console": false,
1833
+ "tostatus": false,
1834
+ "complete": "false",
1835
+ "statusVal": "",
1836
+ "statusType": "auto",
1837
+ "x": 500,
1838
+ "y": 320,
1839
+ "wires": []
1840
+ },
1841
+ {
1842
+ "id": "8a8d0227dceb9ebb",
1843
+ "type": "comment",
1844
+ "z": "9b69648e1614122a",
1845
+ "g": "437a2209643cfba5",
1846
+ "name": "Models",
1847
+ "info": "",
1848
+ "x": 110,
1849
+ "y": 260,
1850
+ "wires": []
1035
1851
  }
1036
1852
  ]