Conditional Choice - Xyna-Factory/xyna GitHub Wiki
Conditional Choices can be used to model true/false decisions inside of a Workflow. The Conditional Choice offers two lanes, one for the true-case, one for the false-case. Depending on the condition, the matching lane will be executed. The condition modeling is done with the techniques of Formula Modeling.
To insert a Conditional Choice, drag the Conditional Choice symbol from the icon bar into the Workflow.
The condition is modeled with the Formula Modeling and evaluates to true or false. The condition's formula is evaluated at runtime based on the information contained in the used Parameters.
To edit the condition, click on the dotted line in front of the question mark. For modeling condition terms, see Formula Modeling.
A Conditional Choice detects the possible Output Parameters automatically, if the decision is unambiguous. So if there is an Output Parameter of a specific Data Type created on every lane, this Parameter will be used as Output Parameter on the Conditional Choice automatically. If a lane finalizes with a Throw, this lane will be ignored for this automatism, because no outputs are needed here (cf. fig. 1). If outputs of a specific Data Type are used more than one time on one lane, the last one is taken automatically.
Please note: There is no way to select the output's source manually. Conditional Branching can be used to solve this problem. It has a special mode to solve ambiguities lane by lane.