Overwrite an existing rule file

To overwrite an existing rule file, save a file with the same name to the path WEB-INF/config/custom/rules. When the server is started, this file is referred to instead of the default file. All conditions and results defined in rules are textual descriptions of the functionality that is to be implemented by the rule. They must be DSL items specified in the DSL file, which in turn is referenced in the DRL file as well as in its defined rule set. The example shows how to add a new attribute to the USERGROUP object, how to extend the form accordingly, and how to replace existing form rules with an extended version. It also illustrates the definition of a new attribute and adaptation of the form.

Location

DRL file in the rules folder.

Procedure

Copy the DRL file of the required form to the folder mentioned above. If necessary, change existing rules or add new rules to the file.

Documents

Corresponding DSL file in the default configuration

Java doc of the CollectiveHelper class and its derived classes for an overview of possible conditions and consequences.

Example

ModifyRules_ReplaceDRL\WEB-INF\config\custom\rules\usergroup.drl: Add custom rule

ModifyRules_ReplaceDRL\WEB-INF\config\custom\xml\custom.xml: Add new usergroup attribute creator_remark

ModifyRules_ReplaceDRL\WEB-INF\config\custom\xml\custom.xml: Add text box in usergroup form for new usergroup attribute 'creator_remark'