[rules-users] Rules Hello Evalution
Mauricio Salatino
salaboy at gmail.com
Tue Dec 20 18:09:19 EST 2011
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 at 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.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