Search code examples
javarulesdroolsbusiness-rules

Can I create a rule file which imports rule(s) from another rule file?


How do I (and can I) import Drools rules or functions into another Drools rules file?


Solution

  • This isn't necessary.

    If you load two different rule files using the knowledge builder all the rules in both files will be available.

    There's no need to import rules from a different DRL file because when you compile the rules are all in the same binary package.