[rules-users] how to check HashSet size in drool

rjr201 rich.j.riley at gmail.com
Thu Jul 18 08:26:18 EDT 2013


I think this would work:

rule "geo_map2" 

        when 
                Creative($id : id, geo_type == 1, geo_mapList.size() == 0)            
        then 
                System.out.println("geo_map2 fail for  CreativeId--"+$id ); 
end 



--
View this message in context: http://drools.46999.n3.nabble.com/how-to-check-HashSet-size-in-drool-tp4025036p4025044.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list