Methods to be Used for Running EPM Automate Using Server-Side Groovy
getEPMAutomate ()
This static method provides an instance ofEpmAutomate
class, which can then be used to invoke EPM Automate commands.execute ()
This method ofEpmAutomate
class is used to execute an EPM Automate command. Pass the EPM Automate command name as the first parameter and command options as subsequent parameters. This method returns an instance ofEpmAutomateStatus
class.getStatus ()
This method ofEPMAutomateStatus
class returns the execution status returned by the command. Return value 0 indicates success while a non-zero value means command failure.getOutput ()
This method ofEPMAutomateStatus
class returns the string output of the command. For example, you can use this method to return the output of thegetApplicationAdminMode
andgetDailyMaintenanceStartTime
command. If the return status of the command is non-zero, this method returns the error message.getItemsList ()
This method ofEPMAutomateStatus
class returns the list output of the command. For example, you can use this method to return the output of thegetSubstVar
,listBackups
, andlistFiles
commands.