Please enable JavaScript to view this site.

Altova MobileTogether Designer

Executes a REST request that you define in the RESTful API Request dialog. To open this dialog, click the Additional Settings button of the Settings field (see screenshot below).

MTDExecuteREST Request

After you have defined the REST request, the URL of the request is displayed in the Settings field of the action. The request will be executed at runtime. If you wish to store the result of the request in the $MT_HTTPExecute_Result variable, check the Store latest result option (see screenshot above). You can then use the $MT_HTTPExecute_Result variable to access the result elsewhere in the design. Note, however, that this variable can also be used by the Execute SOAP Request and Execute FlowForce Job actions. So the variable will contain the last result generated by any of the actions that use it.

 

If you wish to change the REST request after one has already been defined, click the Additional Dialog button of the Settings field (see screenshot above). This displays the RESTful API Request dialog, in which you you can define the new request.

 

Error processing

The On Error option lets you define what should be done if an error occurs:

 

Abort Script: After an error occurs, all subsequent actions of the triggered event are terminated. This is the default action if an error occurs. If you wish to continue despite an error, select either the Continue or Throw option.

Continue: Actions are not terminated. Instead, you can select what to do in either event: when there is no error (On Success), or when there is an error (On Error). For example, you might want to display a message box saying whether a page load was successful or not.

Throw: If an error is detected, this option throws an exception that is stored in the Try/Catch action's variable. The Catch part of the Try/Catch action is used to specify what action to take if an error occurs. If no error occurs, then the next action is processed. See the section Try/Catch action for details.

 

© 2019 Altova GmbH