[rules-users] code error
Sanjay Singh - s0singh
Sanjay.Singh at wal-mart.com
Mon Apr 9 10:18:42 EDT 2007
try with "type" and not "Type" as well
________________________________
From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of fakhfakh ismail
Sent: Monday, April 09, 2007 7:14 AM
To: rules-users at lists.jboss.org
Subject: [rules-users] code error
hello,
when I execute this code
rule "sample6"
when
act :activity( Type == 5)
//nod: act.getNodeProperty()
//nod.Property(key1: Key, value1:value)
//nod.Property(key2: Key, value==value1)
then
System.out.println("deux clés ont la meme valeurs");
end
error is affiiched
Exception in thread "main" org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 'Type'
at org.drools.rule.Package.checkValidity(Unknown Source)
at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
at org.drools.jsr94.rules.admin.RuleExecutionSetImpl.<init>(Unknown Source)
at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
at com.sample.Rule.fireRules(Rule.java:41)
at com.sample.Rule.fireRules(Rule.java:70)
at com.sample.DroolsTest.main(DroolsTest.java:59)
however the attribut Type exist in class activity
Best regard
Thank you for your help
________________________________
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> .
-----------------------------------------
*******************************************************************
*** This email and any files transmitted with it are confidential
and intended solely for the individual or entity to whom they are
addressed. If you have received this email in error destroy it
immediately. ******************************************************
**************** Wal-Mart Confidential ****************************
******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070409/9bc8ae4a/attachment.html
More information about the rules-users
mailing list