You won&#39;t need to worry.<br><br>As the Fact A is inserted into Working Memory it is evaluated against all rules.<br><br>Rules that match (i.e. your 3 of 1000) create activations on the Agenda that are executed when you call fireAllRules.<br>
<br>Your &quot;return&quot; statements are possibly causing confusion; if your consequents add validation errors to a list they can all be retrieved.<br><br>Cheers,<br><br>Mike<br><br><div class="gmail_quote">On 25 March 2011 13:10, Benson Fung <span dir="ltr">&lt;<a href="mailto:benson.redhat@gmail.com">benson.redhat@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Leonardo,<br>
<br>
Thanks for your patience.  Let me try to describe what I want in details.<br>
<br>
e.g.  There is a variable A with 3 rules in BRMS.<br>
<br>
The variable A is input by a user via an edit box at the frontend.<br>
Now there are 1000 rules in the BRMS rulebase.  However, 3 out of 1000<br>
rules are related to this variable A, like<br>
<br>
rule &#39;check_a_empty&#39;<br>
when (( A == null) || (A == &quot;&quot;) )<br>
<br>
then  return a message &#39;A cannot be empty&#39;<br>
<br>
rule &#39;A_Range_0_100&#39;<br>
when ((A &lt; 0 ) || (A &gt; 100) )<br>
<br>
then return a message &#39;A must be within the range between 0 and 100&#39;<br>
<br>
rule &#39;check_A_Character&#39;<br>
when ((A is not an integer))<br>
<br>
return a message &#39;A must be an integer&#39;<br>
<br>
<br>
If I would like to execute the above 3 rules at the same time, how to<br>
write/develop the AgendaFilter class?<br>
<br>
Please advise<br>
<br>
<br>
Thank you very much<br>
Benson<br>
<br>
2011/3/25 Leonardo Gomes &lt;<a href="mailto:leonardo.f.gomes@gmail.com">leonardo.f.gomes@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi Benson,<br>
&gt;<br>
&gt; What exactly do you want to achieve? You want to execute rules in parallel?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Mar 25, 2011 at 2:08 AM, Benson Fung &lt;<a href="mailto:benson.redhat@gmail.com">benson.redhat@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I have setup about 10 rules in the rulebase.  Can you tell me how I<br>
&gt;&gt; can execute more than one specific rule at the same time?  Please help<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; Benson<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<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>