Skip to main content
OnCommand Workflow Automation 5.1

Guidelines for commands


You must be aware of the guidelines for creating commands in OnCommand Workflow Automation (WFA).

Guidelines Example

Use an easily identifiable name for commands.

Create Qtree

Use spaces to delimit words and each word must start with an uppercase character.

Create Volume

Provide a description to explain the functionality of the command, including the expected outcome of the optional parameters.


By default, the timeout for standard commands is 600 seconds. The default timeout is set while creating the command. Change the default value only if the command might take a longer time to complete.

Create Volume command

In case of long-running operations, create two commands—​one to invoke the long-running operation and another to report the progress of the operation periodically. The first command should be a Standard Execution command type and the second should be Wait for Condition command type.

Create VSM and Wait for VSM commands

Prefix the Wait for condition command names with “Wait” for easy identification.

Wait for CM Volume Move

Use an appropriate waiting interval for the “Wait for condition” commands. The specified value governs the interval at which the polling command gets executed to check if the long-running operation is complete.

60s sampling interval for the Wait for VSM command

For the Wait for condition commands, use an appropriate timeout based on the expected time for the long-running operation to complete. The expected time might be considerably longer if the operation involves data transfer over a network.

A VSM baseline transfer can take many days to complete. Therefore, the specified timeout is 6 days.

String representation

The string representation for a command displays the details of a command in a workflow design during planning and execution. Only the command parameters can be used in the string representation for a command.

Guidelines Example

Avoid using attributes that do not have any value. An attribute without a value is displayed as NA.


Separate different entries in the string representation using the following delimiters: [ ] , / :


Provide meaningful labels to every value in string representation.

Volume name=VolumeName

Command definition language

Commands can be written using the following supported scripting languages:

  • PowerShell

  • Perl

Command parameter definition

The command parameters are described by Name, Description, Type, a default value for the parameter, and whether the parameter is mandatory. The parameter type can be String, Boolean, Integer, Long, Double, Enum, DateTime, Capacity, Array, Hashtable, Password, or an XmlDocument. While the values for most of the types are intuitive, the values for Array and Hashtable should be in a particular format as described in the following table:

Guidelines Example

Ensure that the value for an Array input type is a list of values, separated by comma.

HelpMessage="Months in which the schedule executes.")]

Input is passed as following: 0,3,6,9

Ensure that the value for a Hashtable input type is a list of key=value pairs, separated by semicolon.

HelpMessage="Volume names and size (in MB)")]

Input is passed as following: Volume1=100;Volume2=250;Volume3=50