Creating rule libraries is a convenient way to organize closely related rules into a single object. Add rules to a rule library when you want to provide a grouping of related functionality. Using libraries simplifies rule maintenance by reducing the number of objects in the Repository. Using libraries also makes it easier to identify and call useful rules when you are designing forms and workflows.
Instructions for invoking rules in a rule library are provided in Invoking Rules in a Library.
The following example shows a library containing two different account ID generation rules:
<Configuration name=’Account ID Rules’> <Extension> <Library> <Rule name=’First Initial Last’> <expression> <concat> <substr> <ref>firstname</ref> <i>0</i> <i>1</i> </substr> <ref>lastname</ref> </concat> </expression> </Rule> <Rule name=’First Dot Last’> <expression> <concat> <ref>firstname</ref> <s>.</s> <ref>lastname</ref> </concat> </expression> </Rule> </Library> </Extension> </Configuration>
You can use the open source Identity Manager IDEto view and edit the default rule libraries or to add new rules to an existing library object. See https://identitymanageride.dev.java.netfor more information.