Introduction To Windows Workflow Foundation in .NET 4 Hands On Lab
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.
Getting Started
To get started see endpoint.tv - Lab Introduction To WF4: Getting Started
- Download the IntroToWF4.vsix file from the current release and double click to install it (Restart Visual Studio if it is running during install)
- Start Visual Studio
- Select File / New Project / Workflow / Hands On Lab and start with exercise 1
- From the menu select File / New Project / Workflow / Hands On Lab
Objectives
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
Exercises
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 | Title | Resources |
| 1 | Hello Workflow | video |
| 2 | Refactoring Workflow | video |
| 3 | The CodeActivity | video |
| 4 | Dynamic Workflows with XAML | video |
| 5 | Testing Activities | video |
| 6 | WorkflowApplication | video |
| 7 | If/Else Logic | video |
Making of the Lab
For more on how this lab was built using the Visual Studio Feature Builder Power Tool see endpoint.tv - Making of The Lab - Intro to WF4
|