<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=007371413-23062009><FONT face=Arial 
color=#0000ff size=2>Your requirement isn't that clear however here's a few 
thoughts:-</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=007371413-23062009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=007371413-23062009><FONT face=Arial 
color=#0000ff size=2>Data can be inserted into the Rule Engine either externally 
(i.e. WorkingMemory.insert) or internally (using "from").</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=007371413-23062009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=007371413-23062009><FONT face=Arial 
color=#0000ff size=2>If you use DSL you can make DRL more human readable; 
although neither are binary format in the first place.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=007371413-23062009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=007371413-23062009></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT 
size=2>Drools&nbsp;will&nbsp;fit&nbsp;your&nbsp;requirement,&nbsp;but&nbsp;without&nbsp;knowing&nbsp;your&nbsp;use-cases&nbsp;better&nbsp;I&nbsp;can't&nbsp;say&nbsp;whether&nbsp;it&nbsp;would&nbsp;be&nbsp;the&nbsp;best&nbsp;fit.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT 
size=2></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>P<SPAN 
class=007371413-23062009>erhaps if you can give a more detailed use-case the 
group would be better able to comment further.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009>Please also ensure your emails go to the group.... <A 
href="http://www.jboss.org/drools/lists.html">http://www.jboss.org/drools/lists.html</A></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009>Finally, do read the documentation, you would probably 
be able to answer your own questions.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009>With kind regards,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=007371413-23062009>Mike</SPAN></FONT></FONT></FONT></DIV>
<DIV><BR></DIV>
<BLOCKQUOTE 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> Amila Silva 
  [mailto:amilac@hsenidmobile.com] <BR><B>Sent:</B> 23 June 2009 
  10:58<BR><B>To:</B> Anstis, Michael (M.)<BR><B>Subject:</B> Re: [rules-users] 
  How to execute the SQL query using drools<BR></FONT><BR></DIV>
  <DIV></DIV><BR>Thanks Michael,<BR>&nbsp;&nbsp; another thing can you tell me 
  how can select data set or execute some queries using the drools ?<BR>&nbsp; 
  can we have method to store rules as humand readable format instead of binary 
  format?<BR><BR>&nbsp;My requirement is to have rule engine , basically there 
  are some set of rules which used to execute some queries and populate some 
  tables depend on the situations, other than that need have every flexible rule 
  engine instead of hard coded rule in java?<BR>what you think,is it possible to 
  use drools for my requirement.<BR><BR>thank you very 
  much<BR>amila<BR><BR><BR><BR><BR>
  <DIV class=gmail_quote>On Tue, Jun 23, 2009 at 2:29 PM, Anstis, Michael (M.) 
  <SPAN dir=ltr>&lt;<A 
  href="mailto:manstis1@ford.com">manstis1@ford.com</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Let me 
    see if I understand correctly.</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>You want 
    the user to be able to define the SQL query (table, field list, predicates) 
    and have the resulting SQL executed within Drools?</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Is this 
    your only requirement for the rules engine; if so have you thought a rules 
    engine might not be your best option.</FONT></SPAN></DIV><BR>
    <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
      <DIV lang=en-us dir=ltr align=left>
      <HR>
      <FONT face=Tahoma size=2><B>From:</B> <A 
      href="mailto:rules-users-bounces@lists.jboss.org" 
      target=_blank>rules-users-bounces@lists.jboss.org</A> [mailto:<A 
      href="mailto:rules-users-bounces@lists.jboss.org" 
      target=_blank>rules-users-bounces@lists.jboss.org</A>] <B>On Behalf Of 
      </B>Amila Silva<BR><B>Sent:</B> 23 June 2009 09:49<BR><B>To:</B> <A 
      href="mailto:rules-users@lists.jboss.org" 
      target=_blank>rules-users@lists.jboss.org</A><BR><B>Subject:</B> 
      [rules-users] How to execute the SQL query using 
      drools<BR></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=h5>
      <DIV></DIV><BR clear=all>Hi <SPAN>Anstis,<BR>&nbsp; I'm creating a rule 
      engine which is basically a SQL query executor. for that i need to have a 
      drool<BR>&nbsp; file where i can add new rules to build the different 
      query criteria.&nbsp; user should be able to create new selection 
      criteria.<BR><BR>is there any way that i can define sql queries in side 
      the drool files.<BR><BR>thanks<BR><BR></SPAN>&nbsp; 
      <H1><BR></H1><SPAN></SPAN><BR></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>Thanks,<BR>Regrads,<BR><BR>Amila Silva,<BR>Associate 
  Software Engineer<BR><BR>hSenid Mobile Solutions<BR><BR>Phone : 
  <BR>+94-77-9983894<BR>Fax &nbsp; &nbsp; : <BR>+94-11-2673 845<BR><BR>Web: 
  <BR><A href="http://www.hSenid.com">http://www.hSenid.com</A><BR><BR>Make it 
  Happen<BR><BR><BR><A 
  href="http://www.hSenidMobile.com">http://www.hSenidMobile.com</A><BR><BR>Enabling 
  the Mobile World<BR><BR><BR>Disclaimer: This email and any files transmitted 
  with it are confidential and intended solely for the use of the individual or 
  entity to which they are addressed. The content and opinions contained in this 
  email are not necessarily those of hSenid Software International. If you have 
  received this email in error please contact the 
sender.<BR><BR></BLOCKQUOTE></BODY></HTML>