How many Party (es) do you have? in the session?
Are you sure that partyType.trim() returns "" ?
Cheers
On Tue, Dec 20, 2011 at 7:36 PM, freejava <freejava3(a)gmail.com> wrote:
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...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users