File tree Expand file tree Collapse file tree
OpenFlowNodeRED/src/nodered/nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ export class rpa_workflow_node {
123123
124124 if ( data . payload . command == "invokecompleted" ) {
125125 result . payload = data . payload . data ;
126+ if ( data . user != null ) result . user = data . user ;
126127 if ( result . payload == null || result . payload == undefined ) { result . payload = { } ; }
127128 this . node . status ( { fill : "green" , shape : "dot" , text : data . payload . command } ) ;
128129 console . log ( "********************" ) ;
@@ -132,12 +133,14 @@ export class rpa_workflow_node {
132133 }
133134 else if ( data . payload . command == "invokefailed" || data . payload . command == "invokeaborted" || data . payload . command == "error" ) {
134135 result . payload = data . payload ;
136+ if ( data . user != null ) result . user = data . user ;
135137 if ( result . payload == null || result . payload == undefined ) { result . payload = { } ; }
136138 this . node . status ( { fill : "red" , shape : "dot" , text : data . payload . command } ) ;
137139 this . node . send ( [ null , null , result ] ) ;
138140 }
139141 else {
140142 result . payload = data . payload ;
143+ if ( data . user != null ) result . user = data . user ;
141144 if ( result . payload == null || result . payload == undefined ) { result . payload = { } ; }
142145 this . node . send ( [ null , result ] ) ;
143146 }
Original file line number Diff line number Diff line change 1- 0.0.423
1+ 0.0.424
You can’t perform that action at this time.
0 commit comments