This documentation is archived and is not being maintained.

FlowDecision Constructor

Creates a new instance of the FlowDecision class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method FlowDecision() Creates a new instance of the FlowDecision class.
Public method FlowDecision(Activity<Boolean>) Creates a new instance of the FlowDecision class with the specified condition.
Public method FlowDecision(Expression<Func<ActivityContext, Boolean>>) Creates a new instance of the FlowDecision class with the specified condition.
Top

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
};


Show: