Invoking a Business rule via Groovy
Summary
Invoking a Business rule via GroovyContent
Hi all,
I am trying to execute a business rule via groovy. However it does not run. Can you help me?
Below the code:
def body = new JSONObject()
.put("jobType","RULES")
.put("jobName","G.00. Process Control- Consol")
.put("parameters",[["RTP_Account":"A_Consolidation_Adjustments_Submission","RTP_Consol_P_Status":"4","RTP_Entity":"No Entity"]])
.toString()
HttpResponse <String> jsonResponseRefresh = operation.application.getConnection("JOBS").post()
.header("Content-Type", "application/json")
.body(body)
.asString()
Version
20.04.58Code Snippet
def body = new JSONObject() .put("jobType","RULES") .put("jobName","G.00. Process Control- Consol") .put("parameters",[["RTP_Account":"A_Consolidation_Adjustments_Submission","RTP_Consol_P_Status":"4","RTP_Entity":"No Entity"]]) .toString() HttpResponse <String> jsonResponseRefresh = operation.application.getConnection("JOBS").post() .header("Content-Type", "application/json") .body(body) .asString()
Tagged:
3