Visual Studio 2008: Windows Workflow Foundation
Visual Studio 2008: Windows Workflow Foundation
Visual Studio 2008: Windows Workflow Foundation
Windows® Workflow
Foundation
Module 6: Managing Faults, Cancellations,
Transactions, and Compensations
• Handling Faults
• Handling Cancellations
• Handling Cancellations
Overview of Cancellations
What is cancellation?
• The workflow runtime engine cancels a composite activity
• Child activities in the composite activity are canceled before they
have finished executing
ListenActivity ConditionedActivityGroup
Handling Cancellations
You can handle cancellation at workflow-level or locally
Defining a
workflow-level
cancellation handler
Defining a local cancellation handler
for a composite activity
Lesson: Creating and Managing Transactions
• Overview of Transactions in Workflows
Characteristics of a transaction:
• Atomicity
• Consistency
• Isolation
• Durability
Using TransactionScopeActivity:
• You cannot nest TransactionScopeActivity activities
• You must add the persistence service to the runtime engine
Configuring Transaction Options
Configure the following transaction options:
• IsolationLevel
• TimeoutDuration
Isolation levels
ReadUncommitted
ReadCommitted
RepeatableRead
Snapshot
Serializable
Chaos
Unspecified
Demonstration: Creating and Managing Transactions
In this demonstration, you will see how to:
• Enclose activities in a transaction scope
Logon information
Password Pa$$w0rd
• Best Practices
Course Evaluation