Exercise 2: Use Rules Chaining with the PolicyActivity Activity

In this exercise, you add workflow member variables to support a binary search algorithm, and then you use a PolicyActivity activity to create a RuleSet that implements the binary search. This binary search algorithm is used by the workflow to detect the randomly generated number from the previous exercise.

In This Section

Using Conditions in Workflows

How to: Use Conditions Through Code

Rules Evaluation in RuleSets

Rules and Conditions

Exercise 1: Create the Workflow Application

IfElse With Rules

Simple Policy

Advanced Policy

See Also

Concepts

Using the PolicyActivity Activity
Using RuleSets in Workflows
Forward Chaining of Rules

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