My current application has a number of rules in the form of if-else
conditional statements that work on some parameters to either modify some set of variables or set/unset other variables. Due the increasing clients that we are having, the application code is now getting cluttered with these if-else rules. Also, these rules are not static they change quite frequently tweaked, some are made to expire other's activated etc. I have seen that drools etc based on JSR094 provide this functionality to separate logic/rules from application source code.
My requirement is not so complex, I don't need complex rule visualization software, editing UI, etc. but definitely dynamic(modifications/editable rules), also my requirement requires low latency as it processes some 100s of million requests a day.
Any ideas of a light weight implementation to solve this as I feel drools is overkill?
My platform for development is Java. Example rule:
if ( age > 15 && item belongs_to(footwear) || using(mobile_device) )
discount = 2%