Set Variables
Description
Set Variables assigns field values from the data stream to variables at the process level, parent process level, grandparent process level, or JVM level. Use this step when you need to pass a computed or retrieved value from one workflow to another within a process — for example, storing a record count, a status flag, or a file path that subsequent workflows will reference. The step accepts exactly one row of data and sets the specified variables from that row's field values.
Configurations
| Field Name | Description |
|---|---|
| Step name | Specify the name of the step as it appears in the workflow workspace. This name has to be unique in a single workflow. |
| Apply formatting | When this option is set, it formats the value (date, numbers etc.) according to the format options. Otherwise no formatting is done. |
| Field Name | Specify the name of the field that is used to set a variable. |
| Variable Name | Provide the name of the variable to set (without ${...} or %%...%% sigils) |
| Variable scope type | Define the scope of the variable, possible options are: • Valid in the virtual machine: the complete virtual machine will know about this variable. • Valid in the parent process: the variable is only valid in the parent process. • Valid in the grand-parent process: the variable is valid in the grand-parent process and all the child processes and workflows. • Valid in the root process: the variable is valid in the root process and all the child processes and workflows. |
| Default value | Provide a default value for the variable to set. This is used in case no fields value is received. |