Hello,
Your Java Bean has a getlProject() method which is inconsistent with your rule.
Try changing your rule to use this (i.e. capital P) - $Project : Project($name : name,
$lproject : lProject)
With kind regards,
Mike
________________________________
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of fakhfakh ismail
Sent: 21 May 2007 13:08
To: jboss rules
Subject: [rules-users] error
Hello,
when I EXECUTE my Rule an exception is affiched:
org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for
'lproject'
Rule Compilation error $lproject cannot be resolved
MYrules:
rule "userrole1"
when
$Project : Project($name : name,$lproject : lproject)
then
$lproject.deleteRole("Buyer");
end
et mon Java Bean:
public class Project {
private String Name ;
private ProjectSession lproject;
public Project(String Name, ProjectSession lproject)
{
setProject(Name);
setlProject(lproject);
}
public void setProject(String Name)
{
this.Name=Name;
}
public String getName()
{
return this.Name;
}
public void setlProject(ProjectSession lproject)
{
this.lproject=lproject;
}
public ProjectSession getlProject()
{
return this.lproject;
}
}
Please help me
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>
.