5.5

Table Of Contents
Develop a Complex Workflow 102
Create the Complex Workflow Example 103
Create a Custom Action for the Complex Workflow Example 104
Create the Schema of the Complex Workflow Example 105
Create the Complex Workflow Example Zones 107
Define the Parameters of the Complex Workflow Example 109
Define the Bindings for the Complex Workflow Example 109
Set the Complex Workflow Example Attribute Properties 119
Create the Layout of the Complex Workflow Example Input Parameters 119
Validate and Run the Complex Workflow Example 120
2
Scripting 123
Orchestrator Elements that Require Scripting 123
Limitations of the Mozilla Rhino Implementation in Orchestrator 124
Using the Orchestrator Scripting API 124
Access the Scripting Engine from the Workflow Editor 125
Access the Scripting Engine from the Action or Policy Editor 126
Access the Orchestrator API Explorer 126
Use the Orchestrator API Explorer to Find Objects 126
Writing Scripts 127
Add Parameters to Scripts 129
Accessing the Orchestrator Server File System from JavaScript and Workflows 129
Accessing Java Classes from JavaScript 130
Accessing Operating System Commands from JavaScript 130
Exception Handling Guidelines 130
Orchestrator JavaScript Examples 131
Basic Scripting Examples 132
Email Scripting Examples 133
File System Scripting Examples 135
LDAP Scripting Examples 135
Logging Scripting Examples 136
Networking Scripting Examples 136
Workflow Scripting Examples 136
3
Developing Actions 139
Reusing Actions 139
Access the Actions View 139
Components of the Actions View 140
Creating Actions 140
Create an Action 140
Find Elements That Implement an Action 141
Action Coding Guidelines 142
Use Action Version History 143
Restore Deleted Actions 143
4
Creating Resource Elements 145
View a Resource Element 145
Import an External Object to Use as a Resource Element 146
Contents
VMware, Inc. 5