Groovy rule calling RESTAPI PLAN_TYPE_MAP - not working
Content
I am working on a groovy rule to call a REST API for running a data map.
I would skip the API and use a smart push, however I want to bypass dimensional security.
Contents of rule:
// Initiate Map
Map<String, Boolean> Params = new HashMap<String, Boolean>()
// Establish Parameters
Params.put('clearData', true)
def body = new JSONObject()
.put("jobType", "PLAN_TYPE_MAP")
.put("jobName","CopyTest")
.put("parameters",Params)
.toString()
HttpResponse<String> jsonResponse = operation.application.getConnection("DemoOther").post()
.body(body)
.asString();
println "JSON Body:$body"
The rule appears to run, but there is no data movement.
Log messages :
JSON Body:{"jobName":"CopyTest","jobType":"PLAN_TYPE_MAP","parameters":{"clearData":true}}