FlowDecision Activity Designer

The FlowDecision node is a conditional node that provides a branch for the flow of control into one of two alternatives based on whether a specified condition is satisfied. If the flow requires more than two branches, use FlowSwitch instead.

The FlowDecision Node

Use FlowDecision when the flow can be branched into two paths. A FlowDecision node has a Condition and a FlowNode associated with each of two possible outcomes: True or False. The Condition is evaluated and the value of this evaluation determines the next FlowNode to be processed within the Flowchart.

Using the FlowDecision Designer

The FlowDecision designer can be found in the Flowchart category of the Toolbox, which is accessed by clicking the Toolbox tab on the Workflow Designer (Alternatively, select Toolbar from the View menu, or CTRL+ALT+X.)

The FlowDecision designer can be dragged from the Toolbox and dropped on to the Workflow Designer surface within a Flowchart activity designer. This creates a FlowDecision labeled Decision within the Flowchart activity. Mouse over the designer and the True and False square handles for the two branches appear.

After dragging the FlowDecision designer and other designers onto the Flowchart, the nodes can be linked together to specify the order of execution. To create a link between a source node (including the True and False branches of the FlowDecision) and a destination node, mouse over the designer of the source node and square handles appear on each side of it. Click one of the square handles and drag it by holding down the mouse button to one of the handles that appears in a similar manner around the destination node when you mouse over it. Release the mouse button and a link is between created these two nodes that is represented as an arrow from the source designer to the destination designer.

The expression that states the Condition can be typed in the Condition box of the Properties window by clicking where the hint text says “Enter a VB expression”.

The FlowDecision Properties

The following table shows the FlowDecision properties and describes how they are used in the designer. These properties can be edited in the property grid or on the designer surface.

Property Name Required Usage

Condition

True

The condition that determines which path the flow control takes.

True

False

The path taken by the flow control if the Condition is satisfied.

False

False

The path taken by the flow control if the Condition is not satisfied.

See Also

Concepts

Flowchart Activity Designer
FlowSwitch<T> Activity Designer

Other Resources

Flowchart Activity Designers