我陷入了困境,我正在尝试按照给定的代码更新drools会话中的对象,但它无法更新。
rule "Abc"
salience 1
when
a:A()
then
ArrayList al = a.getAllItems();
for(int i =0;i<a.getAllItems().size;i++)
{
B b = new B();
al.add(b);
}
a.setAllItems(al);
update(a);
end
您的任何建议或帮助都会帮助我继续前进....
提前致谢