You can use drools template to define a template file and then populate the variables of the template using your db data.<div><br></div><div>Best Regards, <br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>
Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Wed, Dec 22, 2010 at 7:25 AM, Jonathan Woods <span dir="ltr"><<a href="mailto:jwoods@stl-technologies.co.uk">jwoods@stl-technologies.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Insert the value from the database as a fact, and your rules will be<br>
able to reason on the basis of it.<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of wasim.khan318<br>
Sent: 22 December 2010 10:19<br>
To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
Subject: [rules-users] drools from database<br>
<br>
<br>
can i write code like that<br>
when<br>
ItemId==$itemid<br>
then<br>
//<br>
<br>
in this i want $itemid value come from database<br>
<br>
--<br>
View this message in context:<br>
<a href="http://drools-java-rules-engine.46999.n3.nabble.com/drools-from-database
-tp2130575p2130575.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/drools-from-database<br>
-tp2130575p2130575.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>
<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>
</div></div></blockquote></div><br></div>