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

Sending and waiting for custom events


This recipe will showcase how to send interactions between workflows. This is mostly used together with asynchronous workflows, which we will explain in the Using asynchronous workflows recipe in this chapter.

Getting ready

We need to be able to create two workflows.

We will reuse the action getNow that we created in the Waiting tasks recipe in this chapter (see the com.packtpub.Orchestrator-Cookbook module in the example pack).

How to do it...

This recipe requires us to create two workflows and then use them together.

Receiving a custom event

First, we create the receiving part:

  1. Create a new workflow using the setup shown in the following figure:

  2. Create the following variables:

    Name

    Type

    Section

    Use

    isExternalEvent

    Number

    Attribute

    Value: false

    This is a setting to indicate where Orchestrator has to listen to for the Event.

    eventName

    String

    IN

    This is a string that contains the event identifier.

    endDate

    Date

    IN

    The date/time until Orchestrator...