<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Use of a DAO in LHS</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=624033515-08082008><FONT face=Arial 
color=#0000ff size=2>I suspect you may not have read the 
documentation.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=624033515-08082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=624033515-08082008><FONT face=Arial 
color=#0000ff size=2>Take a look at the "from" keyword.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>BINET 
  JEAN-BAPTISTE<BR><B>Sent:</B> 08 August 2008 16:01<BR><B>To:</B> 
  rules-users@lists.jboss.org<BR><B>Subject:</B> [rules-users] Use of a DAO in 
  LHS<BR></FONT><BR></DIV>
  <DIV></DIV><!-- Converted from text/rtf format -->
  <P><FONT face=Arial size=2>Hello,</FONT> </P>
  <P><FONT face=Arial size=2>I have a DRL file in which I have a global variable 
  representing a DAO.</FONT> <BR><FONT face=Arial size=2>So, I succeed in 
  writting a rule which uses this DAO to run a SQL query</FONT> <BR><FONT 
  face=Arial size=2>on the database from the RHS part.</FONT> <BR><FONT 
  face=Arial size=2>But now, I would like to use my DAO in the LHS, I mean I 
  want to fire my</FONT> <BR><FONT face=Arial size=2>rule only if a condition is 
  ok on the result of my SQL query.</FONT> <BR><FONT face=Arial size=2>Is it 
  possible to call a method of my DAO in the LHS part ?</FONT> <BR><FONT 
  face=Arial size=2>I have not found an example.</FONT> </P>
  <P><FONT face=Arial size=2>Thanks.</FONT> </P>
  <P><FONT face=Arial size=2>Regards,</FONT> </P>
  <P><FONT face=Arial size=2>Jean-Baptiste</FONT> </P></BLOCKQUOTE></BODY></HTML>