Methods to be Used for Running EPM Automate Using Server-Side Groovy

  • getEPMAutomate () This static method provides an instance of EpmAutomate class, which can then be used to invoke EPM Automate commands.
  • execute () This method of EpmAutomate 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 of EpmAutomateStatus class.
  • getStatus () This method of EPMAutomateStatus 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 of EPMAutomateStatus class returns the string output of the command. For example, you can use this method to return the output of the getApplicationAdminMode and getDailyMaintenanceStartTime command. If the return status of the command is non-zero, this method returns the error message.
  • getItemsList () This method of EPMAutomateStatus class returns the list output of the command. For example, you can use this method to return the output of the getSubstVar, listBackups, and listFiles commands.