Drools 6.0 dynamically load rules at runtime

12,938

In Drools 6, your rules packages are deployed to Maven. A KieScanner is provided, which you can attach to your KieContainer. This polls your repository at a defined interval to see whether a package has been updated and downloads the latest if that's the case.

A full explanation of how to define a KieScanner (including code samples) is provided in the Drools documentation here:

https://docs.jboss.org/drools/release/latest/drools-docs/html/ch04.html

Share:
12,938
Aidan
Author by

Aidan

Full stack web developer with > 20 years experience: Java, Spring, Spring Web, Android, HTML5, CSS3, JavaScript, TypeScript, JQuery, Angular, Vue. I develop and deliver training courses for small teams of developers in private companies and government organisations. I also do bespoke development work in JavaScript, Angular, Vue and Google Apps Script.

Updated on June 04, 2022

Comments

  • Aidan
    Aidan almost 2 years

    I want to load a drl file at runtime. The posts I've found including this one work for version 5.0 but I can't figure out how to do it for drools version 6.0.