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

zeeshan zeeshan.spring at gmail.com
Thu May 24 08:21:53 EDT 2012


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.


More information about the rules-users mailing list