The OnCommand Workflow Automation (WFA) user inputs are data input options that are available during the execution of workflows. You must define the user input parameters for your workflows to enhance the flexibility and usability of your workflows.
User inputs are shown as input fields, which can be filled out with relevant data when previewing or executing workflows. You can create a user input field when specifying the command details in a workflow by prefixing a label or variable with the dollar sign ($). For example, $VolumeName creates a Volume Name user input field. WFA automatically populates the User Inputs tab in the Workflow <workflow name> window with the user input labels that you have created. You can also define the type of the user input and customize the input fields by modifying the user input attributes, such as type, display name, default values, and validation values.
Strings, such as 0d and 0f, are evaluated as numbers similar to 0d evaluated as 0 of type double.
You can use the following functions when using the query (multi-select) type of user input:
String is the default user input type for the column headers. You must double-click the Type column to specify a different user input type.
You can open the Create SnapMirror policy and rules workflow in the Designer to see how the user input types are used in the "SnapMirrorPolicyRule" user input.
You can use the following functions when using the table type of user input:
You can open the Create and configure a Storage Virtual Machine with Infinite Volume workflow in the Designer to see how the table type is used.
Here, $password is the encrypted password that is passed by WFA to the command.
For example, you can specify a rule for aggregates by listing all aggregates with name starting with the string "aggr" and have an available size greater than 5 GB. The first rule in the group is the attribute name, with the operator starts-with, and the value aggr. The second rule for the same group is the attribute available_size_mb, with the operator > and the value 5000.
The following table lists the options that you can apply to the user input types:
Option | Description |
---|---|
Validating | You can validate the user inputs type so that only valid values are entered by users:
|
Locking values | You can lock the values of the query and enum types to prevent the user from overwriting the drop-down values and to enable the selection of only the displayed values. |
Marking as mandatory | You can mark user inputs as mandatory so that the users must enter certain user inputs in order to continue with the execution of the workflow. |
Grouping | You can group related user inputs and provide a name for the user input group. The groups can be expanded and collapsed in the user input dialog box. You can select a group that should be expanded by default. |
Applying conditions | With the conditional user input capability, you can set the value of a user input based on the value that is entered for another user input. For example, in a workflow that configures the NAS protocol, you can specify the required user input for protocol as NFS to enable the "Read/Write host lists" user input. |