5.5.1

Table Of Contents
Developing Actions 3
Orchestrator provides libraries of predefined actions. Actions represent individual functions that you use as
building blocks in workflows, Web views, and scripts.
Actions are JavaScript functions. They take multiple input parameters and have a single return value. They
can call on any object in the Orchestrator API, or on objects in any API that you import into Orchestrator by
using a plug-in.
When a workflow runs, an action takes its input parameters from the workflow's attributes. These attributes
can be either the workflow's initial input parameters, or attributes that other elements in the workflow set
when they run.
This chapter includes the following topics:
n
“Reusing Actions,” on page 139
n
“Access the Actions View,” on page 139
n
“Components of the Actions View,” on page 140
n
“Creating Actions,” on page 140
n
“Use Action Version History,” on page 143
n
“Restore Deleted Actions,” on page 143
Reusing Actions
When you define an individual function as an action instead of coding it directly into a scriptable task
workflow element, you expose it in the library. When an action is visible in the library, other workflows can
use it.
When you define actions independently from the workflows that call on them, you can update or optimize
the actions more easily. Defining individual actions also allows other workflows to reuse actions. When a
workflow runs, Orchestrator caches each action only the first time that the workflow runs it. Orchestrator
can then reuse the cached action. Caching actions is useful for recursive calls in a workflow, or fast loops.
You can duplicate actions, export them to other workflows or packages, or move them to a different module
in the actions hierarchical list.
Access the Actions View
The Orchestrator client interface features an Actions view that provides access to the Orchestrator server's
libraries of actions.
The Actions view of the Orchestrator client interface presents you with a hierarchical list of all the actions
available in the Orchestrator server.
VMware, Inc.
139