You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

EPBCS : API call to Run Rule not fetching parameters

We have two Rules.

Groovy_Rule1 should run on form save. Should pick Run time prompts and pass it to API call which will call Groovy_Rule2 to run a Data Map.

Issue: For some reason the parameters that are passed from API call are not passing to Groovy_Rule2.

Groovy _Rule1:

/* RTPS: {RTP_PROFIT_CENTER}, {RTP_COMPANY_CODE}, {RTP_SCENARIO} */

/*Groovy_Rule1 to call API */

String PF_CVAL
String COM_CODEVAL
String SCN_VAL

PF_CVAL = rtps.RTP_PROFIT_CENTER.toString()
COM_CODEVAL = rtps.RTP_COMPANY_CODE.toString()
SCN_VAL = rtps.RTP_SCENARIO.toString()

def params = new JSONObject()
.put("RTP_PROFIT_CENTER",rtps.RTP_PROFIT_CENTER.toString().replaceAll('"', ''))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!