[rules-users] Object parameter

Anstis, Michael (M.) manstis1 at ford.com
Fri Apr 13 06:20:22 EDT 2007


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 at lists.jboss.org [mailto:rules-users-bounces at 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> .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070413/cc3218a4/attachment.html 


More information about the rules-users mailing list