@5minds/node-red-contrib-processcube 0.3.5-feature-65fd58-lx819m2o → 0.3.5-feature-1092e6-lxhvslzu

Sign up to get free protection for your applications and to get access to all the features.
package/Dockerfile CHANGED
@@ -1,20 +1,22 @@
1
1
  FROM node:20 as builder
2
2
 
3
-
4
3
  COPY ./ /src/node-red-contrib-processcube
5
4
 
6
5
  WORKDIR /src/node-red-contrib-processcube
7
6
 
8
7
  RUN npm install
9
8
 
10
-
11
9
  FROM nodered/node-red:latest
12
10
 
13
- RUN npm install node-red-contrib-graphql
14
- RUN npm install openapi-red@1.2.5
15
- RUN npm install node-red-contrib-postgresql
16
- RUN npm install node-red-contrib-uibuilder
11
+ WORKDIR /data
17
12
 
18
13
  COPY --from=builder /src/node-red-contrib-processcube /src/node-red-contrib-processcube
19
14
 
20
15
  RUN npm install /src/node-red-contrib-processcube/
16
+
17
+ COPY nodered/package.json package.json
18
+ RUN npm install
19
+
20
+ COPY nodered/node-red-contrib-processcube-flows.json node-red-contrib-processcube-flows.json
21
+
22
+ ENTRYPOINT ["./node_modules/.bin/node-red", "--flowFile", "/data/node-red-contrib-processcube-flows.json"]
@@ -15,6 +15,32 @@
15
15
  "info": "",
16
16
  "env": []
17
17
  },
18
+ {
19
+ "id": "405f8c703368777c",
20
+ "type": "group",
21
+ "z": "fd3c725340de4f74",
22
+ "style": {
23
+ "stroke": "#999999",
24
+ "stroke-opacity": "1",
25
+ "fill": "none",
26
+ "fill-opacity": "1",
27
+ "label": true,
28
+ "label-position": "nw",
29
+ "color": "#a4a4a4"
30
+ },
31
+ "nodes": [
32
+ "ec0be0ef92746967",
33
+ "090d42845540049c",
34
+ "846c5269df75c7a1",
35
+ "4267576c32c782ec",
36
+ "68cf69be67688af6",
37
+ "bcfb8893adeb57ed"
38
+ ],
39
+ "x": 34,
40
+ "y": 19,
41
+ "w": 672,
42
+ "h": 222
43
+ },
18
44
  {
19
45
  "id": "d042a4c68f51d6ab",
20
46
  "type": "processcube-engine-config",
@@ -888,10 +914,11 @@
888
914
  "id": "ec0be0ef92746967",
889
915
  "type": "usertask-input",
890
916
  "z": "fd3c725340de4f74",
917
+ "g": "405f8c703368777c",
891
918
  "name": "",
892
919
  "engine": "d042a4c68f51d6ab",
893
- "x": 250,
894
- "y": 120,
920
+ "x": 130,
921
+ "y": 140,
895
922
  "wires": [
896
923
  [
897
924
  "090d42845540049c",
@@ -903,56 +930,8 @@
903
930
  "id": "090d42845540049c",
904
931
  "type": "debug",
905
932
  "z": "fd3c725340de4f74",
933
+ "g": "405f8c703368777c",
906
934
  "name": "debug 10",
907
- "active": false,
908
- "tosidebar": true,
909
- "console": false,
910
- "tostatus": false,
911
- "complete": "false",
912
- "statusVal": "",
913
- "statusType": "auto",
914
- "x": 520,
915
- "y": 120,
916
- "wires": []
917
- },
918
- {
919
- "id": "661e71d204ee957d",
920
- "type": "uibuilder",
921
- "z": "fd3c725340de4f74",
922
- "name": "",
923
- "topic": "",
924
- "url": "usertasks",
925
- "okToGo": true,
926
- "fwdInMessages": false,
927
- "allowScripts": false,
928
- "allowStyles": false,
929
- "copyIndex": true,
930
- "templateFolder": "blank",
931
- "extTemplate": "",
932
- "showfolder": false,
933
- "reload": true,
934
- "sourceFolder": "src",
935
- "deployedVersion": "6.8.2",
936
- "showMsgUib": false,
937
- "title": "",
938
- "descr": "",
939
- "x": 410,
940
- "y": 300,
941
- "wires": [
942
- [
943
- "823445c277179d4e",
944
- "4267576c32c782ec"
945
- ],
946
- [
947
- "ce674239858cdfa1"
948
- ]
949
- ]
950
- },
951
- {
952
- "id": "823445c277179d4e",
953
- "type": "debug",
954
- "z": "fd3c725340de4f74",
955
- "name": "debug 11",
956
935
  "active": true,
957
936
  "tosidebar": true,
958
937
  "console": false,
@@ -960,120 +939,50 @@
960
939
  "complete": "false",
961
940
  "statusVal": "",
962
941
  "statusType": "auto",
963
- "x": 600,
964
- "y": 220,
942
+ "x": 340,
943
+ "y": 80,
965
944
  "wires": []
966
945
  },
967
- {
968
- "id": "4078e4fb0a080b04",
969
- "type": "uib-element",
970
- "z": "fd3c725340de4f74",
971
- "name": "",
972
- "topic": "",
973
- "elementtype": "sform",
974
- "parent": "body",
975
- "parentSource": "",
976
- "parentSourceType": "str",
977
- "elementid": "",
978
- "elementId": "",
979
- "elementIdSourceType": "str",
980
- "heading": "",
981
- "headingSourceType": "str",
982
- "headingLevel": "h2",
983
- "data": "payload",
984
- "dataSourceType": "msg",
985
- "position": "last",
986
- "positionSourceType": "str",
987
- "passthrough": false,
988
- "confData": {},
989
- "x": 390,
990
- "y": 420,
991
- "wires": [
992
- [
993
- "c59406be55bd5124"
994
- ]
995
- ]
996
- },
997
- {
998
- "id": "3b9e8eb5743f557c",
999
- "type": "inject",
1000
- "z": "fd3c725340de4f74",
1001
- "name": "",
1002
- "props": [
1003
- {
1004
- "p": "payload"
1005
- }
1006
- ],
1007
- "repeat": "",
1008
- "crontab": "",
1009
- "once": false,
1010
- "onceDelay": 0.1,
1011
- "topic": "",
1012
- "payload": "[{\"id\":\"r1\",\"type\":\"text\",\"required\":false,\"label\":\"Label for form row 1\",\"value\":\"Foo\",\"title\":\"Some helpful text\"},{\"id\":\"r11\",\"type\":\"email\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r12\",\"type\":\"month\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r14\",\"type\":\"time\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r15\",\"type\":\"week\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r16\",\"type\":\"password\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r2\",\"type\":\"range\",\"required\":true,\"label\":\"Label for form row 1\",\"value\":\"Foo\"},{\"id\":\"r3\",\"type\":\"button\",\"label\":\"Text on button\",\"value\":\"Buttons can have values as well\"}]",
1013
- "payloadType": "json",
1014
- "x": 80,
1015
- "y": 400,
1016
- "wires": [
1017
- [
1018
- "4078e4fb0a080b04"
1019
- ]
1020
- ]
1021
- },
1022
- {
1023
- "id": "c59406be55bd5124",
1024
- "type": "link out",
1025
- "z": "fd3c725340de4f74",
1026
- "name": "link out 1",
1027
- "mode": "link",
1028
- "links": [
1029
- "d9edaa2e3c514edc"
1030
- ],
1031
- "x": 545,
1032
- "y": 400,
1033
- "wires": []
1034
- },
1035
- {
1036
- "id": "d9edaa2e3c514edc",
1037
- "type": "link in",
1038
- "z": "fd3c725340de4f74",
1039
- "name": "link in 1",
1040
- "links": [
1041
- "c59406be55bd5124"
1042
- ],
1043
- "x": 245,
1044
- "y": 300,
1045
- "wires": [
1046
- [
1047
- "661e71d204ee957d"
1048
- ]
1049
- ]
1050
- },
1051
946
  {
1052
947
  "id": "846c5269df75c7a1",
1053
948
  "type": "function",
1054
949
  "z": "fd3c725340de4f74",
950
+ "g": "405f8c703368777c",
1055
951
  "name": "function 2",
1056
- "func": "msg.payload = msg.payload.formFields;\n\nreturn msg;",
952
+ "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\nreturn msg;",
1057
953
  "outputs": 1,
1058
954
  "timeout": 0,
1059
955
  "noerr": 0,
1060
956
  "initialize": "",
1061
957
  "finalize": "",
1062
958
  "libs": [],
1063
- "x": 100,
1064
- "y": 280,
959
+ "x": 340,
960
+ "y": 140,
1065
961
  "wires": [
1066
962
  [
1067
- "4078e4fb0a080b04"
963
+ "68cf69be67688af6",
964
+ "4267576c32c782ec"
1068
965
  ]
1069
966
  ]
1070
967
  },
1071
968
  {
1072
- "id": "ce674239858cdfa1",
969
+ "id": "4267576c32c782ec",
970
+ "type": "usertask-output",
971
+ "z": "fd3c725340de4f74",
972
+ "g": "405f8c703368777c",
973
+ "name": "",
974
+ "engine": "d042a4c68f51d6ab",
975
+ "x": 600,
976
+ "y": 140,
977
+ "wires": []
978
+ },
979
+ {
980
+ "id": "68cf69be67688af6",
1073
981
  "type": "debug",
1074
982
  "z": "fd3c725340de4f74",
1075
- "name": "debug 12",
1076
- "active": false,
983
+ "g": "405f8c703368777c",
984
+ "name": "debug 11",
985
+ "active": true,
1077
986
  "tosidebar": true,
1078
987
  "console": false,
1079
988
  "tostatus": false,
@@ -1081,17 +990,18 @@
1081
990
  "statusVal": "",
1082
991
  "statusType": "auto",
1083
992
  "x": 580,
1084
- "y": 320,
993
+ "y": 200,
1085
994
  "wires": []
1086
995
  },
1087
996
  {
1088
- "id": "4267576c32c782ec",
1089
- "type": "usertask-output",
997
+ "id": "bcfb8893adeb57ed",
998
+ "type": "comment",
1090
999
  "z": "fd3c725340de4f74",
1091
- "name": "",
1092
- "engine": "d042a4c68f51d6ab",
1093
- "x": 740,
1094
- "y": 260,
1000
+ "g": "405f8c703368777c",
1001
+ "name": "Beispiel für UserTask",
1002
+ "info": "",
1003
+ "x": 160,
1004
+ "y": 60,
1095
1005
  "wires": []
1096
1006
  }
1097
1007
  ]
@@ -15,6 +15,32 @@
15
15
  "info": "",
16
16
  "env": []
17
17
  },
18
+ {
19
+ "id": "405f8c703368777c",
20
+ "type": "group",
21
+ "z": "fd3c725340de4f74",
22
+ "style": {
23
+ "stroke": "#999999",
24
+ "stroke-opacity": "1",
25
+ "fill": "none",
26
+ "fill-opacity": "1",
27
+ "label": true,
28
+ "label-position": "nw",
29
+ "color": "#a4a4a4"
30
+ },
31
+ "nodes": [
32
+ "ec0be0ef92746967",
33
+ "090d42845540049c",
34
+ "846c5269df75c7a1",
35
+ "4267576c32c782ec",
36
+ "68cf69be67688af6",
37
+ "bcfb8893adeb57ed"
38
+ ],
39
+ "x": 34,
40
+ "y": 19,
41
+ "w": 752,
42
+ "h": 222
43
+ },
18
44
  {
19
45
  "id": "d042a4c68f51d6ab",
20
46
  "type": "processcube-engine-config",
@@ -888,10 +914,11 @@
888
914
  "id": "ec0be0ef92746967",
889
915
  "type": "usertask-input",
890
916
  "z": "fd3c725340de4f74",
917
+ "g": "405f8c703368777c",
891
918
  "name": "",
892
919
  "engine": "d042a4c68f51d6ab",
893
- "x": 250,
894
- "y": 120,
920
+ "x": 130,
921
+ "y": 140,
895
922
  "wires": [
896
923
  [
897
924
  "090d42845540049c",
@@ -903,6 +930,7 @@
903
930
  "id": "090d42845540049c",
904
931
  "type": "debug",
905
932
  "z": "fd3c725340de4f74",
933
+ "g": "405f8c703368777c",
906
934
  "name": "debug 10",
907
935
  "active": true,
908
936
  "tosidebar": true,
@@ -911,187 +939,69 @@
911
939
  "complete": "false",
912
940
  "statusVal": "",
913
941
  "statusType": "auto",
914
- "x": 520,
915
- "y": 120,
916
- "wires": []
917
- },
918
- {
919
- "id": "661e71d204ee957d",
920
- "type": "uibuilder",
921
- "z": "fd3c725340de4f74",
922
- "name": "",
923
- "topic": "",
924
- "url": "usertasks",
925
- "okToGo": true,
926
- "fwdInMessages": false,
927
- "allowScripts": false,
928
- "allowStyles": false,
929
- "copyIndex": true,
930
- "templateFolder": "blank",
931
- "extTemplate": "",
932
- "showfolder": false,
933
- "reload": true,
934
- "sourceFolder": "src",
935
- "deployedVersion": "6.8.2",
936
- "showMsgUib": false,
937
- "title": "",
938
- "descr": "",
939
- "x": 410,
940
- "y": 300,
941
- "wires": [
942
- [
943
- "823445c277179d4e",
944
- "4267576c32c782ec"
945
- ],
946
- [
947
- "ce674239858cdfa1"
948
- ]
949
- ]
950
- },
951
- {
952
- "id": "823445c277179d4e",
953
- "type": "debug",
954
- "z": "fd3c725340de4f74",
955
- "name": "debug 11",
956
- "active": true,
957
- "tosidebar": true,
958
- "console": false,
959
- "tostatus": false,
960
- "complete": "false",
961
- "statusVal": "",
962
- "statusType": "auto",
963
- "x": 600,
964
- "y": 220,
965
- "wires": []
966
- },
967
- {
968
- "id": "4078e4fb0a080b04",
969
- "type": "uib-element",
970
- "z": "fd3c725340de4f74",
971
- "name": "",
972
- "topic": "",
973
- "elementtype": "sform",
974
- "parent": "body",
975
- "parentSource": "",
976
- "parentSourceType": "str",
977
- "elementid": "",
978
- "elementId": "",
979
- "elementIdSourceType": "str",
980
- "heading": "",
981
- "headingSourceType": "str",
982
- "headingLevel": "h2",
983
- "data": "payload",
984
- "dataSourceType": "msg",
985
- "position": "last",
986
- "positionSourceType": "str",
987
- "passthrough": false,
988
- "confData": {},
989
- "x": 390,
990
- "y": 420,
991
- "wires": [
992
- [
993
- "c59406be55bd5124"
994
- ]
995
- ]
996
- },
997
- {
998
- "id": "3b9e8eb5743f557c",
999
- "type": "inject",
1000
- "z": "fd3c725340de4f74",
1001
- "name": "",
1002
- "props": [
1003
- {
1004
- "p": "payload"
1005
- }
1006
- ],
1007
- "repeat": "",
1008
- "crontab": "",
1009
- "once": false,
1010
- "onceDelay": 0.1,
1011
- "topic": "",
1012
- "payload": "[{\"id\":\"r1\",\"type\":\"text\",\"required\":false,\"label\":\"Label for form row 1\",\"value\":\"Foo\",\"title\":\"Some helpful text\"},{\"id\":\"r11\",\"type\":\"email\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r12\",\"type\":\"month\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r14\",\"type\":\"time\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r15\",\"type\":\"week\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r16\",\"type\":\"password\",\"required\":true,\"label\":\"Label for form row 11\",\"title\":\"Some helpful text\"},{\"id\":\"r2\",\"type\":\"range\",\"required\":true,\"label\":\"Label for form row 1\",\"value\":\"Foo\"},{\"id\":\"r3\",\"type\":\"button\",\"label\":\"Text on button\",\"value\":\"Buttons can have values as well\"}]",
1013
- "payloadType": "json",
1014
- "x": 80,
1015
- "y": 400,
1016
- "wires": [
1017
- [
1018
- "4078e4fb0a080b04"
1019
- ]
1020
- ]
1021
- },
1022
- {
1023
- "id": "c59406be55bd5124",
1024
- "type": "link out",
1025
- "z": "fd3c725340de4f74",
1026
- "name": "link out 1",
1027
- "mode": "link",
1028
- "links": [
1029
- "d9edaa2e3c514edc"
1030
- ],
1031
- "x": 545,
1032
- "y": 400,
942
+ "x": 380,
943
+ "y": 80,
1033
944
  "wires": []
1034
945
  },
1035
- {
1036
- "id": "d9edaa2e3c514edc",
1037
- "type": "link in",
1038
- "z": "fd3c725340de4f74",
1039
- "name": "link in 1",
1040
- "links": [
1041
- "c59406be55bd5124"
1042
- ],
1043
- "x": 245,
1044
- "y": 300,
1045
- "wires": [
1046
- [
1047
- "661e71d204ee957d"
1048
- ]
1049
- ]
1050
- },
1051
946
  {
1052
947
  "id": "846c5269df75c7a1",
1053
948
  "type": "function",
1054
949
  "z": "fd3c725340de4f74",
950
+ "g": "405f8c703368777c",
1055
951
  "name": "function 2",
1056
- "func": "msg.payload = msg.payload.formFields;\n\nreturn msg;",
952
+ "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\nreturn msg;",
1057
953
  "outputs": 1,
1058
954
  "timeout": 0,
1059
955
  "noerr": 0,
1060
956
  "initialize": "",
1061
957
  "finalize": "",
1062
958
  "libs": [],
1063
- "x": 100,
1064
- "y": 280,
959
+ "x": 380,
960
+ "y": 140,
1065
961
  "wires": [
1066
962
  [
1067
- "4078e4fb0a080b04"
963
+ "68cf69be67688af6",
964
+ "4267576c32c782ec"
1068
965
  ]
1069
966
  ]
1070
967
  },
1071
968
  {
1072
- "id": "ce674239858cdfa1",
969
+ "id": "4267576c32c782ec",
970
+ "type": "usertask-output",
971
+ "z": "fd3c725340de4f74",
972
+ "g": "405f8c703368777c",
973
+ "name": "",
974
+ "engine": "d042a4c68f51d6ab",
975
+ "x": 680,
976
+ "y": 140,
977
+ "wires": []
978
+ },
979
+ {
980
+ "id": "68cf69be67688af6",
1073
981
  "type": "debug",
1074
982
  "z": "fd3c725340de4f74",
1075
- "name": "debug 12",
1076
- "active": false,
983
+ "g": "405f8c703368777c",
984
+ "name": "debug 11",
985
+ "active": true,
1077
986
  "tosidebar": true,
1078
987
  "console": false,
1079
988
  "tostatus": false,
1080
989
  "complete": "false",
1081
990
  "statusVal": "",
1082
991
  "statusType": "auto",
1083
- "x": 580,
1084
- "y": 320,
992
+ "x": 660,
993
+ "y": 200,
1085
994
  "wires": []
1086
995
  },
1087
996
  {
1088
- "id": "4267576c32c782ec",
1089
- "type": "usertask-output",
997
+ "id": "bcfb8893adeb57ed",
998
+ "type": "comment",
1090
999
  "z": "fd3c725340de4f74",
1091
- "name": "",
1092
- "engine": "d042a4c68f51d6ab",
1093
- "x": 740,
1094
- "y": 260,
1000
+ "g": "405f8c703368777c",
1001
+ "name": "Beispiel für UserTask",
1002
+ "info": "",
1003
+ "x": 160,
1004
+ "y": 60,
1095
1005
  "wires": []
1096
1006
  }
1097
1007
  ]
@@ -0,0 +1,16 @@
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
+ "scripts": {
6
+ "start": "./node_modules/.bin/node-red node-red-contrib-processcube-flows.json"
7
+ },
8
+ "dependencies": {
9
+ "@5minds/node-red-contrib-processcube": "file:..",
10
+ "@5minds/node-red-dashboard-2-processcube-dynamic-form": "file:../../../../moellenbeck/reps/node-red-dashboard-2-ui-example",
11
+ "@flowfuse/node-red-dashboard": "^1.11.1",
12
+ "node-red": "^3.1.10",
13
+ "node-red-debugger": "^1.1.1",
14
+ "openapi-red": "^1.2.5"
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "0.3.5-feature-65fd58-lx819m2o",
3
+ "version": "0.3.5-feature-1092e6-lxhvslzu",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "authors": [
@@ -35,6 +35,7 @@
35
35
  <camunda:value id="value_02" name="Value 02" />
36
36
  </camunda:formField>
37
37
  <camunda:formField id="boolean_id" label="Boolean Label" type="boolean" />
38
+ <camunda:formField id="customer_01" label="Custom_01" type="v-text-field" />
38
39
  </camunda:formData>
39
40
  </bpmn:extensionElements>
40
41
  <bpmn:incoming>Flow_1h0giih</bpmn:incoming>
package/usertask-input.js CHANGED
@@ -11,25 +11,6 @@ function showStatus(node, msgCounter) {
11
11
  }
12
12
  }
13
13
 
14
- function mapUserTaskToMsg(userTask) {
15
- return userTask.userTaskConfig.formFields.map(field => {
16
- switch (field.type) {
17
- case 'string':
18
- return { id: field.id, type: 'text', required: false, label: field.label, value: '', title: 'Some helpful text' };
19
- case 'long':
20
- return { id: field.id, type: 'number', required: true, label: field.label, title: 'Some helpful text' };
21
- case 'date':
22
- return { id: field.id, type: 'date', required: true, label: field.label, title: 'Some helpful text' };
23
- case 'enum':
24
- return { id: field.id, type: 'select', required: true, label: field.label, options: field.enumValues.map(v => ({ id: v.id, name: v.name })), title: 'Choose an option' };
25
- case 'boolean':
26
- return { id: field.id, type: 'checkbox', required: false, label: field.label, title: 'Check for Yes' };
27
- default:
28
- return { id: field.id, type: field.type, required: true, label: field.label, title: 'Additional Information Needed' };
29
- }
30
- });
31
- }
32
-
33
14
  module.exports = function(RED) {
34
15
  function UserTaskInput(config) {
35
16
  RED.nodes.createNode(this,config);
@@ -72,15 +53,9 @@ module.exports = function(RED) {
72
53
  if (matchingFlowNodes && matchingFlowNodes.userTasks && matchingFlowNodes.userTasks.length == 1) {
73
54
  userTask = matchingFlowNodes.userTasks[0];
74
55
 
75
- let formFields = mapUserTaskToMsg(userTask);
76
-
77
- let flowNodeInstanceId = { id: "_flowNodeInstanceId", type: "hidden", value: userTaskWaitingNotification.flowNodeInstanceId};
78
- formFields.push(flowNodeInstanceId);
79
-
80
- node.send({ payload: {formFields: formFields, userTask: userTask }});
81
-
56
+ node.send({ payload: {userTask: userTask }, "_flowNodeInstanceId": userTaskWaitingNotification.flowNodeInstanceId});
82
57
  } else {
83
- node.send({ payload: matchingFlowNodes });
58
+ node.send({ payload: matchingFlowNodes.userTasks });
84
59
  }
85
60
  });
86
61
  });
@@ -31,9 +31,9 @@ module.exports = function(RED) {
31
31
  }
32
32
 
33
33
  node.on('input', function(msg) {
34
- console.log(`Try to finsih UserTask with id ${msg.payload._flowNodeInstanceId}.`);
34
+ console.log(`Try to finsih UserTask with id ${msg._flowNodeInstanceId}.`);
35
35
 
36
- const flowNodeInstanceId = msg.payload._flowNodeInstanceId;
36
+ const flowNodeInstanceId = msg._flowNodeInstanceId;
37
37
 
38
38
  client.userTasks.finishUserTask(flowNodeInstanceId, msg.payload).then(() => {
39
39
  console.log(`UserTask with id ${flowNodeInstanceId} finished.`);