I still see a sumAssured without $ on line 6. sent on the move
On 24 May 2012 14:35, "zeeshan" <[email protected]> wrote: > Hi Mike ! > > I tried with prefix $ too on the RHS, still giving error.... > > *[DeathBenefitRule] Unable to Analyse Expression > $deathBenefit.setSumAssured( sumAssured * ( 1 - (1 / (Math.pow ( (1 + > ($interestRate/100),$policyTerm-$policYear+1) ) ) ) ) / (1 - (1 / (Math.pow > ( (1 + ($interestRate/100),$policyTerm) ) ) ) ) ); drools.update( > $deathBenefit );: [Error: unable to resolve method using strict-mode: > org.drools.spi.KnowledgeHelper.sumAssured()] [Near : {... > efit.setSumAssured( sumAssured * ( 1 - (1 / (Math. ....}] ^ [Line: 1, > Column: 30]* > > > the sorce code ----> *1. | rule "DeathBenefitRule" > 2. | dialect "mvel" > 3. | when > 4. | $deathBenefit : DeathBenefitFactModel( $sumAssured > : > sumAssured, $interestRate : interestRate, $policYear : policYear, > $policyTerm : policyTerm) > 5. | then > 6. | $deathBenefit.setSumAssured( sumAssured * ( 1 - (1 > / (Math.pow > ( (1 + ($interestRate/100),$policyTerm-$policYear+1) ) ) ) ) / (1 - (1 / > (Math.pow ( (1 + ($interestRate/100),$policyTerm) ) ) ) ) ); > 7. | update( $deathBenefit ); > 8. | end* > > -- > View this message in context: > http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154p4013548.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
