Hi Michael,<br><br>Do you have a link to the Fluent API documentation? I wanted to answer to this question and couldn&#39;t find the link anywhere.<br><br>Thanks,<br>Leo.<br><br><div class="gmail_quote">2012/2/24 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes.<br><br>If the data &quot;defines&quot; the rules then there are numerous options:-<br><ul><li>Construct a DRL String yourself and pass this to a KnowledgeBuilder</li>
<li>Use the fluent API to build rules programmatically</li>
<li>Construct an XLS decision table using your favourite XLS (Java) API and look at drools-decisiontables</li><li>Construct a Guvnor decision table using classes in droolsjbpm-ide-common (bundled with Guvnor)</li></ul>If the data is to be plugged into place-holders in statically defined rules:-<br>

<ul><li>Look at the use of Drools Expert Templates</li></ul>Decision tables do not lend themselves well to &quot;OR&quot; as there is an implicit &quot;AND&quot; between columns.<br><br>There might be other solutions, these are those that came readily to mind.<br>

<br>With kind regards,<br><br>Mike<div><div></div><div class="h5"><br><br><div class="gmail_quote">On 24 February 2012 14:31, shawn <span dir="ltr">&lt;<a href="mailto:youngxiao121@hotmail.com" target="_blank">youngxiao121@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If it is possible to create a drl file or decision table dynamically in drool<br>
or java?<br>
Like the drool received data then create drl or decision table based on the<br>
data?<br>
Data: Condition 1 AND Condition 2 OR Condition 3 .....<br>
Can the above data be stored in the rule file which also contains the<br>
operators &quot;AND&quot;, &quot;OR&quot;?<br>
<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-tp3772708p3772708.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3772708.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" 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>
</blockquote></div><br>
</div></div><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>