Henry,

   Can you plz open a JIRA with a test case. It looks like a bug to me.

   []s
   Edson

2008/1/29, Henry Canterburry <canterburry@gmail.com>:
OK...new discovery...the class case exception only happens if I apply a
criteria to the pattern:

For example:

$filtered : MyObjectType() from $source.getMyObjectTypes() << returns MyObjectType[]

works while...

$filtered : MyObjectType( field != null ) from $source.getMyObjectTypes() << returns MyObjectType[]

Gives me a ClassCastException.

HC


H. Canterburry wrote:
> No...no one?
>
> My primary concern is to apply a filtering pattern to an array like so...
> (this array is non collections based)
>
> when
> $source : SourceObject()
> $filtered : MyObjectType( field == "criteria" ) from
> $source.getMyObjectTypes() << returns MyObjectType[]
> then
> ... do something with the filtered object
>
> I am getting a ClassCaseException in the from line.
>
> Anyone? Please?
> HC
>
>
>

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com