You can use drools template to define a template file and then populate the variables of the template using your db data.

Best Regards, 

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Wed, Dec 22, 2010 at 7:25 AM, Jonathan Woods <jwoods@stl-technologies.co.uk> wrote:
Insert the value from the database as a fact, and your rules will be
able to reason on the basis of it.

-----Original Message-----
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of wasim.khan318
Sent: 22 December 2010 10:19
To: rules-users@lists.jboss.org
Subject: [rules-users] drools from database


can i write code like that
when
ItemId==$itemid
then
//

in this i want $itemid value come from database

--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/drools-from-database
-tp2130575p2130575.html

Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users