Drools集合迭代
这条规则怎么了Drools集合迭代,drools,business-rules,Drools,Business Rules,这条规则怎么了 rule "Organization Employee Rule" when $company: CompanyFact( $emp: /employeeList{organizationName== "XYZ"}) then System.out.println("Employee in organization" +$emp); end 我在尝试运行此规则时遇到此错误 rule "Organization Employee
rule "Organization Employee Rule"
when
$company: CompanyFact( $emp: /employeeList{organizationName== "XYZ"})
then
System.out.println("Employee in organization" +$emp);
end
我在尝试运行此规则时遇到此错误
rule "Organization Employee Rule"
when
$company: CompanyFact( $emp: /employeeList{organizationName== "XYZ"})
then
System.out.println("Employee in organization" +$emp);
end
[ERR 102]第23:44行规则组织员工规则中的输入“{”不匹配
CompanyFact有雇员列表,雇员有字符串组织名称。如果您使用的是Drools 7.x,则它们是 尝试使用方括号而不是花括号:
rule "Organization Employee Rule"
when
$company: CompanyFact( $emp: /employeeList[organizationName== "XYZ"])
then
System.out.println("Employee in organization" +$emp);
end
希望有帮助