[rules-users] performing math function in drools
Kripa Nathwani
Kripa.Nathwani at lntinfotech.com
Mon Oct 4 01:09:46 EDT 2010
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 at lists.jboss.org [mailto:rules-users-bounces at 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.
______________________________________________________________________
________________________________
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.
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101004/98433369/attachment.html
More information about the rules-users
mailing list