Windows Workflow Foundation Using C#


Request an offer for classroom delivery of this course

Online Registration and Course delivery

Course duration

Course Outline

Microsoft's Windows Workflow Foundation (WF) provides a framework for creating scalable applications consisting of independent program units called activities. WF 4 was a major rewrite of this technology, offering significantly higher performance and making it easier to create and execute workflow applications. WF 4.5 contains new activities, designer capabilities, and a new workflow development model (state machines). It also supports the use of C# expressions in C# workflows. This four-day course covers WF 4.5 and uses Visual Studio 2013, which provides a visual designer for creating workflows.

This Windows Workflow Foundation Using C# training class begins with an overview of the concepts of workflow and the programming model provided by WF. The essentials of WF programming are then covered followed by a systematic treatment of the major features of WF, including the Built-In Activity Library. Primitive and control flow activities are discussed, and the alternatives to hosting workflows are covered. Collection and parallel activities are covered. The creation of custom activities, both using the designer and code, is explained. Flowchart and state machine activities are covered. Persistence and bookmarks are discussed. Workflow Services, using Windows Communication Foundation (WCF) is covered. The course concludes with a discussion of debugging, error handling, transactions and compensation.

Numerous programming examples and exercises are provided. The student will receive a complete set of notes and all the programming examples.

  1. Workflow Foundation Conceptual Overview
    1. What is Workflow?
    2. Windows Workflow Foundation
    3. Workflows
    4. Activities
    5. A Workflow Business Scenario
    6. Workflow Foundation 3
    7. Workflow Foundation 4
    8. Workflow Foundation 4.5
  2. Getting Started with WF 4.5
    1. Visual Studio Workflow Projects
    2. Workflows in Code
    3. Workflows in XAML
    4. Workflow Designer
    5. Sequence
    6. Assign
    7. Variables, Arguments and Expressions
    8. WriteLine
    9. Control Flow
  3. Primitive and Control Flow Activities
    1. InvokeMethod
    2. Workflow Variables
    3. Delay
    4. Parallel
    5. If
    6. While and DoWhile
    7. Switch
  4. Custom Activities
    1. Why Custom Activities?
    2. Arguments
    3. Activity Class Hierarchy
    4. CodeActivity
    5. Composing Activities
  5. Workflow Hosting
    1. WorkflowInvoker
    2. WorkflowApplication
    3. WorkflowApplication Delegates
    4. Canceling and Aborting a Workflow
    5. Terminating a Workflow
    6. Workflows in a Windows Application
    7. Workflows in ASP.NET
  6. Collection and Parallel Activities
    1. Collection Activities
    2. ForEach
    3. ParallelForEach
    4. AsyncActivity
  7. More about Custom Activities
    1. Waiting for Input
    3. NativeActivity
    4. Pick
  8. Flowchart and State Machine
    1. Flowcharts
    2. Flowchart Activity Designers
    3. State Machines
    4. States and Transitions
    5. State Machine Activity Designers
    6. Threading Issues
  9. Persistence
    1. Long-lived Workflows
    2. Persistence and Bookmarks
    3. Persistence Store in SQL Server
    4. PersistableIdle
    5. Unloading and Loading
    6. Serializing Instance Identification
  10. Workflow Services
    1. What is WCF?
    2. Address, Binding and Contract
    3. Workflow Services
    4. Messaging Activities
    5. Exposing a Workflow as a Service
    6. Calling a Service from a Workflow
    7. Hosting using WorkflowServiceHost
    8. Multiple Operations
  11. Debugging and Error Handling
    1. Breakpoints in Activities
    2. Handling Exceptions in the Host
    3. Handling Exceptions in the Workflow
    4. Transactions
    5. Compensation

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).

InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)

For an overall view of our offerings, please visit us at