_Esam
asked on
How to return a primitive or object value from a static method using Drools Rule Engine?
I have a static calculation method (many more methods like this one) like:
public class ShareCalculator{
public static double calculateDailyDecDivRate(D eclaredDiv idend pDeclaredDiv,
FundProductDeclaredDividen d pFundProductDeclaredDivide nd)throws FMSCalculationException{
...... verify many if, then else conditions ,, etc....
then return the double value
}
}
I plan to utilize Drools Rule Engine ...
Then my real question is how DO I RETURN THE Primitive or Object value from this method to a calling
class?
Does my question make sense?
Most of the examples I saw on Drools mostly deal with Object with getter/setter type !!!
How to I use a class with static methods to return values?
Thanks much.
_Esam
public class ShareCalculator{
public static double calculateDailyDecDivRate(D
FundProductDeclaredDividen
...... verify many if, then else conditions ,, etc....
then return the double value
}
}
I plan to utilize Drools Rule Engine ...
Then my real question is how DO I RETURN THE Primitive or Object value from this method to a calling
class?
Does my question make sense?
Most of the examples I saw on Drools mostly deal with Object with getter/setter type !!!
How to I use a class with static methods to return values?
Thanks much.
_Esam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Computer101
EE Admin