How to: Create a PolicyActivity Rule Set
After you have dragged a Policy activity item from the Toolbox to the workflow design surface, you will want to select an existing rule or create a new rule set for the PolicyActivity activity. You select an existing rule set by using the Select Rule Set Dialog Box and you create rule sets by using the Rule Set Editor Dialog Box.
Note
You can open the Rule Set Editor Dialog Box dialog box directly by double-clicking on a PolicyActivity activity that is on the workflow design surface.
To select or create a rule set for a PolicyActivity activity
Right-click the PolicyActivity, and then click Properties to open the Properties window.
Click the RuleSetReference property.
Do one of the following:
- Click the RuleSetReference ellipses […], and then select an existing rule set in the Select Rule Set Dialog Box. Then go to step 10.
-or- - Type a name for a rule set. Click the RuleSetReference ellipses […], and then select Edit in the Select Rule Set Dialog Box.
-or- - Type a name for a rule set. Expand the RuleSetReference property and select the ellipses […] in the RuleSet Definition property.
The Rule Set Editor Dialog Box opens.
- Click the RuleSetReference ellipses […], and then select an existing rule set in the Select Rule Set Dialog Box. Then go to step 10.
In the Rule Set Editor Dialog Box, click Add Rule to add a new rule to the rule set.
Enter the Name, Priority, and Reevaluation properties, or keep the default values.
Enter the text for the Condition.
Enter the text for the Then Actions and the Else Actions.
Click Add Rule again to add another rule.
When you are finished, click OK.
See Also
Reference
Select Rule Set Dialog Box
Rule Set Editor Dialog Box
Concepts
Other Resources
PolicyActivity
Using the Policy Activity
Copyright © 2007 by Microsoft Corporation. All rights reserved.