Legacy Workflow Activities

 

Windows Workflow Foundation (WF) includes a default set of activities that provide functionality for control flow, conditions, event handling, state management, and communicating with applications and services. When designing workflows, you can use the system-provided activities that are provided by the Windows Workflow Designer, or you can create your own custom activities.

The following table lists the Windows Workflow Foundation framework out-of-box activity set. Many, but not all, of these activities are represented by activity designers that can be accessed from the Toolbox of the Workflow Designer. To create an activity, drag its designer from the Toolbox and drop it on the design surface.

ActivityDescription
CallExternalMethodActivityUsed with the HandleExternalEventActivity activity for input and output communications with a local service. For more information, seeUsing the CallExternalMethodActivity Activity.
CancellationHandlerActivityUsed to contain cleanup logic for a composite activity canceled before all the composite activity's children are finished executing. For more information, seeUsing the CancellationHandlerActivity Activity.
CodeActivityEnables you to add Visual Basic or C# code to your workflow. For more information, seeUsing the CodeActivity Activity.
CompensatableSequenceActivityA compensatable version of SequenceActivity. For more information, seeUsing the CompensatableSequenceActivity Activity.
CompensatableTransactionScopeActivityA compensatable version of TransactionScopeActivity. For more information, seeUsing the CompensatableTransactionScopeActivity Activity.
CompensateActivityEnables you to call code to undo or to compensate for operations already performed by the workflow when an error occurs. For more information, seeUsing the CompensateActivity Activity.
CompensationHandlerActivityA wrapper for one or more activities that perform compensation for a completed TransactionScopeActivity activity For more information, seeUsing the CompensationHandlerActivity Activity.
ConditionedActivityGroupExecutes child activities based on a condition that applies to the ConditionedActivityGroup activity itself and based on conditions that apply separately to each child. For more information, seeUsing the ConditionedActivityGroup Activity.
DelayActivityEnables you to build delays in your workflow that are based on a time-out interval. For more information, seeUsing the DelayActivity Activity.
EventDrivenActivityWraps one or more activities that are executed when a specified event occurs. For more information, seeUsing the EventDrivenActivity Activity.
EventHandlersActivityProvides a framework for associating events with an activity. For more information, seeUsing the EventHandlersActivity Activity.
EventHandlingScopeActivityExecutes its main child activity concurrently with an EventHandlersActivity. For more information, seeUsing the EventHandlingScopeActivity Activity.
FaultHandlerActivityUsed to handle an exception of a type that you specify. For more information, seeUsing the FaultHandlerActivity Activity.
FaultHandlersActivityRepresents a composite activity that has an ordered list of child activities of type FaultHandlerActivity. For more information, seeUsing the FaultHandlersActivity Activity.
HandleExternalEventActivityUsed in conjunction with the CallExternalMethodActivity activity for input and output communications with a local service. For more information, seeUsing the HandleExternalEventActivity Activity.
IfElseActivityTests a condition on each branch and performs activities on the first branch for which the condition equals true. For more information, seeUsing the IfElseActivity Activity.
IfElseBranchActivityRepresents a branch of an IfElseActivity. For more information, seeUsing the IfElseBranchActivity Activity.
InvokeWebServiceActivityEnables your workflow to invoke a Web service. For more information, seeUsing the InvokeWebServiceActivity Activity.
InvokeWorkflowActivityEnables your workflow to invoke another workflow. For more information, seeUsing the InvokeWorkflowActivity Activity.
ListenActivityA composite activity that contains only EventDrivenActivity child activities. For more information, seeUsing the ListenActivity Activity.
ParallelActivityProvides a way to schedule two or more child SequenceActivity activity branches for processing at the same time. For more information, seeUsing the ParallelActivity Activity.
PolicyActivityUse to represent a collection of rules. A rule consists of conditions and resulting actions. For more information, seeUsing the PolicyActivity Activity.
ReplicatorActivityCreates multiple instances of a single child activity. For more information, seeUsing the ReplicatorActivity Activity.
SequenceActivityProvides a simple way to link multiple activities together for sequential execution. For more information, seeUsing the SequenceActivity Activity.
SetStateActivitySpecifies a transition to a new state. For more information, seeUsing the SetStateActivity Activity.
StateActivityRepresents a state in a state machine workflow. For more information, seeUsing the StateActivity Activity.
StateFinalizationActivityUsed in a StateActivity activity as a container for child activities that are executed when leaving the StateActivity activity. For more information, seeUsing the StateFinalizationActivity Activity.
StateInitializationActivityUsed in a StateActivity activity as a container for child activities that are executed when entering the StateActivity activity. For more information, seeUsing the StateInitializationActivity Activity.
SuspendActivitySuspends the operation of your workflow to enable intervention in the event of some error condition that requires special attention. For more information, seeUsing the SuspendActivity Activity.
SynchronizationScopeActivityExecutes contained activities sequentially in a synchronized domain. For more information, seeUsing the SynchronizationScopeActivity Activity.
TerminateActivityEnables you to immediately end the operation of your workflow in the event of an error condition. For more information, seeUsing the TerminateActivity Activity.
ThrowActivityEnables you to capture business exceptions thrown as part of the process metadata for a workflow. For more information, seeUsing the ThrowActivity Activity.
TransactionScopeActivityProvides a framework for transactions and exception handling. For more information, see Using the TransactionScopeActivity Activity.
WebServiceFaultActivityEnables you to model the occurrence of a Web service fault. For more information, seeUsing the WebServiceFaultActivity Activity.
WebServiceInputActivityReceives data from a Web service. For more information, seeUsing the WebServiceInputActivity Activity.
WebServiceOutputActivityResponds to a Web service request made to a workflow. For more information, seeUsing the WebServiceOutputActivity Activity.
WhileActivityEnables your workflow to loop until a condition is met. For more information, seeUsing the WhileActivity Activity.

For more information about how to create custom activities, see Developing Custom Activities and Using the Legacy Activity Designer.

Activity Views (Legacy)
Describes the different design views of activities.

How to: Add Activities to the Toolbox (Legacy)
Shows how to add activities to the toolbox.

How to: Create a Declarative Rule Condition (Legacy)
Shows the steps to create a declarative rule condition.

How to: Create a PolicyActivity Rule Set (Legacy)
Shows the steps to create a PolicyActivity rule set.

How to: Implement a WCF Contract Operation (Legacy)
Shows the steps to implement a WCF contract operation.

How to: Invoke a WCF Contract Operation (Legacy)
Shows the steps to invoke a WCF contract operation.

Windows Workflow Foundation Activities
Developing Workflows
Developing Workflow Activities

Show: