PavelK
Member
Hello,
In goovy "Manipulate Outputs" i would like print variables what was defined before (Input, dataselections or from forms)
Are you know how to do?
I found only how to add print "Thanks for using Weather Forecast".
For example how to print variable DOC, KCO, ICU etc?
-----------------------------
import groovy.json.JsonSlurper;
import groovy.json.JsonBuilder;
import com.oracle.e1.common.OrchestrationAttributes;
String main(OrchestrationAttributes orchAttr, String input)
{
def jsonIn = new JsonSlurper().parseText(input);
jsonIn["groovy"] = "Thanks for using Weather Forecast";
// modify jsonIn;
def jsonOut = new JsonBuilder(jsonIn).toString();
// orchAttr.writeWarn("custom log entry - warning");
// orchAttr.writeDebug("custom log entry - debug");
return jsonOut;
}
In goovy "Manipulate Outputs" i would like print variables what was defined before (Input, dataselections or from forms)
Are you know how to do?
I found only how to add print "Thanks for using Weather Forecast".
For example how to print variable DOC, KCO, ICU etc?
-----------------------------
import groovy.json.JsonSlurper;
import groovy.json.JsonBuilder;
import com.oracle.e1.common.OrchestrationAttributes;
String main(OrchestrationAttributes orchAttr, String input)
{
def jsonIn = new JsonSlurper().parseText(input);
jsonIn["groovy"] = "Thanks for using Weather Forecast";
// modify jsonIn;
def jsonOut = new JsonBuilder(jsonIn).toString();
// orchAttr.writeWarn("custom log entry - warning");
// orchAttr.writeDebug("custom log entry - debug");
return jsonOut;
}