问题
I was using Drools 6.1 for rules development. I was using array list size() method in rule to check. i.e.
$x : X( list.size == 1)
where list is an attribute of Collection type.
Now I migrated to Drools 6.2. However this condition is not working and rule is not getting fired. When I changed this rule as below,
$x : X( list.size > 0 , list.size < 2 )
, this rule is working fine.
Please have a look on this. Is there any issue in Drools 6.2 version.
Thanks Shorav
来源:https://stackoverflow.com/questions/32201760/arraylist-size-not-working-properly-in-drools-6-2