"Exception in Groovy Output Manipulation: null",
Hi,
I have a requirement to print "Successfully PO Created" message after every run of orchestration successfully.
I have used 'Manipulate Output' to get this message for evry successful run.
I tried with below script but getting error
Groovy script is:
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);
// modify jsonIn
jsonIn["groovy"] = "Successfully PO Created";
def jsonOut = new JsonBuilder(jsonIn).toString();
// orchAttr.writeWarn("custom log entry - warning");
// orchAttr.writeDebug("custom log entry - debug");
return jsonOut;
}
Error message is
{
"status" : "ERROR",