Using asynchronous workflows

A workflow executes its elements along its path one after another. Using asynchronous workflow execution, we can change this behavior and actually execute workflows in parallel.

Getting ready

We will need to build a new workflow.

For the first example, we will reuse the sleep workflow as well as the getNow action we created in the recipe Waiting tasks in this chapter. (06.04.01 Sleep and the com.packtpub.Orchestrator-Cookbook2ndEdition.helpers module in the example pack).

How to do it...

We will see two examples to demonstrate the asynchronous feature.

The first example

Here are some basics:

  1. Create a new workflow and create the following variables:

    Name

    Type

    Section

    Use

    sleepTime

    Number

    IN

    It defines the ...

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.