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

Sign up to get free protection for your applications and to get access to all the features.
package/Dockerfile CHANGED
@@ -1,21 +1,9 @@
1
- FROM node:20 AS builder
1
+ FROM nodered/node-red:4.0.2
2
2
 
3
- COPY ./ /src/node-red-contrib-processcube
3
+ RUN npm install node-red-debugger@^1.1.1
4
4
 
5
- WORKDIR /src/node-red-contrib-processcube
5
+ COPY ./ /src/node-red-contrib-processcube/
6
6
 
7
- RUN npm install
7
+ RUN npm install /src/node-red-contrib-processcube/
8
8
 
9
- FROM nodered/node-red:latest
10
-
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
16
-
17
- COPY nodered/package.json package.json
18
- RUN npm install
19
-
20
-
21
- ENTRYPOINT ["./node_modules/.bin/node-red", "--flowFile", "/nodered/node-red-contrib-processcube-flows.json", "--settings", "/nodered/settings.js"]
9
+ ENTRYPOINT ["./entrypoint.sh"]
@@ -1,18 +1,15 @@
1
1
  services:
2
2
  node-red:
3
- image: 5minds/node-red:node-red-contrib-processcube
3
+ image: 5minds/node-red:node-red-contrib-processcube-4
4
4
  build:
5
5
  context: .
6
6
  ports:
7
7
  - "1880:1880"
8
- - "9229:9229"
9
8
  environment:
10
9
  - TZ=Europe/Berlin
11
10
  - ENGINE_URL=http://engine:8000
12
- - FLOWS=/nodered/node-red-contrib-processcube-flows.json
13
11
  volumes:
14
- - ./nodered/:/nodered/
15
- - ./examples/:/examples/
12
+ - ./nodered/:/data/
16
13
  depends_on:
17
14
  - engine
18
15
  - authority
@@ -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.0",
3
+ "version": "1.0.1-develop-6736f8-lz2nfmy5",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -34,7 +34,7 @@ module.exports = function (RED) {
34
34
  if (this.credentials.clientId && this.credentials.clientSecret) {
35
35
  this.engineClient = new engine_client.EngineClient(this.url);
36
36
 
37
- engineClient.applicationInfo
37
+ this.engineClient.applicationInfo
38
38
  .getAuthorityAddress()
39
39
  .then((authorityUrl) => {
40
40
  startRefreshingIdentityCycle(
@@ -1,1037 +0,0 @@
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
- "d": true,
715
- "g": "72d3db13edc2486b",
716
- "name": "",
717
- "engine": "42e6796dddd9d4db",
718
- "multisend": true,
719
- "x": 160,
720
- "y": 360,
721
- "wires": [
722
- [
723
- "a2fb6369b16c12fa"
724
- ]
725
- ]
726
- },
727
- {
728
- "id": "f7c7682e3a6adaaa",
729
- "type": "usertask-input",
730
- "z": "fd3c725340de4f74",
731
- "g": "72d3db13edc2486b",
732
- "name": "",
733
- "engine": "42e6796dddd9d4db",
734
- "query": "payload",
735
- "query_type": "msg",
736
- "force_send_array": false,
737
- "multisend": false,
738
- "x": 380,
739
- "y": 420,
740
- "wires": [
741
- [
742
- "8ef39e83173d41e3"
743
- ]
744
- ]
745
- },
746
- {
747
- "id": "a2fb6369b16c12fa",
748
- "type": "function",
749
- "z": "fd3c725340de4f74",
750
- "g": "72d3db13edc2486b",
751
- "name": "query",
752
- "func": "msg.payload = {\n flowNodeInstanceId: msg.payload.flowNodeInstanceId,\n flowNodeId: \"user_task\"\n};\n\nreturn msg;",
753
- "outputs": 1,
754
- "timeout": 0,
755
- "noerr": 0,
756
- "initialize": "",
757
- "finalize": "",
758
- "libs": [],
759
- "x": 210,
760
- "y": 420,
761
- "wires": [
762
- [
763
- "f7c7682e3a6adaaa"
764
- ]
765
- ]
766
- },
767
- {
768
- "id": "8ef39e83173d41e3",
769
- "type": "function",
770
- "z": "fd3c725340de4f74",
771
- "g": "72d3db13edc2486b",
772
- "name": "build result",
773
- "func": "msg.payload.result = {\n \"field_01\": \"value 01\",\n \"field_02\": \"value 02\"\n}\nreturn msg;",
774
- "outputs": 1,
775
- "timeout": 0,
776
- "noerr": 0,
777
- "initialize": "",
778
- "finalize": "",
779
- "libs": [],
780
- "x": 390,
781
- "y": 480,
782
- "wires": [
783
- [
784
- "f524b8cc35d56849"
785
- ]
786
- ]
787
- },
788
- {
789
- "id": "f524b8cc35d56849",
790
- "type": "usertask-output",
791
- "z": "fd3c725340de4f74",
792
- "g": "72d3db13edc2486b",
793
- "name": "",
794
- "engine": "42e6796dddd9d4db",
795
- "result": "payload.result",
796
- "result_type": "msg",
797
- "x": 580,
798
- "y": 480,
799
- "wires": [
800
- []
801
- ]
802
- },
803
- {
804
- "id": "9fb4017c1d0ac7c9",
805
- "type": "comment",
806
- "z": "fd3c725340de4f74",
807
- "g": "72d3db13edc2486b",
808
- "name": "Demo to listen on a new usertask an finish them",
809
- "info": "",
810
- "x": 240,
811
- "y": 300,
812
- "wires": []
813
- },
814
- {
815
- "id": "baa5d814f2e1f1d8",
816
- "type": "processinstance-query",
817
- "z": "5d27ab4d14b947e9",
818
- "g": "a71a168415778e2c",
819
- "name": "",
820
- "engine": "42e6796dddd9d4db",
821
- "query": "{\"includeXml\":false}",
822
- "query_type": "json",
823
- "x": 320,
824
- "y": 140,
825
- "wires": [
826
- [
827
- "2af2c5031c617e3d"
828
- ]
829
- ]
830
- },
831
- {
832
- "id": "2af2c5031c617e3d",
833
- "type": "debug",
834
- "z": "5d27ab4d14b947e9",
835
- "g": "a71a168415778e2c",
836
- "name": "debug 25",
837
- "active": true,
838
- "tosidebar": true,
839
- "console": false,
840
- "tostatus": false,
841
- "complete": "false",
842
- "statusVal": "",
843
- "statusType": "auto",
844
- "x": 520,
845
- "y": 140,
846
- "wires": []
847
- },
848
- {
849
- "id": "81af643792f131f0",
850
- "type": "inject",
851
- "z": "5d27ab4d14b947e9",
852
- "g": "a71a168415778e2c",
853
- "name": "",
854
- "props": [
855
- {
856
- "p": "payload"
857
- }
858
- ],
859
- "repeat": "",
860
- "crontab": "",
861
- "once": false,
862
- "onceDelay": 0.1,
863
- "topic": "",
864
- "payload": "go",
865
- "payloadType": "str",
866
- "x": 130,
867
- "y": 140,
868
- "wires": [
869
- [
870
- "baa5d814f2e1f1d8"
871
- ]
872
- ]
873
- },
874
- {
875
- "id": "2166b0f822b3e71d",
876
- "type": "comment",
877
- "z": "5d27ab4d14b947e9",
878
- "g": "a71a168415778e2c",
879
- "name": "Query all processinstances from the engine, see the config of `processinstance-query`",
880
- "info": "",
881
- "x": 360,
882
- "y": 80,
883
- "wires": []
884
- },
885
- {
886
- "id": "d97caca0ec54a633",
887
- "type": "processdefinition-query",
888
- "z": "f28ae6aa3a05069e",
889
- "g": "4c59118134081e05",
890
- "name": "Query definitions",
891
- "engine": "42e6796dddd9d4db",
892
- "query": "{\"includeXml\":false}",
893
- "query_type": "json",
894
- "models_only": false,
895
- "x": 310,
896
- "y": 140,
897
- "wires": [
898
- [
899
- "5539a5c4c0f9cbe2"
900
- ]
901
- ]
902
- },
903
- {
904
- "id": "f74139117c9dab27",
905
- "type": "inject",
906
- "z": "f28ae6aa3a05069e",
907
- "g": "4c59118134081e05",
908
- "name": "",
909
- "props": [
910
- {
911
- "p": "payload"
912
- },
913
- {
914
- "p": "topic",
915
- "vt": "str"
916
- }
917
- ],
918
- "repeat": "",
919
- "crontab": "",
920
- "once": false,
921
- "onceDelay": 0.1,
922
- "topic": "",
923
- "payload": "",
924
- "payloadType": "date",
925
- "x": 120,
926
- "y": 140,
927
- "wires": [
928
- [
929
- "d97caca0ec54a633"
930
- ]
931
- ]
932
- },
933
- {
934
- "id": "5539a5c4c0f9cbe2",
935
- "type": "debug",
936
- "z": "f28ae6aa3a05069e",
937
- "g": "4c59118134081e05",
938
- "name": "debug 26",
939
- "active": true,
940
- "tosidebar": true,
941
- "console": false,
942
- "tostatus": false,
943
- "complete": "false",
944
- "statusVal": "",
945
- "statusType": "auto",
946
- "x": 500,
947
- "y": 140,
948
- "wires": []
949
- },
950
- {
951
- "id": "bcc97a73cff5a086",
952
- "type": "processdefinition-query",
953
- "z": "f28ae6aa3a05069e",
954
- "g": "f1d4eaed7570324e",
955
- "name": "Query models",
956
- "engine": "42e6796dddd9d4db",
957
- "query": "{\"includeXml\":false}",
958
- "query_type": "json",
959
- "models_only": true,
960
- "x": 300,
961
- "y": 320,
962
- "wires": [
963
- [
964
- "0633b709dd9c166f"
965
- ]
966
- ]
967
- },
968
- {
969
- "id": "b418463be836efbb",
970
- "type": "inject",
971
- "z": "f28ae6aa3a05069e",
972
- "g": "f1d4eaed7570324e",
973
- "name": "",
974
- "props": [
975
- {
976
- "p": "payload"
977
- },
978
- {
979
- "p": "topic",
980
- "vt": "str"
981
- }
982
- ],
983
- "repeat": "",
984
- "crontab": "",
985
- "once": false,
986
- "onceDelay": 0.1,
987
- "topic": "",
988
- "payload": "",
989
- "payloadType": "date",
990
- "x": 120,
991
- "y": 320,
992
- "wires": [
993
- [
994
- "bcc97a73cff5a086"
995
- ]
996
- ]
997
- },
998
- {
999
- "id": "0633b709dd9c166f",
1000
- "type": "debug",
1001
- "z": "f28ae6aa3a05069e",
1002
- "g": "f1d4eaed7570324e",
1003
- "name": "debug 27",
1004
- "active": true,
1005
- "tosidebar": true,
1006
- "console": false,
1007
- "tostatus": false,
1008
- "complete": "false",
1009
- "statusVal": "",
1010
- "statusType": "auto",
1011
- "x": 480,
1012
- "y": 320,
1013
- "wires": []
1014
- },
1015
- {
1016
- "id": "a8e2b5a6ca25c924",
1017
- "type": "comment",
1018
- "z": "f28ae6aa3a05069e",
1019
- "g": "4c59118134081e05",
1020
- "name": "Definitions",
1021
- "info": "",
1022
- "x": 100,
1023
- "y": 80,
1024
- "wires": []
1025
- },
1026
- {
1027
- "id": "fbb37831549d41ff",
1028
- "type": "comment",
1029
- "z": "f28ae6aa3a05069e",
1030
- "g": "f1d4eaed7570324e",
1031
- "name": "Models",
1032
- "info": "",
1033
- "x": 90,
1034
- "y": 260,
1035
- "wires": []
1036
- }
1037
- ]
@@ -1,3 +0,0 @@
1
- {
2
- "$": "161b525bcc3a85ed486f778fadca44e0c0RvyjjTCLddR3fu+V4rGaC/L1NxysY="
3
- }
@@ -1,15 +0,0 @@
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": "^3.1.10",
11
- "node-red-contrib-inspector": "~1.0.1",
12
- "node-red-debugger": "^1.1.1",
13
- "openapi-red": "^1.2.5"
14
- }
15
- }
@@ -1,159 +0,0 @@
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
- }