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>.