<!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.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=885001113-05042007>Try to change <STRONG><FONT face="Times New Roman"
color=#000000 size=3> $role :Role</FONT></STRONG><BR
style="FONT-WEIGHT: bold">to <STRONG><FONT face="Times New Roman"
color=#000000 size=3> $role :Role()</FONT></STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=885001113-05042007><STRONG><FONT face="Times New Roman" color=#000000
size=3></FONT></STRONG></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=885001113-05042007><STRONG><FONT face="Times New Roman" color=#000000
size=3>and test .. I am learning too so can't promise anything but it looks like
the solution from what i saw in error log .. Let us
know.</FONT></STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=885001113-05042007><STRONG><FONT face="Times New Roman" color=#000000
size=3></FONT></STRONG></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=885001113-05042007><STRONG><FONT face="Times New Roman" color=#000000
size=3>thanks</FONT></STRONG></DIV>
<DIV dir=ltr align=left><BR style="FONT-WEIGHT: bold"></DIV></SPAN></FONT><BR>
<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> Thursday, April 05, 2007 7:41 AM<BR><B>To:</B>
rules-users@lists.jboss.org<BR><B>Subject:</B> [rules-users] (no
subject)<BR></FONT><BR></DIV>
<DIV></DIV>hello, <BR>first sorry for my bad english<BR>when I execute the
code<BR><SPAN style="FONT-WEIGHT: bold">rule "sample1"</SPAN><BR
style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold">when</SPAN><BR
style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold">
</SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold"> $P: User($name :
name, email matches ".*@bull.net")</SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold"> $role
:Role</SPAN><BR style="FONT-WEIGHT: bold"><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold">then</SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold">
$role.addUser($P);</SPAN><BR style="FONT-WEIGHT: bold"><SPAN
style="FONT-WEIGHT: bold"> end<BR><BR>User and Role are
JavaBean<BR></SPAN><BR>error is affiched<BR><BR><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)">Exception in thread "main"
org.drools.rule.InvalidRulePackage: unknown:12:0 mismatched token:
[@78,169:172='then',<33>,12:0]; expecting type '('</SPAN><BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
org.drools.rule.Package.checkValidity(Unknown Source)</SPAN><BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
org.drools.common.AbstractRuleBase.addPackage(Unknown Source)</SPAN><BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
org.drools.jsr94.rules.admin.RuleExecutionSetImpl.<init>(Unknown
Source)</SPAN><BR style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown
Source)</SPAN><BR style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown
Source)</SPAN><BR style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown
Source)</SPAN><BR style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
com.sample.Rule.fireRules(Rule.java:41)</SPAN><BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
com.sample.Rule.fireRules(Rule.java:70)</SPAN><BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="BACKGROUND-COLOR: rgb(255,0,0)"> at
com.sample.DroolsTest.main(DroolsTest.java:34)</SPAN><BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><BR
style="BACKGROUND-COLOR: rgb(255,0,0)">Best regard<BR>Ismail<BR
style="BACKGROUND-COLOR: rgb(255,0,0)"><SPAN
style="FONT-WEIGHT: bold; BACKGROUND-COLOR: rgb(255,0,0)"><BR
style="FONT-WEIGHT: bold"></SPAN><BR>
<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>.</BODY></HTML>
<HTML><BODY><P><hr size=1></P><br>
<P><STRONG><br>
*******************************************************************<br>
*** This email and any files transmitted with it are confidential<br>
and intended solely for the individual or entity to whom they are<br>
addressed. If you have received this email in error destroy it<br>
immediately. ******************************************************<br>
**************** Wal-Mart Confidential ****************************<br>
******************************************<br>
</STRONG></P></BODY></HTML>