On 11 February 2011 00:14, kashif10 <kash452@yahoo.com> wrote:


1) If I have a Rule definition

when
#conditions

 Person( gender  == "Female")
 or
 Procedure( needToDone == "ABC"))


then
resultIds.add("id_1000");


Is it not short circuit If first condiiton matches?
I get twice time "id_1000" in resultIds.


"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.
 

2) How can I chekc the multiple existence
For Example:

How can I chekc that multiple instances of Procddure have alredayDone= "ABC
"

Rule Definition only chekc once:
Procedure (alredayDone == "ABC")


Number( intValue > 1 ) from accumulate( Procedure (alredayDone == "ABC"), count( 1 ) )

Check the documentation on this and also on "from collect" for variations.

-W