SwitchCase
Description
The expressions added to the Cases
list are evaluated one by one, starting from the first one in the list. The Then output
of the first expression whose evaluation result will be true
will be used for the output on which the Flow execution will continue. The value true
will be passed to that output unless a With value
expression is defined.
During Flow execution, it may happen that none of the specified cases in the list returns true
during evaluation. To prevent this from happening and stop further execution of the Flow, a case can be added at the end of the list in which true
will be entered in the When
parameter so that the result of the evaluation will always be true and it will be possible to exit through its output.
Properties
Specific
-
Cases
Array
-
Each element of this list contains:
When
– an expression that is evaluated to see if it istrue
.Then output
– the name of the output through which the execution of the Flow continues if the result of the evaluation of expressionWhen
istrue
.With value
– optional parameter, if set as an expression, is passed to the output, if not definedtrue
is passed.
General
-
Description
String
-
This is the description of the Action component. Description is displayed below the component in the Project editor/viewer. In the main toolbar, it is possible to hide or display descriptions of all components with one click.
Flow
-
Inputs
Array
-
Additional component inputs that the user can add as desired in order to use them to receive additional data needed when evaluating expressions in properties. Each input is given a name and type. Name is used when referencing an input within an expression. A type is used to project Check to check whether a data line that transmits data of that type is connected to the input or not.
-
Outputs
Array
-
Additional component outputs that the user can add to send data through. Each output is assigned a name and type. An example of using this output is e.g. in the Loop component, where we can put the output name for the
Variable
property instead of e.g. variable name. In that case, the Loop component will not change the content of the variable in each step, but will send the current value through that output. -
Catch error
Boolean
-
If this checkbox is enabled then an
@Error
output will be added to the component and if an error occurs in this component during the execution of the Flow, the Flow will continue through that output. The data that will be passed through that output is the textual description of the error.
Position and size
-
Align and distribute
Any
-
Alignment icons and component distribution. Alignment icons appear when two or more components are selected, and distribution icons appear when three or more components are selected.
Inputs
-
seqin
SEQ | OPTIONAL
-
A standard sequence input.
Outputs
-
seqout
SEQ | OPTIONAL
-
A standard sequence output.