Apress

Pro WF

Windows Workflow in .NET 4

By Bruce Bukovics

Pro WF Cover Image

Learn about WF 4.0's designer, its updated programming paradigm, and the completely new set of activities that can enable and extend your workflows, as well as how to customize your workflows and access them in a variety of ways and situations so you can maximize the advantages of this technology.

Full Description

  • ISBN13: 978-1-4302-2721-2
  • 936 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: June 28, 2010
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $54.99
  • eBook Price: $38.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Windows Workflow Foundation (WF) is a revolutionary part of the .NET 4 Framework that allows you to orchestrate human and system interactions as a series of workflows that can be easily mapped, analyzed, adjusted, and implemented. As business problems become more complex, the need for workflow-based solutions has never been more evident. WF provides a simple and consistent way to model and implement complex problems. As a developer, you focus on developing the business logic for individual workflow tasks. The runtime handles the execution of those tasks after they have been composed into a workflow.

Pro WF: Windows Workflow in .NET 4 provides you with the skills you need to incorporate WF in your applications, using a lively tutorial style with each example illustrated in C#. This book gets you up to speed with WF 4 quickly and comprehensively. Learn about WF 4’s new designer, it’s updated programming paradigm, and the completely new set of activities that can enable and extend your workflows. This book also includes detailed coverage of how to customize your workflows and access them in a variety of ways and situations so you can maximize the advantages of this technology.

What you’ll learn

  • WF 4 basics
  • New activities and changes to existing activities in WF 4
  • Customizing your workflows
  • Accessing your workflows in a variety of ways in a variety of situations
  • Using WF with Web Services and ASP.NET
  • Integrating WCF and WF

Who this book is for

This book is for intermediate to advanced .NET developers who need to learn how to use the latest version of Windows Workflow Foundation (WF 4). This book is not a primer on .NET or the C# language. To get the most out of the examples presented in this book, it is necessary to have a good working knowledge of .NET 2.0 or higher. All of the examples are presented in C#.

Table of Contents

Table of Contents

  1. A Quick Tour of Windows Workflow Foundation
  2. Foundation Overview
  3. Activities
  4. Workflow Hosting
  5. Procedural Flow Control
  6. Collection-Related Activities
  7. Flowchart Modeling Style
  8. Host Communication
  9. Workflow Services
  10. Workflow Services Advanced Topics
  11. Workflow Persistence
  12. Customizing Workflow Persistence
  13. Transactions, Compensation, and Exception Handling
  14. Workflow Tracking
  15. Enhancing the Design Experience
  16. Advanced Custom Activities
  17. Hosting the Workflow Designer
  18. WF 3.x Interop and Migration
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

On page 64:
Second paragraph in the "Using and Expression Activity" section, "ExpressinoActivites" is missing the "i" for the suffix, "-ies"

On page 148:

About 2/3 down the page, the line

{"ArgNumberToEcho", 1001},

should be

{"ArgNumberToEcho", testNumber},

On page 253:

The first line in the NormalFreeTest function is

Activity activity = new CalcShippingFlowchart();

which is not needed, as "activity" is not used anywhere.

On page 256:

In the 3rd sentence of the paragraph "Creating the Console Project", the name of the file to delete should be "Workflow1.xaml" instead of "Flowchart1.xaml".

On page 257:

Under #3 The third sentence states "Set the generic type to ActivityLibrary.ItemSales". This should read "Set the generic type to ActivityLibrary.SalesHistory".

On page 309:
There is a race condition in the example on page 309.

When the workflow starts, the first thing that happens is that the host gets notified of any waiting bookmarks. However, these bookmarks may not have been set because the Pick activity may not have started before the host is notified.

I put a Thread.Sleep inside the notification code but that is not a nice solution. Not sure how else to fix it, however.

On page 365:

For this chapter the method CreateServiceHost does not need to return a WorkflowServiceHost.

Or - better- it shouldnot add the WorkflowServiceHost to the list of WorkflowServiceHosts (this should be done in Main)