No can do, because within a modify block a comma-separated list of (setter)
method calls of the object between the parentheses must be written.
Note that you can change a fact (without a modify statement) - just follow
this with an update call.
See the Expert manual for details.
-W
2012/1/10 Martin A <wmlsub(a)gmail.com>
Hello, guys,
I have the following snippet of a right side rule:
modify ($gsc) {
doSomething($item.id);
for (int i = 0; i < $item.quantity; i++) {
doSomethingElse($item.id);
}
}
which looks like is invalid syntax in some way, but it comes out with
strange error report, such as '[Error: no such identifier: $item]'
Would you please assist me on how to put that loop inside that modify
block?
Thank you and regards,
Martin
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users