Error handling in workflows

This recipe is dedicated to showing how to handle errors in workflows. We will learn how to catch errors and redirect them.

Getting ready

We just need a working Orchestrator, and you will need the rights to create new workflows and run them. We will work with the Orchestrator Client.

How to do it...

  1. Create a new workflow. We will reuse this workflow in the recipe, Resuming failed workflows in Chapter 4, Programming Skills.
  2. Add the following variables:

    Name

    Type

    Section

    Use

    number

    Number

    IN

    Used to create an intentional error

  3. Assemble the workflow (as seen in the following screenshot) by dragging a Scriptable task into the workflow and then a Throw exception element from the generic section onto the Scriptable ...

Get VMware vRealize Orchestrator Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.