Using Activities to Control Flow

Windows Workflow Foundation includes a set of activities that provide varied functionality. You can use some of these activities to control the logical flow of a workflow. For a complete list of the activities in the Windows Workflow Foundation base activity library, see Windows Workflow Foundation Activities.

The following table lists the activities in the Windows Workflow Foundation base activity library that are used to control workflow logical flow.

Activity Description

ListenActivity

Enables your workflow to branch conditionally depending on some event or on the expiration of a time-out period. For more information, see Using the ListenActivity Activity.

IfElseActivity

Tests a condition on each branch and performs activities on the first branch for which the condition equals True. For more information, see Using the IfElseActivity Activity.

ParallelActivity

Enables your workflow to perform two or more operations independently of each other. For more information, see Using the ParallelActivity Activity.

SuspendActivity

Suspends the operation of your workflow to enable intervention in the event of some error condition. For more information, see Using the SuspendActivity Activity.

TerminateActivity

Enables you to immediately end the operation of your workflow in the event of some error condition. For more information, see Using the TerminateActivity Activity.

WhileActivity

Enables your workflow to loop until a condition is met. For more information, see Using the WhileActivity Activity.

ConditionedActivityGroup

Also known as CAG. Executes child activities based on a condition that applies to the CAG itself, and based on conditions that apply separately to each child activity. For more information, see Using the ConditionedActivityGroup Activity.

EventDrivenActivity

Wraps another activity and executes it when the specified event occurs. For more information, see Using the EventDrivenActivity Activity.

ReplicatorActivity

Creates and executes multiple instances of a child activity. For more information, see Using the ReplicatorActivity Activity.

SequenceActivity

Runs a set of child activities according to a single defined ordering. For more information, see Using the SequenceActivity Activity.

See Also

Concepts

Using the ListenActivity Activity
Using the IfElseActivity Activity
Using the ParallelActivity Activity
Using the DelayActivity Activity
Using the SuspendActivity Activity
Using the TerminateActivity Activity
Using the WhileActivity Activity
Using the ConditionedActivityGroup Activity
Using the SequenceActivity Activity
Using the EventDrivenActivity Activity
Using the InvokeWebServiceActivity Activity
Using the WebServiceInputActivity Activity
Using the WebServiceOutputActivity Activity
Using the InvokeWorkflowActivity Activity

Other Resources

Developing Windows Workflow Foundation Activities
Windows Workflow Foundation Activities
Developing Workflows

Copyright © 2007 by Microsoft Corporation. All rights reserved.
Last Published: 2010-03-04