I&#39;d try using free-format DRL and breaking the expression down into smaller parts until it works.<br><br>I can&#39;t see anything wrong with the syntax - unless it relates to the bug Wolfgang said was fixed for 5.4.0 (I *assume* he&#39;d mean FINAL).<br>
<br>The advice, as I have given before, would not to use a beta version as it is bound to have bugs in that were fixed for FINAL.<br><br>I know you use it for the free-format text &quot;Formula&quot; TextBox in the RHS of the Guided Editor, but free-format DRL (with 5.4.0.FINAL) is a suitable workaround.<br>
<br><div class="gmail_quote">On 24 May 2012 14:55, zeeshan <span dir="ltr">&lt;<a href="mailto:zeeshan.spring@gmail.com" target="_blank">zeeshan.spring@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
oops......now I tried by putting $ before sumAssured....still same error....<br>
<div class="im">*[DeathBenefitRule] Unable to Analyse Expression<br>
</div>$deathBenefit.setSumAssured( $sumAssured * ( 1 - (1 / (Math.pow ( (1 +<br>
<div class="im">($interestRate/100),$policyTerm-$policYear+1) ) ) ) ) / (1 - (1 / (Math.pow<br>
( (1 + ($interestRate/100),$policyTerm) ) ) ) ) ); drools.update(<br>
$deathBenefit );: [Error: unable to resolve method using strict-mode:<br>
</div>org.drools.spi.KnowledgeHelper.,$policyTerm()] [Near : {...<br>
($interestRate/100),$policyTerm-$policYear+1) ) ) ....}] ^ [Line: 1, Column:<br>
91]*<br>
<br>
<br>
the source code  --&gt;   *1.      |       rule &quot;DeathBenefitRule&quot;<br>
<div class="im">2.      |           dialect &quot;mvel&quot;<br>
3.      |           when<br>
4.      |               $deathBenefit : DeathBenefitFactModel( $sumAssured :<br>
sumAssured, $interestRate : interestRate, $policYear : policYear,<br>
$policyTerm : policyTerm)<br>
5.      |           then<br>
</div>6.      |               $deathBenefit.setSumAssured( $sumAssured * ( 1 - (1 / (Math.pow<br>
<div class="im">( (1 + ($interestRate/100),$policyTerm-$policYear+1) ) ) ) ) / (1 - (1 /<br>
(Math.pow ( (1 + ($interestRate/100),$policyTerm) ) ) ) ) );<br>
7.      |               update( $deathBenefit );<br>
8.      |       end*<br>
<br>
--<br>
</div>View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154p4013590.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154p4013590.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
</div></div></blockquote></div><br>