Skip to main content

Code Samples on Windows Workflow Foundation (WF)

There are a variety of code samples and starter kits available for Windows Workflow Foundation (WF). This page is intended to help developers new to WF find content of interest.


NOTE: This page only includes samples for Windows Workflow Foundation 3.x. See the Resources and Community page for samples for Windows Workflow Foundation 4.


Code Samples in the MSDN Online Library

MSDN TutorialsWF Documentation: Windows Workflow Foundation Tutorials 
MSDN Online Library
The topics in this section of the Windows Workflow Foundation (WF) product documentation introduces you to programming using WF. Each tutorial is designed to stand on its own, so you can start with those that most interest you.
MSDN Code SamplesWF Documentation: Windows Workflow Foundation Application Code Samples
MSDN Online Library
The topics in this section of the Windows Workflow Foundation (WF) product documentation represents complete applications written for WF that demonstrate the use of several technology areas.
MSDN Code SamplesWF Documentation: Windows Workflow Foundation Technology Code Samples 
MSDN Online Library
The topics in this section of the Windows Workflow Foundation (WF) product documentation demonstrates specific technologies of WF. The technology samples are categorized based on their technology features.

WF Code Samples and Hands on Labs

Screencast VideoHands-on Labs for Windows® Workflow Foundation in C# and VB.NET
Set of 10 Hands-on Labs for Windows Workflow Foundation in C# and VB.NET versions
Screencast VideoExecute Windows Workflow Rules without Workflow
Embedding business rules is very powerful and useful. If you are using Windows Workflow Foundation you can model you business process and use a PolicyActivity. But If you don't want to model your business process with a workflow, but still want to execute
Screencast VideoCustom Workflow Activity: Get the Next Birthday
sample workflow activity returns the next birthday. Use this in a workflow that sends a birthday greeting to a customer.
Screencast VideoCreate the Simple Order Form Workflow
Learn how to create a basic state machine workflow

WF Sample Applications

This section will list out the various WF sample applications available in the following format:

DinnerNow Sample Application (.NET 3.5)
DinnerNow is a fictitious marketplace where customers can order food from local restaurants for delivery to their home or office. This sample application is designed to demonstrate how you can develop a connected application using several new Microsoft technologies, including: IIS7, ASP.NET Ajax Extensions, Linq, Windows Communication Foundation, Windows Workflow Foundation, Windows Presentation Foundation, Windows Powershell, and the .NET Compact Framework.
DinnerNow Sample Application (.NET 3.0)
DinnerNow is a fictitious marketplace where customers can order food from local restaurants for delivery to their home or office. This sample application is designed to demonstrate how you can develop a connected application using several new Microsoft technologies, including: IIS7, ASP.NET Ajax Extensions, Linq, Windows Communication Foundation, Windows Workflow Foundation, Windows Presentation Foundation, Windows Powershell, and the .NET Compact Framework.

Simple Human Workflow Quickstart Sample Application
The Simple Human Workflow Quickstart contains sample code that demonstrates how to build activities that interact with people so that a developer can easily build workflow enabled applications which involve simple approvals and escalation. In this sample we demonstrate how to make use of Active Directory or an alternative directory for organizational hierarchy lookups. We also demonstrate activities that interact with Microsoft Live Communication Server for user presence detection and also sending and receiving of instant messages. Additionally this sample demonstrates activities for sending emails and receiving correlated responses from those emails. Example code for email includes using Outlook technologies, or using IIS SMTP Service technologies, or using Microsoft Exchange Server technologies.

Related Downloads:
- MSDN Webcast: Simple Human Workflow Using E-mail (Level 200)
- MSDN Library: Simple Human Workflow with WF

Note: This sample includes project and solution files that have been tested in both Visual Studio 2005 and 2008

Windows Workflow Foundation Web Workflow Approvals Starter Kit
This starter kit is a Visual Studio 2005 (with updates for Visual Studio 2008) project that demonstrates using Windows Workflow Foundation for simple task-oriented workflow in an ASP.NET Web application. A workflow model is used to automate work order requests at a small example company. It includes three pre-defined roles which each play a part in the work order creation, approval and monitoring. The starter kit may be modified for other workflow models to suit other small Web-based task management systems.

Note: This sample includes project and solution files that have been tested in both Visual Studio 2005 and 2008

Anzeige


Anzeige
Microsoft führt eine Onlineumfrage durch, um Ihre Meinung zur -Website zu erfahren. Wenn Sie sich zur Teilnahme entscheiden, wird Ihnen die Onlineumfrage angezeigt, sobald Sie die -Website verlassen.

Möchten Sie teilnehmen?