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.

About this task

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.

Prerequisites

Log in to the vRealize Automation console as a tenant administrator or business group manager.

Procedure

  1. Select Infrastructure > Blueprints > Blueprints.
  2. Point to the name of a blueprint and click Edit.
  3. Click the Properties tab.
  4. Click New Property.
  5. 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

  6. Leave the Value text box blank.

    The workflow depends on the presence of the property, not on any particular value.

  7. Click the Save icon (Save).
  8. Click OK.

Results

The workflow is now enabled for new machines that are provisioned from this blueprint.