<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=647161810-13042007><FONT face=Arial
color=#0000ff size=2>You need to change your rule:-</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=647161810-13042007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=647161810-13042007><FONT face=Arial
color=#0000ff size=2>rule "userrole"<BR>when<BR> user1:
BnUserValue(name : name, creationDate : creationDate)<BR>
and<BR> ActiviteOut : BnNodeValue( BnRole:
<STRONG><U>b</U></STRONG>nRole )<BR>
and <BR> lien: BnEdgeValue(id :
id)<BR>then<BR> System.out.println("oui ça
marche");<BR>end</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=647161810-13042007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=647161810-13042007></SPAN><SPAN
class=647161810-13042007><FONT face=Arial color=#0000ff
size=2> </DIV></FONT></SPAN>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>fakhfakh
ismail<BR><B>Sent:</B> 13 April 2007 10:21<BR><B>To:</B> jboss
rules<BR><B>Subject:</B> [rules-users] Object parameter<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hello,<BR>First sorry for my bad english<BR>I have a problem when I
execute this code<BR><BR>r<SPAN style="FONT-WEIGHT: bold">ule
"userrole"</SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold">when</SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold"> user1: BnUserValue(name : name, creationDate
: creationDate)</SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold"> and</SPAN><BR
style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold"> ActiviteOut :
BnNodeValue( <SPAN style="TEXT-DECORATION: underline">BnRole: BnRole</SPAN>
)</SPAN><BR style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold">
and </SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold"> lien: BnEdgeValue(id : id)</SPAN><BR
style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold">then</SPAN><BR
style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold"> System.out.println("oui ça
marche");<BR>end<BR><BR></SPAN> BnRole is attribut type ; BnRoleValue
(class declared)<BR>when I remote this attribue(BnRole) this code work <BR>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</DIV>
<DIV>the error is</DIV>
<DIV>the error is</DIV><FONT size=2>
<DIV><STRONG>org.drools.rule.InvalidRulePackage: Unable to create Field
Extractor for '<SPAN
style="TEXT-DECORATION: underline">BnRole</SPAN>'</STRONG></DIV>
<DIV></FONT> </DIV>
<DIV> </DIV>
<DIV>class BnRolevalue et Bn Value is in the joint piece</DIV>
<DIV> </DIV>
<DIV>please help me it's very urgent</DIV>
<DIV><BR>thank you for your help<BR>Best regards<BR>Ismail<BR></DIV>
<P>
<HR SIZE=1>
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 <A
href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo!
Questions/Réponses</A>.</BLOCKQUOTE></BODY></HTML>