Skip to content

Commit 072856a

Browse files
committed
Update rpa_workflow_node to new robot
1 parent d9301a7 commit 072856a

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

OpenFlowNodeRED/src/nodered/nodes/rpa_nodes.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,11 @@ export class rpa_workflow_node {
162162
var rpacommand = {
163163
command: "invoke",
164164
workflowid: this.config.workflow,
165-
data: msg.payload
166-
}
167-
var data = {
168165
jwt: msg.jwt,
169-
payload: rpacommand
166+
data: { payload: msg.payload }
170167
}
171168
this.node.status({ fill: "blue", shape: "dot", text: "Robot running..." });
172-
this.con.SendMessage(JSON.stringify(data), this.config.queue, correlationId, true);
173-
// var data: any = {};
174-
// data.payload = msg.payload;
175-
// data.jwt = msg.jwt;
176-
// this.con.SendMessage(JSON.stringify(data), this.config.queue);
169+
this.con.SendMessage(JSON.stringify(rpacommand), this.config.queue, correlationId, true);
177170
} catch (error) {
178171
NoderedUtil.HandleError(this, error);
179172
try {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.480
1+
0.0.481

0 commit comments

Comments
 (0)