This is a bug (probably in MVEL) in 5.3.0, which has been fixed for 5.4.0.

-W

On 24/05/2012, zeeshan <[email protected]> wrote:
> Hi Mike !
>
> I have decomposed the formula into several small parts....I was trying with
> Free form DRL, then I validated it...it is giving error....
>
>       *[DeathBenefitRule] Unable to Analyse Expression int
> $interestNumerator=1+($deathBenefit.getInterestRate()/100); int
> $interestRateNumerator=1; int
> condition=$deathBenefit.getPolicyTerm()-$deathBenefit.getPolicYear()+1;
> for(int i=0; i<=condition; ++i ){
> $interestRateNumerator=$interestRateNumerator*$interestNumerator; }; double
> numerator=1-1/$interestRateNumerator; System.out.println(numerator);:
> [Error: no such identifier: condition] [Near : {... for(int i=0;
> i<=condition; ++i ){ ....}] ^ [Line: 6, Column: 17]*
>
>
>
> I put this in the box--->
>
> *int $interestNumerator=1+($deathBenefit.getInterestRate()/100);
> int $interestRateNumerator=1;
>
> int condition=$deathBenefit.getPolicyTerm()-$deathBenefit.getPolicYear()+1;
>
> for(int i=0; i<=condition; ++i ){
>   $interestRateNumerator=$interestRateNumerator*$interestNumerator;
>
> }
> double numerator=1-1/$interestRateNumerator;
> System.out.println(numerator);*
>
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154p4013418.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

Reply via email to