Using the <Rule> Element shows the use of the <Rule> element to define a basic rule expression. The name property identifies the name of the rule. The rule is written in XPRESS.
<Rule name=’getApprover’> <cond> <eq> <ref>department></ref> <s>sales</s> </eq> <s>Sales Manager</s> <s>HR Manager</s> </cond> </Rule> |
When defining a rule, use the <Rule> element with an uppercase R as in <Rule name=’rulename’>. When calling a rule, use the XPRESS <rule> element with lowercase r, as in <rule name=’rulename’>.