You can use input and output parameters to pass data into and out of the workflow.
You can create the parameters of a workflow in the workflow editor. The input parameters are the initial data that the workflow requires to run. Users provide the values for the input parameters when they run the workflow. The output parameters are the data the workflow returns when it finishes running.
Procedure
- Log in to the vRealize Orchestrator Client.
- Navigate to , and select your workflow.
- Select the Inputs/Outputs tab.
- To add a parameter, click New.
- Create a workflow parameter.
- Select if you want to create an input or output parameter.
- Enter a name.
Note: The parameter name must be a single word that can only contain letters, numbers, and the dollar ("$") and underscore ("_") symbols.
- (Optional) Enter a description.
- Set the parameter type.
Note: To create a composite type parameter, that includes multiple different parameter types, select New Composite Type from the Type text box.
- (Optional) To create an array, click the Array check box.
- To finish creating your parameter, click Create.
- (Optional) Set a default value for your input parameters.
- Select the Input Form tab.
- Select your input parameter and click the Values tab.
- Select the value source for your input parameter, by expanding the Default value text box.
Value Source Description Constant The default value source. Enter a constant default value for your input parameter. Conditional value Add one or more conditional expressions that define your input parameter value. External source Import an external action that configures the value of your input parameter. The filtering of available actions is done by parameter type. Bind field Bind the value of the select input parameter to another input parameter or variable. Computed value Configure the input parameter value by using operators. The type of available operators depends on the input parameter type. For example, for number type input parameters, you can select the arithmetic operators Add
,Subtract
,Multiply
.Note: Compute value is not available for SDK type input parameters, such asAD:UserGroup
,SSH:Host
, and so on.
- (Optional) Configure output parameter exception handling.
- Select the Schema tab, and add a workflow element to the schema diagram.
- Add your output parameters to the workflow element.
- Expand the Exception handling menu item.
- Select a variable that you want to use to handle output parameter exceptions.
Results
You have created an input or output parameter for the workflow.