7.3

Table Of Contents
Get the Status of a vRealize Orchestrator Workflow
You can check the status of a vRealize Orchestrator workow that was called with the
InvokeVcoWorkflowAsync activity using the GetVcoWorkflowExecutionStatus activity.
Prerequisites
“Call a vRealize Orchestrator Workow,” on page 54 using the InvokeVcoWorkflowAsync activity.
Procedure
1 In vRealize Automation Designer, open a workow where you have used the InvokeVcoWorkflowAsync
activity.
2 Navigate to the context where you want to check the status of the vRealize Orchestrator workow.
3 Drag the GetVcoWorkflowExecutionStatus activity into the Designer pane.
4 In the Properties pane, specify the name of the variable representing the virtual machine ID in
VirtualMachineId.
The customizable workows contain a variable by default named virtualMachineId that is set during
initialization.
5 Create a variable of type DynamicOps.VcoModel.Common.VcoWorkflowExecutionToken.
6 Specify the name of the token variable as the executionToken output parameter on the
InvokeVcoWorkflowAsync activity.
7 Specify the same variable name as the WorkflowExecutionToken property of the
GetVcoWorkflowExecutionStatus activity.
8 Create a variable of type string.
9 Specify the name of the string variable as the VcoWorkflowExecutionStatus property of the
GetVcoWorkflowExecutionStatus activity.
When the workow runs, the value of the VcoWorkflowExecutionStatus variable is set to the status of the
vRealize Orchestrator workow.
Get the Results of a vRealize Orchestrator Workflow
If you want to call a vRealize Orchestrator workow asynchronously and then retrieve the results of the
completed workow at a later point, you can use the WaitForVcoWorkflowCompletion activity.
The WaitForVcoWorkflowCompletion activity blocks execution of the IaaS workow until the
vRealize Orchestrator workow has completed or a timeout is reached. The activity returns the results of the
vRealize Orchestrator workow if it completes successfully, an error if the workow fails, or null if the
workow times out.
Prerequisites
“Call a vRealize Orchestrator Workow,” on page 54 using the InvokeVcoWorkflowAsync activity.
Procedure
1 In vRealize Automation Designer, open a workow where you have used the InvokeVcoWorkflowAsync
activity.
2 Navigate to the context where you want to retrieve the results of the vRealize Orchestrator workow.
3 Drag the WaitForVcoWorkflowCompletion activity into the Designer pane.
Chapter 1 Life Cycle Extensibility
VMware, Inc. 55