Check out what you can do using Templates<br><br><a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e6212">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e6212</a><br>
<br>What is described there should provide the means for generating the DRL<br>composed from any chunks of text, in any way you need to.<br><br>-W<br><br><div class="gmail_quote">On Wed, Feb 17, 2010 at 8:58 AM, djb <span dir="ltr">&lt;<a href="mailto:dbrownell83@hotmail.com">dbrownell83@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
<br>
I just asked a question about conditionally negating conditions, in the<br>
DRL... and this question is similar, since it comes down to the lack of a<br>
ternary operator.<br>
<br>
I have rules where &quot;LINK_OPERATOR&quot; is either representative of &gt;, == or &lt;.<br>
I am using a rule template, and the problem is that it&#39;s not the parameters<br>
that change, but the conditions themselves that change based on this<br>
LINK_OPERATOR.<br>
<br>
If I call a function, then my chances for the RETE constant time evaluation<br>
is shot.<br>
<br>
Since this is a very fundamental part of the rules, must I again split my<br>
rule template into 3 parts?  Then with the negation option, I&#39;ll need to<br>
double that to 6 templates?  And if I have more operators, I&#39;ll have to<br>
multiply that in too?<br>
<br>
So, if speed is important, should I split the template?<br>
<br>
Regards,<br>
Daniel<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Similar-question-changing-operator-from-to-tp212583p212583.html" target="_blank">http://n3.nabble.com/Similar-question-changing-operator-from-to-tp212583p212583.html</a><br>

Sent from the Drools - User 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>
</font></blockquote></div><br>