[rules-users] Rules Hello Evalution

freejava freejava3 at gmail.com
Tue Dec 20 17:36:50 EST 2011


Hello, 

I have the following rule: 

rule "041"
	when
	Party(partyType != null, partyType.trim() != "",  
		        partyType not in ("MF", "SE", "BY", "ST", "LG", "CS", "CN"))
    then
      	appendMessage(globalErrors, drools)
end

This is rule is getting fired 7 times when Party.partyType = "  ". If my
understaning is right, this rule should be interpreted as  select all Party
from working memory where partyType is not null and partyType.trim() != ""
and partyType != "MF" and partyType != "SE" .... and so on. The consequence
should not be evaluated in the first place as the value for partyType is "
". 

Am I missing something ? Any help in this regard is highly appreciated. 


--
View this message in context: http://drools.46999.n3.nabble.com/Rules-Hello-Evalution-tp3602504p3602504.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list