<div><br></div>   David,<div><br></div><div>   For 5.2 we are introducing a high level API for rule authoring. Documentation is not ready yet, but you can see the API here:</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/lang/api">https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/lang/api</a></div>
<div><br></div><div><a href="https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/lang/api"></a>   DescrFactory is your entry point.</div><div><br></div><div>   Before 5.2, the options are to generate DRL string using templates or build the *Descr AST manually. Please note that the *Descr classes are internal and might change from version to version.</div>
<div><br></div><div>   Edson<br><br><div class="gmail_quote">2011/6/1 David Godfrey <span dir="ltr">&lt;<a href="mailto:davidgodf@gmail.com">davidgodf@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>Can someone point me in the direction of documentation or code examples for the following? I want to programatically create rules for execution, e.g. within my application I will hold criteria which users will define, at runtime I would like to build a component to extract these values (from my app database) and build rules based on those values. Everything I&#39;ve seen so far seems to talk about using DRL files, ideally I want to programatically create the entire rule in Java, and then call Drools to execute my rule set.<br>

<br>Thanks,<br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>