5.1

Table Of Contents
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.
Procedure
1 Drag an Asynchronous Workflow element from the Generic menu to the appropriate position in the
workflow schema.
The Choose workflow selection dialog box appears.
2 Search for and select the desired workflow from the list and click OK.
3 Link the Asynchronous Workflow element to the elements that precede and follow it in the workflow
schema.
4 Click the Asynchronous 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 IN tab of the asynchronous workflow element.
6 Bind the required output parameter in the OUT tab of the asynchronous workflow element.
You can bind the output parameter either to the called workflow, or to that workflow's result.
n
Bind to the called workflow to return that workflow as an output parameter
n
Bind to the workflow token of the called workflow to return the result of running the called workflow.
7 Define the exception behavior of the asynchronous workflow element in the Exceptions tab.
8 Click Save at the bottom of the workflow editor.
You called a workflow asynchronously from another workflow. When the workflow reaches the asynchronous
workflow during its run, the asynchronous workflow starts, and the initial workflow continues its run without
waiting for the asynchronous workflow to finish.
What to do next
You can schedule a workflow to start at a later time and date.
Schedule a Workflow
You can call a workflow from a workflow and schedule it to start at a later time and date.
You schedule workflows in another workflow by using the Schedule Workflow element.
Chapter 1 Developing Workflows
VMware, Inc. 57