Book Image

VMware vRealize Orchestrator Cookbook

By : Daniel Langenhan
Book Image

VMware vRealize Orchestrator Cookbook

By: Daniel Langenhan

Overview of this book

Table of Contents (15 chapters)
VMware vRealize Orchestrator Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 Waiting tasks recipe in this chapter. (3.13.1 and the com.packtpub.Orchestrator-Cookbook 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 time the workflow should sleep

    wfToken

    WorkflowToken

    Attribute

    The workflow token of the asynchronous workflow

  2. Drag an Asynchronous workflow task into the schema.

  3. When prompted, enter the name of the sleep workflow we created in the Waiting tasks recipe in this chapter ...