But for using Math.pow() I have to import java.lang in that function.
Even after importing java.lang, it is not recognizing the function add giving me error as :
Prohibited package name:java.class
If you can just forward me the link for that document you mentioned below, I can get some useful insight into it.
Best Regards,
Kripa
From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
On Behalf Of Leandro Romero
Sent: Monday, October 04, 2010 10:22 AM
To: Rules Users List
Subject: Re: [rules-users] performing math function in drools
If you want to make a function call in LHS you have to use Eval, it allows you to execute any Java code. In this especific case, you can call Math.pow() inside of it.
Before using it, I strongly recommend you to read the documentation about it.
______________________________________________________________________