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
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:
>
> > > 2007/10/3, Edson Tirelli < [EMAIL PROTECTED]>:
> > > > >
> > > > > Use the "from" CE:
> > > > >
> > > > > rule "This rule will fire once for each Caracteristica whose
> > > > > codCarac is
( $caracList : retratoUser.lstCarac )
> > > > Caracteristica( codCarac != 0 ) from $caracList
> > > > then
> > > > ...
> > > > end
> > > >
> > > >[]s
> > > >Edson
> > > >
> > > >
> Like this
> > > >
> > > >
> > > >
> > > > rule "Test"
> > > >
> > > > when
> > > > e : Especialista(retratoUser.lstCarac.get(i).codCarac != 0)
> > > > t
> then
> > > System.out.println ("test");
> > >
> > > end
> > >
> > >
> > >
> > > what should I do
> > >
> > >
> > >
> > > -
> when
> > e : Especialista(retratoUser.lstCarac.get(i).codCarac != 0)
> > then
> > System.out.println ("test");
> >
> > end
> >
> >
> >
> > what should I do
> >
> >
> >
> > --
> &g
;
>
> 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
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
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
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
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
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
13 matches
Mail list logo