共用方式為


Completed Rules and Conditions Tutorial

Download sample

This tutorial demonstrates various aspects of using rules and conditions in Windows Workflow Foundation.

Note

The project files that are listed here contain the complete source code for Tutorial: Use Rules and Conditions in WF.

Tutorial Overview

In Exercise 1: Create the Workflow Application the basic version of the number guessing application was created. A WhileActivity activity, IfElseActivity activity, and CodeActivity activities were used to implement the game loop, and then a PolicyActivity activity was used to create a user ranking. In Exercise 2: Use Rules Chaining with the PolicyActivity Activity a second PolicyActivity activity was added that used rules and rules chaining to implement a binary search algorithm.

See Also

Concepts

Rules and Conditions Overview
Using the WhileActivity Activity
Using the PolicyActivity Activity
Forward Chaining of Rules

Other Resources

Rules and Conditions

Copyright © 2007 by Microsoft Corporation. All rights reserved.
Last Published: 2010-03-04