This documentation is archived and is not being maintained.

Transaction Activities in WF

This topic applies to Windows Workflow Foundation 4 (WF4).

The .NET Framework version 4 has several system-provided activities for modeling transactions, compensation, and cancellation. These programming models allow the workflow to continue forward progress in the event of changes in business logic and error handling. For more information abouttransactions, compensation, and cancellation, see Workflow Transactions, Compensation, and Modeling Cancellation Behavior in Workflows.

Transaction Activities


Associates cancellation logic, in the form of an activity, with a main path of execution, also expressed as an activity.


Supports compensation of its child activities.


Explicitly invokes the compensation handler of a CompensableActivity.


Explicitly invokes the confirmation handler of a CompensableActivity.


Demarcates a transaction boundary.


Scopes the lifetime of a transaction that is initiated by a received message. The transaction may be flowed into the workflow on the initiating message, or created by the dispatcher when the message is received.

The TransactedReceiveScope is located in the Messaging section of the Toolbox.