Microsoft Windows Workflow Foundation 4.0 Cookbook

Book description

Get the flexibility of Windows Workflow Foundation working for you. Based on a cookbook approach, this guide takes you through all the essential concepts with recipes you can apply or adapt to your own specific needs.

  • Customize Windows Workflow 4.0 applications to suit your needs
  • A hands-on guide with real-world illustrations, screenshots, and step-by-step instructions
  • Explore various functions that you can perform using WF 4.0 with running code examples
  • A hands-on guide with real-world illustrations, screenshots, and step-by-step instructions

In Detail

Windows Workflow Foundation 4.0 (WF) is a significant part of .NET Framework 4.0. WF makes workflow technology available to every single programmer that uses the .NET Framework 4.0. It is easy to create long running and distributed programs using WF with the right knowledge. With this book, you will discover that working with workflows is easy.

This book provides both step-by-step recipes and relevant background information. It covers all the important aspects of Windows Workflow Foundation 4.0. The best thing about this book is that all recipes are based on real-world experiences of Andrew Zhu. Andrew is a global WF and BizTalk technology support engineer for Microsoft. This book covers everything you need to know, when working with workflows. Get to grips with flow control activities, messaging, and transaction processes with easy to understand steps followed by explanations. You will quickly learn to use collection and custom WF activities and WF services.

You will see recipes that illustrate integration of Windows Workflow with other applications such as WPF, ASP.NET, WCF service.Lastly, you will discover how easily you can customize W4 Designer with WF rule engine and others.

A fast-paced handbook with all that you wanted to know about working with workflows

Table of contents

  1. Microsoft Windows Workflow Foundation 4.0 Cookbook
    1. Table of Contents
    2. Microsoft Windows Workflow Foundation 4.0 Cookbook
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. Foreword
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
      7. Errata
      8. Piracy
      9. Questions
    8. 1. Workflow Program
      1. Introduction
      2. Creating the first WF program: HelloWorkflow
        1. How to do it...
        2. How it works...
        3. There's more...
      3. Creating a WF program using C# Code
        1. How to do it...
        2. How it works...
        3. There's more
      4. Initializing a WF program using InArguments
        1. How to do it...
        2. How it works...
        3. There's more
      5. Creating a WF program using OutArgument
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Creating a WF program using InOutArgument
        1. How to do it…
        2. How it works...
        3. There's more...
        4. See Also
      7. Using Variable in a WF program
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See Also
      8. Running a WF program asynchronously
        1. How to do it...
        2. How it works...
      9. Customizing a MyReadLine activity with Bookmark
        1. How to do it...
        2. How it works...
      10. Converting a WF program instance to XAML
        1. How to do it...
        2. How it works...
      11. Loading up a WF program from an XAML file
        1. How to do it...
        2. How it works...
      12. Testing a WF program with a unit test framework
        1. How to do it...
        2. How it works...
        3. There's more...
      13. Debugging a WF program
        1. How to do it...
        2. There's more...
    9. 2. Built-in Flow Control Activities
      1. Introduction
      2. Using the Foreach activity
        1. How to do it...
        2. How it works...
        3. There's more...
      3. A number guessing game in Sequence
        1. How to do it...
        2. How it works...
      4. A number guessing game using a flowchart
        1. How to do it...
        2. How it works...
        3. There's more
      5. Using the InvokeMethod activity
        1. How to do it...
        2. How it works...
        3. There's more
      6. Using the Switch<T> activity in Sequence workflow
        1. How to do it...
        2. How it works...
        3. There's more
      7. Using the FlowSwitch<T> activity
        1. How to do it...
        2. How it works
        3. See Also
      8. Using the Parallel activity
        1. How to do it...
        2. How it works...
      9. Using the ParallelForEach<T> activity
        1. How to do it...
        2. How it works...
      10. Using the Pick activity
        1. How to do it...
        2. How it works...
        3. There's more
      11. Handling errors
        1. How to do it...
        2. How it works...
    10. 3. Messaging and Transaction
      1. Introduction
      2. Creating a pure WCF service
        1. How to do it...
        2. How it works...
        3. There's more
      3. Receiving and replying to a WCF message
        1. How to do it...
        2. How it works...
      4. Receiving and replying to a WCF message in code workflow
        1. How to do it...
        2. How it works...
      5. Sending and receiving a reply to a WCF message
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
      6. Sending and receiving a reply to a WCF message in code workflow
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Using CancellationScope activity
        1. How to do it...
        2. How it works...
        3. There's more
      8. Performing a transaction by using TransactionScope activity
        1. How to do it...
        2. How it works...
        3. There's more
      9. Performing compensation by using Compensable activity
        1. How to do it...
        2. How it works...
      10. Performing manual compensation by using Compensate activity
        1. How to do it...
        2. How it works...
      11. Performing confirmation by using Confirm activity
        1. How to do it...
        2. How it works...
    11. 4. Manipulating Collections
      1. Introduction
      2. Printing collection items
        1. How to do it
        2. How it works...
        3. There's more
      3. Using AddToCollection<T> activity
        1. Getting ready...
        2. How to do it...
        3. How it works...
        4. There's more
      4. Using ClearCollection<T> activity
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
      5. Using RemoveFromCollection<T> activity
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
      6. Using ExistsInCollection<T> activity
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
    12. 5. Custom Activities
      1. Introduction
      2. Creating an activity by inheriting the root activity
        1. How to do it...
        2. How it works...
        3. There's more
      3. Creating a FileWriter activity
        1. How to do it...
        2. How it works...
        3. There's more
      4. Creating a SendEmail activity
        1. How to do it...
        2. How it works...
      5. Creating an Input Message activity using Bookmark
        1. How to do it...
        2. How it works...
      6. Creating an Asynchronous HTTP Get activity
        1. How to do it...
        2. How it works...
      7. Creating a Composite activity
        1. How to do it...
        2. How it works...
      8. Creating an Activity Designer for the SendEmail activity
        1. How to do it...
        2. How it works...
      9. Creating an Activity Designer for theMySquence activity
        1. How to do it...
        2. How it works...
    13. 6. WF4 Extensions
      1. Introduction
      2. Configuring ETW tracking
        1. Getting ready
        2. How to do it...
        3. How it works...
      3. Creating FileTrackingParticipant
        1. How to do it...
        2. How it works...
      4. Configuring the SQL persistence store
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Loading a persisted workflow from the database
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
      6. Using a persistence participant to persist additional data
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Using a customized extension
        1. How to do it...
        2. How it works...
        3. There's more
    14. 7. Hosting Workflow Applications
      1. Introduction
      2. Hosting a workflow service in IIS7
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
        5. See also
      3. Hosting workflow in ASP.NET
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
      4. Hosting workflow in WPF
        1. How to do it...
        2. How it works...
      5. Hosting workflow in a Windows Form
        1. How to do it...
        2. How it works...
    15. 8. Custom Workflow Designer
      1. Introduction
      2. Implementing designer layout
        1. How to do it...
        2. How it works...
        3. See also
      3. Implementing Toolbox, Workflow Designer, and Property Inspector views
        1. Getting ready
        2. How to do it...
        3. How it works...
      4. Implementing New Workflow and Load Workflow events
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Implementing Save and Save As events
        1. Getting ready
        2. How to do it...
        3. How it works...
      6. Implementing XAML Workflow Tab and Run events
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Implementing visual tracking
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    16. Index

Product information

  • Title: Microsoft Windows Workflow Foundation 4.0 Cookbook
  • Author(s): Andrew Zhu
  • Release date: September 2010
  • Publisher(s): Packt Publishing
  • ISBN: 9781849680783