@5minds/node-red-contrib-processcube 0.3.5-feature-c8c609-lxi2vjv1 → 0.3.5-feature-6c9546-lxi4vloc

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,12 +43,15 @@
43
43
  "4267576c32c782ec",
44
44
  "68cf69be67688af6",
45
45
  "bcfb8893adeb57ed",
46
- "325156d6b8bfc4b6"
46
+ "325156d6b8bfc4b6",
47
+ "dac4a2305b629b9f",
48
+ "6d1847a8cc5103ce",
49
+ "3a47f3acf7a512ea"
47
50
  ],
48
51
  "x": 34,
49
52
  "y": 19,
50
53
  "w": 1092,
51
- "h": 222
54
+ "h": 342
52
55
  },
53
56
  {
54
57
  "id": "09cdc14cfb8ad687",
@@ -76,12 +79,13 @@
76
79
  "1d5b0759c3226e37",
77
80
  "97afbbf01ec1cd88",
78
81
  "2b3f33b7a9dceb49",
79
- "a61cb4c20f79d872"
82
+ "a61cb4c20f79d872",
83
+ "111c8606ea343c1f"
80
84
  ],
81
85
  "x": 14,
82
86
  "y": 59,
83
87
  "w": 1012,
84
- "h": 282
88
+ "h": 342
85
89
  },
86
90
  {
87
91
  "id": "ec36901abb138306",
@@ -99,21 +103,21 @@
99
103
  "nodes": [
100
104
  "1224ebb8edb477d2",
101
105
  "05284831924ef310",
102
- "99475ac148f6484b",
103
106
  "5a61ca5b5a13aa8d",
104
- "ebd67a338575690d",
105
107
  "1497b762d2ac1723",
106
- "64068e75e541a72e",
107
- "b8ac2a6ff7cc5ef1",
108
108
  "493500b42d8d0f5b",
109
109
  "34984ae3f4e83b0b",
110
110
  "8e2a2f993ee7156a",
111
- "c06d872a4718b6da"
111
+ "c06d872a4718b6da",
112
+ "eee38d2764bac337",
113
+ "da518322186bd83b",
114
+ "5d8b5657929f658a",
115
+ "a4d741804929ba73"
112
116
  ],
113
117
  "x": 14,
114
- "y": 379,
118
+ "y": 419,
115
119
  "w": 952,
116
- "h": 322
120
+ "h": 342
117
121
  },
118
122
  {
119
123
  "id": "f29182f397cab86b",
@@ -131,10 +135,11 @@
131
135
  "nodes": [
132
136
  "3011d9be5207350a",
133
137
  "aa3ca456ddf1a7bd",
134
- "a2b09670ce6219e3"
138
+ "a2b09670ce6219e3",
139
+ "efa57df2a7fa4a53"
135
140
  ],
136
141
  "x": 34,
137
- "y": 259,
142
+ "y": 379,
138
143
  "w": 482,
139
144
  "h": 162
140
145
  },
@@ -229,11 +234,6 @@
229
234
  "widgetGap": "12px"
230
235
  }
231
236
  },
232
- {
233
- "id": "9d1144e1dd0a70e3",
234
- "type": "processcube-engine-config",
235
- "url": "http://localhost:56000"
236
- },
237
237
  {
238
238
  "id": "84f18cf9bf25b858",
239
239
  "type": "openApi-red",
@@ -1105,7 +1105,7 @@
1105
1105
  "g": "405f8c703368777c",
1106
1106
  "name": "",
1107
1107
  "engine": "d042a4c68f51d6ab",
1108
- "multisend": true,
1108
+ "multisend": false,
1109
1109
  "x": 540,
1110
1110
  "y": 140,
1111
1111
  "wires": [
@@ -1128,7 +1128,7 @@
1128
1128
  "complete": "false",
1129
1129
  "statusVal": "",
1130
1130
  "statusType": "auto",
1131
- "x": 800,
1131
+ "x": 780,
1132
1132
  "y": 80,
1133
1133
  "wires": []
1134
1134
  },
@@ -1137,7 +1137,7 @@
1137
1137
  "type": "function",
1138
1138
  "z": "fd3c725340de4f74",
1139
1139
  "g": "405f8c703368777c",
1140
- "name": "function 2",
1140
+ "name": "prepare formData",
1141
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;",
1142
1142
  "outputs": 1,
1143
1143
  "timeout": 0,
@@ -1145,7 +1145,7 @@
1145
1145
  "initialize": "",
1146
1146
  "finalize": "",
1147
1147
  "libs": [],
1148
- "x": 800,
1148
+ "x": 810,
1149
1149
  "y": 140,
1150
1150
  "wires": [
1151
1151
  [
@@ -1199,13 +1199,14 @@
1199
1199
  "z": "fd3c725340de4f74",
1200
1200
  "g": "f29182f397cab86b",
1201
1201
  "name": "",
1202
- "engine": "9d1144e1dd0a70e3",
1202
+ "engine": "d042a4c68f51d6ab",
1203
1203
  "multisend": false,
1204
1204
  "x": 160,
1205
- "y": 380,
1205
+ "y": 500,
1206
1206
  "wires": [
1207
1207
  [
1208
- "aa3ca456ddf1a7bd"
1208
+ "aa3ca456ddf1a7bd",
1209
+ "efa57df2a7fa4a53"
1209
1210
  ]
1210
1211
  ]
1211
1212
  },
@@ -1223,7 +1224,7 @@
1223
1224
  "statusVal": "",
1224
1225
  "statusType": "auto",
1225
1226
  "x": 410,
1226
- "y": 380,
1227
+ "y": 500,
1227
1228
  "wires": []
1228
1229
  },
1229
1230
  {
@@ -1234,7 +1235,7 @@
1234
1235
  "name": "Listener für neue UserTasks",
1235
1236
  "info": "",
1236
1237
  "x": 180,
1237
- "y": 300,
1238
+ "y": 420,
1238
1239
  "wires": []
1239
1240
  },
1240
1241
  {
@@ -1263,6 +1264,89 @@
1263
1264
  ]
1264
1265
  ]
1265
1266
  },
1267
+ {
1268
+ "id": "dac4a2305b629b9f",
1269
+ "type": "inject",
1270
+ "z": "fd3c725340de4f74",
1271
+ "g": "405f8c703368777c",
1272
+ "name": "SampleUserTask_Process:Activity_0glvmjk",
1273
+ "props": [
1274
+ {
1275
+ "p": "payload"
1276
+ }
1277
+ ],
1278
+ "repeat": "",
1279
+ "crontab": "",
1280
+ "once": false,
1281
+ "onceDelay": 0.1,
1282
+ "topic": "",
1283
+ "payload": "{\"processModelId\":\"SampleUserTask_Process\",\"flowNodeId\":\"Activity_0glvmjk\",\"flowNodeType\":\"bpmn:UserTask\",\"state\":\"suspended\"}",
1284
+ "payloadType": "json",
1285
+ "x": 240,
1286
+ "y": 200,
1287
+ "wires": [
1288
+ [
1289
+ "ec0be0ef92746967"
1290
+ ]
1291
+ ]
1292
+ },
1293
+ {
1294
+ "id": "6d1847a8cc5103ce",
1295
+ "type": "inject",
1296
+ "z": "fd3c725340de4f74",
1297
+ "g": "405f8c703368777c",
1298
+ "name": "flowNodeInstanceId",
1299
+ "props": [
1300
+ {
1301
+ "p": "payload"
1302
+ }
1303
+ ],
1304
+ "repeat": "",
1305
+ "crontab": "",
1306
+ "once": false,
1307
+ "onceDelay": 0.1,
1308
+ "topic": "",
1309
+ "payload": "{\"flowNodeInstanceId\":\"af9f9061-304c-49df-8533-ff4260018130\"}",
1310
+ "payloadType": "json",
1311
+ "x": 310,
1312
+ "y": 260,
1313
+ "wires": [
1314
+ [
1315
+ "ec0be0ef92746967"
1316
+ ]
1317
+ ]
1318
+ },
1319
+ {
1320
+ "id": "3a47f3acf7a512ea",
1321
+ "type": "link in",
1322
+ "z": "fd3c725340de4f74",
1323
+ "g": "405f8c703368777c",
1324
+ "name": "link in 1",
1325
+ "links": [
1326
+ "efa57df2a7fa4a53"
1327
+ ],
1328
+ "x": 385,
1329
+ "y": 320,
1330
+ "wires": [
1331
+ [
1332
+ "ec0be0ef92746967"
1333
+ ]
1334
+ ]
1335
+ },
1336
+ {
1337
+ "id": "efa57df2a7fa4a53",
1338
+ "type": "link out",
1339
+ "z": "fd3c725340de4f74",
1340
+ "g": "f29182f397cab86b",
1341
+ "name": "link out 1",
1342
+ "mode": "link",
1343
+ "links": [
1344
+ "3a47f3acf7a512ea"
1345
+ ],
1346
+ "x": 375,
1347
+ "y": 440,
1348
+ "wires": []
1349
+ },
1266
1350
  {
1267
1351
  "id": "0f5978f327b01bfb",
1268
1352
  "type": "ui-table",
@@ -1459,7 +1543,7 @@
1459
1543
  "statusVal": "",
1460
1544
  "statusType": "auto",
1461
1545
  "x": 860,
1462
- "y": 480,
1546
+ "y": 520,
1463
1547
  "wires": []
1464
1548
  },
1465
1549
  {
@@ -1481,7 +1565,7 @@
1481
1565
  "name": "Auftrag bearbeiten",
1482
1566
  "info": "",
1483
1567
  "x": 130,
1484
- "y": 420,
1568
+ "y": 460,
1485
1569
  "wires": []
1486
1570
  },
1487
1571
  {
@@ -1509,10 +1593,10 @@
1509
1593
  "ui": "26a45d43c064bdb6",
1510
1594
  "name": "",
1511
1595
  "x": 100,
1512
- "y": 300,
1596
+ "y": 360,
1513
1597
  "wires": [
1514
1598
  [
1515
- "2b3f33b7a9dceb49"
1599
+ "111c8606ea343c1f"
1516
1600
  ]
1517
1601
  ]
1518
1602
  },
@@ -1534,7 +1618,7 @@
1534
1618
  "checkall": "true",
1535
1619
  "repair": false,
1536
1620
  "outputs": 1,
1537
- "x": 280,
1621
+ "x": 300,
1538
1622
  "y": 300,
1539
1623
  "wires": [
1540
1624
  [
@@ -1572,32 +1656,6 @@
1572
1656
  ]
1573
1657
  ]
1574
1658
  },
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
1659
  {
1602
1660
  "id": "5a61ca5b5a13aa8d",
1603
1661
  "type": "inject",
@@ -1621,37 +1679,20 @@
1621
1679
  "payload": "",
1622
1680
  "payloadType": "date",
1623
1681
  "x": 120,
1624
- "y": 620,
1682
+ "y": 660,
1625
1683
  "wires": [
1626
1684
  [
1627
1685
  "1497b762d2ac1723"
1628
1686
  ]
1629
1687
  ]
1630
1688
  },
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
1689
  {
1649
1690
  "id": "1497b762d2ac1723",
1650
1691
  "type": "function",
1651
1692
  "z": "b195bc3ca2e1a665",
1652
1693
  "g": "ec36901abb138306",
1653
1694
  "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;",
1695
+ "func": "if (msg.payload.query && msg.payload.query.flowNodeInstanceId) {\n msg.payload = {\n \"flowNodeInstanceId\": msg.payload.query.flowNodeInstanceId\n };\n}\n\nreturn msg;",
1655
1696
  "outputs": 1,
1656
1697
  "timeout": 0,
1657
1698
  "noerr": 0,
@@ -1659,52 +1700,14 @@
1659
1700
  "finalize": "",
1660
1701
  "libs": [],
1661
1702
  "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,
1703
+ "y": 660,
1684
1704
  "wires": [
1685
1705
  [
1686
- "b8ac2a6ff7cc5ef1",
1687
- "8e2a2f993ee7156a"
1706
+ "eee38d2764bac337",
1707
+ "5d8b5657929f658a"
1688
1708
  ]
1689
1709
  ]
1690
1710
  },
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
1711
  {
1709
1712
  "id": "493500b42d8d0f5b",
1710
1713
  "type": "ui-event",
@@ -1713,10 +1716,10 @@
1713
1716
  "ui": "26a45d43c064bdb6",
1714
1717
  "name": "",
1715
1718
  "x": 120,
1716
- "y": 560,
1719
+ "y": 600,
1717
1720
  "wires": [
1718
1721
  [
1719
- "34984ae3f4e83b0b"
1722
+ "a4d741804929ba73"
1720
1723
  ]
1721
1724
  ]
1722
1725
  },
@@ -1738,8 +1741,8 @@
1738
1741
  "checkall": "true",
1739
1742
  "repair": false,
1740
1743
  "outputs": 1,
1741
- "x": 320,
1742
- "y": 560,
1744
+ "x": 560,
1745
+ "y": 600,
1743
1746
  "wires": [
1744
1747
  [
1745
1748
  "1497b762d2ac1723"
@@ -1761,7 +1764,7 @@
1761
1764
  "width": 0,
1762
1765
  "height": 0,
1763
1766
  "x": 600,
1764
- "y": 480,
1767
+ "y": 520,
1765
1768
  "wires": [
1766
1769
  [
1767
1770
  "1224ebb8edb477d2"
@@ -1787,11 +1790,113 @@
1787
1790
  "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
1791
  "payloadType": "json",
1789
1792
  "x": 250,
1790
- "y": 480,
1793
+ "y": 520,
1791
1794
  "wires": [
1792
1795
  [
1793
1796
  "8e2a2f993ee7156a"
1794
1797
  ]
1795
1798
  ]
1799
+ },
1800
+ {
1801
+ "id": "eee38d2764bac337",
1802
+ "type": "usertask-input",
1803
+ "z": "b195bc3ca2e1a665",
1804
+ "g": "ec36901abb138306",
1805
+ "name": "",
1806
+ "engine": "d042a4c68f51d6ab",
1807
+ "multisend": true,
1808
+ "x": 600,
1809
+ "y": 660,
1810
+ "wires": [
1811
+ [
1812
+ "da518322186bd83b"
1813
+ ]
1814
+ ]
1815
+ },
1816
+ {
1817
+ "id": "da518322186bd83b",
1818
+ "type": "debug",
1819
+ "z": "b195bc3ca2e1a665",
1820
+ "g": "ec36901abb138306",
1821
+ "name": "debug 13",
1822
+ "active": true,
1823
+ "tosidebar": true,
1824
+ "console": false,
1825
+ "tostatus": false,
1826
+ "complete": "false",
1827
+ "statusVal": "",
1828
+ "statusType": "auto",
1829
+ "x": 860,
1830
+ "y": 660,
1831
+ "wires": []
1832
+ },
1833
+ {
1834
+ "id": "5d8b5657929f658a",
1835
+ "type": "debug",
1836
+ "z": "b195bc3ca2e1a665",
1837
+ "g": "ec36901abb138306",
1838
+ "name": "debug 14",
1839
+ "active": true,
1840
+ "tosidebar": true,
1841
+ "console": false,
1842
+ "tostatus": false,
1843
+ "complete": "false",
1844
+ "statusVal": "",
1845
+ "statusType": "auto",
1846
+ "x": 580,
1847
+ "y": 720,
1848
+ "wires": []
1849
+ },
1850
+ {
1851
+ "id": "a4d741804929ba73",
1852
+ "type": "switch",
1853
+ "z": "b195bc3ca2e1a665",
1854
+ "g": "ec36901abb138306",
1855
+ "name": "Seite sichtbar",
1856
+ "property": "topic",
1857
+ "propertyType": "msg",
1858
+ "rules": [
1859
+ {
1860
+ "t": "eq",
1861
+ "v": "$pageview",
1862
+ "vt": "str"
1863
+ }
1864
+ ],
1865
+ "checkall": "true",
1866
+ "repair": false,
1867
+ "outputs": 1,
1868
+ "x": 320,
1869
+ "y": 600,
1870
+ "wires": [
1871
+ [
1872
+ "34984ae3f4e83b0b"
1873
+ ]
1874
+ ]
1875
+ },
1876
+ {
1877
+ "id": "111c8606ea343c1f",
1878
+ "type": "switch",
1879
+ "z": "b195bc3ca2e1a665",
1880
+ "g": "09cdc14cfb8ad687",
1881
+ "name": "Seite sichtbar",
1882
+ "property": "topic",
1883
+ "propertyType": "msg",
1884
+ "rules": [
1885
+ {
1886
+ "t": "eq",
1887
+ "v": "$pageview",
1888
+ "vt": "str"
1889
+ }
1890
+ ],
1891
+ "checkall": "true",
1892
+ "repair": false,
1893
+ "outputs": 1,
1894
+ "x": 280,
1895
+ "y": 360,
1896
+ "wires": [
1897
+ [
1898
+ "2b3f33b7a9dceb49"
1899
+ ]
1900
+ ]
1796
1901
  }
1797
1902
  ]
@@ -44,12 +44,14 @@
44
44
  "68cf69be67688af6",
45
45
  "bcfb8893adeb57ed",
46
46
  "325156d6b8bfc4b6",
47
- "dac4a2305b629b9f"
47
+ "dac4a2305b629b9f",
48
+ "6d1847a8cc5103ce",
49
+ "3a47f3acf7a512ea"
48
50
  ],
49
51
  "x": 34,
50
52
  "y": 19,
51
53
  "w": 1092,
52
- "h": 222
54
+ "h": 342
53
55
  },
54
56
  {
55
57
  "id": "09cdc14cfb8ad687",
@@ -77,12 +79,13 @@
77
79
  "1d5b0759c3226e37",
78
80
  "97afbbf01ec1cd88",
79
81
  "2b3f33b7a9dceb49",
80
- "a61cb4c20f79d872"
82
+ "a61cb4c20f79d872",
83
+ "111c8606ea343c1f"
81
84
  ],
82
85
  "x": 14,
83
86
  "y": 59,
84
87
  "w": 1012,
85
- "h": 282
88
+ "h": 342
86
89
  },
87
90
  {
88
91
  "id": "ec36901abb138306",
@@ -100,21 +103,21 @@
100
103
  "nodes": [
101
104
  "1224ebb8edb477d2",
102
105
  "05284831924ef310",
103
- "99475ac148f6484b",
104
106
  "5a61ca5b5a13aa8d",
105
- "ebd67a338575690d",
106
107
  "1497b762d2ac1723",
107
- "64068e75e541a72e",
108
- "b8ac2a6ff7cc5ef1",
109
108
  "493500b42d8d0f5b",
110
109
  "34984ae3f4e83b0b",
111
110
  "8e2a2f993ee7156a",
112
- "c06d872a4718b6da"
111
+ "c06d872a4718b6da",
112
+ "eee38d2764bac337",
113
+ "da518322186bd83b",
114
+ "5d8b5657929f658a",
115
+ "a4d741804929ba73"
113
116
  ],
114
117
  "x": 14,
115
- "y": 379,
118
+ "y": 419,
116
119
  "w": 952,
117
- "h": 322
120
+ "h": 342
118
121
  },
119
122
  {
120
123
  "id": "f29182f397cab86b",
@@ -132,10 +135,11 @@
132
135
  "nodes": [
133
136
  "3011d9be5207350a",
134
137
  "aa3ca456ddf1a7bd",
135
- "a2b09670ce6219e3"
138
+ "a2b09670ce6219e3",
139
+ "efa57df2a7fa4a53"
136
140
  ],
137
141
  "x": 34,
138
- "y": 259,
142
+ "y": 379,
139
143
  "w": 482,
140
144
  "h": 162
141
145
  },
@@ -230,11 +234,6 @@
230
234
  "widgetGap": "12px"
231
235
  }
232
236
  },
233
- {
234
- "id": "9d1144e1dd0a70e3",
235
- "type": "processcube-engine-config",
236
- "url": "http://localhost:56000"
237
- },
238
237
  {
239
238
  "id": "84f18cf9bf25b858",
240
239
  "type": "openApi-red",
@@ -1106,7 +1105,7 @@
1106
1105
  "g": "405f8c703368777c",
1107
1106
  "name": "",
1108
1107
  "engine": "d042a4c68f51d6ab",
1109
- "multisend": true,
1108
+ "multisend": false,
1110
1109
  "x": 540,
1111
1110
  "y": 140,
1112
1111
  "wires": [
@@ -1129,7 +1128,7 @@
1129
1128
  "complete": "false",
1130
1129
  "statusVal": "",
1131
1130
  "statusType": "auto",
1132
- "x": 800,
1131
+ "x": 780,
1133
1132
  "y": 80,
1134
1133
  "wires": []
1135
1134
  },
@@ -1138,7 +1137,7 @@
1138
1137
  "type": "function",
1139
1138
  "z": "fd3c725340de4f74",
1140
1139
  "g": "405f8c703368777c",
1141
- "name": "function 2",
1140
+ "name": "prepare formData",
1142
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;",
1143
1142
  "outputs": 1,
1144
1143
  "timeout": 0,
@@ -1146,7 +1145,7 @@
1146
1145
  "initialize": "",
1147
1146
  "finalize": "",
1148
1147
  "libs": [],
1149
- "x": 800,
1148
+ "x": 810,
1150
1149
  "y": 140,
1151
1150
  "wires": [
1152
1151
  [
@@ -1200,13 +1199,14 @@
1200
1199
  "z": "fd3c725340de4f74",
1201
1200
  "g": "f29182f397cab86b",
1202
1201
  "name": "",
1203
- "engine": "9d1144e1dd0a70e3",
1202
+ "engine": "d042a4c68f51d6ab",
1204
1203
  "multisend": false,
1205
1204
  "x": 160,
1206
- "y": 380,
1205
+ "y": 500,
1207
1206
  "wires": [
1208
1207
  [
1209
- "aa3ca456ddf1a7bd"
1208
+ "aa3ca456ddf1a7bd",
1209
+ "efa57df2a7fa4a53"
1210
1210
  ]
1211
1211
  ]
1212
1212
  },
@@ -1224,7 +1224,7 @@
1224
1224
  "statusVal": "",
1225
1225
  "statusType": "auto",
1226
1226
  "x": 410,
1227
- "y": 380,
1227
+ "y": 500,
1228
1228
  "wires": []
1229
1229
  },
1230
1230
  {
@@ -1235,7 +1235,7 @@
1235
1235
  "name": "Listener für neue UserTasks",
1236
1236
  "info": "",
1237
1237
  "x": 180,
1238
- "y": 300,
1238
+ "y": 420,
1239
1239
  "wires": []
1240
1240
  },
1241
1241
  {
@@ -1290,6 +1290,63 @@
1290
1290
  ]
1291
1291
  ]
1292
1292
  },
1293
+ {
1294
+ "id": "6d1847a8cc5103ce",
1295
+ "type": "inject",
1296
+ "z": "fd3c725340de4f74",
1297
+ "g": "405f8c703368777c",
1298
+ "name": "flowNodeInstanceId",
1299
+ "props": [
1300
+ {
1301
+ "p": "payload"
1302
+ }
1303
+ ],
1304
+ "repeat": "",
1305
+ "crontab": "",
1306
+ "once": false,
1307
+ "onceDelay": 0.1,
1308
+ "topic": "",
1309
+ "payload": "{\"flowNodeInstanceId\":\"af9f9061-304c-49df-8533-ff4260018130\"}",
1310
+ "payloadType": "json",
1311
+ "x": 310,
1312
+ "y": 260,
1313
+ "wires": [
1314
+ [
1315
+ "ec0be0ef92746967"
1316
+ ]
1317
+ ]
1318
+ },
1319
+ {
1320
+ "id": "3a47f3acf7a512ea",
1321
+ "type": "link in",
1322
+ "z": "fd3c725340de4f74",
1323
+ "g": "405f8c703368777c",
1324
+ "name": "link in 1",
1325
+ "links": [
1326
+ "efa57df2a7fa4a53"
1327
+ ],
1328
+ "x": 385,
1329
+ "y": 320,
1330
+ "wires": [
1331
+ [
1332
+ "ec0be0ef92746967"
1333
+ ]
1334
+ ]
1335
+ },
1336
+ {
1337
+ "id": "efa57df2a7fa4a53",
1338
+ "type": "link out",
1339
+ "z": "fd3c725340de4f74",
1340
+ "g": "f29182f397cab86b",
1341
+ "name": "link out 1",
1342
+ "mode": "link",
1343
+ "links": [
1344
+ "3a47f3acf7a512ea"
1345
+ ],
1346
+ "x": 375,
1347
+ "y": 440,
1348
+ "wires": []
1349
+ },
1293
1350
  {
1294
1351
  "id": "0f5978f327b01bfb",
1295
1352
  "type": "ui-table",
@@ -1486,7 +1543,7 @@
1486
1543
  "statusVal": "",
1487
1544
  "statusType": "auto",
1488
1545
  "x": 860,
1489
- "y": 480,
1546
+ "y": 520,
1490
1547
  "wires": []
1491
1548
  },
1492
1549
  {
@@ -1508,7 +1565,7 @@
1508
1565
  "name": "Auftrag bearbeiten",
1509
1566
  "info": "",
1510
1567
  "x": 130,
1511
- "y": 420,
1568
+ "y": 460,
1512
1569
  "wires": []
1513
1570
  },
1514
1571
  {
@@ -1536,10 +1593,10 @@
1536
1593
  "ui": "26a45d43c064bdb6",
1537
1594
  "name": "",
1538
1595
  "x": 100,
1539
- "y": 300,
1596
+ "y": 360,
1540
1597
  "wires": [
1541
1598
  [
1542
- "2b3f33b7a9dceb49"
1599
+ "111c8606ea343c1f"
1543
1600
  ]
1544
1601
  ]
1545
1602
  },
@@ -1561,7 +1618,7 @@
1561
1618
  "checkall": "true",
1562
1619
  "repair": false,
1563
1620
  "outputs": 1,
1564
- "x": 280,
1621
+ "x": 300,
1565
1622
  "y": 300,
1566
1623
  "wires": [
1567
1624
  [
@@ -1599,32 +1656,6 @@
1599
1656
  ]
1600
1657
  ]
1601
1658
  },
1602
- {
1603
- "id": "99475ac148f6484b",
1604
- "type": "http request",
1605
- "z": "b195bc3ca2e1a665",
1606
- "g": "ec36901abb138306",
1607
- "name": "",
1608
- "method": "GET",
1609
- "ret": "obj",
1610
- "paytoqs": "ignore",
1611
- "url": "http://localhost:56000/atlas_engine/api/v1/flow_node_instances?limit=1&flowNodeInstanceId={{{flowNodeInstanceId}}}&flowNodeType=bpmn%3AUserTask",
1612
- "tls": "",
1613
- "persist": false,
1614
- "proxy": "",
1615
- "insecureHTTPParser": false,
1616
- "authType": "bearer",
1617
- "senderr": false,
1618
- "headers": [],
1619
- "x": 490,
1620
- "y": 620,
1621
- "wires": [
1622
- [
1623
- "ebd67a338575690d",
1624
- "64068e75e541a72e"
1625
- ]
1626
- ]
1627
- },
1628
1659
  {
1629
1660
  "id": "5a61ca5b5a13aa8d",
1630
1661
  "type": "inject",
@@ -1648,37 +1679,20 @@
1648
1679
  "payload": "",
1649
1680
  "payloadType": "date",
1650
1681
  "x": 120,
1651
- "y": 620,
1682
+ "y": 660,
1652
1683
  "wires": [
1653
1684
  [
1654
1685
  "1497b762d2ac1723"
1655
1686
  ]
1656
1687
  ]
1657
1688
  },
1658
- {
1659
- "id": "ebd67a338575690d",
1660
- "type": "debug",
1661
- "z": "b195bc3ca2e1a665",
1662
- "g": "ec36901abb138306",
1663
- "name": "debug 8",
1664
- "active": true,
1665
- "tosidebar": true,
1666
- "console": false,
1667
- "tostatus": false,
1668
- "complete": "false",
1669
- "statusVal": "",
1670
- "statusType": "auto",
1671
- "x": 660,
1672
- "y": 660,
1673
- "wires": []
1674
- },
1675
1689
  {
1676
1690
  "id": "1497b762d2ac1723",
1677
1691
  "type": "function",
1678
1692
  "z": "b195bc3ca2e1a665",
1679
1693
  "g": "ec36901abb138306",
1680
1694
  "name": "parameter setzen",
1681
- "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;",
1695
+ "func": "if (msg.payload.query && msg.payload.query.flowNodeInstanceId) {\n msg.payload = {\n \"flowNodeInstanceId\": msg.payload.query.flowNodeInstanceId\n };\n}\n\nreturn msg;",
1682
1696
  "outputs": 1,
1683
1697
  "timeout": 0,
1684
1698
  "noerr": 0,
@@ -1686,52 +1700,14 @@
1686
1700
  "finalize": "",
1687
1701
  "libs": [],
1688
1702
  "x": 310,
1689
- "y": 620,
1690
- "wires": [
1691
- [
1692
- "99475ac148f6484b"
1693
- ]
1694
- ]
1695
- },
1696
- {
1697
- "id": "64068e75e541a72e",
1698
- "type": "function",
1699
- "z": "b195bc3ca2e1a665",
1700
- "g": "ec36901abb138306",
1701
- "name": "prepare UserTask ",
1702
- "func": "msg.payload = {\n \"userTask\": msg.payload.flowNodeInstances[0]\n}\n\nreturn msg;",
1703
- "outputs": 1,
1704
- "timeout": 0,
1705
- "noerr": 0,
1706
- "initialize": "",
1707
- "finalize": "",
1708
- "libs": [],
1709
- "x": 690,
1710
- "y": 620,
1703
+ "y": 660,
1711
1704
  "wires": [
1712
1705
  [
1713
- "b8ac2a6ff7cc5ef1",
1714
- "8e2a2f993ee7156a"
1706
+ "eee38d2764bac337",
1707
+ "5d8b5657929f658a"
1715
1708
  ]
1716
1709
  ]
1717
1710
  },
1718
- {
1719
- "id": "b8ac2a6ff7cc5ef1",
1720
- "type": "debug",
1721
- "z": "b195bc3ca2e1a665",
1722
- "g": "ec36901abb138306",
1723
- "name": "debug 9",
1724
- "active": true,
1725
- "tosidebar": true,
1726
- "console": false,
1727
- "tostatus": false,
1728
- "complete": "false",
1729
- "statusVal": "",
1730
- "statusType": "auto",
1731
- "x": 860,
1732
- "y": 620,
1733
- "wires": []
1734
- },
1735
1711
  {
1736
1712
  "id": "493500b42d8d0f5b",
1737
1713
  "type": "ui-event",
@@ -1740,10 +1716,10 @@
1740
1716
  "ui": "26a45d43c064bdb6",
1741
1717
  "name": "",
1742
1718
  "x": 120,
1743
- "y": 560,
1719
+ "y": 600,
1744
1720
  "wires": [
1745
1721
  [
1746
- "34984ae3f4e83b0b"
1722
+ "a4d741804929ba73"
1747
1723
  ]
1748
1724
  ]
1749
1725
  },
@@ -1765,8 +1741,8 @@
1765
1741
  "checkall": "true",
1766
1742
  "repair": false,
1767
1743
  "outputs": 1,
1768
- "x": 320,
1769
- "y": 560,
1744
+ "x": 560,
1745
+ "y": 600,
1770
1746
  "wires": [
1771
1747
  [
1772
1748
  "1497b762d2ac1723"
@@ -1788,7 +1764,7 @@
1788
1764
  "width": 0,
1789
1765
  "height": 0,
1790
1766
  "x": 600,
1791
- "y": 480,
1767
+ "y": 520,
1792
1768
  "wires": [
1793
1769
  [
1794
1770
  "1224ebb8edb477d2"
@@ -1814,11 +1790,113 @@
1814
1790
  "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\"}]}}}",
1815
1791
  "payloadType": "json",
1816
1792
  "x": 250,
1817
- "y": 480,
1793
+ "y": 520,
1818
1794
  "wires": [
1819
1795
  [
1820
1796
  "8e2a2f993ee7156a"
1821
1797
  ]
1822
1798
  ]
1799
+ },
1800
+ {
1801
+ "id": "eee38d2764bac337",
1802
+ "type": "usertask-input",
1803
+ "z": "b195bc3ca2e1a665",
1804
+ "g": "ec36901abb138306",
1805
+ "name": "",
1806
+ "engine": "d042a4c68f51d6ab",
1807
+ "multisend": false,
1808
+ "x": 600,
1809
+ "y": 660,
1810
+ "wires": [
1811
+ [
1812
+ "da518322186bd83b"
1813
+ ]
1814
+ ]
1815
+ },
1816
+ {
1817
+ "id": "da518322186bd83b",
1818
+ "type": "debug",
1819
+ "z": "b195bc3ca2e1a665",
1820
+ "g": "ec36901abb138306",
1821
+ "name": "debug 13",
1822
+ "active": true,
1823
+ "tosidebar": true,
1824
+ "console": false,
1825
+ "tostatus": false,
1826
+ "complete": "false",
1827
+ "statusVal": "",
1828
+ "statusType": "auto",
1829
+ "x": 860,
1830
+ "y": 660,
1831
+ "wires": []
1832
+ },
1833
+ {
1834
+ "id": "5d8b5657929f658a",
1835
+ "type": "debug",
1836
+ "z": "b195bc3ca2e1a665",
1837
+ "g": "ec36901abb138306",
1838
+ "name": "debug 14",
1839
+ "active": true,
1840
+ "tosidebar": true,
1841
+ "console": false,
1842
+ "tostatus": false,
1843
+ "complete": "false",
1844
+ "statusVal": "",
1845
+ "statusType": "auto",
1846
+ "x": 580,
1847
+ "y": 720,
1848
+ "wires": []
1849
+ },
1850
+ {
1851
+ "id": "a4d741804929ba73",
1852
+ "type": "switch",
1853
+ "z": "b195bc3ca2e1a665",
1854
+ "g": "ec36901abb138306",
1855
+ "name": "Seite sichtbar",
1856
+ "property": "topic",
1857
+ "propertyType": "msg",
1858
+ "rules": [
1859
+ {
1860
+ "t": "eq",
1861
+ "v": "$pageview",
1862
+ "vt": "str"
1863
+ }
1864
+ ],
1865
+ "checkall": "true",
1866
+ "repair": false,
1867
+ "outputs": 1,
1868
+ "x": 320,
1869
+ "y": 600,
1870
+ "wires": [
1871
+ [
1872
+ "34984ae3f4e83b0b"
1873
+ ]
1874
+ ]
1875
+ },
1876
+ {
1877
+ "id": "111c8606ea343c1f",
1878
+ "type": "switch",
1879
+ "z": "b195bc3ca2e1a665",
1880
+ "g": "09cdc14cfb8ad687",
1881
+ "name": "Seite sichtbar",
1882
+ "property": "topic",
1883
+ "propertyType": "msg",
1884
+ "rules": [
1885
+ {
1886
+ "t": "eq",
1887
+ "v": "$pageview",
1888
+ "vt": "str"
1889
+ }
1890
+ ],
1891
+ "checkall": "true",
1892
+ "repair": false,
1893
+ "outputs": 1,
1894
+ "x": 280,
1895
+ "y": 360,
1896
+ "wires": [
1897
+ [
1898
+ "2b3f33b7a9dceb49"
1899
+ ]
1900
+ ]
1823
1901
  }
1824
1902
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "0.3.5-feature-c8c609-lxi2vjv1",
3
+ "version": "0.3.5-feature-6c9546-lxi4vloc",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "authors": [
package/usertask-input.js CHANGED
@@ -43,19 +43,30 @@ module.exports = function(RED) {
43
43
  });
44
44
 
45
45
  node.on('input', async function(msg) {
46
+ console.log(`UserTaskInput received message: ${JSON.stringify(msg.payload)}`);
46
47
 
47
- client.userTasks.query(msg.payload).then((matchingFlowNodes) => {
48
- if (matchingFlowNodes && matchingFlowNodes.userTasks && matchingFlowNodes.userTasks.length == 1) {
49
- userTask = matchingFlowNodes.userTasks[0];
48
+ let query = msg.payload;
49
+ query = {"flowNodeInstanceId":"1f7225f4-f3c0-4865-91ad-8c6c71d23c22"};
50
+
51
+ console.log(`UserTaskInput query: ${JSON.stringify(query)}`);
52
+
53
+ client.userTasks.query({
54
+ "flowNodeInstanceId" : "1f7225f4-f3c0-4865-91ad-8c6c71d23c22"
55
+ }).then((matchingFlowNodes) => {
56
+
57
+ console.log(`UserTaskInput query result: ${JSON.stringify(matchingFlowNodes)}`);
58
+
59
+ if (matchingFlowNodes && matchingFlowNodes.flowNodeInstances && matchingFlowNodes.flowNodeInstances.length == 1) {
60
+ userTask = matchingFlowNodes.flowNodeInstances[0];
50
61
 
51
62
  node.send({ payload: {userTask: userTask } });
52
63
  } else {
53
64
  if (config.multisend) {
54
- matchingFlowNodes.userTasks.forEach((userTask) => {
55
- node.send({ payload: { userTask: userTask } });
56
- });
65
+ //matchingFlowNodes.forEach((userTask) => {
66
+ // node.send({ payload: { userTask: userTask } });
67
+ //});
57
68
  } else {
58
- node.send({ payload: { userTasks: matchingFlowNodes.userTasks } });
69
+ node.send({ payload: { userTasks: matchingFlowNodes } });
59
70
  }
60
71
  }
61
72
  });