The "THEN" part is either (depending upon the rule's dialect) a Java or MVEL code block.<br><br>Java defines the ^ operators as a bitwise exclusive or. I suspect you should probably use Math.pow.<br><br>Math is in the java.lang package so you shouldn't need to explicitly import.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 24 May 2012 10:02, zeeshan <span dir="ltr"><<a href="mailto:zeeshan.spring@gmail.com" target="_blank">zeeshan.spring@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi !<br>
<br>
Can I put "Power" in Fromula box of THEN part...??<br>
<br>
this is the formula that I have to apply....<br>
<br>
I want to put this formula in THEN section ----><br>
<br>
*deathBenefit=sumAssured * [(1 - 1/(1 +<br>
(interestRate/100)^(policyTerm-policyYear+1) / 1 - 1/(1 +<br>
(interestRate/100)^(policyTerm) ]*....<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-tp4013154.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154.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></div><br>