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: [email protected] 
[mailto:[email protected]] 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.

______________________________________________________________________

________________________________
This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to