I have a little design dilemma. I have java and sql and no rules engine. I don't want to implement a full on rules engine either. My scenario: I have some input data, ie. code, description and an amount. Using these i will pass them into a function which will run lots of if else statements which are my business rules and will determine the output. I can do this in java, but the problem is that these codes and descriptions may change at anytime and so can the business rules, so my "if elses" need to change easily. My thought was given what i have to work with, is use a stored procedure in sql instead to manage the many if elses, and this can simply be changed by editing the stored proc and simply hitting f5, whereas with java, i'd have to modify the java code and recompile and deploy which takes much longer.
I would like to know if anyone has had such a problem and what were their experiences and successful approaches. The requirement is speed and being able to edit these business rules easily.
Thanks guys