7.3

Table Of Contents
To customize the timeout or error behavior, you can add custom properties to the machine for any events or
states where you want to trigger an event or force a state change. Use the following examples to congure
the custom properties.
n
Extensibility.Lifecycle.Error.Event.{Workflow}.{State}. The value of the property is the name of
the event to be triggered on in the workow in case of timeout or error.
n
Extensibility.Lifecycle.Error.State.{Workflow}.{State}. The value of the property is the name of
the state in which the workow will forcibly transition to in case of timeout or error.
Scenario: Take a Post-Provisioning Snapshot of a Virtual Machine
As a tenant administrator, you want your service catalog users to have a post-provisioning snapshot of their
virtual machines so that they can revert to the fresh machine rather than requesting a new one.
Procedure
1 Scenario: Create a vRealize Orchestrator Workow for a Post-Provisioning Snapshot Action on
page 35
You create a vRealize Orchestrator workow that accepts the required input parameter. You design the
workow to accomplish your post-provisioning goal.
2 Scenario: Create a Post-Provisioning Snapshot Workow Subscription on page 36
As a tenant administrator, you want to create a snapshot of each virtual machine after it is created. You
congure a workow subscription based on the machine provisioning event topic, and publish it to
make it active.
Scenario: Create a vRealize Orchestrator Workflow for a Post-Provisioning Snapshot Action
You create a vRealize Orchestrator workow that accepts the required input parameter. You design the
workow to accomplish your post-provisioning goal.
For information about creating vRealize Orchestrator folders and workows, see Developing with VMware
vRealize Orchestrator.
Prerequisites
Log in to the vRealize Orchestrator that is the instance congured for vRealize Automation with privileges
that allow you to create a workow.
Procedure
1 Create a folder for your workow subscription workows in the workow library.
2 Create a new workow.
For this scenario, name the workow Automation Post-Provisioning Snapshot.
3 Add the following input parameter.
Name Type
payload Properties
4 Add a scriptable task that accepts the input parameter and creates a virtual machine snapshot.
5 Save the workow.
What to do next
You create a workow subscription that runs your Automation Post-Provisioning Snapshot workow.
“Scenario: Create a Post-Provisioning Snapshot Workow Subscription,” on page 36.
Chapter 1 Life Cycle Extensibility
VMware, Inc. 35