Yes, it’s now much simpler than before.
1) Create your original project with rules, build and deploy the jar.
2) Load the JAR to create a KieContainer.
3) add or change rules. Change the maven version, build and deploy the jar.
4) Ensure the JAR is in the KieRepository, or available to maven if using kie-ci, and call
This will ensure your KieContainer is updated, and all existing stateful sessions will be
incrementally updated too. Assuming no bugs :)
On 28 Nov 2013, at 12:22, kellyajp <kellyajp(a)yahoo.co.uk> wrote:
Is it possible to programmatically add a rule at Runtime in Drools
I have a StatefulKnowledgeSession based on some existing rules.
I just want to add a couple of rule the the main agenda group of the above
package, is this possible? Are there any examples or can someone point me in
the correct direction for documentation. The main drools 6.0 documentation
does not cover this.
View this message in context:
Sent from the Drools: Developer (committer) mailing list mailing list archive at
rules-dev mailing list