You can map custom and user-defined worflows to actions. Repeat the task to add one workflow to more than one resource. You can map a package to a resource to add workflows to a resource in bulk.

Prerequisites

You must discover user-defined workflows them before you can add them as an action to a resource.
Note: You can only map workflows to the supported target resources.

Procedure

  1. In the menu, select Administration and click Inventory in the left pane.
  2. Select Adapter Instances and then vRealize Orchestrator Adapter Instance from the list of adapter instances.
  3. Select the vRealize Orchestrator adapter instance that contains the workflow that you want to run.
    A list of all the workflows are displayed on the right pane.
    Note: This action is present at Adapter instance level, package level and workflow level. Most recommended one is package level and workflow level.
  4. From the right pane, select the workflow that you want to add to a resource.
  5. Click the Action icon and then Create/Modify Workflow Action on vCenter Resources.
    Note: Ensure there is at least one input parameter in the workflow, otherwise the action will fail when it is executed.
  6. Configure the following properties
    Property Option
    Workflow Select a workflow from the drop-down list.
    Note: Do not modify out of the box workflows.
    Available on Resource Type If the workflow is already configured as an action in a resource type, it is displayed here.
    Resource Type Select a resource type from the drop-down list.
    Operation Choose to add or remove the workflow as an action. Options are Add and Remove.
  7. Click Begin Action.
    A task is added to the task list.

Results

You can verify that the action is available by clicking vCenter Server under Adapter Instances. Click the Action icon after you select the correct Adapter Type and Object type in the right pane. From the list displayed under the Action icon, verify that the workflow that you added to the resource is available as an action in the list. You must wait one collection cycle before you can verify. You can monitor the task list to see the status of the task.