Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Using Groovy to Trigger a Data Management Batch β€” Cloud Customer Connect
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

Using Groovy to Trigger a Data Management Batch

Accepted answer
99
Views
24
Comments
in Planning 24 comments

Summary:


Content (required):

similar to the question posted here

how to trigger data management rule in PCMCS using Groovy in Planning β€” Cloud Customer Connect (oracle.com)


I've setup a connection called "DMJobs"

The connection details as follows using our service account for authentication, which has full admin rights to the planning instance:


I've written the following groovy script to run a batch job in DM

HttpResponse jsonResponse = operation.application.getConnection("DMJobs").post().

body(json(["jobType":"BATCH","JobName":"FCST_PUSH_CUSTOM"])).asString();



The groovy script runs without errors but appears to do nothing - the DM batch isn't executing as I'm not seeing any activity in the process log within DM.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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