[rules-users] Constraints over Lists

Phani Saripalli saripalli.phani at gmail.com
Wed Jan 23 06:29:21 EST 2013


Hi

Thank you for the reply. That actually did not help. 
However, I found another way of writing the rule involving a method. It is
as follows:

rule "listEq1" 
when 
   P : Project() 
   eval( isDefined(P.list1) 
         && 
         neqq(P.getList1(), new ArrayList(Arrays.asList( new Object[] {1, 2,
3} )))) 
then 
     System.out.println("Lists are not equal - 1"); 
end 


Kind of strange, but works. 



--
View this message in context: http://drools.46999.n3.nabble.com/Constraints-over-Lists-tp4021715p4021753.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list