[rules-users] Drools 5.4: DRL: How to use .equals() or .equalIgnoreCase() in rule condition?

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jan 21 09:54:17 EST 2014


As in Java - it's as simple as that. If you have any problems, report them.
-W

On 21/01/2014, anij <anijit.sarkar at gmail.com> wrote:
> Hi,
> I'm using drools 5.4.
> This is my current rule looks like:
> /
> package resouces.rules
>
> import java.util.*;
>
> rule "King User_BNG"
> agenda-group "User Validation_BNG"
> salience 6
> no-loop true
> when
> map : Map()
>  eval((Integer) map.get("Age") >= 40 && map.get("Nationality").toString()
> ==
> "Indian" )
> then
> map.put("King User_BNG_Message","King User");
> System.out.println("RULE : "+drools.getRule().getName() );
> end/
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-5-4-DRL-How-to-use-equals-or-equalIgnoreCase-in-rule-condition-tp4027795.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
>


More information about the rules-users mailing list