You can check the status of a vRealize Orchestrator workflow that was called with the InvokeVcoWorkflowAsync activity using the GetVcoWorkflowExecutionStatus activity.

Before you begin

Call a vRealize Orchestrator Workflow using the InvokeVcoWorkflowAsync activity.

Procedure

  1. In vRealize Automation Designer, open a workflow where you have used the InvokeVcoWorkflowAsync activity.
  2. Navigate to the context where you want to check the status of the vRealize Orchestrator workflow.
  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 workflows 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.

Results

When the workflow runs, the value of the VcoWorkflowExecutionStatus variable is set to the status of the vRealize Orchestrator workflow.