[WF4]Hands On Lab: Introduction to Windows Workflow Foundation (WF4)

Here is THE LINK:



Welcome to Windows Workflow Foundation 4 (WF) Microsoft's programming model, engine and tools for quickly building workflow-enabled applications. This release of WF in .NET Framework 4 changes several development paradigms from previous versions. Workflows are now easier to create, execute, and maintain.

If you want to see how I made this lab with Feature Builder see endpoint.tv - Making of The Lab - Intro to WF4

Other Hands On Labs for Workflow

Getting Started

To get started see endpoint.tv - Lab Introduction To WF4: Getting Started

  1. Download the IntroToWF4.vsix file from MSDN Code Gallery
  2. Open the IntroToWF4.vsix file to install it (Restart Visual Studio if it is running during install)
  3. Start Visual Studio
  4. Select File / New Project / Workflow / Hands On Lab and start with exercise 1


In this Hands-On Lab, you will learn:

  • How to create an activity using the designer and XAML or C# code
  • How to run and test activities using the WorkflowApplication and WorkflowInvoker classes
  • How to pass InArguments and receive OutArguments from a workflow
  • How Expressions and Variables are used
  • How to use the Sequence, WriteLine, Assign and If activities
  • How to load and run an activity from a xaml file


This Lab consists of the following exercises. You can jump to any exercise in the lab at any time. Just create a new project from the project template for the lab exercise

  • Exercise 1 - Hello Workflow (video)
  • Exercise 2 - Refactoring Workflow (video)
  • Exercise 3 - The CodeActivity (video)
  • Exercise 4 - Dynamic Workflows with XAML (video)
  • Exercise 5 – Testing Activities (video)
  • Exercise 6 – WorkflowApplication (video)
  • Exercise 7 – If/Else Logic (video)



blog comments powered by Disqus