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

execute Data management rule from a Business Rule Groovy

Accepted answer
215
Views
14
Comments
in Planning 14 comments

Summary:

Hi All, im trying to run a data management rule from a business rule using groovy script.

The Data rule is on the Instance A(for Eg) and the business rule is also on the same instance. The DM does pull the data from one more other application.

I have the below groovy script: but i face an error as shown the attached a screenshot.

Any help is much appreciated.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

HttpResponse jsonResponse = operation.application.getConnection("DM").post().body(json(["jobType":"DATARULE", "jobName":"WF_to_PBCS_Pull", "startPeriod":"23-Pd07", "endPeriod":"23-Pd07", "importMode":"REPLACE", "exportMode":"REPLACE"])).asString();

boolean pushData = awaitCompletion(jsonResponse, "DM")

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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