Chapter 17. Compensation, Confirmation, and Cancellation

When working with long-running workflows that can take hours or even days to complete, you often need to handle the scenario in which something goes wrong and the workflow cannot be completed. The activities that have already executed may need to be "undone" in some fashion. As part of the workflow design, you should plan for these situations. In this chapter, you'll use the techniques provided by WF to incorporate the necessary cleanup activities into your workflow design.

The sample project will model the activities performed in planning a typical wedding such as scheduling the church, reserving the reception facility, and sending the invitations. When the wedding is called off, you'll ...

Get Beginning WF: Windows Workflow in .NET 4.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.