[rules-users] How to put "Power" in Formula box of THEN ?

Wolfgang Laun wolfgang.laun at gmail.com
Thu May 24 08:37:39 EDT 2012


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 <zeeshan.spring at gmail.com> 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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list