<br><div><span class="gmail_quote">On 3/2/07, <b class="gmail_sendername">Aeinehchi Nader</b> &lt;<a href="mailto:Nader.Aeinehchi@edb.com">Nader.Aeinehchi@edb.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div>


<p><font face="Arial" size="2">I wonder if it is possible to write rules and make queries toward the knowledge database of Jboss Rules using Java language itself.&nbsp; What I need is to to be able to access the rule engine&#39;s API.
</font></p>

<p><font face="Arial" size="2">I do not want to use Drools language or XML.</font></p></div></blockquote><div><br>Although I guess that it would be possible to make all those calls manually, I wonder what the advantage would be.
<br>The RHS of a rule is already Java code and the LHS provides a lot of Java functionality or can use eval() if neccessary.<br>Also you can embed the DRL in your source or dynamically create new rules and add those using StringReader if need be: I&#39;m currently working on a business project where new rules are assembled by the application: POC works like a charm.
<br></div>If that is not feasible, I&#39;d probably take a look at the drools-decisiontables codebase which basically does a similar thing: replace DRL/XML syntax with a new interface (decision tables).<br>Anyway, that&#39;s just my $0.02 ;)
<br><br>Best regards<br>Marcus<br><br></div>