Integration Technologies - JDE1 (MOSC)

MOSC Banner

"Exception in Groovy Output Manipulation: null",

edited May 25, 2019 5:00AM in Integration Technologies - JDE1 (MOSC) 1 commentAnswered

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",

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center