@5minds/node-red-contrib-processcube 1.7.4-feature-6f3f78-m6l0ykww → 1.7.5-develop-106e2c-m6jdhezm
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.processcube/nodered/.config.nodes.json +1 -1
- package/.processcube/nodered/config.js +3 -2
- package/.processcube/nodered/flows.json +216 -84
- package/.processcube/nodered/settings.js +1 -1
- package/README.md +2 -8
- package/doc_generator/generator.js +5 -5
- package/doc_generator/generator_with_swagger.js +78 -80
- package/endevent-finished-listener.html +16 -16
- package/externaltask-error.html +11 -11
- package/externaltask-error.js +24 -25
- package/externaltask-event-listener.html +9 -9
- package/externaltask-input.html +26 -26
- package/externaltask-input.js +10 -14
- package/externaltask-output.html +7 -7
- package/externaltask-output.js +20 -16
- package/message-event-trigger.html +8 -8
- package/message-event-trigger.js +0 -3
- package/package.json +2 -5
- package/process-event-listener.html +74 -74
- package/process-event-listener.js +2 -1
- package/process-start.html +12 -12
- package/process-start.js +3 -6
- package/process-terminate.html +9 -9
- package/process-terminate.js +1 -3
- package/processcube-engine-config.html +8 -8
- package/processcube-engine-config.js +2 -0
- package/processdefinition-deploy.html +9 -9
- package/processdefinition-deploy.js +2 -4
- package/processdefinition-query.html +140 -139
- package/processdefinition-query.js +0 -4
- package/processes/External-Task-Sample.bpmn +20 -0
- package/processinstance-delete.html +46 -48
- package/processinstance-delete.js +9 -24
- package/processinstance-query.html +119 -120
- package/processinstance-query.js +1 -3
- package/signal-event-trigger.html +9 -8
- package/signal-event-trigger.js +0 -3
- package/usertask-event-listener.html +127 -126
- package/usertask-input.html +125 -126
- package/usertask-input.js +1 -3
- package/usertask-output.html +7 -7
- package/usertask-output.js +2 -5
- package/wait-for-usertask.html +164 -173
- package/wait-for-usertask.js +25 -36
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
// let cause of merge custom settings
|
2
3
|
|
3
4
|
let config = {};
|
@@ -5,7 +6,7 @@ let config = {};
|
|
5
6
|
try {
|
6
7
|
config = require('./settings.js');
|
7
8
|
} catch (e) {
|
8
|
-
console.log(
|
9
|
+
console.log(">>>", e);
|
9
10
|
}
|
10
11
|
|
11
12
|
process.on('uncaughtException', (err) => {
|
@@ -14,6 +15,6 @@ process.on('uncaughtException', (err) => {
|
|
14
15
|
|
15
16
|
process.on('unhandledRejection', (reason, promise) => {
|
16
17
|
console.error(`Unhandled Rejection at ${promise} reason: ${reason}`, {});
|
17
|
-
});
|
18
|
+
});
|
18
19
|
|
19
20
|
module.exports = config;
|
@@ -111,6 +111,28 @@
|
|
111
111
|
"info": "",
|
112
112
|
"env": []
|
113
113
|
},
|
114
|
+
{
|
115
|
+
"id": "8eb64bb58f95989d",
|
116
|
+
"type": "subflow",
|
117
|
+
"name": "ETW Error Handling",
|
118
|
+
"info": "",
|
119
|
+
"category": "",
|
120
|
+
"in": [
|
121
|
+
{
|
122
|
+
"x": 80,
|
123
|
+
"y": 80,
|
124
|
+
"wires": [
|
125
|
+
{
|
126
|
+
"id": "b7ddfedf82d8120f"
|
127
|
+
}
|
128
|
+
]
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"out": [],
|
132
|
+
"env": [],
|
133
|
+
"meta": {},
|
134
|
+
"color": "#DDAA99"
|
135
|
+
},
|
114
136
|
{
|
115
137
|
"id": "4c59118134081e05",
|
116
138
|
"type": "group",
|
@@ -159,30 +181,6 @@
|
|
159
181
|
"w": 572,
|
160
182
|
"h": 142
|
161
183
|
},
|
162
|
-
{
|
163
|
-
"id": "70d7a70e375b162a",
|
164
|
-
"type": "group",
|
165
|
-
"z": "a23d2e782beb66f4",
|
166
|
-
"style": {
|
167
|
-
"stroke": "#999999",
|
168
|
-
"stroke-opacity": "1",
|
169
|
-
"fill": "none",
|
170
|
-
"fill-opacity": "1",
|
171
|
-
"label": true,
|
172
|
-
"label-position": "nw",
|
173
|
-
"color": "#a4a4a4"
|
174
|
-
},
|
175
|
-
"nodes": [
|
176
|
-
"2991a5e6df2b87d2",
|
177
|
-
"911fde53bcbb7e3f",
|
178
|
-
"d56bb7cd73fd220c",
|
179
|
-
"15a5f64b9e2e05fc"
|
180
|
-
],
|
181
|
-
"x": 34,
|
182
|
-
"y": 79,
|
183
|
-
"w": 512,
|
184
|
-
"h": 142
|
185
|
-
},
|
186
184
|
{
|
187
185
|
"id": "31cb6729aac0ba46",
|
188
186
|
"type": "group",
|
@@ -206,7 +204,7 @@
|
|
206
204
|
"b49f226ba865e164"
|
207
205
|
],
|
208
206
|
"x": 34,
|
209
|
-
"y":
|
207
|
+
"y": 379,
|
210
208
|
"w": 812,
|
211
209
|
"h": 202
|
212
210
|
},
|
@@ -232,7 +230,7 @@
|
|
232
230
|
"eb96f3128ece1be8"
|
233
231
|
],
|
234
232
|
"x": 34,
|
235
|
-
"y":
|
233
|
+
"y": 619,
|
236
234
|
"w": 832,
|
237
235
|
"h": 202
|
238
236
|
},
|
@@ -553,8 +551,8 @@
|
|
553
551
|
"412d03bddecd4fd4"
|
554
552
|
],
|
555
553
|
"x": 34,
|
556
|
-
"y":
|
557
|
-
"w":
|
554
|
+
"y": 859,
|
555
|
+
"w": 692,
|
558
556
|
"h": 202
|
559
557
|
},
|
560
558
|
{
|
@@ -655,10 +653,39 @@
|
|
655
653
|
"0cf6a2ec7112f5f6"
|
656
654
|
],
|
657
655
|
"x": 34,
|
658
|
-
"y":
|
656
|
+
"y": 1099,
|
659
657
|
"w": 652,
|
660
658
|
"h": 142
|
661
659
|
},
|
660
|
+
{
|
661
|
+
"id": "70d7a70e375b162a",
|
662
|
+
"type": "group",
|
663
|
+
"z": "a23d2e782beb66f4",
|
664
|
+
"style": {
|
665
|
+
"stroke": "#999999",
|
666
|
+
"stroke-opacity": "1",
|
667
|
+
"fill": "none",
|
668
|
+
"fill-opacity": "1",
|
669
|
+
"label": true,
|
670
|
+
"label-position": "nw",
|
671
|
+
"color": "#a4a4a4"
|
672
|
+
},
|
673
|
+
"nodes": [
|
674
|
+
"2991a5e6df2b87d2",
|
675
|
+
"911fde53bcbb7e3f",
|
676
|
+
"15a5f64b9e2e05fc",
|
677
|
+
"c937c772bb4b6a9d",
|
678
|
+
"1b54da9f999c39fd",
|
679
|
+
"a54dbeccaa680ea5",
|
680
|
+
"664cb218bba78642",
|
681
|
+
"17c7bb9f5f18dca0",
|
682
|
+
"d56bb7cd73fd220c"
|
683
|
+
],
|
684
|
+
"x": 34,
|
685
|
+
"y": 79,
|
686
|
+
"w": 912,
|
687
|
+
"h": 262
|
688
|
+
},
|
662
689
|
{
|
663
690
|
"id": "42e6796dddd9d4db",
|
664
691
|
"type": "processcube-engine-config",
|
@@ -671,6 +698,18 @@
|
|
671
698
|
"name": "Engine Auth 8000",
|
672
699
|
"url": "http://engine:8000"
|
673
700
|
},
|
701
|
+
{
|
702
|
+
"id": "b7ddfedf82d8120f",
|
703
|
+
"type": "externaltask-error",
|
704
|
+
"z": "8eb64bb58f95989d",
|
705
|
+
"name": "Subflow handle error",
|
706
|
+
"error": "handleSubFlowError",
|
707
|
+
"x": 240,
|
708
|
+
"y": 80,
|
709
|
+
"wires": [
|
710
|
+
[]
|
711
|
+
]
|
712
|
+
},
|
674
713
|
{
|
675
714
|
"id": "2991a5e6df2b87d2",
|
676
715
|
"type": "externaltask-input",
|
@@ -685,6 +724,7 @@
|
|
685
724
|
"y": 180,
|
686
725
|
"wires": [
|
687
726
|
[
|
727
|
+
"c937c772bb4b6a9d",
|
688
728
|
"d56bb7cd73fd220c"
|
689
729
|
]
|
690
730
|
]
|
@@ -695,36 +735,10 @@
|
|
695
735
|
"z": "a23d2e782beb66f4",
|
696
736
|
"g": "70d7a70e375b162a",
|
697
737
|
"name": "Test Ende",
|
698
|
-
"x":
|
738
|
+
"x": 620,
|
699
739
|
"y": 180,
|
700
740
|
"wires": []
|
701
741
|
},
|
702
|
-
{
|
703
|
-
"id": "d56bb7cd73fd220c",
|
704
|
-
"type": "delay",
|
705
|
-
"z": "a23d2e782beb66f4",
|
706
|
-
"g": "70d7a70e375b162a",
|
707
|
-
"name": "",
|
708
|
-
"pauseType": "delay",
|
709
|
-
"timeout": "1",
|
710
|
-
"timeoutUnits": "seconds",
|
711
|
-
"rate": "1",
|
712
|
-
"nbRateUnits": "1",
|
713
|
-
"rateUnits": "second",
|
714
|
-
"randomFirst": "1",
|
715
|
-
"randomLast": "5",
|
716
|
-
"randomUnits": "seconds",
|
717
|
-
"drop": false,
|
718
|
-
"allowrate": false,
|
719
|
-
"outputs": 1,
|
720
|
-
"x": 280,
|
721
|
-
"y": 180,
|
722
|
-
"wires": [
|
723
|
-
[
|
724
|
-
"911fde53bcbb7e3f"
|
725
|
-
]
|
726
|
-
]
|
727
|
-
},
|
728
742
|
{
|
729
743
|
"id": "18e05d562d48f32d",
|
730
744
|
"type": "externaltask-input",
|
@@ -736,7 +750,7 @@
|
|
736
750
|
"workerConfig": "{}",
|
737
751
|
"workerConfigType": "json",
|
738
752
|
"x": 130,
|
739
|
-
"y":
|
753
|
+
"y": 480,
|
740
754
|
"wires": [
|
741
755
|
[
|
742
756
|
"49aee03a7885fae8"
|
@@ -762,7 +776,7 @@
|
|
762
776
|
"allowrate": false,
|
763
777
|
"outputs": 1,
|
764
778
|
"x": 320,
|
765
|
-
"y":
|
779
|
+
"y": 480,
|
766
780
|
"wires": [
|
767
781
|
[
|
768
782
|
"bd68c4bdc53b8f80"
|
@@ -778,7 +792,7 @@
|
|
778
792
|
"scope": "group",
|
779
793
|
"uncaught": false,
|
780
794
|
"x": 510,
|
781
|
-
"y":
|
795
|
+
"y": 540,
|
782
796
|
"wires": [
|
783
797
|
[
|
784
798
|
"fb87f79852b22e4a"
|
@@ -799,7 +813,7 @@
|
|
799
813
|
"finalize": "",
|
800
814
|
"libs": [],
|
801
815
|
"x": 510,
|
802
|
-
"y":
|
816
|
+
"y": 480,
|
803
817
|
"wires": [
|
804
818
|
[
|
805
819
|
"1ba1e62c9935255f"
|
@@ -814,7 +828,7 @@
|
|
814
828
|
"name": "Send Error to Engine",
|
815
829
|
"error": "MyErrorCode",
|
816
830
|
"x": 720,
|
817
|
-
"y":
|
831
|
+
"y": 540,
|
818
832
|
"wires": [
|
819
833
|
[]
|
820
834
|
]
|
@@ -826,7 +840,7 @@
|
|
826
840
|
"g": "31cb6729aac0ba46",
|
827
841
|
"name": "",
|
828
842
|
"x": 710,
|
829
|
-
"y":
|
843
|
+
"y": 480,
|
830
844
|
"wires": []
|
831
845
|
},
|
832
846
|
{
|
@@ -834,9 +848,9 @@
|
|
834
848
|
"type": "comment",
|
835
849
|
"z": "a23d2e782beb66f4",
|
836
850
|
"g": "70d7a70e375b162a",
|
837
|
-
"name": "Simple External Task handling",
|
851
|
+
"name": "Simple External Task handling - raise an error if payload not empty",
|
838
852
|
"info": "",
|
839
|
-
"x":
|
853
|
+
"x": 300,
|
840
854
|
"y": 120,
|
841
855
|
"wires": []
|
842
856
|
},
|
@@ -848,7 +862,7 @@
|
|
848
862
|
"name": "Error handling with external tasks",
|
849
863
|
"info": "",
|
850
864
|
"x": 190,
|
851
|
-
"y":
|
865
|
+
"y": 420,
|
852
866
|
"wires": []
|
853
867
|
},
|
854
868
|
{
|
@@ -870,7 +884,7 @@
|
|
870
884
|
"name": "",
|
871
885
|
"engine": "42e6796dddd9d4db",
|
872
886
|
"x": 170,
|
873
|
-
"y":
|
887
|
+
"y": 720,
|
874
888
|
"wires": [
|
875
889
|
[
|
876
890
|
"f4011d6a57c6e13f"
|
@@ -896,7 +910,7 @@
|
|
896
910
|
"allowrate": false,
|
897
911
|
"outputs": 1,
|
898
912
|
"x": 400,
|
899
|
-
"y":
|
913
|
+
"y": 720,
|
900
914
|
"wires": [
|
901
915
|
[
|
902
916
|
"18e9e15ef645a908"
|
@@ -913,7 +927,7 @@
|
|
913
927
|
"processmodel": "External-Task-Sample_Process",
|
914
928
|
"startevent": "StartEvent_1",
|
915
929
|
"x": 770,
|
916
|
-
"y":
|
930
|
+
"y": 720,
|
917
931
|
"wires": [
|
918
932
|
[]
|
919
933
|
]
|
@@ -937,7 +951,7 @@
|
|
937
951
|
"payload": "start",
|
938
952
|
"payloadType": "str",
|
939
953
|
"x": 430,
|
940
|
-
"y":
|
954
|
+
"y": 780,
|
941
955
|
"wires": [
|
942
956
|
[
|
943
957
|
"18e9e15ef645a908"
|
@@ -958,7 +972,7 @@
|
|
958
972
|
"finalize": "",
|
959
973
|
"libs": [],
|
960
974
|
"x": 590,
|
961
|
-
"y":
|
975
|
+
"y": 720,
|
962
976
|
"wires": [
|
963
977
|
[
|
964
978
|
"fba605329413c78d"
|
@@ -973,7 +987,7 @@
|
|
973
987
|
"name": "Start of Process and restart if it is finished",
|
974
988
|
"info": "",
|
975
989
|
"x": 220,
|
976
|
-
"y":
|
990
|
+
"y": 660,
|
977
991
|
"wires": []
|
978
992
|
},
|
979
993
|
{
|
@@ -988,7 +1002,7 @@
|
|
988
1002
|
"workerConfig": "{}",
|
989
1003
|
"workerConfigType": "json",
|
990
1004
|
"x": 140,
|
991
|
-
"y":
|
1005
|
+
"y": 960,
|
992
1006
|
"wires": [
|
993
1007
|
[
|
994
1008
|
"f2b869714547df91"
|
@@ -1014,7 +1028,7 @@
|
|
1014
1028
|
"allowrate": false,
|
1015
1029
|
"outputs": 1,
|
1016
1030
|
"x": 400,
|
1017
|
-
"y":
|
1031
|
+
"y": 960,
|
1018
1032
|
"wires": [
|
1019
1033
|
[
|
1020
1034
|
"7a24dd57f7964be1"
|
@@ -1028,7 +1042,7 @@
|
|
1028
1042
|
"g": "73ca179de59cdabf",
|
1029
1043
|
"name": "",
|
1030
1044
|
"x": 600,
|
1031
|
-
"y":
|
1045
|
+
"y": 960,
|
1032
1046
|
"wires": []
|
1033
1047
|
},
|
1034
1048
|
{
|
@@ -1038,8 +1052,8 @@
|
|
1038
1052
|
"g": "73ca179de59cdabf",
|
1039
1053
|
"name": "",
|
1040
1054
|
"error": "",
|
1041
|
-
"x":
|
1042
|
-
"y":
|
1055
|
+
"x": 610,
|
1056
|
+
"y": 1020,
|
1043
1057
|
"wires": [
|
1044
1058
|
[]
|
1045
1059
|
]
|
@@ -1050,10 +1064,10 @@
|
|
1050
1064
|
"z": "a23d2e782beb66f4",
|
1051
1065
|
"g": "73ca179de59cdabf",
|
1052
1066
|
"name": "",
|
1053
|
-
"scope":
|
1067
|
+
"scope": "group",
|
1054
1068
|
"uncaught": false,
|
1055
|
-
"x":
|
1056
|
-
"y":
|
1069
|
+
"x": 410,
|
1070
|
+
"y": 1020,
|
1057
1071
|
"wires": [
|
1058
1072
|
[
|
1059
1073
|
"9be410342a64e57a"
|
@@ -1068,7 +1082,7 @@
|
|
1068
1082
|
"name": "External Task with Topic from ENV",
|
1069
1083
|
"info": "",
|
1070
1084
|
"x": 200,
|
1071
|
-
"y":
|
1085
|
+
"y": 900,
|
1072
1086
|
"wires": []
|
1073
1087
|
},
|
1074
1088
|
{
|
@@ -1083,7 +1097,7 @@
|
|
1083
1097
|
"workerConfig": "{}",
|
1084
1098
|
"workerConfigType": "json",
|
1085
1099
|
"x": 140,
|
1086
|
-
"y":
|
1100
|
+
"y": 1200,
|
1087
1101
|
"wires": [
|
1088
1102
|
[
|
1089
1103
|
"d513d7e0c850c44d"
|
@@ -1109,7 +1123,7 @@
|
|
1109
1123
|
"allowrate": false,
|
1110
1124
|
"outputs": 1,
|
1111
1125
|
"x": 350,
|
1112
|
-
"y":
|
1126
|
+
"y": 1200,
|
1113
1127
|
"wires": [
|
1114
1128
|
[
|
1115
1129
|
"6f6e80c41332e9c1"
|
@@ -1123,7 +1137,7 @@
|
|
1123
1137
|
"g": "be22a2d8eb2e28c4",
|
1124
1138
|
"name": "",
|
1125
1139
|
"x": 570,
|
1126
|
-
"y":
|
1140
|
+
"y": 1200,
|
1127
1141
|
"wires": []
|
1128
1142
|
},
|
1129
1143
|
{
|
@@ -1134,9 +1148,127 @@
|
|
1134
1148
|
"name": "Handle: the_simple_topic",
|
1135
1149
|
"info": "",
|
1136
1150
|
"x": 170,
|
1137
|
-
"y":
|
1151
|
+
"y": 1140,
|
1152
|
+
"wires": []
|
1153
|
+
},
|
1154
|
+
{
|
1155
|
+
"id": "c937c772bb4b6a9d",
|
1156
|
+
"type": "debug",
|
1157
|
+
"z": "a23d2e782beb66f4",
|
1158
|
+
"g": "70d7a70e375b162a",
|
1159
|
+
"name": "debug 3",
|
1160
|
+
"active": true,
|
1161
|
+
"tosidebar": true,
|
1162
|
+
"console": false,
|
1163
|
+
"tostatus": false,
|
1164
|
+
"complete": "false",
|
1165
|
+
"statusVal": "",
|
1166
|
+
"statusType": "auto",
|
1167
|
+
"x": 280,
|
1168
|
+
"y": 240,
|
1138
1169
|
"wires": []
|
1139
1170
|
},
|
1171
|
+
{
|
1172
|
+
"id": "1b54da9f999c39fd",
|
1173
|
+
"type": "switch",
|
1174
|
+
"z": "a23d2e782beb66f4",
|
1175
|
+
"g": "70d7a70e375b162a",
|
1176
|
+
"name": "",
|
1177
|
+
"property": "payload",
|
1178
|
+
"propertyType": "msg",
|
1179
|
+
"rules": [
|
1180
|
+
{
|
1181
|
+
"t": "empty"
|
1182
|
+
},
|
1183
|
+
{
|
1184
|
+
"t": "else"
|
1185
|
+
}
|
1186
|
+
],
|
1187
|
+
"checkall": "true",
|
1188
|
+
"repair": false,
|
1189
|
+
"outputs": 2,
|
1190
|
+
"x": 470,
|
1191
|
+
"y": 180,
|
1192
|
+
"wires": [
|
1193
|
+
[
|
1194
|
+
"911fde53bcbb7e3f"
|
1195
|
+
],
|
1196
|
+
[
|
1197
|
+
"a54dbeccaa680ea5"
|
1198
|
+
]
|
1199
|
+
]
|
1200
|
+
},
|
1201
|
+
{
|
1202
|
+
"id": "a54dbeccaa680ea5",
|
1203
|
+
"type": "function",
|
1204
|
+
"z": "a23d2e782beb66f4",
|
1205
|
+
"g": "70d7a70e375b162a",
|
1206
|
+
"name": "raise Error()",
|
1207
|
+
"func": "throw Error(\"hello error\");\n\nreturn msg;",
|
1208
|
+
"outputs": 1,
|
1209
|
+
"timeout": 0,
|
1210
|
+
"noerr": 0,
|
1211
|
+
"initialize": "",
|
1212
|
+
"finalize": "",
|
1213
|
+
"libs": [],
|
1214
|
+
"x": 630,
|
1215
|
+
"y": 240,
|
1216
|
+
"wires": [
|
1217
|
+
[]
|
1218
|
+
]
|
1219
|
+
},
|
1220
|
+
{
|
1221
|
+
"id": "664cb218bba78642",
|
1222
|
+
"type": "catch",
|
1223
|
+
"z": "a23d2e782beb66f4",
|
1224
|
+
"g": "70d7a70e375b162a",
|
1225
|
+
"name": "",
|
1226
|
+
"scope": "group",
|
1227
|
+
"uncaught": false,
|
1228
|
+
"x": 630,
|
1229
|
+
"y": 300,
|
1230
|
+
"wires": [
|
1231
|
+
[
|
1232
|
+
"17c7bb9f5f18dca0"
|
1233
|
+
]
|
1234
|
+
]
|
1235
|
+
},
|
1236
|
+
{
|
1237
|
+
"id": "17c7bb9f5f18dca0",
|
1238
|
+
"type": "subflow:8eb64bb58f95989d",
|
1239
|
+
"z": "a23d2e782beb66f4",
|
1240
|
+
"g": "70d7a70e375b162a",
|
1241
|
+
"name": "",
|
1242
|
+
"x": 830,
|
1243
|
+
"y": 300,
|
1244
|
+
"wires": []
|
1245
|
+
},
|
1246
|
+
{
|
1247
|
+
"id": "d56bb7cd73fd220c",
|
1248
|
+
"type": "delay",
|
1249
|
+
"z": "a23d2e782beb66f4",
|
1250
|
+
"g": "70d7a70e375b162a",
|
1251
|
+
"name": "",
|
1252
|
+
"pauseType": "delay",
|
1253
|
+
"timeout": "5",
|
1254
|
+
"timeoutUnits": "seconds",
|
1255
|
+
"rate": "1",
|
1256
|
+
"nbRateUnits": "1",
|
1257
|
+
"rateUnits": "second",
|
1258
|
+
"randomFirst": "1",
|
1259
|
+
"randomLast": "5",
|
1260
|
+
"randomUnits": "seconds",
|
1261
|
+
"drop": false,
|
1262
|
+
"allowrate": false,
|
1263
|
+
"outputs": 1,
|
1264
|
+
"x": 300,
|
1265
|
+
"y": 180,
|
1266
|
+
"wires": [
|
1267
|
+
[
|
1268
|
+
"1b54da9f999c39fd"
|
1269
|
+
]
|
1270
|
+
]
|
1271
|
+
},
|
1140
1272
|
{
|
1141
1273
|
"id": "82533b02fb9a9f04",
|
1142
1274
|
"type": "comment",
|
@@ -383,7 +383,7 @@ module.exports = {
|
|
383
383
|
|
384
384
|
header: {
|
385
385
|
title: ' powers by Node-RED',
|
386
|
-
image:
|
386
|
+
image: "/data/static/ProcessCube_Logo.svg",
|
387
387
|
url: 'https://processcube.io', // optional url to make the header text/image a link to this url
|
388
388
|
},
|
389
389
|
palette: {
|
package/README.md
CHANGED
@@ -25,19 +25,13 @@ To install and run the Node-RED flows, follow these steps:
|
|
25
25
|
cd processcube_nodered
|
26
26
|
```
|
27
27
|
|
28
|
-
3.
|
29
|
-
|
30
|
-
```bash
|
31
|
-
npm install
|
32
|
-
```
|
33
|
-
|
34
|
-
4. Build the Docker containers:
|
28
|
+
3. Build the Docker containers:
|
35
29
|
|
36
30
|
```bash
|
37
31
|
docker-compose build
|
38
32
|
```
|
39
33
|
|
40
|
-
|
34
|
+
4. Start the Docker containers:
|
41
35
|
|
42
36
|
```bash
|
43
37
|
docker-compose up -d
|
@@ -1,14 +1,14 @@
|
|
1
1
|
const Mustache = require('mustache');
|
2
2
|
const fs = require('fs');
|
3
3
|
|
4
|
-
const swaggerFilename = '../../ProcessCube.Engine/docs/swagger/swagger.json';
|
4
|
+
const swaggerFilename = '../../ProcessCube.Engine/docs/swagger/swagger.json'; // Dateiname der Swagger-Datei
|
5
5
|
|
6
6
|
const swaggerJson = JSON.parse(fs.readFileSync(swaggerFilename, 'utf-8'));
|
7
7
|
|
8
8
|
//console.log(Object.keys(swaggerJson.paths));
|
9
9
|
//return
|
10
10
|
|
11
|
-
const apiPath = '/process_instances/query';
|
11
|
+
const apiPath = '/process_instances/query'; // Die API-Route, die du dokumentieren möchtest
|
12
12
|
const routeData = swaggerJson.paths[apiPath];
|
13
13
|
|
14
14
|
if (routeData) {
|
@@ -20,14 +20,14 @@ if (routeData) {
|
|
20
20
|
// API-Route-Information vorbereiten
|
21
21
|
const apiRouteData = {
|
22
22
|
path: apiPath,
|
23
|
-
method: Object.keys(routeData)[0],
|
23
|
+
method: Object.keys(routeData)[0], // z.B. GET, POST, etc.
|
24
24
|
summary: routeData[Object.keys(routeData)[0]].summary,
|
25
25
|
description: routeData[Object.keys(routeData)[0]].description,
|
26
26
|
parameters: routeData[Object.keys(routeData)[0]].parameters || [],
|
27
27
|
responses: Object.entries(routeData[Object.keys(routeData)[0]].responses).map(([status, response]) => ({
|
28
28
|
status,
|
29
|
-
description: response.description
|
30
|
-
}))
|
29
|
+
description: response.description
|
30
|
+
}))
|
31
31
|
};
|
32
32
|
|
33
33
|
// Mustache-Template einlesen
|