You can access Objects from external resources using the &quot;from&quot; keyword (in fact the use of this with Hibernate named queries is a documented use-case, IIRC).<br><br>The Objects are not however inserted into WorkingMemory using &quot;from&quot; are should therefore be time-constant as their properties will not be included in truth maintenance.<br>
<br>If you require the Objects as Facts in WorkingMemory for the inference engine to reason with, you can write rules using &quot;from&quot; that insert into WorkingMemory.<br><br><div class="gmail_quote">On 14 February 2011 11:27, hyjshanghai <span dir="ltr">&lt;<a href="mailto:hyjshanghai@gmail.com">hyjshanghai@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
As far as I know, Drools can only reason over facts in the working memory. It<br>
can not directly &quot;select&quot; from RDBMS. You have to load in all data items<br>
from the database and validate them in memory by Drools.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Applying-rules-on-the-data-in-an-RDBMS-tp2468317p2491888.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Applying-rules-on-the-data-in-an-RDBMS-tp2468317p2491888.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>