FlowDecision Constructor (Activity<Boolean>)

.NET Framework (current version)

Creates a new instance of the FlowDecision class with the specified condition.

Namespace:   System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

public FlowDecision(
	Activity<bool> condition


Type: System.Activities.Activity<Boolean>

The condition the FlowDecision is testing.

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

.NET Framework
Available since 4.0
Return to top