Redigera

Dela via


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
FlowDecision

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()

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.

Properties

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.

Methods

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()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to