[rules-users] Use of a DAO in LHS

Anstis, Michael (M.) manstis1 at ford.com
Fri Aug 8 11:35:34 EDT 2008


I suspect you may not have read the documentation.
 
Take a look at the "from" keyword.


________________________________

	From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of BINET
JEAN-BAPTISTE
	Sent: 08 August 2008 16:01
	To: rules-users at lists.jboss.org
	Subject: [rules-users] Use of a DAO in LHS
	
	

	Hello, 

	I have a DRL file in which I have a global variable representing
a DAO. 
	So, I succeed in writting a rule which uses this DAO to run a
SQL query 
	on the database from the RHS part. 
	But now, I would like to use my DAO in the LHS, I mean I want to
fire my 
	rule only if a condition is ok on the result of my SQL query. 
	Is it possible to call a method of my DAO in the LHS part ? 
	I have not found an example. 

	Thanks. 

	Regards, 

	Jean-Baptiste 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080808/fe594140/attachment.html 


More information about the rules-users mailing list