Using RuleSets in Workflows

A RuleSet consists of one or more rule conditions and their resulting actions. You can think of a rule as an IF-THEN-ELSE statement, with the condition corresponding to the IF, and the actions defining the behavior of the THEN and ELSE clauses.

An action can do the following:

  • Set a field or property on a workflow.

  • Call a method on a workflow or objects in a workflow.

  • Call static methods on types in referenced assemblies.

  • Perform a Halt or an Update statement.

  • The Windows Workflow Foundation rules engine is designed to run rules in a priority-based manner with support for forward chaining.

In This Section

See Also

Reference

RuleSet

Concepts

Using Conditions in Workflows
Using the PolicyActivity Activity

Other Resources

IfElse with Rules Sample