4.0

Table Of Contents
Call a Workflow Synchronously
Calling a workflow synchronously runs the called workflow as a part of the run of the calling workflow. The
calling workflow can use the called workflow's output parameters as input parameters when it runs its
subsequent schema elements.
You call workflows synchronously from another workflow by using the Workflow element.
Prerequisites
n
Open a workflow for editing in the workflow editor
n
Add some elements to the workflow schema
Procedure
1 Drag a Workflow element from the Action & Workflow menu to the appropriate position in the workflow
schema.
The Choose workflow selection dialog box appears.
2 Search for ands select the workflow you want and click OK.
If the search returns a partial result, narrow your search criterion or increase the number of search results
from the Tools > User preferences menu in the client.
3 Link the Workflow element to the elements that precede and follow it in the workflow schema.
4 Click the Workflow element to show its properties tabs in the bottom half of the Schema tab.
5 Bind the required input parameters to the workflow in the IN tab of the workflow schema element.
6 Bind the required output parameters to the workflow in the OUT tab of the workflow schema element's.
7 Define the exception behavior of the workflow in the Exceptions tab.
8 Click Save at the bottom of the workflow editor.
You called a workflow synchronously from another workflow. When the workflow reaches the synchronous
workflow during its run, the synchronous workflow starts, and the initial workflow waits for it to complete
before continuing its run.
What to do next
You can call a workflow asynchronously from a workflow.
Call a Workflow Asynchronously
Calling a workflow asynchronously runs the called workflow independently of the calling workflow. The
calling workflow continues its run without waiting for the called workflow to complete.
You call workflows asynchronously from another workflow by using the Asynchronous Workflow element.
Prerequisites
n
Open a workflow for editing in the workflow editor
n
Add some elements to the workflow schema
Chapter 2 Developing Workflows
VMware, Inc. 55