[rules-users] Rules Hello Evalution

freejava freejava3 at gmail.com
Wed Dec 21 10:38:55 EST 2011


Actually I am appending the error in a collection in the party object itself.
So the rule is like this:

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

I have seven party in the session corresponding PartyType one of the seven
values of ("MF", "SE", "BY", "ST", "LG", "CS", "CN")

I hope this helps.

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



More information about the rules-users mailing list