<span>Hi there,<br><br>I want to work with declared facts, inside drl file, but when i set </span><span><span class="bold highlight search-highlight">drools</span>.agent.newInstance property to false, it seems that drools won't work with this specific fact.<br>
<br><br>My code stops working when i put this two lines, <br><br></span><span>KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
</span><br><span>aconf.setProperty("<span class="bold highlight search-highlight">drools</span>.agent.newInstance", "false");
</span><br><br><span>And it works fine when i remove these lines.</span><br><br><span><br>So, I've read that this property is related to new instances of KnowledgeBase when resources changes...
</span><br><br><span>c&p from: </span><a href="http://grepcode.com/file/repository.jboss.org/maven2/org.drools/drools-api/5.0.0.M4/org/drools/agent/KnowledgeAgentFactory.java" target="_top" rel="nofollow"><span>http://grepcode.com/file/repository.jboss.org/maven2/org.<span class="bold highlight search-highlight">drools</span>/<span class="bold highlight search-highlight">drools</span>-api/5.0.0.M4/org/<span class="bold highlight search-highlight">drools</span>/agent/KnowledgeAgentFactory.java</span></a><br>
<br><i><span>aconf.setProperty( "<span class="bold highlight search-highlight">drools</span>.agent.newInstance",
</span><br><span> "true" ); // resource changes results in a new instance of the KnowledgeBase being built,
</span><br><span> // this cannot currently be set to false for incremental building</span></i><br><br><span>Hence, why is this property changing the behaviour of the rules?<br><br>(See this thread too,</span><span><a href="http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tt3722632.html#a3731857">http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tt3722632.html#a3731857</a>)</span>