javadroolsdrools-flow

Drools won't reload rules after KnowledgeBuilder errors


I am using KnowledgeAgent and change-set.xml to keep track of any changes to rules in run-time.

With standard configuration from JBoss docs it generally works fine. I have also set knowledgeAgentConfiguration.setProperty("drools.agent.newInstance", "false"); So KnowledgeBase is updated with every change.

Problems start when some change in rules cause KnowledgeBuilder errors. E.g. If I change System.out.println( message ); to System.out.println( message it will of course cause some error messages from Agent.

But then even If I fix the rule Agent won't notice that, as well as any further change. It will remain using last correct build before error.

Is that desired behavior?

Is there way to force Agent to keep tracking rule after such error?

I am using version 5.1.1

Thanx!


Solution

  • As @laune suggested I tried newer version and it appears to not be an issue in 5.6.0.Final (maybe in some previous to, but I didn't check it).