[rules-users] How can I reason over non collection based arrays?

Edson Tirelli tirelli at post.com
Wed Jan 30 06:53:43 EST 2008


   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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080130/438e0648/attachment.html 


More information about the rules-users mailing list