Skip to content

Visual programming

This is the heart of Orchestrator. A workflow is a drawing: elements on a canvas, joined by arrows, with data passed between them through named slots. Chapters 1 and 2 got an Orchestrator running and kept it healthy. From here on you build things with it.

The recipes in this chapter build on each other. Recipe 3.1 makes a two-step workflow and explains how data moves through it. Recipe 3.2 adds a reusable action and the canvas moves you need every day. Recipe 3.3 makes the workflow branch, loop, and repeat itself over a list. Recipe 3.4 teaches it to fail well, and recipe 3.5 shows how to pick up a failed run and step through it. Recipe 3.6 gives the workflow a proper run form. Recipes 3.7 and 3.8 make it wait, and run other workflows alongside it. Recipe 3.9 brings people into the run with an approval step, and recipe 3.10 checks a workflow for mistakes and shows what depends on it before you change it.

Everything you build in this chapter goes in one folder and one action module, so it’s easy to find, export, and delete afterwards:

Object Name
Workflow folder VCF Orchestrator Guide/Chapter 3
Action module com.vcfguide.chapter3

The examples act on the vCenter registered in recipe 1.9, vc01.vmw.lab, and only read from it. None of them changes a VM, so you can run them safely against a lab or a production vCenter. Scripts are plain ES5.1 JavaScript, the subset that Orchestrator’s Rhino engine handles without surprises: var and function, with no arrow functions, let, const, or template strings.

The ideas in this chapter are almost unchanged since vCO 5.5. The editor around them is new.

Back in vRO 5.5–7Build workflows in the Java client, launched with Java Web Start, with one window per workflow and tabs such as General, Inputs, Outputs, Schema, and Presentation.
In Orchestrator 9.xBuild workflows in the browser-based Orchestrator Client. The editor's tabs are Summary, Variables, Inputs/Outputs, Schema, Input Form, Version History, and Audit.
Back in vRO 5.5–7Workflow variables are called attributes, and the run dialog is laid out in the Presentation tab.
In Orchestrator 9.xAttributes are called variables, and the run form is designed in the Input Form tab, which can also call actions to fill in and check values.