- Open the flow where you wish to apply the flow parameter.
- From the Flow View context menu, select Manage parameters.....select Parameters.
- In the Manage Parameters dialog, click the Parameters tab.
- Click Add parameter.
Enter a Name for your parameter.
NOTE: Name values are case-sensitive. After saving a flow parameter, its name cannot be changed.
Enter a default value for this parameter.
NOTE: Input Values are evaluated as String type.
This override value is applied to all references to the parameter in the flow.
Tip: Overrides can also be applied to the recipe parameters that are included when flow tasks are executed as part of a plan. For more information, see Manage Parameters Dialog.
Override values can be applied in multiple locations. Parameter values are evaluated in the following order of precedence (highest to lowest):
Example - parameter with multiple values
Suppose you wish to create a flow parameter that contains multiple values. Typically, you must track these values through an array, such as the following containing a set of colors:
Flow parameters that are literals are String values only. As a workaround, you can define the above as a
|D s lang|
Note how the value is specified using backticks (
The vertical bars are delimiters to separate the values, when they are processed within the application.
Within your recipe, you can test for the presence of a parameter value. In the following transformation, a value of
true is set in the new column
isBlue if the value of
Example - Integer parameter
Instead of segmenting the data by named time zone values, suppose your data is segmented by regions, which are numeric in number. Your flow parameter definition could look like the following: