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 FCCS pre-seeded Business Rules Using Groovy

40
Views
0
Comments

Summary

This article describes approaches to execute FCCS pre-seeded Business Rules Using Groovy

Content

Approach 1 – Using EPM Cloud Based Named Connection

Named Connection Creation

Create a new EPM Cloud based connection

  1. Provide URL ending with /HyperionPlanning
  2. Provide Service Administrator credentials
  3. Provide Domain
  4. Click Validate button to validate connection
  5. Save and Close

Groovy Script

/*RTPS: {Scenario} {Years} {Period} {Entity}*/

String sScenario = rtps.Scenario.toString()
String sYears = rtps.Years.toString()
String sPeriod = rtps.Period.toString()
String sEntity = rtps.Entity.toString()

HttpResponse<String> jsonResponse = operation.application.getConnection("Consolidation Application").post("/rest/v3/applications/<AppName>/jobs")
 .header("Content-Type", "application/json")
 .body(json(["jobType" : "Rules", "jobName" : "Translate",
"parameters":
[
"Currency":"USD_Reporting",
"Scenario":"${sScenario}",
"Entity":"${sEntity}",
"Year":"${sYears}",
"Period":"${sPeriod}"
]
])).asString()
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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