EPM automate connection
Summary:
Currently, in our Groovy business rules, we are using the EPM Automate login command to establish the connection and then execute EPM Automate commands
// Login to EPM
EpmAutomateStatus loginstatus = automate.execute('login', 'username','targetPassword.epw' , 'targeturl')
if(loginstatus.getStatus() != 0) throwVetoException(loginstatus.getOutput())
println(loginstatus.getOutput())
// Execute the runIntegration command
EpmAutomateStatus runIntegration = automate.execute('runIntegration', "$integration", 'importMode=Replace', 'exportMode=Replace', "period={$period}")
if(runIntegration.getStatus() != 0) throwVetoException(runIntegration.getOutput())
println(runIntegration.getOutput())
The issue is that whenever we clone the environment, the business rules are copied over to the target environment, and the URLs in the business rules are still pointing to PROD. I tried using localhost in the business rules while defining the URL parameter, but it does not work. I also tried using a REST API connection and then executing the EPM Automate command, but it is throwing an error.