Chapter 32. Windows Workflow Foundation (WF)

WHAT'S IN THIS CHAPTER?

  • Understanding Windows Workflow Foundation

  • Creating a basic workflow

  • Hosting and executing a workflow

  • Hosting the workflow designer in your application

Windows Workflow Foundation (WF) is a powerful platform for designing and running workflows — a central tenet in many business applications. WF was introduced with the .NET Framework 3.0, and has been completely redesigned and rewritten for its .NET Framework 4.0 version to overcome some of the problems it had in its previous incarnations. Unfortunately, this has rendered it incompatible with workflows created in those previous versions, but leaving it a much more robust technology as a result. This chapter takes you through using the WF designer, and the process of creating and running workflows using WF.

WHAT IS WINDOWS WORKFLOW FOUNDATION?

Before discussing Windows Workflow, you should first examine exactly what workflow is. A workflow is essentially a model of the steps that form a business process. For example, this may incorporate document approvals, job status tracking, and so on.

A well-designed workflow requires a clear separation between the steps in the business process (the work to be done), and the business rules/logic that binds them (the flow).

Windows Workflow is a complete workflow solution, including both the design and the run time components required to design/create and run workflows. These workflows can then be hosted in an application, or exposed publicly ...

Get Professional Visual Studio® 2010 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.