I am new to drools. I just want to understand how to dynamically update rules at run time. Considering Drools - Ability to define rules at runtime?
I wrote a code:
while(true){
session = fetchStatefulSession();//Some method to get drools session
system.out.println("enter text");
//Some code to read input
session.fireAllrules();
}
Now by the time I give input I have updated .drl rules file. Even after that the result is same on,
session.fireAllrules();
as it was earlier. That is the changes in rules are not reflected.
I am not sure is this proper way to use, dynamic loading of rules. Please suggest me
Thanks Chakri