7.3
Table Of Contents
- Life Cycle Extensibility
- Contents
- Life Cycle Extensibility
- Machine Extensibility Overview
- Extending Machine Lifecycles By Using vRealize Orchestrator
- Configuring Workflow Subscriptions to Extend vRealize Automation
- Event Topics Provided With vRealize Automation
- Workflow Subscriptions and Event Broker Terminology
- Blockable and Replyable Event Topics
- Best Practices for Creating vRealize Orchestrator Workflows for Workflow Subscriptions
- Workflow Subscription Settings
- Working with Provisioning and Life Cycle Workflow Subscriptions
- Configuring vRealize Orchestrator Workflows for Provisioning and Life Cycle Workflows
- Workflow Subscription Life Cycle State Definitions
- Configuring the Timeout Values for States and Events
- Configuring the Error Behavior for States and Events
- Scenario: Take a Post-Provisioning Snapshot of a Virtual Machine
- Working with Approval Workflow Subscriptions
- Troubleshooting Workflow Subscriptions
- Troubleshooting vRealize Orchestrator Workflows That Do Not Start
- Troubleshooting Provisioning Requests That Take Too Much Time
- Troubleshooting a vRealize Orchestrator Workflow That Does Not Run for an Approval Request
- Troubleshooting a Rejected Approval Request That Should Be Approved
- Troubleshooting a Rejected Approval Request
- Extending Machine Life Cycles By Using vRealize Automation Designer
- Extending Machine Life Cycles By Using vRealize Automation Designer Checklist
- Installing and Configuring vRealize Automation Designer
- Customizing IaaS Workflows By Using vRealize Automation Designer
- Workflows and Distributed Execution Management
- CloudUtil Command Reference
- vRealize Automation Workflow Activity Reference
- Index
Get the Status of a vRealize Orchestrator Workflow
You can check the status of a vRealize Orchestrator workow that was called with the
InvokeVcoWorkflowAsync activity using the GetVcoWorkflowExecutionStatus activity.
Prerequisites
“Call a vRealize Orchestrator Workow,” on page 54 using the InvokeVcoWorkflowAsync activity.
Procedure
1 In vRealize Automation Designer, open a workow where you have used the InvokeVcoWorkflowAsync
activity.
2 Navigate to the context where you want to check the status of the vRealize Orchestrator workow.
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 workows 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 workow runs, the value of the VcoWorkflowExecutionStatus variable is set to the status of the
vRealize Orchestrator workow.
Get the Results of a vRealize Orchestrator Workflow
If you want to call a vRealize Orchestrator workow asynchronously and then retrieve the results of the
completed workow at a later point, you can use the WaitForVcoWorkflowCompletion activity.
The WaitForVcoWorkflowCompletion activity blocks execution of the IaaS workow until the
vRealize Orchestrator workow has completed or a timeout is reached. The activity returns the results of the
vRealize Orchestrator workow if it completes successfully, an error if the workow fails, or null if the
workow times out.
Prerequisites
“Call a vRealize Orchestrator Workow,” on page 54 using the InvokeVcoWorkflowAsync activity.
Procedure
1 In vRealize Automation Designer, open a workow where you have used the InvokeVcoWorkflowAsync
activity.
2 Navigate to the context where you want to retrieve the results of the vRealize Orchestrator workow.
3 Drag the WaitForVcoWorkflowCompletion activity into the Designer pane.
Chapter 1 Life Cycle Extensibility
VMware, Inc. 55