Sun Identity Manager Deployment Reference

Using the <Rule> Element

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.


Example 4–8 Using the <Rule> Element to Define a Basic Rule Expression


<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>.