After you create a custom state change workflow, a tenant administrator or business group manager must enable it for specific blueprints by adding a custom property.
Each state change workflow is associated with a specific custom property. When a machine is entering a state with a corresponding state change workflow, IaaS checks to see if the machine has the corresponding custom property; if so, the associated workflow is executed. For example, if a machine has the custom property ExternalWFStubs.MachineProvisioned, the
WFStubMachineProvisioned workflow is executed before the master workflow enters the MachineProvisioned state.
While custom properties can be applied to a machine from a number of sources, typically the property for a state change workflow is specified in a blueprint, enabling the workflow for all machines provisioned from that blueprint.
Log in to the vRealize Automation console as a tenant administrator or business group manager.
- Select .
- Point to the name of a blueprint and click Edit.
- Click the Properties tab.
- Click New Property.
- Type the name of the custom property associated with the workflow you want to enable in the Name text box.
Customizable Workflow Name Associated Property Name WFStubMachineProvisioned ExternalWFStubs.MachineProvisioned WFStubBuildingMachine ExternalWFStubs.BuildingMachine WFStubMachineDisposing ExternalWFStubs.MachineDisposing WFStubUnprovisionMachine ExternalWFStubs.UnprovisionMachine WFStubMachineRegistered ExternalWFStubs.MachineRegistered WFStubMachineExpired ExternalWFStubs.MachineExpired
- Leave the Value text box blank.
The workflow depends on the presence of the property, not on any particular value.
- Click the Save icon ().
- Click OK.
The workflow is now enabled for new machines that are provisioned from this blueprint.