@5minds/node-red-contrib-processcube 0.3.5-feature-58d0b1-lxi3af5i → 0.3.5-feature-3e7fb8-lxi56r4q

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,12 +45,13 @@
45
45
  "bcfb8893adeb57ed",
46
46
  "325156d6b8bfc4b6",
47
47
  "dac4a2305b629b9f",
48
- "6d1847a8cc5103ce"
48
+ "6d1847a8cc5103ce",
49
+ "3a47f3acf7a512ea"
49
50
  ],
50
51
  "x": 34,
51
52
  "y": 19,
52
53
  "w": 1092,
53
- "h": 282
54
+ "h": 342
54
55
  },
55
56
  {
56
57
  "id": "09cdc14cfb8ad687",
@@ -78,12 +79,13 @@
78
79
  "1d5b0759c3226e37",
79
80
  "97afbbf01ec1cd88",
80
81
  "2b3f33b7a9dceb49",
81
- "a61cb4c20f79d872"
82
+ "a61cb4c20f79d872",
83
+ "111c8606ea343c1f"
82
84
  ],
83
85
  "x": 14,
84
86
  "y": 59,
85
87
  "w": 1012,
86
- "h": 282
88
+ "h": 342
87
89
  },
88
90
  {
89
91
  "id": "ec36901abb138306",
@@ -101,21 +103,21 @@
101
103
  "nodes": [
102
104
  "1224ebb8edb477d2",
103
105
  "05284831924ef310",
104
- "99475ac148f6484b",
105
106
  "5a61ca5b5a13aa8d",
106
- "ebd67a338575690d",
107
107
  "1497b762d2ac1723",
108
- "64068e75e541a72e",
109
- "b8ac2a6ff7cc5ef1",
110
108
  "493500b42d8d0f5b",
111
109
  "34984ae3f4e83b0b",
112
110
  "8e2a2f993ee7156a",
113
- "c06d872a4718b6da"
111
+ "c06d872a4718b6da",
112
+ "eee38d2764bac337",
113
+ "da518322186bd83b",
114
+ "5d8b5657929f658a",
115
+ "a4d741804929ba73"
114
116
  ],
115
117
  "x": 14,
116
- "y": 379,
118
+ "y": 419,
117
119
  "w": 952,
118
- "h": 322
120
+ "h": 342
119
121
  },
120
122
  {
121
123
  "id": "f29182f397cab86b",
@@ -133,17 +135,18 @@
133
135
  "nodes": [
134
136
  "3011d9be5207350a",
135
137
  "aa3ca456ddf1a7bd",
136
- "a2b09670ce6219e3"
138
+ "a2b09670ce6219e3",
139
+ "efa57df2a7fa4a53"
137
140
  ],
138
141
  "x": 34,
139
- "y": 319,
142
+ "y": 379,
140
143
  "w": 482,
141
144
  "h": 162
142
145
  },
143
146
  {
144
147
  "id": "d042a4c68f51d6ab",
145
148
  "type": "processcube-engine-config",
146
- "url": "http://engine:8000"
149
+ "url": "http://localhost:56000"
147
150
  },
148
151
  {
149
152
  "id": "8e2205abbb41495b",
@@ -231,11 +234,6 @@
231
234
  "widgetGap": "12px"
232
235
  }
233
236
  },
234
- {
235
- "id": "9d1144e1dd0a70e3",
236
- "type": "processcube-engine-config",
237
- "url": "http://localhost:56000"
238
- },
239
237
  {
240
238
  "id": "84f18cf9bf25b858",
241
239
  "type": "openApi-red",
@@ -1107,7 +1105,7 @@
1107
1105
  "g": "405f8c703368777c",
1108
1106
  "name": "",
1109
1107
  "engine": "d042a4c68f51d6ab",
1110
- "multisend": true,
1108
+ "multisend": false,
1111
1109
  "x": 540,
1112
1110
  "y": 140,
1113
1111
  "wires": [
@@ -1130,7 +1128,7 @@
1130
1128
  "complete": "false",
1131
1129
  "statusVal": "",
1132
1130
  "statusType": "auto",
1133
- "x": 800,
1131
+ "x": 780,
1134
1132
  "y": 80,
1135
1133
  "wires": []
1136
1134
  },
@@ -1139,7 +1137,7 @@
1139
1137
  "type": "function",
1140
1138
  "z": "fd3c725340de4f74",
1141
1139
  "g": "405f8c703368777c",
1142
- "name": "function 2",
1140
+ "name": "prepare formData",
1143
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;",
1144
1142
  "outputs": 1,
1145
1143
  "timeout": 0,
@@ -1147,7 +1145,7 @@
1147
1145
  "initialize": "",
1148
1146
  "finalize": "",
1149
1147
  "libs": [],
1150
- "x": 800,
1148
+ "x": 810,
1151
1149
  "y": 140,
1152
1150
  "wires": [
1153
1151
  [
@@ -1204,10 +1202,11 @@
1204
1202
  "engine": "d042a4c68f51d6ab",
1205
1203
  "multisend": false,
1206
1204
  "x": 160,
1207
- "y": 440,
1205
+ "y": 500,
1208
1206
  "wires": [
1209
1207
  [
1210
- "aa3ca456ddf1a7bd"
1208
+ "aa3ca456ddf1a7bd",
1209
+ "efa57df2a7fa4a53"
1211
1210
  ]
1212
1211
  ]
1213
1212
  },
@@ -1225,7 +1224,7 @@
1225
1224
  "statusVal": "",
1226
1225
  "statusType": "auto",
1227
1226
  "x": 410,
1228
- "y": 440,
1227
+ "y": 500,
1229
1228
  "wires": []
1230
1229
  },
1231
1230
  {
@@ -1236,7 +1235,7 @@
1236
1235
  "name": "Listener für neue UserTasks",
1237
1236
  "info": "",
1238
1237
  "x": 180,
1239
- "y": 360,
1238
+ "y": 420,
1240
1239
  "wires": []
1241
1240
  },
1242
1241
  {
@@ -1317,6 +1316,37 @@
1317
1316
  ]
1318
1317
  ]
1319
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
+ },
1320
1350
  {
1321
1351
  "id": "0f5978f327b01bfb",
1322
1352
  "type": "ui-table",
@@ -1513,7 +1543,7 @@
1513
1543
  "statusVal": "",
1514
1544
  "statusType": "auto",
1515
1545
  "x": 860,
1516
- "y": 480,
1546
+ "y": 520,
1517
1547
  "wires": []
1518
1548
  },
1519
1549
  {
@@ -1535,7 +1565,7 @@
1535
1565
  "name": "Auftrag bearbeiten",
1536
1566
  "info": "",
1537
1567
  "x": 130,
1538
- "y": 420,
1568
+ "y": 460,
1539
1569
  "wires": []
1540
1570
  },
1541
1571
  {
@@ -1563,10 +1593,10 @@
1563
1593
  "ui": "26a45d43c064bdb6",
1564
1594
  "name": "",
1565
1595
  "x": 100,
1566
- "y": 300,
1596
+ "y": 360,
1567
1597
  "wires": [
1568
1598
  [
1569
- "2b3f33b7a9dceb49"
1599
+ "111c8606ea343c1f"
1570
1600
  ]
1571
1601
  ]
1572
1602
  },
@@ -1588,7 +1618,7 @@
1588
1618
  "checkall": "true",
1589
1619
  "repair": false,
1590
1620
  "outputs": 1,
1591
- "x": 280,
1621
+ "x": 300,
1592
1622
  "y": 300,
1593
1623
  "wires": [
1594
1624
  [
@@ -1626,32 +1656,6 @@
1626
1656
  ]
1627
1657
  ]
1628
1658
  },
1629
- {
1630
- "id": "99475ac148f6484b",
1631
- "type": "http request",
1632
- "z": "b195bc3ca2e1a665",
1633
- "g": "ec36901abb138306",
1634
- "name": "",
1635
- "method": "GET",
1636
- "ret": "obj",
1637
- "paytoqs": "ignore",
1638
- "url": "http://localhost:56000/atlas_engine/api/v1/flow_node_instances?limit=1&flowNodeInstanceId={{{flowNodeInstanceId}}}&flowNodeType=bpmn%3AUserTask",
1639
- "tls": "",
1640
- "persist": false,
1641
- "proxy": "",
1642
- "insecureHTTPParser": false,
1643
- "authType": "bearer",
1644
- "senderr": false,
1645
- "headers": [],
1646
- "x": 490,
1647
- "y": 620,
1648
- "wires": [
1649
- [
1650
- "ebd67a338575690d",
1651
- "64068e75e541a72e"
1652
- ]
1653
- ]
1654
- },
1655
1659
  {
1656
1660
  "id": "5a61ca5b5a13aa8d",
1657
1661
  "type": "inject",
@@ -1675,37 +1679,20 @@
1675
1679
  "payload": "",
1676
1680
  "payloadType": "date",
1677
1681
  "x": 120,
1678
- "y": 620,
1682
+ "y": 660,
1679
1683
  "wires": [
1680
1684
  [
1681
1685
  "1497b762d2ac1723"
1682
1686
  ]
1683
1687
  ]
1684
1688
  },
1685
- {
1686
- "id": "ebd67a338575690d",
1687
- "type": "debug",
1688
- "z": "b195bc3ca2e1a665",
1689
- "g": "ec36901abb138306",
1690
- "name": "debug 8",
1691
- "active": true,
1692
- "tosidebar": true,
1693
- "console": false,
1694
- "tostatus": false,
1695
- "complete": "false",
1696
- "statusVal": "",
1697
- "statusType": "auto",
1698
- "x": 660,
1699
- "y": 660,
1700
- "wires": []
1701
- },
1702
1689
  {
1703
1690
  "id": "1497b762d2ac1723",
1704
1691
  "type": "function",
1705
1692
  "z": "b195bc3ca2e1a665",
1706
1693
  "g": "ec36901abb138306",
1707
1694
  "name": "parameter setzen",
1708
- "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;",
1709
1696
  "outputs": 1,
1710
1697
  "timeout": 0,
1711
1698
  "noerr": 0,
@@ -1713,52 +1700,14 @@
1713
1700
  "finalize": "",
1714
1701
  "libs": [],
1715
1702
  "x": 310,
1716
- "y": 620,
1717
- "wires": [
1718
- [
1719
- "99475ac148f6484b"
1720
- ]
1721
- ]
1722
- },
1723
- {
1724
- "id": "64068e75e541a72e",
1725
- "type": "function",
1726
- "z": "b195bc3ca2e1a665",
1727
- "g": "ec36901abb138306",
1728
- "name": "prepare UserTask ",
1729
- "func": "msg.payload = {\n \"userTask\": msg.payload.flowNodeInstances[0]\n}\n\nreturn msg;",
1730
- "outputs": 1,
1731
- "timeout": 0,
1732
- "noerr": 0,
1733
- "initialize": "",
1734
- "finalize": "",
1735
- "libs": [],
1736
- "x": 690,
1737
- "y": 620,
1703
+ "y": 660,
1738
1704
  "wires": [
1739
1705
  [
1740
- "b8ac2a6ff7cc5ef1",
1741
- "8e2a2f993ee7156a"
1706
+ "eee38d2764bac337",
1707
+ "5d8b5657929f658a"
1742
1708
  ]
1743
1709
  ]
1744
1710
  },
1745
- {
1746
- "id": "b8ac2a6ff7cc5ef1",
1747
- "type": "debug",
1748
- "z": "b195bc3ca2e1a665",
1749
- "g": "ec36901abb138306",
1750
- "name": "debug 9",
1751
- "active": true,
1752
- "tosidebar": true,
1753
- "console": false,
1754
- "tostatus": false,
1755
- "complete": "false",
1756
- "statusVal": "",
1757
- "statusType": "auto",
1758
- "x": 860,
1759
- "y": 620,
1760
- "wires": []
1761
- },
1762
1711
  {
1763
1712
  "id": "493500b42d8d0f5b",
1764
1713
  "type": "ui-event",
@@ -1767,10 +1716,10 @@
1767
1716
  "ui": "26a45d43c064bdb6",
1768
1717
  "name": "",
1769
1718
  "x": 120,
1770
- "y": 560,
1719
+ "y": 600,
1771
1720
  "wires": [
1772
1721
  [
1773
- "34984ae3f4e83b0b"
1722
+ "a4d741804929ba73"
1774
1723
  ]
1775
1724
  ]
1776
1725
  },
@@ -1792,8 +1741,8 @@
1792
1741
  "checkall": "true",
1793
1742
  "repair": false,
1794
1743
  "outputs": 1,
1795
- "x": 320,
1796
- "y": 560,
1744
+ "x": 560,
1745
+ "y": 600,
1797
1746
  "wires": [
1798
1747
  [
1799
1748
  "1497b762d2ac1723"
@@ -1815,7 +1764,7 @@
1815
1764
  "width": 0,
1816
1765
  "height": 0,
1817
1766
  "x": 600,
1818
- "y": 480,
1767
+ "y": 520,
1819
1768
  "wires": [
1820
1769
  [
1821
1770
  "1224ebb8edb477d2"
@@ -1841,11 +1790,113 @@
1841
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\"}]}}}",
1842
1791
  "payloadType": "json",
1843
1792
  "x": 250,
1844
- "y": 480,
1793
+ "y": 520,
1845
1794
  "wires": [
1846
1795
  [
1847
1796
  "8e2a2f993ee7156a"
1848
1797
  ]
1849
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
+ ]
1850
1901
  }
1851
1902
  ]
@@ -79,12 +79,13 @@
79
79
  "1d5b0759c3226e37",
80
80
  "97afbbf01ec1cd88",
81
81
  "2b3f33b7a9dceb49",
82
- "a61cb4c20f79d872"
82
+ "a61cb4c20f79d872",
83
+ "111c8606ea343c1f"
83
84
  ],
84
85
  "x": 14,
85
86
  "y": 59,
86
87
  "w": 1012,
87
- "h": 282
88
+ "h": 342
88
89
  },
89
90
  {
90
91
  "id": "ec36901abb138306",
@@ -102,21 +103,21 @@
102
103
  "nodes": [
103
104
  "1224ebb8edb477d2",
104
105
  "05284831924ef310",
105
- "99475ac148f6484b",
106
106
  "5a61ca5b5a13aa8d",
107
- "ebd67a338575690d",
108
107
  "1497b762d2ac1723",
109
- "64068e75e541a72e",
110
- "b8ac2a6ff7cc5ef1",
111
108
  "493500b42d8d0f5b",
112
109
  "34984ae3f4e83b0b",
113
110
  "8e2a2f993ee7156a",
114
- "c06d872a4718b6da"
111
+ "c06d872a4718b6da",
112
+ "eee38d2764bac337",
113
+ "da518322186bd83b",
114
+ "5d8b5657929f658a",
115
+ "a4d741804929ba73"
115
116
  ],
116
117
  "x": 14,
117
- "y": 379,
118
+ "y": 419,
118
119
  "w": 952,
119
- "h": 322
120
+ "h": 342
120
121
  },
121
122
  {
122
123
  "id": "f29182f397cab86b",
@@ -145,7 +146,7 @@
145
146
  {
146
147
  "id": "d042a4c68f51d6ab",
147
148
  "type": "processcube-engine-config",
148
- "url": "http://engine:8000"
149
+ "url": "http://localhost:56000"
149
150
  },
150
151
  {
151
152
  "id": "8e2205abbb41495b",
@@ -233,11 +234,6 @@
233
234
  "widgetGap": "12px"
234
235
  }
235
236
  },
236
- {
237
- "id": "9d1144e1dd0a70e3",
238
- "type": "processcube-engine-config",
239
- "url": "http://localhost:56000"
240
- },
241
237
  {
242
238
  "id": "84f18cf9bf25b858",
243
239
  "type": "openApi-red",
@@ -1109,7 +1105,7 @@
1109
1105
  "g": "405f8c703368777c",
1110
1106
  "name": "",
1111
1107
  "engine": "d042a4c68f51d6ab",
1112
- "multisend": true,
1108
+ "multisend": false,
1113
1109
  "x": 540,
1114
1110
  "y": 140,
1115
1111
  "wires": [
@@ -1132,7 +1128,7 @@
1132
1128
  "complete": "false",
1133
1129
  "statusVal": "",
1134
1130
  "statusType": "auto",
1135
- "x": 800,
1131
+ "x": 780,
1136
1132
  "y": 80,
1137
1133
  "wires": []
1138
1134
  },
@@ -1141,7 +1137,7 @@
1141
1137
  "type": "function",
1142
1138
  "z": "fd3c725340de4f74",
1143
1139
  "g": "405f8c703368777c",
1144
- "name": "function 2",
1140
+ "name": "prepare formData",
1145
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;",
1146
1142
  "outputs": 1,
1147
1143
  "timeout": 0,
@@ -1149,7 +1145,7 @@
1149
1145
  "initialize": "",
1150
1146
  "finalize": "",
1151
1147
  "libs": [],
1152
- "x": 800,
1148
+ "x": 810,
1153
1149
  "y": 140,
1154
1150
  "wires": [
1155
1151
  [
@@ -1547,7 +1543,7 @@
1547
1543
  "statusVal": "",
1548
1544
  "statusType": "auto",
1549
1545
  "x": 860,
1550
- "y": 480,
1546
+ "y": 520,
1551
1547
  "wires": []
1552
1548
  },
1553
1549
  {
@@ -1569,7 +1565,7 @@
1569
1565
  "name": "Auftrag bearbeiten",
1570
1566
  "info": "",
1571
1567
  "x": 130,
1572
- "y": 420,
1568
+ "y": 460,
1573
1569
  "wires": []
1574
1570
  },
1575
1571
  {
@@ -1597,10 +1593,10 @@
1597
1593
  "ui": "26a45d43c064bdb6",
1598
1594
  "name": "",
1599
1595
  "x": 100,
1600
- "y": 300,
1596
+ "y": 360,
1601
1597
  "wires": [
1602
1598
  [
1603
- "2b3f33b7a9dceb49"
1599
+ "111c8606ea343c1f"
1604
1600
  ]
1605
1601
  ]
1606
1602
  },
@@ -1622,7 +1618,7 @@
1622
1618
  "checkall": "true",
1623
1619
  "repair": false,
1624
1620
  "outputs": 1,
1625
- "x": 280,
1621
+ "x": 300,
1626
1622
  "y": 300,
1627
1623
  "wires": [
1628
1624
  [
@@ -1660,32 +1656,6 @@
1660
1656
  ]
1661
1657
  ]
1662
1658
  },
1663
- {
1664
- "id": "99475ac148f6484b",
1665
- "type": "http request",
1666
- "z": "b195bc3ca2e1a665",
1667
- "g": "ec36901abb138306",
1668
- "name": "",
1669
- "method": "GET",
1670
- "ret": "obj",
1671
- "paytoqs": "ignore",
1672
- "url": "http://localhost:56000/atlas_engine/api/v1/flow_node_instances?limit=1&flowNodeInstanceId={{{flowNodeInstanceId}}}&flowNodeType=bpmn%3AUserTask",
1673
- "tls": "",
1674
- "persist": false,
1675
- "proxy": "",
1676
- "insecureHTTPParser": false,
1677
- "authType": "bearer",
1678
- "senderr": false,
1679
- "headers": [],
1680
- "x": 490,
1681
- "y": 620,
1682
- "wires": [
1683
- [
1684
- "ebd67a338575690d",
1685
- "64068e75e541a72e"
1686
- ]
1687
- ]
1688
- },
1689
1659
  {
1690
1660
  "id": "5a61ca5b5a13aa8d",
1691
1661
  "type": "inject",
@@ -1709,37 +1679,20 @@
1709
1679
  "payload": "",
1710
1680
  "payloadType": "date",
1711
1681
  "x": 120,
1712
- "y": 620,
1682
+ "y": 660,
1713
1683
  "wires": [
1714
1684
  [
1715
1685
  "1497b762d2ac1723"
1716
1686
  ]
1717
1687
  ]
1718
1688
  },
1719
- {
1720
- "id": "ebd67a338575690d",
1721
- "type": "debug",
1722
- "z": "b195bc3ca2e1a665",
1723
- "g": "ec36901abb138306",
1724
- "name": "debug 8",
1725
- "active": true,
1726
- "tosidebar": true,
1727
- "console": false,
1728
- "tostatus": false,
1729
- "complete": "false",
1730
- "statusVal": "",
1731
- "statusType": "auto",
1732
- "x": 660,
1733
- "y": 660,
1734
- "wires": []
1735
- },
1736
1689
  {
1737
1690
  "id": "1497b762d2ac1723",
1738
1691
  "type": "function",
1739
1692
  "z": "b195bc3ca2e1a665",
1740
1693
  "g": "ec36901abb138306",
1741
1694
  "name": "parameter setzen",
1742
- "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;",
1743
1696
  "outputs": 1,
1744
1697
  "timeout": 0,
1745
1698
  "noerr": 0,
@@ -1747,52 +1700,14 @@
1747
1700
  "finalize": "",
1748
1701
  "libs": [],
1749
1702
  "x": 310,
1750
- "y": 620,
1751
- "wires": [
1752
- [
1753
- "99475ac148f6484b"
1754
- ]
1755
- ]
1756
- },
1757
- {
1758
- "id": "64068e75e541a72e",
1759
- "type": "function",
1760
- "z": "b195bc3ca2e1a665",
1761
- "g": "ec36901abb138306",
1762
- "name": "prepare UserTask ",
1763
- "func": "msg.payload = {\n \"userTask\": msg.payload.flowNodeInstances[0]\n}\n\nreturn msg;",
1764
- "outputs": 1,
1765
- "timeout": 0,
1766
- "noerr": 0,
1767
- "initialize": "",
1768
- "finalize": "",
1769
- "libs": [],
1770
- "x": 690,
1771
- "y": 620,
1703
+ "y": 660,
1772
1704
  "wires": [
1773
1705
  [
1774
- "b8ac2a6ff7cc5ef1",
1775
- "8e2a2f993ee7156a"
1706
+ "eee38d2764bac337",
1707
+ "5d8b5657929f658a"
1776
1708
  ]
1777
1709
  ]
1778
1710
  },
1779
- {
1780
- "id": "b8ac2a6ff7cc5ef1",
1781
- "type": "debug",
1782
- "z": "b195bc3ca2e1a665",
1783
- "g": "ec36901abb138306",
1784
- "name": "debug 9",
1785
- "active": true,
1786
- "tosidebar": true,
1787
- "console": false,
1788
- "tostatus": false,
1789
- "complete": "false",
1790
- "statusVal": "",
1791
- "statusType": "auto",
1792
- "x": 860,
1793
- "y": 620,
1794
- "wires": []
1795
- },
1796
1711
  {
1797
1712
  "id": "493500b42d8d0f5b",
1798
1713
  "type": "ui-event",
@@ -1801,10 +1716,10 @@
1801
1716
  "ui": "26a45d43c064bdb6",
1802
1717
  "name": "",
1803
1718
  "x": 120,
1804
- "y": 560,
1719
+ "y": 600,
1805
1720
  "wires": [
1806
1721
  [
1807
- "34984ae3f4e83b0b"
1722
+ "a4d741804929ba73"
1808
1723
  ]
1809
1724
  ]
1810
1725
  },
@@ -1826,8 +1741,8 @@
1826
1741
  "checkall": "true",
1827
1742
  "repair": false,
1828
1743
  "outputs": 1,
1829
- "x": 320,
1830
- "y": 560,
1744
+ "x": 560,
1745
+ "y": 600,
1831
1746
  "wires": [
1832
1747
  [
1833
1748
  "1497b762d2ac1723"
@@ -1849,7 +1764,7 @@
1849
1764
  "width": 0,
1850
1765
  "height": 0,
1851
1766
  "x": 600,
1852
- "y": 480,
1767
+ "y": 520,
1853
1768
  "wires": [
1854
1769
  [
1855
1770
  "1224ebb8edb477d2"
@@ -1875,11 +1790,114 @@
1875
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\"}]}}}",
1876
1791
  "payloadType": "json",
1877
1792
  "x": 250,
1878
- "y": 480,
1793
+ "y": 520,
1879
1794
  "wires": [
1880
1795
  [
1881
1796
  "8e2a2f993ee7156a"
1882
1797
  ]
1883
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
+ "8e2a2f993ee7156a"
1814
+ ]
1815
+ ]
1816
+ },
1817
+ {
1818
+ "id": "da518322186bd83b",
1819
+ "type": "debug",
1820
+ "z": "b195bc3ca2e1a665",
1821
+ "g": "ec36901abb138306",
1822
+ "name": "debug 13",
1823
+ "active": true,
1824
+ "tosidebar": true,
1825
+ "console": false,
1826
+ "tostatus": false,
1827
+ "complete": "false",
1828
+ "statusVal": "",
1829
+ "statusType": "auto",
1830
+ "x": 860,
1831
+ "y": 660,
1832
+ "wires": []
1833
+ },
1834
+ {
1835
+ "id": "5d8b5657929f658a",
1836
+ "type": "debug",
1837
+ "z": "b195bc3ca2e1a665",
1838
+ "g": "ec36901abb138306",
1839
+ "name": "debug 14",
1840
+ "active": true,
1841
+ "tosidebar": true,
1842
+ "console": false,
1843
+ "tostatus": false,
1844
+ "complete": "false",
1845
+ "statusVal": "",
1846
+ "statusType": "auto",
1847
+ "x": 580,
1848
+ "y": 720,
1849
+ "wires": []
1850
+ },
1851
+ {
1852
+ "id": "a4d741804929ba73",
1853
+ "type": "switch",
1854
+ "z": "b195bc3ca2e1a665",
1855
+ "g": "ec36901abb138306",
1856
+ "name": "Seite sichtbar",
1857
+ "property": "topic",
1858
+ "propertyType": "msg",
1859
+ "rules": [
1860
+ {
1861
+ "t": "eq",
1862
+ "v": "$pageview",
1863
+ "vt": "str"
1864
+ }
1865
+ ],
1866
+ "checkall": "true",
1867
+ "repair": false,
1868
+ "outputs": 1,
1869
+ "x": 320,
1870
+ "y": 600,
1871
+ "wires": [
1872
+ [
1873
+ "34984ae3f4e83b0b"
1874
+ ]
1875
+ ]
1876
+ },
1877
+ {
1878
+ "id": "111c8606ea343c1f",
1879
+ "type": "switch",
1880
+ "z": "b195bc3ca2e1a665",
1881
+ "g": "09cdc14cfb8ad687",
1882
+ "name": "Seite sichtbar",
1883
+ "property": "topic",
1884
+ "propertyType": "msg",
1885
+ "rules": [
1886
+ {
1887
+ "t": "eq",
1888
+ "v": "$pageview",
1889
+ "vt": "str"
1890
+ }
1891
+ ],
1892
+ "checkall": "true",
1893
+ "repair": false,
1894
+ "outputs": 1,
1895
+ "x": 280,
1896
+ "y": 360,
1897
+ "wires": [
1898
+ [
1899
+ "2b3f33b7a9dceb49"
1900
+ ]
1901
+ ]
1884
1902
  }
1885
1903
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "0.3.5-feature-58d0b1-lxi3af5i",
3
+ "version": "0.3.5-feature-3e7fb8-lxi56r4q",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "authors": [
package/usertask-input.js CHANGED
@@ -43,14 +43,22 @@ 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
+ let query = msg.payload;
49
+
50
+ console.log(`UserTaskInput query: ${JSON.stringify(query)}`);
51
+
52
+ client.userTasks.query(query).then((matchingFlowNodes) => {
53
+
54
+ console.log(`UserTaskInput query result: ${JSON.stringify(matchingFlowNodes)}`);
55
+
48
56
  if (matchingFlowNodes && matchingFlowNodes.userTasks && matchingFlowNodes.userTasks.length == 1) {
49
57
  userTask = matchingFlowNodes.userTasks[0];
50
58
 
51
59
  node.send({ payload: {userTask: userTask } });
52
60
  } else {
53
- if (config.multisend) {
61
+ if (config.multisend && matchingFlowNodes.userTasks && matchingFlowNodes.userTasks.length > 1) {
54
62
  matchingFlowNodes.userTasks.forEach((userTask) => {
55
63
  node.send({ payload: { userTask: userTask } });
56
64
  });