Rule Libraries

Rule libraries are collections of methods that have been grouped together and stored in IdentityIQ as a Rule object. They contain sets of related but unconnected methods that can be invoked directly by workflow steps or other rules. These are stored as Rule objects, rather than in the compiled Java classes, so that their functionality can be easily modified to suit the needs of each installation.

IdentityIQ includes some rule libraries that are used by the default workflows. Examples of rule libraries are Workflow Library, Approval Library, and LCM Workflow Library, any of which can be viewed through the Debug pages or the iiq console.

You can create your own custom libraries to provide additional functionality as needed. To reference a rule library from another rule, include a <ReferencedRules> element in the rule XML, naming the rule library in the <Reference> element.

The methods within the library can then be invoked from within the rule's Source element.

Copy
<Rule...>
   <ReferencedRules>
       <Reference class='Rule' name='My Library'/>
   </ReferencedRules>
   <Source>
       doSomething();  
   </Source>
</Rule>