ArrayList size not working properly in Drools 6.2

余生长醉 提交于 2019-12-25 05:43:40

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!