<p>You don&#39;t need a file, you need a String (not to say you couldn&#39;t use a File if you really, really wanted - just that you don&#39;t have to).</p>
<p>Other than the Fluent API already mentioned there is no Drools API to construct a DRL String. Read the manual, understand *your* data and build DRL applicable.</p>
<p>I get the feeling you don&#39;t know what DRL actually is nor how to use Drools to any extent. Please do read the excellent documentation I am sure things will become clearer to you.</p>
<p>sent on the move</p>
<p>On 26 Feb 2012 11:37, &quot;shawn&quot; &lt;<a href="mailto:youngxiao121@hotmail.com">youngxiao121@hotmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Michael,<br>
Thank you for your reply~<br>
Now, I understand some mechanism of building dynamic class.<br>
Back to my question,<br>
if I understand correct, those methods you mentioned is to add a drl<br>
file(exist) to the knowledgeBase dynamically, right?<br>
But how about the file?<br>
I mean if I need to write &quot;Condition 1 AND Condition 2 OR Condition 3....&quot;<br>
into the file, does drool have API to do it.<br>
Because the content that I write into the file is also dynamic. What I<br>
really want to do is how to make the drl file exist first? Does it mean I<br>
have to create the file myself, and after finished creation I can add it<br>
dynamically?<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-tp3772708p3776811.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3776811.html</a><br>

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">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>
</blockquote></p>