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

Working with loops


Here, we will explore how to create loops with Orchestrator. You will learn how to build loops and use 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.

You need to understand how decisions are used in Orchestrator, as it was explained in the Working with decisions recipe.

For the For Each element, we will be reusing the workflow we created in the Workflow basics recipe in this chapter (3.01 in the example package).

How to do it...

There are several types of loops one can create, however they can all be reduced to the following two basic types of loops.

The decision loop

This basic kind of loop runs until a certain condition is met. We will build a so-called for loop in this example. A discussion about the different types of decision loops (for, do-while, and while-do) can be found in the How it works... section of this recipe.

  1. Create a new workflow and build the...