This chapter focuses on the mechanisms provided by Windows Workflow Foundation (WF) to support the handling of exceptions and to ensure the consistency of work that is performed within a workflow.
The chapter begins with an overview of the default exception handling logic. Following that introduction, a preliminary example is developed that is used to illustrate the concepts throughout the chapter. Enhancements to the example workflow include using the
TryCatch activity to handle exceptions, using the
TransactionScope activity to provide transaction support, and using the
CompensableActivity to execute compensation logic.