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

57
Views
0
Comments

Summary

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

Content

Approach – Using Other Web Service Provider Named Connection

Named Connection Creation

  1. Create a new Other Web Service Provider based connection named "Consolidation Application"
  2. Provide full URL ending with /HyperionPlanning
  3. Provide User credentials to be used to execute Groovy Rule
  4. 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()

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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