FlowDecision Class
A specialized FlowNode that provides the ability to model a conditional node with two outcomes.
Assembly: System.Activities (in System.Activities.dll)
| Name | Description | |
|---|---|---|
![]() | FlowDecision() | Creates a new instance of the FlowDecision class. |
![]() | FlowDecision(Activity<Boolean>^) | Creates a new instance of the FlowDecision class with the specified condition. |
![]() | FlowDecision(Expression<Func<ActivityContext^, Boolean>^>^) | Creates a new instance of the FlowDecision class with the specified condition. |
| Name | Description | |
|---|---|---|
![]() | Condition | Specifies the condition the FlowDecision is testing. |
![]() | DisplayName | The name of this flow decision to be displayed in the activity designer. |
![]() | False | Gets or sets the FlowNode that is executed when the condition evaluates to false. |
![]() | True | Gets or sets the FlowNode that is executed when the condition evaluates to true. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
FlowDecision uses a condition and defines actions to take if the condition is true or false.
The following code sample demonstrates creating a FlowDecision node. This example is from the Fault Handling in a Flowchart Activity Using TryCatch sample.
FlowDecision flowDecision = new FlowDecision { Condition = ExpressionServices.Convert<bool>((ctx) => discount.Get(ctx) > 0), True = discountApplied, False = discountNotApplied };
Available since 4.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

