Written by The Jahia Team
 
Developers
   Estimated reading time:

Business rules provided in a module are not taken into account. The behaviour was also noted as inconsistent, as occassionaly after restarts, the rules get registered.

Cause

This can happen if the package name used for the rules in the module is not unique, and another module also has rules with same package name.

The rules are registered by package as ID, so if two modules have the same package name in the rules.drl file, they will overwrite each other, depending on the order they are deployed, or started. 

Solution

Package names used for drools rules has to be unique.