Re: [rules-users] Using java.util.List in rules

2007-11-01 Thread Anderson Pazza Mello
Here are my rules: #created on: 29/10/2007 package br.ufpr.ti.identkit.rules #list any import classes here. import br.ufpr.ti.identkit.entity.* #the package " br.ufpr.ti.identkit.entity.* " has the class TipoCaracteristica and the class TipoMolde import br.ufpr.ti.identkit.ia.Especialista import

Re: [rules-users] Using java.util.List in rules

2007-10-31 Thread Rahul Phadnis
Do you have an import statement for importing TipoCaracteristica? I see you are already using TipoMolde.CABELO which I assume is another public static variable in the TipoMolde class. If none of these work can you post your drl file? Rahul --- Anderson Pazza Mello <[EMAIL PROTECTED]> wrote: >

Re: [rules-users] Using java.util.List in rules

2007-10-31 Thread Edson Tirelli
> > > 2007/10/3, Edson Tirelli < [EMAIL PROTECTED]>: > > > > > > > > > > Use the "from" CE: > > > > > > > > > > rule "This rule will fire once for each Caracteristica whose > > > > > codCarac is

Re: [rules-users] Using java.util.List in rules

2007-10-31 Thread Anderson Pazza Mello
( $caracList : retratoUser.lstCarac ) > > > > Caracteristica( codCarac != 0 ) from $caracList > > > > then > > > > ... > > > > end > > > > > > > >[]s > > > >Edson > > > > > > > >

Re: [rules-users] Using java.util.List in rules

2007-10-30 Thread Anderson Pazza Mello
> Like this > > > > > > > > > > > > > > > > rule "Test" > > > > > > > > when > > > > e : Especialista(retratoUser.lstCarac.get(i).codCarac != 0) > > > > t

Re: [rules-users] Using java.util.List in rules

2007-10-29 Thread Edson Tirelli
> then > > > System.out.println ("test"); > > > > > > end > > > > > > > > > > > > what should I do > > > > > > > > > > > > -

Re: [rules-users] Using java.util.List in rules

2007-10-27 Thread Anderson Pazza Mello
> when > > e : Especialista(retratoUser.lstCarac.get(i).codCarac != 0) > > then > > System.out.println ("test"); > > > > end > > > > > > > > what should I do > > > > > > > > -- > &g

Re: [rules-users] Using java.util.List in rules

2007-10-03 Thread Edson Tirelli
; > > end > > > > what should I do > > > > -- > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Edson Tirelli > *Sent:* Wednesday, October 03, 2007 6:10 AM > *To:* Rules Users List > *Subject

Re: [rules-users] Using java.util.List in rules

2007-10-03 Thread Anderson Pazza Mello
0) > then > System.out.println ("test"); > > end > > > > what should I do > > > > -- > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Edson Tirelli > *Sent:* Wednesday, Oct

RE: [rules-users] Using java.util.List in rules

2007-10-03 Thread Bhattacharya, Sougata
L PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli Sent: Wednesday, October 03, 2007 6:10 AM To: Rules Users List Subject: Re: [rules-users] Using java.util.List in rules You can't explicitly call methods in the field name. Use MVEL special notation for

RE: [rules-users] Using java.util.List in rules

2007-10-02 Thread Anstis, Michael \(M.\)
fresh myself following a stay of absence). _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli Sent: 03 October 2007 01:40 To: Rules Users List Subject: Re: [rules-users] Using java.util.List in rules You can't explicitly call methods in the f

Re: [rules-users] Using java.util.List in rules

2007-10-02 Thread Edson Tirelli
You can't explicitly call methods in the field name. Use MVEL special notation for lists: e : Especialista(retratoUser.lstCarac[0].codCarac != 0) []s Edson 2007/10/2, Anderson Pazza Mello <[EMAIL PROTECTED]>: > > Hi everyone, > > I'm trying to use a java.util.List like this: > > rule

[rules-users] Using java.util.List in rules

2007-10-02 Thread Anderson Pazza Mello
Hi everyone, I'm trying to use a java.util.List like this: rule "Test" when e : Especialista(retratoUser.lstCarac.get(0).codCarac != 0) then System.out.println("test"); end The property lstCarac is a java.util.List. I'm getting this error : org.drools.rule.InvalidRuleP