1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
1.0K views
by gary-t-8719 (15.1k points)
For example how can i just return "true"

3 Answers

0 votes
 
Best answer

While there are other ways to return a differnt ACK message, the easist way is to use the qie post message response function in the Source Node Response Script.

qie.postMessageResponse('true');

by gary-t-8719 (15.1k points)
selected by ron-s-6919
by lewis-s-9714 (1.0k points)
Does this have to be in the source node's "Response Script" or can it be called in other nodes, like a mapping node?
by lewis-s-9714 (1.0k points)
I found the option on the source node "Response: From Mapping or Destination node" and found the behavior I was looking for.
0 votes

Another way would be to return a csv message. In this example we are returning just one row and one column but you could build a larger csv message model.

message = qie.createCSVMessage();

message.setNode('1[1]', 'true');

 

by gary-t-8719 (15.1k points)
edited by rich-c-2789
0 votes

Or you could build a csv message pulling data from the source message and parse it as csv and return.

var patientId = source.getNode('1');
var patientName = source.getNode('2');
message = qie.parseCSVString(patientId + ',' + patientName);
by gary-t-8719 (15.1k points)
...