@5minds/node-red-contrib-processcube 1.0.1-develop-6736f8-lz2nfmy5 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/Dockerfile CHANGED
@@ -1,9 +1,22 @@
1
+ FROM node:20 AS builder
2
+
3
+ COPY ./ /src/node-red-contrib-processcube
4
+
5
+ WORKDIR /src/node-red-contrib-processcube
6
+
7
+ RUN npm install
8
+
1
9
  FROM nodered/node-red:4.0.2
2
10
 
3
- RUN npm install node-red-debugger@^1.1.1
11
+ WORKDIR /data
12
+
13
+ COPY --from=builder /src/node-red-contrib-processcube /src/node-red-contrib-processcube
14
+
15
+ COPY nodered/static/ProcessCube_Logo.svg /data/static/ProcessCube_Logo.svg
4
16
 
5
- COPY ./ /src/node-red-contrib-processcube/
17
+ COPY nodered/package.json package.json
18
+ RUN npm install
6
19
 
7
- RUN npm install /src/node-red-contrib-processcube/
8
20
 
9
- ENTRYPOINT ["./entrypoint.sh"]
21
+ ENTRYPOINT ["./node_modules/.bin/node-red", "--flowFile", "/nodered/node-red-contrib-processcube-flows.json", "--settings", "/nodered/settings.js"]
22
+ # ENTRYPOINT ["./entrypoint.sh", "--settings", "/nodered/settings.js"]
@@ -5,11 +5,14 @@ services:
5
5
  context: .
6
6
  ports:
7
7
  - "1880:1880"
8
+ - "9229:9229"
8
9
  environment:
9
10
  - TZ=Europe/Berlin
10
11
  - ENGINE_URL=http://engine:8000
12
+ - FLOWS=/nodered/node-red-contrib-processcube-flows__.json
11
13
  volumes:
12
- - ./nodered/:/data/
14
+ - ./nodered/:/nodered/
15
+ - ./examples/:/examples/
13
16
  depends_on:
14
17
  - engine
15
18
  - authority
@@ -0,0 +1,1036 @@
1
+ [
2
+ {
3
+ "id": "3f916448523ed12b",
4
+ "type": "tab",
5
+ "label": "Node-Inspector",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "a23d2e782beb66f4",
12
+ "type": "tab",
13
+ "label": "External Task Sample",
14
+ "disabled": false,
15
+ "info": "",
16
+ "env": []
17
+ },
18
+ {
19
+ "id": "fd3c725340de4f74",
20
+ "type": "tab",
21
+ "label": "User Task Sample",
22
+ "disabled": false,
23
+ "info": "",
24
+ "env": []
25
+ },
26
+ {
27
+ "id": "5d27ab4d14b947e9",
28
+ "type": "tab",
29
+ "label": "Instances Query Sample",
30
+ "disabled": false,
31
+ "info": "",
32
+ "env": []
33
+ },
34
+ {
35
+ "id": "f28ae6aa3a05069e",
36
+ "type": "tab",
37
+ "label": "Definition Query Sample",
38
+ "disabled": false,
39
+ "info": "",
40
+ "env": []
41
+ },
42
+ {
43
+ "id": "4c59118134081e05",
44
+ "type": "group",
45
+ "z": "f28ae6aa3a05069e",
46
+ "style": {
47
+ "stroke": "#999999",
48
+ "stroke-opacity": "1",
49
+ "fill": "none",
50
+ "fill-opacity": "1",
51
+ "label": true,
52
+ "label-position": "nw",
53
+ "color": "#a4a4a4"
54
+ },
55
+ "nodes": [
56
+ "d97caca0ec54a633",
57
+ "f74139117c9dab27",
58
+ "5539a5c4c0f9cbe2",
59
+ "a8e2b5a6ca25c924"
60
+ ],
61
+ "x": 14,
62
+ "y": 39,
63
+ "w": 592,
64
+ "h": 142
65
+ },
66
+ {
67
+ "id": "f1d4eaed7570324e",
68
+ "type": "group",
69
+ "z": "f28ae6aa3a05069e",
70
+ "style": {
71
+ "stroke": "#999999",
72
+ "stroke-opacity": "1",
73
+ "fill": "none",
74
+ "fill-opacity": "1",
75
+ "label": true,
76
+ "label-position": "nw",
77
+ "color": "#a4a4a4"
78
+ },
79
+ "nodes": [
80
+ "bcc97a73cff5a086",
81
+ "b418463be836efbb",
82
+ "0633b709dd9c166f",
83
+ "fbb37831549d41ff"
84
+ ],
85
+ "x": 14,
86
+ "y": 219,
87
+ "w": 572,
88
+ "h": 142
89
+ },
90
+ {
91
+ "id": "70d7a70e375b162a",
92
+ "type": "group",
93
+ "z": "a23d2e782beb66f4",
94
+ "style": {
95
+ "stroke": "#999999",
96
+ "stroke-opacity": "1",
97
+ "fill": "none",
98
+ "fill-opacity": "1",
99
+ "label": true,
100
+ "label-position": "nw",
101
+ "color": "#a4a4a4"
102
+ },
103
+ "nodes": [
104
+ "2991a5e6df2b87d2",
105
+ "911fde53bcbb7e3f",
106
+ "d56bb7cd73fd220c",
107
+ "15a5f64b9e2e05fc"
108
+ ],
109
+ "x": 34,
110
+ "y": 79,
111
+ "w": 512,
112
+ "h": 142
113
+ },
114
+ {
115
+ "id": "31cb6729aac0ba46",
116
+ "type": "group",
117
+ "z": "a23d2e782beb66f4",
118
+ "style": {
119
+ "stroke": "#999999",
120
+ "stroke-opacity": "1",
121
+ "fill": "none",
122
+ "fill-opacity": "1",
123
+ "label": true,
124
+ "label-position": "nw",
125
+ "color": "#a4a4a4"
126
+ },
127
+ "nodes": [
128
+ "18e05d562d48f32d",
129
+ "49aee03a7885fae8",
130
+ "e4555d9019cd3f47",
131
+ "bd68c4bdc53b8f80",
132
+ "fb87f79852b22e4a",
133
+ "1ba1e62c9935255f",
134
+ "b49f226ba865e164"
135
+ ],
136
+ "x": 34,
137
+ "y": 259,
138
+ "w": 812,
139
+ "h": 202
140
+ },
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
+ {
166
+ "id": "390ad4a596a3c002",
167
+ "type": "group",
168
+ "z": "a23d2e782beb66f4",
169
+ "style": {
170
+ "stroke": "#999999",
171
+ "stroke-opacity": "1",
172
+ "fill": "none",
173
+ "fill-opacity": "1",
174
+ "label": true,
175
+ "label-position": "nw",
176
+ "color": "#a4a4a4"
177
+ },
178
+ "nodes": [
179
+ "529b24c862f7039d",
180
+ "f4011d6a57c6e13f",
181
+ "fba605329413c78d",
182
+ "5e5394e458d1de7c",
183
+ "18e9e15ef645a908",
184
+ "eb96f3128ece1be8"
185
+ ],
186
+ "x": 34,
187
+ "y": 499,
188
+ "w": 832,
189
+ "h": 202
190
+ },
191
+ {
192
+ "id": "887f3fb69ad1d1fb",
193
+ "type": "group",
194
+ "z": "fd3c725340de4f74",
195
+ "style": {
196
+ "stroke": "#999999",
197
+ "stroke-opacity": "1",
198
+ "fill": "none",
199
+ "fill-opacity": "1",
200
+ "label": true,
201
+ "label-position": "nw",
202
+ "color": "#a4a4a4"
203
+ },
204
+ "nodes": [
205
+ "f7a9604a17188737",
206
+ "020d34cd4ab43900",
207
+ "1db0ae57c1b8486b",
208
+ "127bc6e092c5724e"
209
+ ],
210
+ "x": 34,
211
+ "y": 19,
212
+ "w": 452,
213
+ "h": 202
214
+ },
215
+ {
216
+ "id": "72d3db13edc2486b",
217
+ "type": "group",
218
+ "z": "fd3c725340de4f74",
219
+ "style": {
220
+ "stroke": "#999999",
221
+ "stroke-opacity": "1",
222
+ "fill": "none",
223
+ "fill-opacity": "1",
224
+ "label": true,
225
+ "label-position": "nw",
226
+ "color": "#a4a4a4"
227
+ },
228
+ "nodes": [
229
+ "ae0583e83c762956",
230
+ "f7c7682e3a6adaaa",
231
+ "a2fb6369b16c12fa",
232
+ "8ef39e83173d41e3",
233
+ "f524b8cc35d56849",
234
+ "9fb4017c1d0ac7c9"
235
+ ],
236
+ "x": 34,
237
+ "y": 259,
238
+ "w": 652,
239
+ "h": 262
240
+ },
241
+ {
242
+ "id": "a71a168415778e2c",
243
+ "type": "group",
244
+ "z": "5d27ab4d14b947e9",
245
+ "style": {
246
+ "stroke": "#999999",
247
+ "stroke-opacity": "1",
248
+ "fill": "none",
249
+ "fill-opacity": "1",
250
+ "label": true,
251
+ "label-position": "nw",
252
+ "color": "#a4a4a4"
253
+ },
254
+ "nodes": [
255
+ "baa5d814f2e1f1d8",
256
+ "2af2c5031c617e3d",
257
+ "81af643792f131f0",
258
+ "2166b0f822b3e71d"
259
+ ],
260
+ "x": 34,
261
+ "y": 39,
262
+ "w": 652,
263
+ "h": 142
264
+ },
265
+ {
266
+ "id": "42e6796dddd9d4db",
267
+ "type": "processcube-engine-config",
268
+ "url": "http://engine:8000"
269
+ },
270
+ {
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": []
283
+ },
284
+ {
285
+ "id": "8cf9f9cd.1a6a88",
286
+ "type": "inject",
287
+ "z": "3f916448523ed12b",
288
+ "g": "dd43902998ad7630",
289
+ "name": "",
290
+ "props": [
291
+ {
292
+ "p": "payload"
293
+ }
294
+ ],
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
+ ]
309
+ },
310
+ {
311
+ "id": "4b2a8ca1.de70e4",
312
+ "type": "inject",
313
+ "z": "3f916448523ed12b",
314
+ "g": "dd43902998ad7630",
315
+ "name": "",
316
+ "props": [
317
+ {
318
+ "p": "payload"
319
+ }
320
+ ],
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
+ ]
335
+ },
336
+ {
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": []
346
+ },
347
+ {
348
+ "id": "2991a5e6df2b87d2",
349
+ "type": "externaltask-input",
350
+ "z": "a23d2e782beb66f4",
351
+ "g": "70d7a70e375b162a",
352
+ "name": "Test",
353
+ "engine": "42e6796dddd9d4db",
354
+ "topic": "Test",
355
+ "x": 110,
356
+ "y": 180,
357
+ "wires": [
358
+ [
359
+ "d56bb7cd73fd220c"
360
+ ]
361
+ ]
362
+ },
363
+ {
364
+ "id": "911fde53bcbb7e3f",
365
+ "type": "externaltask-output",
366
+ "z": "a23d2e782beb66f4",
367
+ "g": "70d7a70e375b162a",
368
+ "name": "Test Ende",
369
+ "x": 460,
370
+ "y": 180,
371
+ "wires": []
372
+ },
373
+ {
374
+ "id": "d56bb7cd73fd220c",
375
+ "type": "delay",
376
+ "z": "a23d2e782beb66f4",
377
+ "g": "70d7a70e375b162a",
378
+ "name": "",
379
+ "pauseType": "delay",
380
+ "timeout": "1",
381
+ "timeoutUnits": "seconds",
382
+ "rate": "1",
383
+ "nbRateUnits": "1",
384
+ "rateUnits": "second",
385
+ "randomFirst": "1",
386
+ "randomLast": "5",
387
+ "randomUnits": "seconds",
388
+ "drop": false,
389
+ "allowrate": false,
390
+ "outputs": 1,
391
+ "x": 280,
392
+ "y": 180,
393
+ "wires": [
394
+ [
395
+ "911fde53bcbb7e3f"
396
+ ]
397
+ ]
398
+ },
399
+ {
400
+ "id": "18e05d562d48f32d",
401
+ "type": "externaltask-input",
402
+ "z": "a23d2e782beb66f4",
403
+ "g": "31cb6729aac0ba46",
404
+ "name": "SampleError",
405
+ "engine": "42e6796dddd9d4db",
406
+ "topic": "SampleError",
407
+ "x": 130,
408
+ "y": 360,
409
+ "wires": [
410
+ [
411
+ "49aee03a7885fae8"
412
+ ]
413
+ ]
414
+ },
415
+ {
416
+ "id": "49aee03a7885fae8",
417
+ "type": "delay",
418
+ "z": "a23d2e782beb66f4",
419
+ "g": "31cb6729aac0ba46",
420
+ "name": "",
421
+ "pauseType": "delay",
422
+ "timeout": "5",
423
+ "timeoutUnits": "seconds",
424
+ "rate": "1",
425
+ "nbRateUnits": "1",
426
+ "rateUnits": "second",
427
+ "randomFirst": "1",
428
+ "randomLast": "5",
429
+ "randomUnits": "seconds",
430
+ "drop": false,
431
+ "allowrate": false,
432
+ "outputs": 1,
433
+ "x": 320,
434
+ "y": 360,
435
+ "wires": [
436
+ [
437
+ "bd68c4bdc53b8f80"
438
+ ]
439
+ ]
440
+ },
441
+ {
442
+ "id": "e4555d9019cd3f47",
443
+ "type": "catch",
444
+ "z": "a23d2e782beb66f4",
445
+ "g": "31cb6729aac0ba46",
446
+ "name": "",
447
+ "scope": "group",
448
+ "uncaught": false,
449
+ "x": 510,
450
+ "y": 420,
451
+ "wires": [
452
+ [
453
+ "fb87f79852b22e4a"
454
+ ]
455
+ ]
456
+ },
457
+ {
458
+ "id": "bd68c4bdc53b8f80",
459
+ "type": "function",
460
+ "z": "a23d2e782beb66f4",
461
+ "g": "31cb6729aac0ba46",
462
+ "name": "raise Error",
463
+ "func": "throw Error(\"hello error\");\n\nreturn msg;",
464
+ "outputs": 1,
465
+ "timeout": 0,
466
+ "noerr": 0,
467
+ "initialize": "",
468
+ "finalize": "",
469
+ "libs": [],
470
+ "x": 510,
471
+ "y": 360,
472
+ "wires": [
473
+ [
474
+ "1ba1e62c9935255f"
475
+ ]
476
+ ]
477
+ },
478
+ {
479
+ "id": "fb87f79852b22e4a",
480
+ "type": "externaltask-error",
481
+ "z": "a23d2e782beb66f4",
482
+ "g": "31cb6729aac0ba46",
483
+ "name": "Send Error to Engine",
484
+ "error": "MyErrorCode",
485
+ "x": 720,
486
+ "y": 420,
487
+ "wires": [
488
+ []
489
+ ]
490
+ },
491
+ {
492
+ "id": "1ba1e62c9935255f",
493
+ "type": "externaltask-output",
494
+ "z": "a23d2e782beb66f4",
495
+ "g": "31cb6729aac0ba46",
496
+ "name": "",
497
+ "x": 710,
498
+ "y": 360,
499
+ "wires": []
500
+ },
501
+ {
502
+ "id": "15a5f64b9e2e05fc",
503
+ "type": "comment",
504
+ "z": "a23d2e782beb66f4",
505
+ "g": "70d7a70e375b162a",
506
+ "name": "Simple External Task handling",
507
+ "info": "",
508
+ "x": 180,
509
+ "y": 120,
510
+ "wires": []
511
+ },
512
+ {
513
+ "id": "b49f226ba865e164",
514
+ "type": "comment",
515
+ "z": "a23d2e782beb66f4",
516
+ "g": "31cb6729aac0ba46",
517
+ "name": "Error handling with external tasks",
518
+ "info": "",
519
+ "x": 190,
520
+ "y": 300,
521
+ "wires": []
522
+ },
523
+ {
524
+ "id": "799125e21de02f13",
525
+ "type": "comment",
526
+ "z": "a23d2e782beb66f4",
527
+ "name": "For Testing, deploy \"External-Task-Sample.bpmn\" and start the process.",
528
+ "info": "",
529
+ "x": 300,
530
+ "y": 40,
531
+ "wires": []
532
+ },
533
+ {
534
+ "id": "529b24c862f7039d",
535
+ "type": "endevent-finished-listener",
536
+ "z": "a23d2e782beb66f4",
537
+ "d": true,
538
+ "g": "390ad4a596a3c002",
539
+ "name": "",
540
+ "engine": "42e6796dddd9d4db",
541
+ "x": 170,
542
+ "y": 600,
543
+ "wires": [
544
+ [
545
+ "f4011d6a57c6e13f"
546
+ ]
547
+ ]
548
+ },
549
+ {
550
+ "id": "f4011d6a57c6e13f",
551
+ "type": "delay",
552
+ "z": "a23d2e782beb66f4",
553
+ "g": "390ad4a596a3c002",
554
+ "name": "",
555
+ "pauseType": "delay",
556
+ "timeout": "5",
557
+ "timeoutUnits": "seconds",
558
+ "rate": "1",
559
+ "nbRateUnits": "1",
560
+ "rateUnits": "second",
561
+ "randomFirst": "1",
562
+ "randomLast": "5",
563
+ "randomUnits": "seconds",
564
+ "drop": false,
565
+ "allowrate": false,
566
+ "outputs": 1,
567
+ "x": 400,
568
+ "y": 600,
569
+ "wires": [
570
+ [
571
+ "18e9e15ef645a908"
572
+ ]
573
+ ]
574
+ },
575
+ {
576
+ "id": "fba605329413c78d",
577
+ "type": "process-start",
578
+ "z": "a23d2e782beb66f4",
579
+ "g": "390ad4a596a3c002",
580
+ "name": "",
581
+ "engine": "42e6796dddd9d4db",
582
+ "processmodel": "External-Task-Sample_Process",
583
+ "startevent": "StartEvent_1",
584
+ "x": 770,
585
+ "y": 600,
586
+ "wires": [
587
+ []
588
+ ]
589
+ },
590
+ {
591
+ "id": "5e5394e458d1de7c",
592
+ "type": "inject",
593
+ "z": "a23d2e782beb66f4",
594
+ "g": "390ad4a596a3c002",
595
+ "name": "",
596
+ "props": [
597
+ {
598
+ "p": "payload"
599
+ }
600
+ ],
601
+ "repeat": "",
602
+ "crontab": "",
603
+ "once": false,
604
+ "onceDelay": 0.1,
605
+ "topic": "",
606
+ "payload": "start",
607
+ "payloadType": "str",
608
+ "x": 430,
609
+ "y": 660,
610
+ "wires": [
611
+ [
612
+ "18e9e15ef645a908"
613
+ ]
614
+ ]
615
+ },
616
+ {
617
+ "id": "18e9e15ef645a908",
618
+ "type": "function",
619
+ "z": "a23d2e782beb66f4",
620
+ "g": "390ad4a596a3c002",
621
+ "name": "pre payload",
622
+ "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\nreturn msg;",
623
+ "outputs": 1,
624
+ "timeout": 0,
625
+ "noerr": 0,
626
+ "initialize": "",
627
+ "finalize": "",
628
+ "libs": [],
629
+ "x": 590,
630
+ "y": 600,
631
+ "wires": [
632
+ [
633
+ "fba605329413c78d"
634
+ ]
635
+ ]
636
+ },
637
+ {
638
+ "id": "eb96f3128ece1be8",
639
+ "type": "comment",
640
+ "z": "a23d2e782beb66f4",
641
+ "g": "390ad4a596a3c002",
642
+ "name": "Start of Process and restart if it is finished",
643
+ "info": "",
644
+ "x": 220,
645
+ "y": 540,
646
+ "wires": []
647
+ },
648
+ {
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,
659
+ "wires": [
660
+ [
661
+ "020d34cd4ab43900"
662
+ ]
663
+ ]
664
+ },
665
+ {
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
+ },
683
+ {
684
+ "id": "1db0ae57c1b8486b",
685
+ "type": "usertask-finished-listener",
686
+ "z": "fd3c725340de4f74",
687
+ "g": "887f3fb69ad1d1fb",
688
+ "name": "Finished User Task",
689
+ "engine": "42e6796dddd9d4db",
690
+ "multisend": false,
691
+ "x": 150,
692
+ "y": 180,
693
+ "wires": [
694
+ [
695
+ "020d34cd4ab43900"
696
+ ]
697
+ ]
698
+ },
699
+ {
700
+ "id": "127bc6e092c5724e",
701
+ "type": "comment",
702
+ "z": "fd3c725340de4f74",
703
+ "g": "887f3fb69ad1d1fb",
704
+ "name": "User Task Events",
705
+ "info": "",
706
+ "x": 140,
707
+ "y": 60,
708
+ "wires": []
709
+ },
710
+ {
711
+ "id": "ae0583e83c762956",
712
+ "type": "usertask-new-listener",
713
+ "z": "fd3c725340de4f74",
714
+ "g": "72d3db13edc2486b",
715
+ "name": "",
716
+ "engine": "42e6796dddd9d4db",
717
+ "multisend": true,
718
+ "x": 160,
719
+ "y": 360,
720
+ "wires": [
721
+ [
722
+ "a2fb6369b16c12fa"
723
+ ]
724
+ ]
725
+ },
726
+ {
727
+ "id": "f7c7682e3a6adaaa",
728
+ "type": "usertask-input",
729
+ "z": "fd3c725340de4f74",
730
+ "g": "72d3db13edc2486b",
731
+ "name": "",
732
+ "engine": "42e6796dddd9d4db",
733
+ "query": "payload",
734
+ "query_type": "msg",
735
+ "force_send_array": false,
736
+ "multisend": false,
737
+ "x": 380,
738
+ "y": 420,
739
+ "wires": [
740
+ [
741
+ "8ef39e83173d41e3"
742
+ ]
743
+ ]
744
+ },
745
+ {
746
+ "id": "a2fb6369b16c12fa",
747
+ "type": "function",
748
+ "z": "fd3c725340de4f74",
749
+ "g": "72d3db13edc2486b",
750
+ "name": "query",
751
+ "func": "msg.payload = {\n flowNodeInstanceId: msg.payload.flowNodeInstanceId,\n flowNodeId: \"user_task\"\n};\n\nreturn msg;",
752
+ "outputs": 1,
753
+ "timeout": 0,
754
+ "noerr": 0,
755
+ "initialize": "",
756
+ "finalize": "",
757
+ "libs": [],
758
+ "x": 210,
759
+ "y": 420,
760
+ "wires": [
761
+ [
762
+ "f7c7682e3a6adaaa"
763
+ ]
764
+ ]
765
+ },
766
+ {
767
+ "id": "8ef39e83173d41e3",
768
+ "type": "function",
769
+ "z": "fd3c725340de4f74",
770
+ "g": "72d3db13edc2486b",
771
+ "name": "build result",
772
+ "func": "msg.payload.result = {\n \"field_01\": \"value 01\",\n \"field_02\": \"value 02\"\n}\nreturn msg;",
773
+ "outputs": 1,
774
+ "timeout": 0,
775
+ "noerr": 0,
776
+ "initialize": "",
777
+ "finalize": "",
778
+ "libs": [],
779
+ "x": 390,
780
+ "y": 480,
781
+ "wires": [
782
+ [
783
+ "f524b8cc35d56849"
784
+ ]
785
+ ]
786
+ },
787
+ {
788
+ "id": "f524b8cc35d56849",
789
+ "type": "usertask-output",
790
+ "z": "fd3c725340de4f74",
791
+ "g": "72d3db13edc2486b",
792
+ "name": "",
793
+ "engine": "42e6796dddd9d4db",
794
+ "result": "payload.result",
795
+ "result_type": "msg",
796
+ "x": 580,
797
+ "y": 480,
798
+ "wires": [
799
+ []
800
+ ]
801
+ },
802
+ {
803
+ "id": "9fb4017c1d0ac7c9",
804
+ "type": "comment",
805
+ "z": "fd3c725340de4f74",
806
+ "g": "72d3db13edc2486b",
807
+ "name": "Demo to listen on a new usertask an finish them",
808
+ "info": "",
809
+ "x": 240,
810
+ "y": 300,
811
+ "wires": []
812
+ },
813
+ {
814
+ "id": "baa5d814f2e1f1d8",
815
+ "type": "processinstance-query",
816
+ "z": "5d27ab4d14b947e9",
817
+ "g": "a71a168415778e2c",
818
+ "name": "",
819
+ "engine": "42e6796dddd9d4db",
820
+ "query": "{\"includeXml\":false}",
821
+ "query_type": "json",
822
+ "x": 320,
823
+ "y": 140,
824
+ "wires": [
825
+ [
826
+ "2af2c5031c617e3d"
827
+ ]
828
+ ]
829
+ },
830
+ {
831
+ "id": "2af2c5031c617e3d",
832
+ "type": "debug",
833
+ "z": "5d27ab4d14b947e9",
834
+ "g": "a71a168415778e2c",
835
+ "name": "debug 25",
836
+ "active": true,
837
+ "tosidebar": true,
838
+ "console": false,
839
+ "tostatus": false,
840
+ "complete": "false",
841
+ "statusVal": "",
842
+ "statusType": "auto",
843
+ "x": 520,
844
+ "y": 140,
845
+ "wires": []
846
+ },
847
+ {
848
+ "id": "81af643792f131f0",
849
+ "type": "inject",
850
+ "z": "5d27ab4d14b947e9",
851
+ "g": "a71a168415778e2c",
852
+ "name": "",
853
+ "props": [
854
+ {
855
+ "p": "payload"
856
+ }
857
+ ],
858
+ "repeat": "",
859
+ "crontab": "",
860
+ "once": false,
861
+ "onceDelay": 0.1,
862
+ "topic": "",
863
+ "payload": "go",
864
+ "payloadType": "str",
865
+ "x": 130,
866
+ "y": 140,
867
+ "wires": [
868
+ [
869
+ "baa5d814f2e1f1d8"
870
+ ]
871
+ ]
872
+ },
873
+ {
874
+ "id": "2166b0f822b3e71d",
875
+ "type": "comment",
876
+ "z": "5d27ab4d14b947e9",
877
+ "g": "a71a168415778e2c",
878
+ "name": "Query all processinstances from the engine, see the config of `processinstance-query`",
879
+ "info": "",
880
+ "x": 360,
881
+ "y": 80,
882
+ "wires": []
883
+ },
884
+ {
885
+ "id": "d97caca0ec54a633",
886
+ "type": "processdefinition-query",
887
+ "z": "f28ae6aa3a05069e",
888
+ "g": "4c59118134081e05",
889
+ "name": "Query definitions",
890
+ "engine": "42e6796dddd9d4db",
891
+ "query": "{\"includeXml\":false}",
892
+ "query_type": "json",
893
+ "models_only": false,
894
+ "x": 310,
895
+ "y": 140,
896
+ "wires": [
897
+ [
898
+ "5539a5c4c0f9cbe2"
899
+ ]
900
+ ]
901
+ },
902
+ {
903
+ "id": "f74139117c9dab27",
904
+ "type": "inject",
905
+ "z": "f28ae6aa3a05069e",
906
+ "g": "4c59118134081e05",
907
+ "name": "",
908
+ "props": [
909
+ {
910
+ "p": "payload"
911
+ },
912
+ {
913
+ "p": "topic",
914
+ "vt": "str"
915
+ }
916
+ ],
917
+ "repeat": "",
918
+ "crontab": "",
919
+ "once": false,
920
+ "onceDelay": 0.1,
921
+ "topic": "",
922
+ "payload": "",
923
+ "payloadType": "date",
924
+ "x": 120,
925
+ "y": 140,
926
+ "wires": [
927
+ [
928
+ "d97caca0ec54a633"
929
+ ]
930
+ ]
931
+ },
932
+ {
933
+ "id": "5539a5c4c0f9cbe2",
934
+ "type": "debug",
935
+ "z": "f28ae6aa3a05069e",
936
+ "g": "4c59118134081e05",
937
+ "name": "debug 26",
938
+ "active": true,
939
+ "tosidebar": true,
940
+ "console": false,
941
+ "tostatus": false,
942
+ "complete": "false",
943
+ "statusVal": "",
944
+ "statusType": "auto",
945
+ "x": 500,
946
+ "y": 140,
947
+ "wires": []
948
+ },
949
+ {
950
+ "id": "bcc97a73cff5a086",
951
+ "type": "processdefinition-query",
952
+ "z": "f28ae6aa3a05069e",
953
+ "g": "f1d4eaed7570324e",
954
+ "name": "Query models",
955
+ "engine": "42e6796dddd9d4db",
956
+ "query": "{\"includeXml\":false}",
957
+ "query_type": "json",
958
+ "models_only": true,
959
+ "x": 300,
960
+ "y": 320,
961
+ "wires": [
962
+ [
963
+ "0633b709dd9c166f"
964
+ ]
965
+ ]
966
+ },
967
+ {
968
+ "id": "b418463be836efbb",
969
+ "type": "inject",
970
+ "z": "f28ae6aa3a05069e",
971
+ "g": "f1d4eaed7570324e",
972
+ "name": "",
973
+ "props": [
974
+ {
975
+ "p": "payload"
976
+ },
977
+ {
978
+ "p": "topic",
979
+ "vt": "str"
980
+ }
981
+ ],
982
+ "repeat": "",
983
+ "crontab": "",
984
+ "once": false,
985
+ "onceDelay": 0.1,
986
+ "topic": "",
987
+ "payload": "",
988
+ "payloadType": "date",
989
+ "x": 120,
990
+ "y": 320,
991
+ "wires": [
992
+ [
993
+ "bcc97a73cff5a086"
994
+ ]
995
+ ]
996
+ },
997
+ {
998
+ "id": "0633b709dd9c166f",
999
+ "type": "debug",
1000
+ "z": "f28ae6aa3a05069e",
1001
+ "g": "f1d4eaed7570324e",
1002
+ "name": "debug 27",
1003
+ "active": true,
1004
+ "tosidebar": true,
1005
+ "console": false,
1006
+ "tostatus": false,
1007
+ "complete": "false",
1008
+ "statusVal": "",
1009
+ "statusType": "auto",
1010
+ "x": 480,
1011
+ "y": 320,
1012
+ "wires": []
1013
+ },
1014
+ {
1015
+ "id": "a8e2b5a6ca25c924",
1016
+ "type": "comment",
1017
+ "z": "f28ae6aa3a05069e",
1018
+ "g": "4c59118134081e05",
1019
+ "name": "Definitions",
1020
+ "info": "",
1021
+ "x": 100,
1022
+ "y": 80,
1023
+ "wires": []
1024
+ },
1025
+ {
1026
+ "id": "fbb37831549d41ff",
1027
+ "type": "comment",
1028
+ "z": "f28ae6aa3a05069e",
1029
+ "g": "f1d4eaed7570324e",
1030
+ "name": "Models",
1031
+ "info": "",
1032
+ "x": 90,
1033
+ "y": 260,
1034
+ "wires": []
1035
+ }
1036
+ ]
@@ -0,0 +1,3 @@
1
+ {
2
+ "$": "161b525bcc3a85ed486f778fadca44e0c0RvyjjTCLddR3fu+V4rGaC/L1NxysY="
3
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "node-red-contrib-processcube-sample",
3
+ "version": "1.0.0",
4
+ "description": "A sample for the processcube node-red contrib package",
5
+ "dependencies": {
6
+ "@5minds/node-red-contrib-processcube": "file:/src/node-red-contrib-processcube/",
7
+ "@5minds/node-red-dashboard-2-processcube-dynamic-form": "^1.0.4",
8
+ "@5minds/node-red-dashboard-2-processcube-usertask-table": "^1.0.7",
9
+ "@flowfuse/node-red-dashboard": "^1.11.1",
10
+ "node-red": "^4.0.2",
11
+ "node-red-contrib-inspector": "~1.0.1",
12
+ "node-red-debugger": "^1.1.1",
13
+ "openapi-red": "^1.2.5"
14
+ }
15
+ }
@@ -0,0 +1,159 @@
1
+ {
2
+ "formFields": [
3
+ {
4
+ "id": "text_id",
5
+ "type": "text",
6
+ "required": false,
7
+ "label": "Text Label",
8
+ "value": "",
9
+ "title": "Some helpful text"
10
+ },
11
+ {
12
+ "id": "number_id",
13
+ "type": "number",
14
+ "required": true,
15
+ "label": "Number Label",
16
+ "title": "Some helpful text"
17
+ },
18
+ {
19
+ "id": "date_id",
20
+ "type": "date",
21
+ "required": true,
22
+ "label": "Date Label",
23
+ "title": "Some helpful text"
24
+ },
25
+ {
26
+ "id": "select_id",
27
+ "type": "select",
28
+ "required": true,
29
+ "label": "Select Label",
30
+ "options": [
31
+ {
32
+ "id": "value_01",
33
+ "name": "Value 01"
34
+ },
35
+ {
36
+ "id": "value_02",
37
+ "name": "Value 02"
38
+ }
39
+ ],
40
+ "title": "Choose an option"
41
+ },
42
+ {
43
+ "id": "boolean_id",
44
+ "type": "checkbox",
45
+ "required": false,
46
+ "label": "Boolean Label",
47
+ "title": "Check for Yes"
48
+ },
49
+ {
50
+ "id": "_flowNodeInstanceId",
51
+ "type": "hidden",
52
+ "value": "549abda6-911c-4b10-b8e3-f4d6383674b2"
53
+ }
54
+ ],
55
+ "userTask": {
56
+ "flowNodeInstanceId": "549abda6-911c-4b10-b8e3-f4d6383674b2",
57
+ "flowNodeId": "Activity_0ljiko7",
58
+ "flowNodeName": "Hello world",
59
+ "flowNodeLane": "Lane",
60
+ "flowNodeType": "bpmn:UserTask",
61
+ "previousFlowNodeInstanceId": "a678b21e-db08-48e8-b228-ffc48618022b",
62
+ "parentProcessInstanceId": null,
63
+ "processDefinitionId": "SampleUserTask_Definition",
64
+ "processModelId": "SampleUserTask_Process",
65
+ "processInstanceId": "251bfdd1-16fb-4f2b-98b3-7c28a49eec4d",
66
+ "correlationId": "3c6dadd7-a0fe-43c0-a8aa-9b1b87c149f5",
67
+ "state": "suspended",
68
+ "tokens": [],
69
+ "startToken": {},
70
+ "endToken": {},
71
+ "ownerId": "dummy_token",
72
+ "startedAt": "2024-06-09T20:47:27.494Z",
73
+ "assignedUserIds": null,
74
+ "actualOwnerId": null,
75
+ "finishedByUserId": null,
76
+ "userTaskConfig": {
77
+ "formFields": [
78
+ {
79
+ "id": "text_id",
80
+ "label": "Text Label",
81
+ "type": "string"
82
+ },
83
+ {
84
+ "id": "number_id",
85
+ "label": "Number Label",
86
+ "type": "long",
87
+ "defaultValue": "undefined",
88
+ "customForm": "{\"hint\":\"Sample\"}"
89
+ },
90
+ {
91
+ "id": "date_id",
92
+ "label": "Date Label",
93
+ "type": "date"
94
+ },
95
+ {
96
+ "id": "select_id",
97
+ "label": "Select Label",
98
+ "type": "enum",
99
+ "enumValues": [
100
+ {
101
+ "id": "value_01",
102
+ "name": "Value 01"
103
+ },
104
+ {
105
+ "id": "value_02",
106
+ "name": "Value 02"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "id": "boolean_id",
112
+ "label": "Boolean Label",
113
+ "type": "boolean"
114
+ }
115
+ ]
116
+ },
117
+ "userTaskConfigModel": {
118
+ "formFields": [
119
+ {
120
+ "id": "text_id",
121
+ "label": "Text Label",
122
+ "type": "string"
123
+ },
124
+ {
125
+ "id": "number_id",
126
+ "label": "Number Label",
127
+ "type": "long",
128
+ "defaultValue": "${token.current.sample}",
129
+ "customForm": "{\"hint\":\"Sample\"}"
130
+ },
131
+ {
132
+ "id": "date_id",
133
+ "label": "Date Label",
134
+ "type": "date"
135
+ },
136
+ {
137
+ "id": "select_id",
138
+ "label": "Select Label",
139
+ "type": "enum",
140
+ "enumValues": [
141
+ {
142
+ "id": "value_01",
143
+ "name": "Value 01"
144
+ },
145
+ {
146
+ "id": "value_02",
147
+ "name": "Value 02"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "id": "boolean_id",
153
+ "label": "Boolean Label",
154
+ "type": "boolean"
155
+ }
156
+ ]
157
+ }
158
+ }
159
+ }
@@ -52,7 +52,7 @@ module.exports = {
52
52
  * the user's home directory. To use a different location, the following
53
53
  * property can be used
54
54
  */
55
- //userDir: '/nodered/',
55
+ userDir: '/nodered/',
56
56
 
57
57
  /** Node-RED scans the `nodes` directory in the userDir to find local node files.
58
58
  * The following property can be used to specify an additional directory to scan.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.0.1-develop-6736f8-lz2nfmy5",
3
+ "version": "1.0.1",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {