Good question, I was having some similar issues when I'm using from,
but I thought that it was fixed in the master.
Cheers
On Wed, Aug 31, 2011 at 8:49 AM, Wolfgang Laun <wolfgang.laun(a)gmail.com> wrote:
This rule
rule "test"
when
$l : ArrayList() from collect (MyClass (attribute == false));
then
for(Object o : new ArrayList( $l )) {
MyClass o2 = (MyClass) o;
modify(o2) { setAttribute(true) }
}
end
does not compile: The method setAttribute(boolean) is undefined for the
type Object
This, however, works:
modify( (MyClass)o) { setAttribute(true) }
Explanation?
-W
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
--
- CTO @
http://www.plugtree.com
- MyJourney @
http://salaboy.wordpress.com
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -