Because of node sharing, it shouldn&#39;t be that bad if you use the Request() constraint as the first conditional element of your rules. You must also use always the same order when checking for more than 1 request. <div>

<br></div><div>For example:</div><div><br></div><div>rule &quot;Rule1&quot;</div><div>when</div><div>   Request ( type == &quot;Rq1&quot; || type == &quot;Rq2&quot;)<br>   ...<br>then</div><div>  ....</div><div>end</div>
<div>
<br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>rule &quot;Rule2&quot;</div><div>when</div><div>   Request ( type == &quot;Rq1&quot; || type == &quot;Rq2&quot;)  &lt;--- Constraints are in the same order<br>

   ...<br>then</div><div>  ....</div><div>end</div></div><div><br></div><div>Wolfgang, please correct me if I&#39;m wrong :)</div><div><br></div><div>Best Regards,</div><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>

<br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>


<br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 10:41 AM, snehils <span dir="ltr">&lt;<a href="mailto:snehils@gmail.com">snehils@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I thought of doing same but this will become slow when number of rules are<br>
more (100 or 200 rules). The given condition will be checked in each rule.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Fire-Rule-in-Stateless-Knowledge-Session-tp3234893p3234939.html" target="_blank">http://drools.46999.n3.nabble.com/Fire-Rule-in-Stateless-Knowledge-Session-tp3234893p3234939.html</a><br>


</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br></div>