On 11 February 2011 00:14, kashif10 <span dir="ltr"><<a href="mailto:kash452@yahoo.com">kash452@yahoo.com</a>></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 == "Female")<br>
or<br>
Procedure( needToDone == "ABC"))<br>
<br>
<br>
then<br>
resultIds.add("id_1000");<br>
<br>
<br>
Is it not short circuit If first condiiton matches?<br>
I get twice time "id_1000" in resultIds.<br>
<br></blockquote><div><br>"or" 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= "ABC<br>
"<br>
<br>
Rule Definition only chekc once:<br>
Procedure (alredayDone == "ABC")<br></blockquote><div><br><br>Number( intValue > 1 ) from accumulate( Procedure (alredayDone == "ABC"), count( 1 ) )<br><br>Check the documentation on this and also on "from collect" for variations.<br>
<br>-W<br><br> </div></div><br>