<p>I still see a sumAssured without $ on line 6.</p>
<p>sent on the move</p>
<p>On 24 May 2012 14:35, "zeeshan" <<a href="mailto:zeeshan.spring@gmail.com">zeeshan.spring@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mike !<br>
<br>
I tried with prefix $ too on the RHS, still giving error....<br>
<br>
*[DeathBenefitRule] Unable to Analyse Expression<br>
$deathBenefit.setSumAssured( sumAssured * ( 1 - (1 / (Math.pow ( (1 +<br>
($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>
org.drools.spi.KnowledgeHelper.sumAssured()] [Near : {...<br>
efit.setSumAssured( sumAssured * ( 1 - (1 / (Math. ....}] ^ [Line: 1,<br>
Column: 30]*<br>
<br>
<br>
the sorce code ----> *1. | rule "DeathBenefitRule"<br>
2. | dialect "mvel"<br>
3. | when<br>
4. | $deathBenefit : DeathBenefitFactModel( $sumAssured :<br>
sumAssured, $interestRate : interestRate, $policYear : policYear,<br>
$policyTerm : policyTerm)<br>
5. | then<br>
6. | $deathBenefit.setSumAssured( sumAssured * ( 1 - (1 / (Math.pow<br>
( (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>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154p4013548.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154p4013548.html</a><br>
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>
</blockquote></p>