Skip to main content
Version: 4.4.1

Microsoft WF activities

Description

Some activities from Microsoft are available out-of-the-box in Workflow definitions. These activities are listed in table below (links to Microsoft MSDN on-line help). There are more activities available in the Microsoft .Net framework but these are not listed in the default set up of Workflow designer.

For more help on how to add activities to activity toolbox, see Using the Workflow Designer.

Control Flow

IconActivityDescription
DoWhileLooping activity that executes contained activities at least once, until a given condition is no longer true.
ForEach<T>Executes the contained activity once for each value in the provided collection.
IfIf-then-else control flow.
ParallelExecutes all its contained activities asynchronously and simultaneously.
Contained activities are not executed in different threads, each successive activity only executes when the previously scheduled activity completes or goes idle. If none of the activities goes idle the execution sequence is the same as in a Sequence activity. Therefore, always use some mixture of asynchronous activities and standard as contained activities in a Parallel activity.
ParallellForEach<T>Enumerates all elements of a collection and executes the contained activity for each element of the collection in parallell.
PickProvides capability to build event-based flow control.
It executes one of several activities in response to an event.
PickBranchA potential path of execution within a Pick activity.
SequenceHold a block of activities that are executed in given sequence.
Switch<T>Selects one block of activities to execute based on the evaluated value of an expression. Evaluated value must be of type T.
WhileExecutes contained activities while its loop condition evaluates to true.

Error Handling

IconActivityDescription
RethrowThrows a caught exception from within a Catch part of a TryCatch activity.
Must be used inside a catch.
ThrowThrows an exception.
TryCatchContains activities to be executed within an exception handling block.

Flowchart

IconActivityDescription
FlowchartMakes it possible to model workflow using the familiar flowchart paradigm.
FlowDecisionProvides ability to model a conditional Node with two outcomes.
Only available inside a Flowchart.
FlowSwitch<T>Provides ability to use switching with on expression and one outcome for each unique match.
Only available inside a Flowchart.

General

IconActivityDescription
AddToCollection<T>Adds an item to a collection.
ClearCollection<T>Clear all items in a collection.
ExistsInCollection<T>Indicates whether an item is present in a collection.
RemoveFromCollection<T>Removes an item from a collection.

Primitives

IconActivityDescription
AssignSets an argument or a variable to the result of an expression.
DelayDelays the execution by a specified amount of time.
InvokeMethodCalls a method of an object or a type. Method must be public.

Runtime

IconActivityDescription
TerminateWorkflowTerminates the Workflow instance and reports the Job as failed with error information. Once terminated, it cannot be resumed.

Transaction

IconActivityDescription
CancellationScopeAssociates cancellation logic, in the form of a Activity, with a main path of execution, also expressed as a Activity.
CompensableActivityAn activity that supports compensation of its child activities.
CompensateAn activity used to explicitly invoke the compensation handler of a CompensableActivity.
ConfirmAn activity used to explicitly invoke the confirmation handler of a CompensableActivity.

See Also

Workflow

Error Handling
Compensation