<div><br></div> The reason it is not in the manual yet is because it was not promoted to the public API yet. Nevertheless, you can use it, but be aware that there might still be changes on it from version to version until it is promoted to the public API. I am hoping Mark will give me the go ahead to make it public soon.<div>
<br></div><div> Examples are here:</div><div><br></div><div><a href="https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/lang/api/DescrBuilderTest.java">https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/lang/api/DescrBuilderTest.java</a></div>
<div><br></div><div> The javadoc is not complete, but what is there is correct. Classes are:</div><div><br></div><div><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> The API is completely typesafe, so you can trust the code completion of you java editor... :)</div><div><br></div><div> Edson</div><div><div class="gmail_quote"><br></div><div class="gmail_quote">
<br></div><div class="gmail_quote">2012/2/24 Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1) No you don't have to save it; just use one of the overloaded methods on KnowledgeBuilder that takes a StringReader, or String or something else similar.<br><br>2) I understand there to be one for Drools Expert too, which I'd expect to be in one of the drools-xxx JARs however am having trouble finding it!<br>
<br>Re#2, I've asked Edson Tirelli (the author of the Drools Expert Fluent API) to advise further...<div><div><br><br><div class="gmail_quote">On 24 February 2012 17:35, shawn <span dir="ltr"><<a href="mailto:youngxiao121@hotmail.com" target="_blank">youngxiao121@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you~<br>
Does it mean I have to write a file in java and saved it as .drl?<br>
fluent API is in jbpm, right?<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3773187.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3773187.html</a><br>
<div><div>Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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"><div><br></div>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
</div>