MSDN Archive Home
Help and FAQs
All Resource Updates
Change History (all pages)
Windows Workflow Foudation (WF) Samples
Windows Workflow Foundation is a part of the .NET Framework 3.0 (and 3.5) that enables developers to create workflow enabled applications. This section contains articles, samples and presentations on this technology.
Essential Windows Workflow Foundation chapter 3
This is chapter 3, focusing on activities.
Essential Windows Workflow Foundation
by Dharma Shukla, Bob Schmidt
Published by Addison-Wesley Professional
ISBN: 0321399838; Published: 10/13/2006;
Professional WF Chapter 6
This 40-page chapter focuses on activities and activity development.
Professional Windows Workflow Foundation
by Todd Kitta
Published by Wrox
ISBN: 9780470053867; Published: March 2007;
Creating rules using the object model
This sample shows how to use the Windows Workflow Foundation (WF) Rules Object Model to create Rules directly using the APIs without using the designers. The rules created are then executed by the WF Rules Engine.
Custom rule actions
This sample shows how custom rule actions (derived from the RuleAction Type) can be defined and used in the Windows Workflow Foundation rules engine. Three sample rule actions are provided which demonstrate how to perform the following actions from a rule:
Write text to the console
Execute a RuleSet
Queue an activity for execution
Custom rule expressions
This sample shows the definition and use of a custom expression in the Windows Workflow Foundation rules engine. Custom expressions are used to model specific predicate types or functions and can be used directly in the rules object model and editors
External ruleset toolkit
This sample was put together by the rules team to illustrate how rules can be externalized outside the workflow and live inside a SQL server. This also shows how to rehost the rules designer, and execute the rule set outside of a WF.
Hosting Workflows in Windows Services
Sample which shows how you can host a workflow inside of a windows service. More details available on his website
Policy from file
The custom PolicyFromFile activity can be used in any workflow project. At design time, the policy activity will read from a specified rules file, or if no .rules was defined, a default .rules file with the same name as the workflow file will be created. In order to define a .rules file, set the RulesFileName property to the .rules file you want to use. The property can be found when you add the policy activity to your workflow and select Properties from the context menu.
Processing XML in rules
This sample shows how the WF Rules Engine can be used to process rules on Xml Documents.
Windows Workflow Foundation (WF) offers rules capabilities to the NetFx developer platform. RuleSets are collection of business rules with conditions and actions and they can be executed on any target object such as a Web application. In this sample we will show the stand alone functionality of rules in driving the page flow for a simple ASP.NET application.
Windows Workflow Foundation (WF) offers rules capabilities to the WinFx developer platform. RuleSets are collection of business rules with conditions and actions and they can be executed on any target object such as a Windows Form. In this sample we will demonstrate this capability by using rulesets to pre-populate fields, do cross validation and various calculations on a target Windows Form. We will also show rules features such as forward chaining in this sample.
This sample uses the rules object model to analyze dependencies and execution plans for a ruleset. This is a useful sample to debug and diagnose a complex ruleset.
Rules in Excel
This sample shows how you can use Visual Studio 2008 to create an Excel application that allows you to edit and define your rules inside of Excel.
Rules with collection
This sample illustrates the execution of rulesets against a collection of objects. This makes use of the techniques outlined in the Windows SDK documentation filed in the
Tracking Objects Sample
A sample that is given during WF talks that covers how the tracking service can be used to track things at an event level ("Workflow started") as well as things at a very granular level ("What is the Purchase Order amount?").
In order to track things, we first need to specify the tracking profile. This tells the workflow runtime which events and pieces of data we are interested in collecting while the workflow executes. I think that the xml representation of the tracking profile is pretty readable, but there is a tool that ships in the Windows SDK designed to make this even easier. The tool can be found after extracting the workflow samples to a directory under \Technologies\Applications\TrackingProfileDesigner. This tool will let you open up a workflow by pointing at its containing assembly and then design a tracking profile. It will deploy the tracking profile to the database for you, but I borrowed some code from another sample that shows the same functionality. The tool allows you to specify workflow level events as well as activity level events, and allows you to designate what information you would want to extract and specify the annotation as well.
WF Hands-On Lab-VB
A version of the hands on labs (HOL) for Windows Workflow Foundation that are written using VB.NET. This lab are identical to the C# versions available here. This contains the first three labs. They are suitable for the RTM version of Windows Workflow Foundation. The C# labs are also suitable for the RTM version even though the C# version currently specifies RC.
WF Workflow Manager (tracking/dynamic updates sample)
This application demonstrates how one can
1) enumerate and show to a user a list of live (currently executing) or tracked (executed in the past)
2) show current state of a workflow
3) control a workflow (suspend/resume/terminate)
4) change a worklfow from the UI
U-Serve Product Derby
The UServ Product Derby is an end-to-end scenario sample based on the UServ Product Derby Case Study used at the Business Rules Forum. In this sample, the WF Rules Engine is used to model the rules for some key scenarios in this case study and perform the processes in the company such as -
Verification and approval of a new client application
Determine the eligibility of a client to obtain vehicle insurance
Determine the Premium for Vehicle Insurance
Building WF-Powered Services
This is a basic presentation I use for introducing the WF-WCF integration in the .NET 3.5.
What is the context of this conversation?
The .NET Framework 3.5 will introduce the functionality to call services from Windows Workflow Foundation (WF), and to expose workflows as a Windows Communication Foundation (WCF) service. A common pattern is to have a workflow serve as the coordinator between a number of other processes (including workflows). This talk will discuss how these conversations are implemented in WF, and common patterns for conversing over a long period of time, including asynchronous messaging, long-running cancellable work, managing m-of-n responses and check pointing of progress.
Demonstrating the New WF/WCF Content in Orcas with DinnerNow
This deck walks through a number of the new features for WF and WCF in the .NET Framework 3.5 including:
JSON encoding for WCF
HTTP Programming Model
Partial Trust for WCF
This is discussed within the context of the DinnerNow demo.
WF Building Activities
An introductory deck on the idea behind activities and developing them
WF Rules Use and Extensibility
An introduction to developing using the rules engine inside Windows Workflow Foundation, including a tour of the programmatic extensibility mechanisms.
Nov 22 2008 at 4:51 AM
, version 10
Sign in to add a comment
Tue Oct 7 2008 at 7:00 AM
More Tags ...
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.