On 11 February 2011 00:14, kashif10 <span dir="ltr">&lt;<a href="mailto:kash452@yahoo.com">kash452@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
1) If I have a Rule definition<br>
<br>
when<br>
#conditions<br>
<br>
 Person( gender  == &quot;Female&quot;)<br>
 or<br>
 Procedure( needToDone == &quot;ABC&quot;))<br>
<br>
<br>
then<br>
resultIds.add(&quot;id_1000&quot;);<br>
<br>
<br>
Is it not short circuit If first condiiton matches?<br>
I get twice time &quot;id_1000&quot; in resultIds.<br>
<br></blockquote><div><br>&quot;or&quot; results in two distinct rules, in your case one with Person(...) and the other one with Procedure(...). This the common standard interpretation in Rule Based Systems.<br> <br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
2) How can I chekc the multiple existence<br>
For Example:<br>
<br>
How can I chekc that multiple instances of Procddure have alredayDone= &quot;ABC<br>
&quot;<br>
<br>
Rule Definition only chekc once:<br>
Procedure (alredayDone == &quot;ABC&quot;)<br></blockquote><div><br><br>Number( intValue &gt; 1 ) from accumulate( Procedure (alredayDone == &quot;ABC&quot;), count( 1 ) )<br><br>Check the documentation on this and also on &quot;from collect&quot; for variations.<br>
<br>-W<br><br> </div></div><br>