@5minds/node-red-contrib-processcube 0.3.5-feature-1092e6-lxhvslzu → 0.3.5-feature-c8c609-lxi2vjv1
Sign up to get free protection for your applications and to get access to all the features.
- package/nodered/.node-red-contrib-processcube-flows.json.backup +799 -9
- package/nodered/node-red-contrib-processcube-flows.json +826 -9
- package/nodered/package.json +1 -1
- package/package.json +2 -1
- package/processes/SampleUserTask.bpmn +34 -14
- package/usertask-input.html +10 -2
- package/usertask-input.js +15 -14
- package/usertask-new-listener.html +39 -0
- package/usertask-new-listener.js +44 -0
- package/usertask-output.js +12 -7
@@ -15,6 +15,14 @@
|
|
15
15
|
"info": "",
|
16
16
|
"env": []
|
17
17
|
},
|
18
|
+
{
|
19
|
+
"id": "b195bc3ca2e1a665",
|
20
|
+
"type": "tab",
|
21
|
+
"label": "Dashboard Symrise",
|
22
|
+
"disabled": false,
|
23
|
+
"info": "",
|
24
|
+
"env": []
|
25
|
+
},
|
18
26
|
{
|
19
27
|
"id": "405f8c703368777c",
|
20
28
|
"type": "group",
|
@@ -34,18 +42,198 @@
|
|
34
42
|
"846c5269df75c7a1",
|
35
43
|
"4267576c32c782ec",
|
36
44
|
"68cf69be67688af6",
|
37
|
-
"bcfb8893adeb57ed"
|
45
|
+
"bcfb8893adeb57ed",
|
46
|
+
"325156d6b8bfc4b6"
|
38
47
|
],
|
39
48
|
"x": 34,
|
40
49
|
"y": 19,
|
41
|
-
"w":
|
50
|
+
"w": 1092,
|
42
51
|
"h": 222
|
43
52
|
},
|
53
|
+
{
|
54
|
+
"id": "09cdc14cfb8ad687",
|
55
|
+
"type": "group",
|
56
|
+
"z": "b195bc3ca2e1a665",
|
57
|
+
"style": {
|
58
|
+
"stroke": "#999999",
|
59
|
+
"stroke-opacity": "1",
|
60
|
+
"fill": "none",
|
61
|
+
"fill-opacity": "1",
|
62
|
+
"label": true,
|
63
|
+
"label-position": "nw",
|
64
|
+
"color": "#a4a4a4"
|
65
|
+
},
|
66
|
+
"nodes": [
|
67
|
+
"0f5978f327b01bfb",
|
68
|
+
"dbec84a2543dbe7e",
|
69
|
+
"c73156ccd3cd2a48",
|
70
|
+
"7c13c0a3b8824a63",
|
71
|
+
"786bf9ed5078de92",
|
72
|
+
"69723e56fb97b6c1",
|
73
|
+
"d5874ba4dd992935",
|
74
|
+
"71196d7ab2204d95",
|
75
|
+
"6ce155bbaaba083f",
|
76
|
+
"1d5b0759c3226e37",
|
77
|
+
"97afbbf01ec1cd88",
|
78
|
+
"2b3f33b7a9dceb49",
|
79
|
+
"a61cb4c20f79d872"
|
80
|
+
],
|
81
|
+
"x": 14,
|
82
|
+
"y": 59,
|
83
|
+
"w": 1012,
|
84
|
+
"h": 282
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"id": "ec36901abb138306",
|
88
|
+
"type": "group",
|
89
|
+
"z": "b195bc3ca2e1a665",
|
90
|
+
"style": {
|
91
|
+
"stroke": "#999999",
|
92
|
+
"stroke-opacity": "1",
|
93
|
+
"fill": "none",
|
94
|
+
"fill-opacity": "1",
|
95
|
+
"label": true,
|
96
|
+
"label-position": "nw",
|
97
|
+
"color": "#a4a4a4"
|
98
|
+
},
|
99
|
+
"nodes": [
|
100
|
+
"1224ebb8edb477d2",
|
101
|
+
"05284831924ef310",
|
102
|
+
"99475ac148f6484b",
|
103
|
+
"5a61ca5b5a13aa8d",
|
104
|
+
"ebd67a338575690d",
|
105
|
+
"1497b762d2ac1723",
|
106
|
+
"64068e75e541a72e",
|
107
|
+
"b8ac2a6ff7cc5ef1",
|
108
|
+
"493500b42d8d0f5b",
|
109
|
+
"34984ae3f4e83b0b",
|
110
|
+
"8e2a2f993ee7156a",
|
111
|
+
"c06d872a4718b6da"
|
112
|
+
],
|
113
|
+
"x": 14,
|
114
|
+
"y": 379,
|
115
|
+
"w": 952,
|
116
|
+
"h": 322
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"id": "f29182f397cab86b",
|
120
|
+
"type": "group",
|
121
|
+
"z": "fd3c725340de4f74",
|
122
|
+
"style": {
|
123
|
+
"stroke": "#999999",
|
124
|
+
"stroke-opacity": "1",
|
125
|
+
"fill": "none",
|
126
|
+
"fill-opacity": "1",
|
127
|
+
"label": true,
|
128
|
+
"label-position": "nw",
|
129
|
+
"color": "#a4a4a4"
|
130
|
+
},
|
131
|
+
"nodes": [
|
132
|
+
"3011d9be5207350a",
|
133
|
+
"aa3ca456ddf1a7bd",
|
134
|
+
"a2b09670ce6219e3"
|
135
|
+
],
|
136
|
+
"x": 34,
|
137
|
+
"y": 259,
|
138
|
+
"w": 482,
|
139
|
+
"h": 162
|
140
|
+
},
|
44
141
|
{
|
45
142
|
"id": "d042a4c68f51d6ab",
|
46
143
|
"type": "processcube-engine-config",
|
47
144
|
"url": "http://engine:8000"
|
48
145
|
},
|
146
|
+
{
|
147
|
+
"id": "8e2205abbb41495b",
|
148
|
+
"type": "ui-group",
|
149
|
+
"name": "My Group",
|
150
|
+
"page": "b4dcca3f3d895ff7",
|
151
|
+
"width": "12",
|
152
|
+
"height": "1",
|
153
|
+
"order": 1,
|
154
|
+
"showTitle": false,
|
155
|
+
"className": "",
|
156
|
+
"visible": "true",
|
157
|
+
"disabled": "false"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"id": "26a45d43c064bdb6",
|
161
|
+
"type": "ui-base",
|
162
|
+
"name": "My Dashboard",
|
163
|
+
"path": "/dashboard",
|
164
|
+
"includeClientData": true,
|
165
|
+
"acceptsClientConfig": [
|
166
|
+
"ui-notification",
|
167
|
+
"ui-control"
|
168
|
+
],
|
169
|
+
"showPathInSidebar": true,
|
170
|
+
"navigationStyle": "default",
|
171
|
+
"titleBarStyle": "default"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"id": "5403f00c961584ab",
|
175
|
+
"type": "ui-group",
|
176
|
+
"name": "Meine spezieller Dynamic-Form",
|
177
|
+
"page": "540bda48de1fe22d",
|
178
|
+
"width": "12",
|
179
|
+
"height": "1",
|
180
|
+
"order": 1,
|
181
|
+
"showTitle": false,
|
182
|
+
"className": "",
|
183
|
+
"visible": "true",
|
184
|
+
"disabled": "false"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"id": "b4dcca3f3d895ff7",
|
188
|
+
"type": "ui-page",
|
189
|
+
"name": "Prozessliste",
|
190
|
+
"ui": "26a45d43c064bdb6",
|
191
|
+
"path": "/Prozessliste",
|
192
|
+
"icon": "home",
|
193
|
+
"layout": "grid",
|
194
|
+
"theme": "7175f012d8e51857",
|
195
|
+
"order": 2,
|
196
|
+
"className": "",
|
197
|
+
"visible": "true",
|
198
|
+
"disabled": "false"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"id": "540bda48de1fe22d",
|
202
|
+
"type": "ui-page",
|
203
|
+
"name": "UserTask",
|
204
|
+
"ui": "26a45d43c064bdb6",
|
205
|
+
"path": "/UserTask",
|
206
|
+
"icon": "home",
|
207
|
+
"layout": "grid",
|
208
|
+
"theme": "7175f012d8e51857",
|
209
|
+
"order": 1,
|
210
|
+
"className": "",
|
211
|
+
"visible": true,
|
212
|
+
"disabled": "false"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"id": "7175f012d8e51857",
|
216
|
+
"type": "ui-theme",
|
217
|
+
"name": "Default Theme",
|
218
|
+
"colors": {
|
219
|
+
"surface": "#ffffff",
|
220
|
+
"primary": "#1f517f",
|
221
|
+
"bgPage": "#eeeeee",
|
222
|
+
"groupBg": "#ffffff",
|
223
|
+
"groupOutline": "#cccccc"
|
224
|
+
},
|
225
|
+
"sizes": {
|
226
|
+
"pagePadding": "12px",
|
227
|
+
"groupGap": "12px",
|
228
|
+
"groupBorderRadius": "4px",
|
229
|
+
"widgetGap": "12px"
|
230
|
+
}
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"id": "9d1144e1dd0a70e3",
|
234
|
+
"type": "processcube-engine-config",
|
235
|
+
"url": "http://localhost:56000"
|
236
|
+
},
|
49
237
|
{
|
50
238
|
"id": "84f18cf9bf25b858",
|
51
239
|
"type": "openApi-red",
|
@@ -917,7 +1105,8 @@
|
|
917
1105
|
"g": "405f8c703368777c",
|
918
1106
|
"name": "",
|
919
1107
|
"engine": "d042a4c68f51d6ab",
|
920
|
-
"
|
1108
|
+
"multisend": true,
|
1109
|
+
"x": 540,
|
921
1110
|
"y": 140,
|
922
1111
|
"wires": [
|
923
1112
|
[
|
@@ -939,7 +1128,7 @@
|
|
939
1128
|
"complete": "false",
|
940
1129
|
"statusVal": "",
|
941
1130
|
"statusType": "auto",
|
942
|
-
"x":
|
1131
|
+
"x": 800,
|
943
1132
|
"y": 80,
|
944
1133
|
"wires": []
|
945
1134
|
},
|
@@ -949,14 +1138,14 @@
|
|
949
1138
|
"z": "fd3c725340de4f74",
|
950
1139
|
"g": "405f8c703368777c",
|
951
1140
|
"name": "function 2",
|
952
|
-
"func": "
|
1141
|
+
"func": "const result = {};\n\nmsg.payload.userTask.userTaskConfig.formFields.forEach(function(element) {\n result[element.id] = `Test for ${element.label}`; \n});\n\nmsg.payload[\"formData\"] = result;\n\nreturn msg;",
|
953
1142
|
"outputs": 1,
|
954
1143
|
"timeout": 0,
|
955
1144
|
"noerr": 0,
|
956
1145
|
"initialize": "",
|
957
1146
|
"finalize": "",
|
958
1147
|
"libs": [],
|
959
|
-
"x":
|
1148
|
+
"x": 800,
|
960
1149
|
"y": 140,
|
961
1150
|
"wires": [
|
962
1151
|
[
|
@@ -972,7 +1161,7 @@
|
|
972
1161
|
"g": "405f8c703368777c",
|
973
1162
|
"name": "",
|
974
1163
|
"engine": "d042a4c68f51d6ab",
|
975
|
-
"x":
|
1164
|
+
"x": 1020,
|
976
1165
|
"y": 140,
|
977
1166
|
"wires": []
|
978
1167
|
},
|
@@ -989,7 +1178,7 @@
|
|
989
1178
|
"complete": "false",
|
990
1179
|
"statusVal": "",
|
991
1180
|
"statusType": "auto",
|
992
|
-
"x":
|
1181
|
+
"x": 1000,
|
993
1182
|
"y": 200,
|
994
1183
|
"wires": []
|
995
1184
|
},
|
@@ -1000,8 +1189,609 @@
|
|
1000
1189
|
"g": "405f8c703368777c",
|
1001
1190
|
"name": "Beispiel für UserTask",
|
1002
1191
|
"info": "",
|
1003
|
-
"x":
|
1192
|
+
"x": 370,
|
1004
1193
|
"y": 60,
|
1005
1194
|
"wires": []
|
1195
|
+
},
|
1196
|
+
{
|
1197
|
+
"id": "3011d9be5207350a",
|
1198
|
+
"type": "usertask-new-listener",
|
1199
|
+
"z": "fd3c725340de4f74",
|
1200
|
+
"g": "f29182f397cab86b",
|
1201
|
+
"name": "",
|
1202
|
+
"engine": "9d1144e1dd0a70e3",
|
1203
|
+
"multisend": false,
|
1204
|
+
"x": 160,
|
1205
|
+
"y": 380,
|
1206
|
+
"wires": [
|
1207
|
+
[
|
1208
|
+
"aa3ca456ddf1a7bd"
|
1209
|
+
]
|
1210
|
+
]
|
1211
|
+
},
|
1212
|
+
{
|
1213
|
+
"id": "aa3ca456ddf1a7bd",
|
1214
|
+
"type": "debug",
|
1215
|
+
"z": "fd3c725340de4f74",
|
1216
|
+
"g": "f29182f397cab86b",
|
1217
|
+
"name": "debug 12",
|
1218
|
+
"active": true,
|
1219
|
+
"tosidebar": true,
|
1220
|
+
"console": false,
|
1221
|
+
"tostatus": false,
|
1222
|
+
"complete": "false",
|
1223
|
+
"statusVal": "",
|
1224
|
+
"statusType": "auto",
|
1225
|
+
"x": 410,
|
1226
|
+
"y": 380,
|
1227
|
+
"wires": []
|
1228
|
+
},
|
1229
|
+
{
|
1230
|
+
"id": "a2b09670ce6219e3",
|
1231
|
+
"type": "comment",
|
1232
|
+
"z": "fd3c725340de4f74",
|
1233
|
+
"g": "f29182f397cab86b",
|
1234
|
+
"name": "Listener für neue UserTasks",
|
1235
|
+
"info": "",
|
1236
|
+
"x": 180,
|
1237
|
+
"y": 300,
|
1238
|
+
"wires": []
|
1239
|
+
},
|
1240
|
+
{
|
1241
|
+
"id": "325156d6b8bfc4b6",
|
1242
|
+
"type": "inject",
|
1243
|
+
"z": "fd3c725340de4f74",
|
1244
|
+
"g": "405f8c703368777c",
|
1245
|
+
"name": "SampleUserTask_Process:Activity_0ljiko7",
|
1246
|
+
"props": [
|
1247
|
+
{
|
1248
|
+
"p": "payload"
|
1249
|
+
}
|
1250
|
+
],
|
1251
|
+
"repeat": "",
|
1252
|
+
"crontab": "",
|
1253
|
+
"once": false,
|
1254
|
+
"onceDelay": 0.1,
|
1255
|
+
"topic": "",
|
1256
|
+
"payload": "{\"processModelId\":\"SampleUserTask_Process\",\"flowNodeId\":\"Activity_0ljiko7\",\"flowNodeType\":\"bpmn:UserTask\",\"state\":\"suspended\"}",
|
1257
|
+
"payloadType": "json",
|
1258
|
+
"x": 240,
|
1259
|
+
"y": 140,
|
1260
|
+
"wires": [
|
1261
|
+
[
|
1262
|
+
"ec0be0ef92746967"
|
1263
|
+
]
|
1264
|
+
]
|
1265
|
+
},
|
1266
|
+
{
|
1267
|
+
"id": "0f5978f327b01bfb",
|
1268
|
+
"type": "ui-table",
|
1269
|
+
"z": "b195bc3ca2e1a665",
|
1270
|
+
"g": "09cdc14cfb8ad687",
|
1271
|
+
"group": "8e2205abbb41495b",
|
1272
|
+
"name": "Auftrage",
|
1273
|
+
"label": "text",
|
1274
|
+
"order": 1,
|
1275
|
+
"width": "0",
|
1276
|
+
"height": "0",
|
1277
|
+
"maxrows": 0,
|
1278
|
+
"passthru": false,
|
1279
|
+
"autocols": true,
|
1280
|
+
"showSearch": true,
|
1281
|
+
"selectionType": "click",
|
1282
|
+
"columns": [],
|
1283
|
+
"x": 540,
|
1284
|
+
"y": 160,
|
1285
|
+
"wires": [
|
1286
|
+
[
|
1287
|
+
"69723e56fb97b6c1"
|
1288
|
+
]
|
1289
|
+
]
|
1290
|
+
},
|
1291
|
+
{
|
1292
|
+
"id": "dbec84a2543dbe7e",
|
1293
|
+
"type": "http request",
|
1294
|
+
"z": "b195bc3ca2e1a665",
|
1295
|
+
"g": "09cdc14cfb8ad687",
|
1296
|
+
"name": "",
|
1297
|
+
"method": "GET",
|
1298
|
+
"ret": "obj",
|
1299
|
+
"paytoqs": "ignore",
|
1300
|
+
"url": "http://localhost:56000/atlas_engine/api/v1/flow_node_instances?flowNodeType=bpmn%3AUserTask&state=suspended",
|
1301
|
+
"tls": "",
|
1302
|
+
"persist": false,
|
1303
|
+
"proxy": "",
|
1304
|
+
"insecureHTTPParser": false,
|
1305
|
+
"authType": "bearer",
|
1306
|
+
"senderr": false,
|
1307
|
+
"headers": [],
|
1308
|
+
"x": 290,
|
1309
|
+
"y": 220,
|
1310
|
+
"wires": [
|
1311
|
+
[
|
1312
|
+
"c73156ccd3cd2a48"
|
1313
|
+
]
|
1314
|
+
]
|
1315
|
+
},
|
1316
|
+
{
|
1317
|
+
"id": "c73156ccd3cd2a48",
|
1318
|
+
"type": "function",
|
1319
|
+
"z": "b195bc3ca2e1a665",
|
1320
|
+
"g": "09cdc14cfb8ad687",
|
1321
|
+
"name": "Felder filtern",
|
1322
|
+
"func": "const table = [];\n\nmsg.payload.flowNodeInstances.forEach(function(element) {\n const row = {\n \"flowNodeName\": element.flowNodeName, \n \"state\": element.state,\n \"flowNodeInstanceId\": element.flowNodeInstanceId,\n \"startedAt\": element.startedAt\n }\n\n if (element.state == \"suspended\") {\n row[\"action\"] = \"do it\";\n } else {\n row[\"action\"] = \"nope ;-)\";\n }\n\n table.push(row);\n});;\n\nmsg.payload = table;\nreturn msg;",
|
1323
|
+
"outputs": 1,
|
1324
|
+
"timeout": 0,
|
1325
|
+
"noerr": 0,
|
1326
|
+
"initialize": "",
|
1327
|
+
"finalize": "",
|
1328
|
+
"libs": [],
|
1329
|
+
"x": 370,
|
1330
|
+
"y": 160,
|
1331
|
+
"wires": [
|
1332
|
+
[
|
1333
|
+
"0f5978f327b01bfb"
|
1334
|
+
]
|
1335
|
+
]
|
1336
|
+
},
|
1337
|
+
{
|
1338
|
+
"id": "7c13c0a3b8824a63",
|
1339
|
+
"type": "ui-control",
|
1340
|
+
"z": "b195bc3ca2e1a665",
|
1341
|
+
"g": "09cdc14cfb8ad687",
|
1342
|
+
"name": "Seite navigieren",
|
1343
|
+
"ui": "26a45d43c064bdb6",
|
1344
|
+
"events": "all",
|
1345
|
+
"x": 760,
|
1346
|
+
"y": 300,
|
1347
|
+
"wires": [
|
1348
|
+
[
|
1349
|
+
"786bf9ed5078de92"
|
1350
|
+
]
|
1351
|
+
]
|
1352
|
+
},
|
1353
|
+
{
|
1354
|
+
"id": "786bf9ed5078de92",
|
1355
|
+
"type": "debug",
|
1356
|
+
"z": "b195bc3ca2e1a665",
|
1357
|
+
"g": "09cdc14cfb8ad687",
|
1358
|
+
"name": "debug 4",
|
1359
|
+
"active": true,
|
1360
|
+
"tosidebar": true,
|
1361
|
+
"console": false,
|
1362
|
+
"tostatus": false,
|
1363
|
+
"complete": "false",
|
1364
|
+
"statusVal": "",
|
1365
|
+
"statusType": "auto",
|
1366
|
+
"x": 920,
|
1367
|
+
"y": 300,
|
1368
|
+
"wires": []
|
1369
|
+
},
|
1370
|
+
{
|
1371
|
+
"id": "69723e56fb97b6c1",
|
1372
|
+
"type": "switch",
|
1373
|
+
"z": "b195bc3ca2e1a665",
|
1374
|
+
"g": "09cdc14cfb8ad687",
|
1375
|
+
"name": "",
|
1376
|
+
"property": "payload.action",
|
1377
|
+
"propertyType": "msg",
|
1378
|
+
"rules": [
|
1379
|
+
{
|
1380
|
+
"t": "eq",
|
1381
|
+
"v": "do it",
|
1382
|
+
"vt": "str"
|
1383
|
+
}
|
1384
|
+
],
|
1385
|
+
"checkall": "true",
|
1386
|
+
"repair": false,
|
1387
|
+
"outputs": 1,
|
1388
|
+
"x": 530,
|
1389
|
+
"y": 220,
|
1390
|
+
"wires": [
|
1391
|
+
[
|
1392
|
+
"d5874ba4dd992935",
|
1393
|
+
"1d5b0759c3226e37"
|
1394
|
+
]
|
1395
|
+
]
|
1396
|
+
},
|
1397
|
+
{
|
1398
|
+
"id": "d5874ba4dd992935",
|
1399
|
+
"type": "function",
|
1400
|
+
"z": "b195bc3ca2e1a665",
|
1401
|
+
"g": "09cdc14cfb8ad687",
|
1402
|
+
"name": "Seite UserTask",
|
1403
|
+
"func": "msg.payload = { \n page: \"UserTask\",\n query: {\n flowNodeName: msg.payload.flowNodeName,\n flowNodeInstanceId: msg.payload.flowNodeInstanceId,\n state: msg.payload.state,\n action: msg.payload.action\n }\n};\nreturn msg;",
|
1404
|
+
"outputs": 1,
|
1405
|
+
"timeout": 0,
|
1406
|
+
"noerr": 0,
|
1407
|
+
"initialize": "",
|
1408
|
+
"finalize": "",
|
1409
|
+
"libs": [],
|
1410
|
+
"x": 560,
|
1411
|
+
"y": 300,
|
1412
|
+
"wires": [
|
1413
|
+
[
|
1414
|
+
"7c13c0a3b8824a63"
|
1415
|
+
]
|
1416
|
+
]
|
1417
|
+
},
|
1418
|
+
{
|
1419
|
+
"id": "71196d7ab2204d95",
|
1420
|
+
"type": "ui-button",
|
1421
|
+
"z": "b195bc3ca2e1a665",
|
1422
|
+
"g": "09cdc14cfb8ad687",
|
1423
|
+
"group": "8e2205abbb41495b",
|
1424
|
+
"name": "",
|
1425
|
+
"label": "Aufgaben laden",
|
1426
|
+
"order": 2,
|
1427
|
+
"width": 0,
|
1428
|
+
"height": 0,
|
1429
|
+
"emulateClick": false,
|
1430
|
+
"tooltip": "",
|
1431
|
+
"color": "",
|
1432
|
+
"bgcolor": "",
|
1433
|
+
"className": "",
|
1434
|
+
"icon": "",
|
1435
|
+
"iconPosition": "left",
|
1436
|
+
"payload": "",
|
1437
|
+
"payloadType": "str",
|
1438
|
+
"topic": "topic",
|
1439
|
+
"topicType": "msg",
|
1440
|
+
"x": 120,
|
1441
|
+
"y": 160,
|
1442
|
+
"wires": [
|
1443
|
+
[
|
1444
|
+
"dbec84a2543dbe7e"
|
1445
|
+
]
|
1446
|
+
]
|
1447
|
+
},
|
1448
|
+
{
|
1449
|
+
"id": "1224ebb8edb477d2",
|
1450
|
+
"type": "debug",
|
1451
|
+
"z": "b195bc3ca2e1a665",
|
1452
|
+
"g": "ec36901abb138306",
|
1453
|
+
"name": "debug 3",
|
1454
|
+
"active": true,
|
1455
|
+
"tosidebar": true,
|
1456
|
+
"console": false,
|
1457
|
+
"tostatus": false,
|
1458
|
+
"complete": "false",
|
1459
|
+
"statusVal": "",
|
1460
|
+
"statusType": "auto",
|
1461
|
+
"x": 860,
|
1462
|
+
"y": 480,
|
1463
|
+
"wires": []
|
1464
|
+
},
|
1465
|
+
{
|
1466
|
+
"id": "6ce155bbaaba083f",
|
1467
|
+
"type": "comment",
|
1468
|
+
"z": "b195bc3ca2e1a665",
|
1469
|
+
"g": "09cdc14cfb8ad687",
|
1470
|
+
"name": "Tabelle mit Aufträgen laden",
|
1471
|
+
"info": "",
|
1472
|
+
"x": 150,
|
1473
|
+
"y": 100,
|
1474
|
+
"wires": []
|
1475
|
+
},
|
1476
|
+
{
|
1477
|
+
"id": "05284831924ef310",
|
1478
|
+
"type": "comment",
|
1479
|
+
"z": "b195bc3ca2e1a665",
|
1480
|
+
"g": "ec36901abb138306",
|
1481
|
+
"name": "Auftrag bearbeiten",
|
1482
|
+
"info": "",
|
1483
|
+
"x": 130,
|
1484
|
+
"y": 420,
|
1485
|
+
"wires": []
|
1486
|
+
},
|
1487
|
+
{
|
1488
|
+
"id": "1d5b0759c3226e37",
|
1489
|
+
"type": "debug",
|
1490
|
+
"z": "b195bc3ca2e1a665",
|
1491
|
+
"g": "09cdc14cfb8ad687",
|
1492
|
+
"name": "debug 6",
|
1493
|
+
"active": true,
|
1494
|
+
"tosidebar": true,
|
1495
|
+
"console": false,
|
1496
|
+
"tostatus": false,
|
1497
|
+
"complete": "false",
|
1498
|
+
"statusVal": "",
|
1499
|
+
"statusType": "auto",
|
1500
|
+
"x": 880,
|
1501
|
+
"y": 140,
|
1502
|
+
"wires": []
|
1503
|
+
},
|
1504
|
+
{
|
1505
|
+
"id": "97afbbf01ec1cd88",
|
1506
|
+
"type": "ui-event",
|
1507
|
+
"z": "b195bc3ca2e1a665",
|
1508
|
+
"g": "09cdc14cfb8ad687",
|
1509
|
+
"ui": "26a45d43c064bdb6",
|
1510
|
+
"name": "",
|
1511
|
+
"x": 100,
|
1512
|
+
"y": 300,
|
1513
|
+
"wires": [
|
1514
|
+
[
|
1515
|
+
"2b3f33b7a9dceb49"
|
1516
|
+
]
|
1517
|
+
]
|
1518
|
+
},
|
1519
|
+
{
|
1520
|
+
"id": "2b3f33b7a9dceb49",
|
1521
|
+
"type": "switch",
|
1522
|
+
"z": "b195bc3ca2e1a665",
|
1523
|
+
"g": "09cdc14cfb8ad687",
|
1524
|
+
"name": "Seite == \"Prozessliste\"",
|
1525
|
+
"property": "payload.page.name",
|
1526
|
+
"propertyType": "msg",
|
1527
|
+
"rules": [
|
1528
|
+
{
|
1529
|
+
"t": "eq",
|
1530
|
+
"v": "Prozessliste",
|
1531
|
+
"vt": "str"
|
1532
|
+
}
|
1533
|
+
],
|
1534
|
+
"checkall": "true",
|
1535
|
+
"repair": false,
|
1536
|
+
"outputs": 1,
|
1537
|
+
"x": 280,
|
1538
|
+
"y": 300,
|
1539
|
+
"wires": [
|
1540
|
+
[
|
1541
|
+
"dbec84a2543dbe7e"
|
1542
|
+
]
|
1543
|
+
]
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
"id": "a61cb4c20f79d872",
|
1547
|
+
"type": "inject",
|
1548
|
+
"z": "b195bc3ca2e1a665",
|
1549
|
+
"g": "09cdc14cfb8ad687",
|
1550
|
+
"name": "",
|
1551
|
+
"props": [
|
1552
|
+
{
|
1553
|
+
"p": "payload"
|
1554
|
+
},
|
1555
|
+
{
|
1556
|
+
"p": "topic",
|
1557
|
+
"vt": "str"
|
1558
|
+
}
|
1559
|
+
],
|
1560
|
+
"repeat": "",
|
1561
|
+
"crontab": "",
|
1562
|
+
"once": false,
|
1563
|
+
"onceDelay": 0.1,
|
1564
|
+
"topic": "",
|
1565
|
+
"payload": "",
|
1566
|
+
"payloadType": "date",
|
1567
|
+
"x": 120,
|
1568
|
+
"y": 220,
|
1569
|
+
"wires": [
|
1570
|
+
[
|
1571
|
+
"dbec84a2543dbe7e"
|
1572
|
+
]
|
1573
|
+
]
|
1574
|
+
},
|
1575
|
+
{
|
1576
|
+
"id": "99475ac148f6484b",
|
1577
|
+
"type": "http request",
|
1578
|
+
"z": "b195bc3ca2e1a665",
|
1579
|
+
"g": "ec36901abb138306",
|
1580
|
+
"name": "",
|
1581
|
+
"method": "GET",
|
1582
|
+
"ret": "obj",
|
1583
|
+
"paytoqs": "ignore",
|
1584
|
+
"url": "http://localhost:56000/atlas_engine/api/v1/flow_node_instances?limit=1&flowNodeInstanceId={{{flowNodeInstanceId}}}&flowNodeType=bpmn%3AUserTask",
|
1585
|
+
"tls": "",
|
1586
|
+
"persist": false,
|
1587
|
+
"proxy": "",
|
1588
|
+
"insecureHTTPParser": false,
|
1589
|
+
"authType": "bearer",
|
1590
|
+
"senderr": false,
|
1591
|
+
"headers": [],
|
1592
|
+
"x": 490,
|
1593
|
+
"y": 620,
|
1594
|
+
"wires": [
|
1595
|
+
[
|
1596
|
+
"ebd67a338575690d",
|
1597
|
+
"64068e75e541a72e"
|
1598
|
+
]
|
1599
|
+
]
|
1600
|
+
},
|
1601
|
+
{
|
1602
|
+
"id": "5a61ca5b5a13aa8d",
|
1603
|
+
"type": "inject",
|
1604
|
+
"z": "b195bc3ca2e1a665",
|
1605
|
+
"g": "ec36901abb138306",
|
1606
|
+
"name": "",
|
1607
|
+
"props": [
|
1608
|
+
{
|
1609
|
+
"p": "payload"
|
1610
|
+
},
|
1611
|
+
{
|
1612
|
+
"p": "topic",
|
1613
|
+
"vt": "str"
|
1614
|
+
}
|
1615
|
+
],
|
1616
|
+
"repeat": "",
|
1617
|
+
"crontab": "",
|
1618
|
+
"once": false,
|
1619
|
+
"onceDelay": 0.1,
|
1620
|
+
"topic": "",
|
1621
|
+
"payload": "",
|
1622
|
+
"payloadType": "date",
|
1623
|
+
"x": 120,
|
1624
|
+
"y": 620,
|
1625
|
+
"wires": [
|
1626
|
+
[
|
1627
|
+
"1497b762d2ac1723"
|
1628
|
+
]
|
1629
|
+
]
|
1630
|
+
},
|
1631
|
+
{
|
1632
|
+
"id": "ebd67a338575690d",
|
1633
|
+
"type": "debug",
|
1634
|
+
"z": "b195bc3ca2e1a665",
|
1635
|
+
"g": "ec36901abb138306",
|
1636
|
+
"name": "debug 8",
|
1637
|
+
"active": true,
|
1638
|
+
"tosidebar": true,
|
1639
|
+
"console": false,
|
1640
|
+
"tostatus": false,
|
1641
|
+
"complete": "false",
|
1642
|
+
"statusVal": "",
|
1643
|
+
"statusType": "auto",
|
1644
|
+
"x": 660,
|
1645
|
+
"y": 660,
|
1646
|
+
"wires": []
|
1647
|
+
},
|
1648
|
+
{
|
1649
|
+
"id": "1497b762d2ac1723",
|
1650
|
+
"type": "function",
|
1651
|
+
"z": "b195bc3ca2e1a665",
|
1652
|
+
"g": "ec36901abb138306",
|
1653
|
+
"name": "parameter setzen",
|
1654
|
+
"func": "msg.flowNodeInstanceId = \"eec76493-589c-4c3e-b397-dd8f441235a8\";\n\nif (msg.payload.query && msg.payload.query.flowNodeInstanceId) {\n msg.flowNodeInstanceId = msg.payload.query.flowNodeInstanceId;\n}\n\n/*\nmsg.flowNodeId = \"Activity_0ye77qp\";\nmsg.flowNodeType = \"bpmn:UserTask\";\nmsg.processModelId = \"Sample_UserTask_Process\";\n*/\n\nreturn msg;",
|
1655
|
+
"outputs": 1,
|
1656
|
+
"timeout": 0,
|
1657
|
+
"noerr": 0,
|
1658
|
+
"initialize": "",
|
1659
|
+
"finalize": "",
|
1660
|
+
"libs": [],
|
1661
|
+
"x": 310,
|
1662
|
+
"y": 620,
|
1663
|
+
"wires": [
|
1664
|
+
[
|
1665
|
+
"99475ac148f6484b"
|
1666
|
+
]
|
1667
|
+
]
|
1668
|
+
},
|
1669
|
+
{
|
1670
|
+
"id": "64068e75e541a72e",
|
1671
|
+
"type": "function",
|
1672
|
+
"z": "b195bc3ca2e1a665",
|
1673
|
+
"g": "ec36901abb138306",
|
1674
|
+
"name": "prepare UserTask ",
|
1675
|
+
"func": "msg.payload = {\n \"userTask\": msg.payload.flowNodeInstances[0]\n}\n\nreturn msg;",
|
1676
|
+
"outputs": 1,
|
1677
|
+
"timeout": 0,
|
1678
|
+
"noerr": 0,
|
1679
|
+
"initialize": "",
|
1680
|
+
"finalize": "",
|
1681
|
+
"libs": [],
|
1682
|
+
"x": 690,
|
1683
|
+
"y": 620,
|
1684
|
+
"wires": [
|
1685
|
+
[
|
1686
|
+
"b8ac2a6ff7cc5ef1",
|
1687
|
+
"8e2a2f993ee7156a"
|
1688
|
+
]
|
1689
|
+
]
|
1690
|
+
},
|
1691
|
+
{
|
1692
|
+
"id": "b8ac2a6ff7cc5ef1",
|
1693
|
+
"type": "debug",
|
1694
|
+
"z": "b195bc3ca2e1a665",
|
1695
|
+
"g": "ec36901abb138306",
|
1696
|
+
"name": "debug 9",
|
1697
|
+
"active": true,
|
1698
|
+
"tosidebar": true,
|
1699
|
+
"console": false,
|
1700
|
+
"tostatus": false,
|
1701
|
+
"complete": "false",
|
1702
|
+
"statusVal": "",
|
1703
|
+
"statusType": "auto",
|
1704
|
+
"x": 860,
|
1705
|
+
"y": 620,
|
1706
|
+
"wires": []
|
1707
|
+
},
|
1708
|
+
{
|
1709
|
+
"id": "493500b42d8d0f5b",
|
1710
|
+
"type": "ui-event",
|
1711
|
+
"z": "b195bc3ca2e1a665",
|
1712
|
+
"g": "ec36901abb138306",
|
1713
|
+
"ui": "26a45d43c064bdb6",
|
1714
|
+
"name": "",
|
1715
|
+
"x": 120,
|
1716
|
+
"y": 560,
|
1717
|
+
"wires": [
|
1718
|
+
[
|
1719
|
+
"34984ae3f4e83b0b"
|
1720
|
+
]
|
1721
|
+
]
|
1722
|
+
},
|
1723
|
+
{
|
1724
|
+
"id": "34984ae3f4e83b0b",
|
1725
|
+
"type": "switch",
|
1726
|
+
"z": "b195bc3ca2e1a665",
|
1727
|
+
"g": "ec36901abb138306",
|
1728
|
+
"name": "Seite == \"UserTask\"",
|
1729
|
+
"property": "payload.page.name",
|
1730
|
+
"propertyType": "msg",
|
1731
|
+
"rules": [
|
1732
|
+
{
|
1733
|
+
"t": "eq",
|
1734
|
+
"v": "UserTask",
|
1735
|
+
"vt": "str"
|
1736
|
+
}
|
1737
|
+
],
|
1738
|
+
"checkall": "true",
|
1739
|
+
"repair": false,
|
1740
|
+
"outputs": 1,
|
1741
|
+
"x": 320,
|
1742
|
+
"y": 560,
|
1743
|
+
"wires": [
|
1744
|
+
[
|
1745
|
+
"1497b762d2ac1723"
|
1746
|
+
]
|
1747
|
+
]
|
1748
|
+
},
|
1749
|
+
{
|
1750
|
+
"id": "8e2a2f993ee7156a",
|
1751
|
+
"type": "dynamic-form",
|
1752
|
+
"z": "b195bc3ca2e1a665",
|
1753
|
+
"g": "ec36901abb138306",
|
1754
|
+
"name": "",
|
1755
|
+
"group": "5403f00c961584ab",
|
1756
|
+
"order": 0,
|
1757
|
+
"waiting_title": "Waiting for Warten auf den Usertask...",
|
1758
|
+
"waiting_info": "Der Usertask wird automatisch angezeigt, wenn ein entsprechender Task vorhanden ist.",
|
1759
|
+
"submit_title": "Submit your task",
|
1760
|
+
"cancel_title": "Cancel your task",
|
1761
|
+
"width": 0,
|
1762
|
+
"height": 0,
|
1763
|
+
"x": 600,
|
1764
|
+
"y": 480,
|
1765
|
+
"wires": [
|
1766
|
+
[
|
1767
|
+
"1224ebb8edb477d2"
|
1768
|
+
]
|
1769
|
+
]
|
1770
|
+
},
|
1771
|
+
{
|
1772
|
+
"id": "c06d872a4718b6da",
|
1773
|
+
"type": "inject",
|
1774
|
+
"z": "b195bc3ca2e1a665",
|
1775
|
+
"g": "ec36901abb138306",
|
1776
|
+
"name": "",
|
1777
|
+
"props": [
|
1778
|
+
{
|
1779
|
+
"p": "payload"
|
1780
|
+
}
|
1781
|
+
],
|
1782
|
+
"repeat": "",
|
1783
|
+
"crontab": "",
|
1784
|
+
"once": false,
|
1785
|
+
"onceDelay": 0.1,
|
1786
|
+
"topic": "",
|
1787
|
+
"payload": "{\"userTask\":{\"flowNodeInstanceId\":\"3b3102c5-102d-4e52-ab27-40602cc5fd86\",\"flowNodeId\":\"Activity_0ljiko7\",\"flowNodeName\":\"Hello world\",\"flowNodeLane\":\"Lane\",\"flowNodeType\":\"bpmn:UserTask\",\"previousFlowNodeInstanceId\":\"2ebcb278-d90c-4b2b-98ee-c9847dcaf461\",\"parentProcessInstanceId\":null,\"processDefinitionId\":\"SampleUserTask_Definition\",\"processModelId\":\"SampleUserTask_Process\",\"processInstanceId\":\"8a8ab5a7-fbef-4bf0-9905-1937defb8cd8\",\"correlationId\":\"61845380-2bd3-4bc9-b3bf-60933d05121b\",\"state\":\"suspended\",\"tokens\":[],\"startToken\":{},\"endToken\":{},\"ownerId\":\"dummy_token\",\"startedAt\":\"2024-06-16T19:18:38.580Z\",\"assignedUserIds\":null,\"actualOwnerId\":null,\"finishedByUserId\":null,\"userTaskConfig\":{\"formFields\":[{\"id\":\"text_id\",\"label\":\"Text Label\",\"type\":\"string\"},{\"id\":\"number_id\",\"label\":\"Number Label\",\"type\":\"long\",\"defaultValue\":\"undefined\",\"customForm\":\"{\\\"hint\\\":\\\"Sample\\\"}\"},{\"id\":\"date_id\",\"label\":\"Date Label\",\"type\":\"date\"},{\"id\":\"select_id\",\"label\":\"Select Label\",\"type\":\"enum\",\"enumValues\":[{\"id\":\"value_01\",\"name\":\"Value 01\"},{\"id\":\"value_02\",\"name\":\"Value 02\"}]},{\"id\":\"boolean_id\",\"label\":\"Boolean Label\",\"type\":\"boolean\"},{\"id\":\"customer_01\",\"label\":\"Custom_01\",\"type\":\"v-text-field\"}]},\"userTaskConfigModel\":{\"formFields\":[{\"id\":\"text_id\",\"label\":\"Text Label\",\"type\":\"string\"},{\"id\":\"number_id\",\"label\":\"Number Label\",\"type\":\"long\",\"defaultValue\":\"${token.current.sample}\",\"customForm\":\"{\\\"hint\\\":\\\"Sample\\\"}\"},{\"id\":\"date_id\",\"label\":\"Date Label\",\"type\":\"date\"},{\"id\":\"select_id\",\"label\":\"Select Label\",\"type\":\"enum\",\"enumValues\":[{\"id\":\"value_01\",\"name\":\"Value 01\"},{\"id\":\"value_02\",\"name\":\"Value 02\"}]},{\"id\":\"boolean_id\",\"label\":\"Boolean Label\",\"type\":\"boolean\"},{\"id\":\"customer_01\",\"label\":\"Custom_01\",\"type\":\"v-text-field\"}]}}}",
|
1788
|
+
"payloadType": "json",
|
1789
|
+
"x": 250,
|
1790
|
+
"y": 480,
|
1791
|
+
"wires": [
|
1792
|
+
[
|
1793
|
+
"8e2a2f993ee7156a"
|
1794
|
+
]
|
1795
|
+
]
|
1006
1796
|
}
|
1007
1797
|
]
|