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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.