Microsoft Windows Workflow Foundation 4.0 Cookbook


Microsoft Windows Workflow Foundation 4.0 Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$44.99
save 44%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

 

Book Details

Language : English
Paperback : 255 pages [ 235mm x 191mm ]
Release Date : September 2010
ISBN : 1849680787
ISBN 13 : 9781849680783
Author(s) : Andrew Zhu
Topics and Technologies : All Books, Application Development, Microsoft Development , Cookbooks, Enterprise, Microsoft, .NET


Table of Contents

Preface
Chapter 1: Workflow Program
Chapter 2: Built-in Flow Control Activities
Chapter 3: Messaging and Transaction
Chapter 4: Manipulating Collections
Chapter 5: Custom Activities
Chapter 6: WF4 Extensions
Chapter 7: Hosting Workflow Applications
Chapter 8: Custom Workflow Designer
Index
  • Chapter 1: Workflow Program
    • Introduction
    • Creating the first WF program: HelloWorkflow
    • Creating a WF program using C# Code
    • Initializing a WF program using InArguments
    • Creating a WF program using OutArgument
    • Creating a WF program using InOutArgument
    • Using Variable in a WF program
    • Running a WF program asynchronously
    • Customizing a MyReadLine activity with Bookmark
    • Converting a WF program instance to XAML
    • Loading up a WF program from an XAML file
    • Testing a WF program with a unit test framework
    • Debugging a WF program
  • Chapter 2: Built-in Flow Control Activities
    • Introduction
    • Using the Foreach activity
    • A number guessing game in Sequence
    • A number guessing game using a flowchart
    • Using the InvokeMethod activity
    • Using the Switch<T> activity in Sequence workflow
    • Using the FlowSwitch<T> activity
    • Using the Parallel activity
    • Using the ParallelForEach<T> activity
    • Using the Pick activity
    • Handling errors
  • Chapter 3: Messaging and Transaction
    • Introduction
    • Creating a pure WCF service
    • Receiving and replying to a WCF message
    • Receiving and replying to a WCF message in code workflow
    • Sending and receiving a reply to a WCF message
    • Sending and receiving a reply to a WCF message in code workflow
    • Using CancellationScope activity
    • Performing a transaction by using TransactionScope activity
    • Performing compensation by using Compensable activity
    • Performing manual compensation by using Compensate activity
    • Performing confirmation by using Confirm activity
  • Chapter 4: Manipulating Collections
    • Introduction
    • Printing collection items
    • Using AddToCollection<T> activity
    • Using ClearCollection<T> activity
    • Using RemoveFromCollection<T> activity
    • Using ExistsInCollection<T> activity
  • Chapter 5: Custom Activities
    • Introduction
    • Creating an activity by inheriting the root activity
    • Creating a FileWriter activity
    • Creating a SendEmail activity
    • Creating an Input Message activity using Bookmark
    • Creating an Asynchronous HTTP Get activity
    • Creating a Composite activity
    • Creating an Activity Designer for the SendEmail activity
    • Creating an Activity Designer for the MySquence activity
  • Chapter 6: WF4 Extensions
    • Introduction
    • Configuring ETW tracking
    • Creating FileTrackingParticipant
    • Configuring the SQL persistence store
    • Loading a persisted workflow from the database
    • Using a persistence participant to persist additional data
    • Using a customized extension
  • Chapter 8: Custom Workflow Designer
    • Introduction
    • Implementing designer layout
    • Implementing Toolbox, Workflow Designer, and Property Inspector views
    • Implementing New Workflow and Load Workflow events
    • Implementing Save and Save As events
    • Implementing XAML Workflow Tab and Run events
    • Implementing visual tracking

Andrew Zhu

Andrew Zhu is a technology support engineer at Microsoft (Microsoft Globe Tech Support Center) in Shanghai. Over the past few years, he has helped developers and his customers to develop WF, BizTalk, IIS, and ASP.NET applications.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Microsoft Windows Workflow Foundation 4.0 Cookbook +    Entity Framework 4.1: Expert’s Cookbook =
50% Off
the second eBook
Price for both: £19.54

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Design and develop WF applications
  • Control the workflow of data using arguments and variables
  • Create a machine state style workflow using Flowchart
  • Explore and use the built-in activities of WF
  • Customize persistence and tracking extensions using WF
  • Create Windows Workflow as a WCF service
  • Host Windows Workflow in other applications (ASP.NET, WPF)
  • Create your own independent WF Designer
  • Tune WF applications to run steady and fast

 

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

Approach

This is a fast-paced and to-the-point handbook, it takes you through the important aspects that you need to know when working with Windows WF. The range of topics that we cover in this book is driven by what the working developer needs to know. It is neither a comprehensive reference to the whole WF architecture, nor a strategic guide to the complete application development lifecycle.

Who this book is for

If you find yourself working with Windows Workflow Foundation 4.0 and you have basic knowledge of C#/.NET Framework/ VB and workflow, this book is for you. It will be best if you know both C# and VB, because WF 4.0 expression can only be written in VB (at the time of writing). With this book, you will be able to enhance your applications with flexible workflow capabilities using WF 4.0. To follow the recipes, you will need to be comfortable with .NET Framework, C# programming, basics of SOA, and how to develop them.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software