Hi, Davide,
Here is how my rule looks like :
when
$item : Item(param1 != 0, param2 == 0, !(this instanceof
SpecialItem))
$gsc : SomeBusinessLogic
then
$gsc.doSomething($item.id);
for (int i = 0; i < $item.quantity; i++) {
$gsc.doSomethingElse($
item.id);
}
update($gsc);
end
The above snippet throws an error @ i < $item.quantity, and
says 'no such identifier $item'...
I can't figure out what might be causing this.
Thanks
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users