Automic Workload Automation

getMessageXXX() methods versus MessageBox

  • 1.  getMessageXXX() methods versus MessageBox

    Posted 02-22-2019 03:42 AM

    Yesterday I noticed that the ExecuteObject API class has several methods that can be used to retrieve information from the AE server in once a request has been submitted, e.g., using Connection.sendRequestAndWait().

    java.lang.StringgetMessageInsert()
    This method returns a message insert for the message number returned by getMessageNumber.
    intgetMessageNumber()
    This method returns a message number in case that the execution failed.
    java.lang.StringgetMessageText()
    Returns the error message translated in the language of the user.
    intgetRunID()
    Returns the RunID of this request.

     

    The getRunID() method simply returns the run ID of the activated object. The other three methods appear to duplicate capabilities provided in the MessageBox class. (For executions of multiple objects, the ExecuteObjects.ExecuteObjectsResponse class also has these four methods.)

     

    Is there a difference between the messages that are returned via these two approaches?