Switch Case
Description
Switch /Case is a step in the Flow Plugin for Process Studio Workflows. This step routes rows of data to one or more target steps based on the value encountered in a certain field. This is like the Switch/Case statement found in popular programming languages like Java
Configurations
No. | Field Name | Description |
---|---|---|
1 | 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. |
2 | Field name to switch | Specify the field name that contains the value to use as a basis for the row routing. |
3 | Use string contains comparison | Enable checkbox to send rows to the first step whose case |
value is contained inside the field string value or in other words case value is found anywhere in the field being tested. If unchecked the value has to exactly match the field | ||
4 | Case value data type | Specify the data type of the values specified in this dialog |
5 | Case value conversion mask | Specify the conversion mask of the values specified in this dialog (numeric / date values) |
6 | Case value decimal symbol | Specify the decimal symbol of the values specified in this dialog (numeric values) |
7 | Case value grouping symbol | Specify the grouping symbol of the values specified in this dialog (numeric values) |
8 | Case values | Here you can specify a value-target step pair, one per row. To specify a null value, simply leave the value column blank while entering a target step. Please note that it is possible to specify the same target step more than once. |
9 | Default target step | Specify a default target step. All the rows that don't match any of the case values above are sent to this target step. |