FlowDecision FlowDecision FlowDecision FlowDecision Class

Definition

A specialized FlowNode that provides the ability to model a conditional node with two outcomes.

public ref class FlowDecision sealed : System::Activities::Statements::FlowNode
public sealed class FlowDecision : System.Activities.Statements.FlowNode
type FlowDecision = class
    inherit FlowNode
Public NotInheritable Class FlowDecision
Inherits FlowNode
Inheritance
FlowDecisionFlowDecisionFlowDecisionFlowDecision

Examples

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

Remarks

FlowDecision uses a condition and defines actions to take if the condition is true or false.

Constructors

FlowDecision() FlowDecision() FlowDecision() FlowDecision()

Creates a new instance of the FlowDecision class.

FlowDecision(Activity<Boolean>) FlowDecision(Activity<Boolean>) FlowDecision(Activity<Boolean>) FlowDecision(Activity<Boolean>)

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

FlowDecision(Expression<Func<ActivityContext,Boolean>>) FlowDecision(Expression<Func<ActivityContext,Boolean>>) FlowDecision(Expression<Func<ActivityContext,Boolean>>) FlowDecision(Expression<Func<ActivityContext,Boolean>>)

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

Properties

Condition Condition Condition Condition

Specifies the condition the FlowDecision is testing.

DisplayName DisplayName DisplayName DisplayName

The name of this flow decision to be displayed in the activity designer.

False False False False

Gets or sets the FlowNode that is executed when the condition evaluates to false.

True True True True

Gets or sets the FlowNode that is executed when the condition evaluates to true.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to