【发布时间】:2011-07-03 15:39:18
【问题描述】:
我正在尝试在 Drools Expert 中编写规则。在规则的when 部分,我检查了Application 对象的一些属性。该对象包含一个列表,我想检查一堆规则是否适用于该列表中 SomeOtherType 的所有对象。只有当约束对该列表中的所有对象都有效时,该规则才会触发。
rule "Application eligible"
when
app : Application(
some constrains
& write some constraints for all objects in app.getList() (a method
that returns a List<SomeOtherType> object)
)
then
// application is eligible
end
【问题讨论】:
标签: java rules drools decision-tree rule-engine