As an aside, if you can change the rule definitions it&#39;d be preferable to remove the eval:-<div><br></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>
rule &quot;EmailVerificationCheck&quot;</div><div>salience 500</div><div>when</div><div>    $c : RuleContext (paymentMethod == &quot;P_EXPRESS&quot;, trustedUser==false)</div><div>    $a : RuleAction (action == null || == &quot;VERIFY&quot;)</div>

<div>then</div><div>   ...</div><div>end</div></span><div><br></div>isTrustedUser() is a member of RuleContext and you can therefore access it&#39;s boolean properties like any other.</div><div><br></div><div>Also, you could split the RHS into different rules too:-</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>rule &quot;EmailVerificationCheck #1&quot;</div><div>salience 500</div><div>when</div>
<div>    $c : RuleContext (paymentMethod == &quot;P_EXPRESS&quot;, trustedUser==false, PEmailVerified==false)</div><div>    $a : RuleAction (action == null)</div><div>then</div><div>    modify($a) {</div><div>        setAction (&quot;VERIFY&quot;);</div>
<div>    }</div><div>end</div><div><br></div><div><div>rule &quot;EmailVerificationCheck #2&quot;</div><div>salience 500</div><div>when</div><div>    $c : RuleContext (paymentMethod == &quot;P_EXPRESS&quot;, trustedUser==false, PEmailVerified==false)</div>
<div>    $a : RuleAction (action == &quot;VERIFY&quot;)</div><div>then</div><div>    $a.getRuleNames().add(&quot;PEmailVerificationCheck&quot;);</div><div>    update($a);</div><div>end</div></div><div><br></div></span><div class="gmail_quote">

2010/9/28 Vincent Legendre <span dir="ltr">&lt;<a href="mailto:vincent.legendre@eurodecision.com" target="_blank">vincent.legendre@eurodecision.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    The follwing error seems to mean that context is defined twice. May
    be that &quot;context&quot; is a reserved global variable in drools 5.<br>
    Try to remane it in your rule, and check doc for more explanations<br>
    <br>
    <blockquote><span style="white-space:pre-wrap"></span>com/playspan/rule/Rule_PayPal_EmailVerificationCheck_0Eval0Invoker.java
      (16:48) : <b>Redefinition of local variable &quot;context&quot;</b> </blockquote>
    <br>
  </div>


<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>