4.1

Table Of Contents
Access the Scripting Engine from the Workflow Editor
The Orchestrator scripting engine uses the Mozilla Rhino 1.6 JavaScript engine to help you write scripts for
scripted elements in workflows. You access the scripting engine for scripted workflow elements from the
Scripting tab in the workflow editor.
Procedure
1 Right-click a workflow in the Workflows view of the Orchestrator client and select Edit.
2 Click the Schema tab in the workflows editor.
3 Add a Scriptable Task element or a Custom Decision element to the workflow schema.
4 Click on the scriptable element's Scripting tab.
You accessed the scripting engine to define the scripted functions of workflow elements. The Scripting tab
allows you to navigate through the API, consult documentation about the objects, search for objects, and write
JavaScript.
What to do next
Search the Orchestrator API using the API Explorer.
Access the Scripting Engine from the Action or Policy Editor
The Orchestrator scripting engine uses the Mozilla Rhino JavaScript engine to help you write scripts for actions
or policies. You access the scripting engine for actions and policies from the Scripting tabs in the action and
policy editors.
Procedure
1 Right-click an action or policy in the Actions or Policies views of the Orchestrator client and select Edit.
2 Click the Scripting tab in the action or policy editor.
You accessed the scripting engine to define the scripted functions of action or policy elements. The Scripting
tab allows you to navigate through the API, consult documentation about the objects, search for objects, and
write JavaScript.
What to do next
Search the Orchestrator API using the API Explorer.
Access the Orchestrator API Explorer
Orchestrator provides an API Explorer to allow you to search the Orchestrator API and see the documentation
of JavaScript objects that you can use in scripted elements.
You can consult an online version of the Scripting API for the vCenter server plug-in on the Orchestrator
documentation home page.
vCenter Orchestrator Developer's Guide
114 VMware, Inc.