Invoke Service handlers for success and failure responses

NOTE
You can use the Invoke Service success and failure handlers only for forms based on core components. Forms based on foundation components do not support Invoke Service success and failure handlers.

Visual rule editor allows you to create rules for success and failure handlers for Invoke Service operations based on its output responses. Below image depicts the Invoke Service in Visual rule editor for an Adaptive Form:

Invoke service handlers

To add success or failure handler, click Add Success Handler or Add Failure Handler, respectively.

When you click Add Success Handler, the Invoke Service Success Handler rule editor appears, allowing you to specify rules or logic to manage the Invoke Service output response when the operation is successful. You can specify rules even without defining conditions; however, you can add conditions for the success handler by clicking the Add Condition option.

Invoke service success hadler

You can add multiple rules to handle successful responses for the Invoke Service operation:

Multiple success handler

Similarly, you can add rules to handle the Invoke Service output response when the operation is not successful. The image below displays the Invoke Service Failure Handler rule editor:

Invoke service failure hadler

You can also add multiple rules to handle unsuccessful responses from the Invoke Service operation.

The Enable Error Validation on Server feature allows validations added by the author while designing an Adaptive Form to run on the server also.