You can use the vRealize Orchestrator Client to create, edit, and delete action scripts.

The vRealize Orchestrator Client provides libraries of predefined actions and an action editor for custom action scripts. Actions represent individual functions that you use as building blocks in workflows.

Actions are JavaScript functions. Actions can take multiple input parameters and have a single return value. Actions can call on any object in the vRealize Orchestrator API, or objects in any API that you import into vRealize Orchestrator by using a plug-in.

When a workflow runs, an action takes input parameters from the workflow's variables. These variables can be either the workflow's initial input parameters, or variables that other elements in the workflow set when they run.

The action editor includes an autocomplete feature for scripts and an API Explorer featuring the available scripting types and their documentation.

Procedure

  1. Log in to the vRealize Orchestrator Client.
  2. Navigate to Library > Actions.
  3. Click New Action.
  4. On the General tab, enter the name and module name of the action.
    Note: The name and module name must be unique for every action. The action name must be a valid JavaScript function. The action name must be a single word that can only contain letters, numbers, and the dollar ("$") and underscore ("_") symbols. The module name must consist of words separated by the dot (".") character.
  5. (Optional) Create a description, version number, tags, and group permissions for the action.
  6. On the Script tab, add action inputs, select the return type of the output, and write the script.
  7. To finish editing the action, click Save.
    A message states that the action is saved.

What to do next

You can use the new custom action in workflows.