Beware with the use of the FROM Conditional Element, because if you are using another fact that doesn&#39;t come from the DB and you change them, the FROM CE will be continuously evaluated causing the execution of tons of queries multiple times.<br>
My two cents.<br>Greetings<br><br><div class="gmail_quote">2011/2/14 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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.<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On 14 February 2011 11:27, hyjshanghai <span dir="ltr">&lt;<a href="mailto:hyjshanghai@gmail.com" target="_blank">hyjshanghai@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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" target="_blank">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>
</div></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>