[rules-users] Rules Hello Evalution

Mauricio Salatino salaboy at gmail.com
Wed Dec 21 10:46:36 EST 2011


Do you understand the difference between:

 Party( $e : errors)
        Party(partyType != null, partyType.trim() != "",
                       partyType not in ("MF", "SE", "BY", "ST", "LG",
"CS", "CN"))

and

Party($e : errors, partyType != null, partyType.trim() != "",
                       partyType not in ("MF", "SE", "BY", "ST", "LG",
"CS", "CN"))


On Wed, Dec 21, 2011 at 12:38 PM, freejava <freejava3 at gmail.com> wrote:
> 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.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users



-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -




More information about the rules-users mailing list