Terminate action

The Logic Apps designer allows us to add the Terminate control flow action simply by searching for terminate within the control flow action set. The Terminate action stops the run for a Logic App workflow instance and cancels any action runs that are in progress or skips remaining actions, and returns the status when requested.

Terminate, along with the scope action, can be used to build robust exception handlers within Logic Apps. In the following example, when there is an exception in the parent scope action, the terminate control flow is executed, and any secondary process depending on the Parent scope is skipped:

The Terminate action has enumerated status types of Cancelled, Failed, and Succeeded. You can select any of these types when you need to end an instance run of Logic Apps. The following code view represents the Terminate action:

So far in this chapter, we have covered all the pre-built control flow actions available in Logic Apps. We have also covered how you can use data operations actions in Logic Apps to perform message translation and select operations along with navigation through the Parse JSON action. We suggest that you practice these samples within your own Azure tool so that you get a firm understanding of the various patterns that can be implemented through Logic Apps' built-in control flows.

In the next section, we will discuss content type negotiation and the Logic Apps workflow expression language. Mastering both these elements can help you to build Logic Apps quicker.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.184.0