The following expression returns the employee ID of the designated user.
<rule name=’getEmployeeId’> <argument name=’accountId’ value=’maurelius’/> </rule> <rule name=’getEmployeeId’> <argument name=’accountId’> <ref>username</ref> </argument> </rule>
The following expression calls another rule that calculates the returned value.
<rule> <cond> <eq><ref>var2</ref><s>specialCase</s></eq> <s>Rule2</s> <s>Rule1</s> </cond> <argument name=’arg1’> <ref>variable</ref> </argument> </rule>