Generic elements
These are the elements you’ll use in almost every workflow. To add one, drag it from the Generic group onto the canvas, or onto an arrow to drop it between two elements. Select it to edit it in the properties pane on the right. Most elements have a Business status box on their Details section: a short label the run shows while it is on that element.
Which arrows an element can have. Most elements have one outgoing arrow, to the next element, and an optional red dashed exception arrow for when they fail. A few are different:
- Decision: a true arrow and a false arrow, nothing else.
- Switch: one arrow per case plus the default. When you select it, there’s no exception handle next to it, unlike a scriptable task.
- End workflow and Throw exception: no outgoing arrow at all. Throw exception fails the run with the one string you bind under Exception handling.
- Default error handler: no incoming arrow. It catches failures from every element that has no exception arrow of its own.
The examples come from small lab workflows in VCF Orchestrator Guide/Reference and VCF Orchestrator Guide/Chapter 3. The first one, Describe a running VM, uses four of them at once:

Run it on a powered-on VM and it returns rockylinux9: poweredOn, 1 vCPU, 2048 MB. Run it on a powered-off VM and it returns testvm01 is poweredOff, so it was skipped.
Scriptable task
Runs a piece of script, in JavaScript by default. Its Inputs/Outputs section says which workflow variables the script reads and writes; anything else in the script is local. Use it for the small glue between steps, like Read the power state in figure R.1. Once the same code appears in two workflows, move it into an action.
Used in 3.2 Scriptable tasks and the schema canvas.
Decision
Splits the path in two: the run follows the green arrow when the decision is true, and the red dashed arrow when it is false. The Decision type switch picks how you write the test. In Simple mode you pick a variable, a comparison, and a value. Turn it off and you write a script that returns true or false, in JavaScript or any other runtime the server offers.

Older guides call the scripted version a custom decision. In 9.1 it is the same Decision element with Simple turned off.
Used in 3.3 Decisions, switches, and loops.
Decision activity
A decision whose answer comes from a workflow or an action. Under Select Activity you pick one; the element runs it, and under Decision you pick one of its outputs and the value that means true, such as isOn is true. Use it when the same yes-or-no check is shared by several workflows.

The lab workflow Is a VM powered on has one output, isOn, and nothing else; Describe a VM if it is on reuses it. After a reload, Select Activity can show Select workflow or action even though it’s set; the inputs and the decision below it show what it runs.
Switch
Picks one of several paths. On the Cases tab, each case compares a variable with a value; the first match wins, and By default go to catches everything else. Use it instead of a chain of decisions.

Used in 3.3 Decisions, switches, and loops.
Action element
Calls an action. The action’s inputs and return value show up as the element’s inputs and outputs, ready to bind. In figure R.1, Get the VM facts calls com.vcfguide.chapter4/getVmFacts and stores the result in the variable facts. This is how one action is shared by many workflows.
Used in 4.2 Writing and reusing actions.
Workflow element
Runs another workflow and waits for it to finish. Its inputs and outputs map onto the caller’s variables. In figure R.1, Describe a VM runs the chapter 3 workflow of the same name. Use it to build big workflows from small, tested ones.
Foreach element
Runs a workflow once for every item in an array, one after another. For each item in array picks the array; inputs bound with a * in front, like *vm, take one item per run, and outputs bound the same way collect one result per run. Turn on Iteration error handler to carry on when one run fails.

Used in 3.3 Decisions, switches, and loops.
Asynchronous element
Starts a workflow and carries on without waiting. Its one output, under Options > Output Options, is wfToken, a WorkflowToken you can use later to check the run or wait for it. The element takes the name of the workflow it calls.

Used in 3.8 Asynchronous and nested workflows.
Nested workflows
Starts several workflows at the same time and waits until all of them have finished. Click Add workflow once per child, pick the workflow, and bind its inputs and outputs under its own Workflow row. Use it when the steps don’t depend on each other, such as preparing three VMs at once.

Run it on two VMs and Report logs both summaries, such as rockylinux9: poweredOn, 1 vCPU, 2048 MB and testvm01: poweredOff, 2 vCPU, 4096 MB.
Used in 3.8 Asynchronous and nested workflows.
Schedule workflow
Creates a scheduled task that runs a workflow once, later. Under Options, bind the input workflowScheduleDate to a Date; the output scheduledTask is the Task it created. The current run doesn’t wait. The scheduled run shows up under Activity > Scheduled; for a repeating schedule, see the recipe below.

In the lab, a run with runAt set five minutes ahead completes in under a second, and Describe a VM runs on its own at the set time. As with the asynchronous element, the Workflow box can show Select workflow after a reload; the element’s inputs show what it calls.
Related: 7.7 Scheduling workflows.
User interaction
Pauses the run and asks a person for input, such as an approval. Under Options, timeout.date sets a deadline and the security.* inputs say who may answer. Under Form Inputs, list the variables the person fills in; the workflow gets an extra tab, named after the element, where you lay out their form. The question appears under Activity > Waiting for Input. Without a deadline the run can wait forever; when the deadline passes, the element fails, so give it an exception path.

Used in 3.9 User interactions and approvals.
Waiting timer
Pauses the run until the date in its timer.date input. While it waits, the run is stored in the database and uses no thread, so it can safely wait for days.

Used in 3.7 Waiting tasks and custom events.
Waiting event
Pauses the run, without a thread, until a trigger fires: for example the end of a vCenter task, made with task.createEndOfTaskTrigger(timeout) in a scriptable task just before it. Bind the trigger to its one input, trigger.ref (Trigger). Always give the trigger a timeout, in seconds.
snapshotTask = vm.createSnapshot_Task("vcfguide-sample", "VCF Orchestrator Guide sample, removed straight away", false, false);// The trigger fires when the task ends, or after the timeout (seconds)taskTrigger = snapshotTask.createEndOfTaskTrigger(300);
While it waits, the run shows as Waiting Signal with the business status Waiting for vCenter; in the lab, a snapshot of testvm01 took 8 seconds, and the last step removed it again.
Used in 3.7 Waiting tasks and custom events.
End workflow
Ends the run successfully. A workflow can have several, one at the end of each path.
Throw exception
Ends the run as failed. It is the end element with End mode set to Error, throw an exception; the message comes from the variable under Exception handling. Put it at the end of an error path so callers can see what went wrong.

Used in 3.4 Handling errors and exceptions.
Default error handler
Catches any error that no element handles itself. It sits apart from the main path, starts its own short path, such as logging or cleaning up, and then ends the run. A workflow can have one.

Used in 3.4 Handling errors and exceptions.
Workflow note
A coloured box for comments on the canvas. It does nothing at run time. Drag it onto an empty part of the canvas and double-click it to type. Use it to label groups of elements so the next person understands the schema at a glance, like the note in figure R.3.
