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 <[email protected]> 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 > [email protected] > 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 - _______________________________________________ rules-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-dev
