Eric,<div><br></div><div>I&#39;ve been fighting something similar to your problem <a href="http://lists.jboss.org/pipermail/rules-users/2010-November/017124.html">as posted here</a>.  </div><div><br></div><div>I&#39;m interested in what your KnowledgeAgent setup because I can&#39;t get the agent to detect changes to rule PKG files.  Are you using Spring?</div>
<div><br></div><div>Thanks!</div><div>Jason<br><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 8:41 AM, Fink, Eric [USA] <span dir="ltr">&lt;<a href="mailto:fink_eric@bah.com">fink_eric@bah.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Greetings.  I am using Drools 5.1.1&#39;s KnowledgeAgent ChangeSet functionality and have come across an issue.<br>
<br>
here is the use case:<br>
<br>
Fire up the application with a valid DRL file. Works as designed.<br>
Update the DRL file. ChangeSet senses updated file, KnowledgeBase is updated with updated rules, yadda, yadda. Works as designed.<br>
Update the DRL file and introduce errors in the LHS of the rule. For example, I changed Sensor to Sccensor in the example below and $masterId is not defined. The following is reported as expected:<br>
<br>
KnowledgeAgent rebuilding KnowledgeBase using ChangeSet<br>
[2010:11:308 09:11:515:info] KnowledgeAgent performing an incremental build of the ChangeSet<br>
[2010:11:308 09:11:843:debug] KnowledgeAgent has KnowledgeBuilder errors  object=Unable to resolve ObjectType &#39;Sccensor&#39; : [Rule name=&#39;18) sensorCount derived variable&#39;]<br>
Rule Compilation error : [Rule name=&#39;18) sensorCount derived variable&#39;]<br>
        bass/enrichment/Rule_18__sensorCount_derived_variable_0.java (7:590) : $masterID cannot be resolved<br>
        bass/enrichment/Rule_18__sensorCount_derived_variable_0.java (8:624) : $masterID cannot be resolved<br>
        bass/enrichment/Rule_18__sensorCount_derived_variable_0.java (9:769) : $masterID cannot be resolved<br>
<br>
Update the DRL file to the previously working version. The ChangeSet never senses that the file has been updated. It just runs along checking every x seconds.<br>
<br>
Has anyone experienced this? Is there a listener that should be firing somewhere?<br>
<br>
Thanks is advance.<br>
<br>
- Eric<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div>