|
Answer» A FlowSwitch activity is similar to a FlowDecision, but it is not limited to a True or False branch. A FlowStep is a name for each branch of a FlowSwitch activity. When more than two alternative branches are required, the FlowSwitch activity is a conditional node that PROVIDES branching for the flow of control depending on a match condition. We use the FlowDecision activity instead if the flow branching only requires two pathways. When the Expression in the FlowSwitch<System.int32> activity is EVALUATED, it returns a value of type Int32. The activity additionally INCLUDES a set of Cases that define a unique mapping between the evaluation's possible outcomes to a set of FlowNode OBJECTS. The FlowNode that is executed is the one whose int32 object MATCHES the evaluated Expression's value. For the case where no match is found, a default case might be specified (optionally).
|