4.1

Table Of Contents
Scripting 4
Orchestrator uses JavaScript to create building blocks from which you create actions, workflow elements, and
policies that access the APIs of the technologies that you plug into Orchestrator.
Orchestrator uses the Mozilla Rhino 1.6 JavaScript engine as its scripting engine. The scripting engine provides
variable type checking, name space management, automatic completion, and exception handling.
The Orchestrator workflow engine allows you to use basic JavaScript language features, such as if, loops,
arrays, and strings. You can use objects in scripting that the Orchestrator API provides, or objects from any
other API that you import into Orchestrator through a plug-in and that you map to JavaScript objects. For
information about Rhino, see the Mozilla Rhino Web site at http://www.mozilla.org/rhino/.
This chapter includes the following topics:
n
“Orchestrator Elements that Require Scripting,” on page 112
n
“Limitations of the Mozilla Rhino Implementation in Orchestrator,” on page 112
n
“Using the Orchestrator API,” on page 113
n
“Exception Handling Guidelines,” on page 119
n
“Orchestrator JavaScript Examples,” on page 120
VMware, Inc.
111