You need to change your rule:-
rule "userrole"
when
user1: BnUserValue(name : name, creationDate : creationDate)
and
ActiviteOut : BnNodeValue( BnRole: bnRole )
and
lien: BnEdgeValue(id : id)
then
System.out.println("oui ça marche");
end
________________________________
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of fakhfakh ismail
Sent: 13 April 2007 10:21
To: jboss rules
Subject: [rules-users] Object parameter
Hello,
First sorry for my bad english
I have a problem when I execute this code
rule "userrole"
when
user1: BnUserValue(name : name, creationDate : creationDate)
and
ActiviteOut : BnNodeValue( BnRole: BnRole )
and
lien: BnEdgeValue(id : id)
then
System.out.println("oui ça marche");
end
BnRole is attribut type ; BnRoleValue (class declared)
when I remote this attribue(BnRole) this code work
all the attribut which I set with type different to classique type (String, Integer,
Date, List,... ) implique an error execution I don't know why I import all my class
and I'm sure that class haven't error
the error is
the error is
org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for
'BnRole'
class BnRolevalue et Bn Value is in the joint piece
please help me it's very urgent
thank you for your help
Best regards
Ismail
________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez
des connaissances, des opinions et des expériences des internautes sur Yahoo!
Questions/Réponses <
http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com>
.