H
hazz
if i have a table record called Rule 1 with
1. table name
2. table column name
3. operator (>,< =)
4. value (0 to n)
5. score
how could I create code to create a rule automatically so that i could
create an object to compare to these rules in the database.
If I have an object with certain characteristics that I want to
evaluate(score), like
o.pizza
if o.pizza.olives > 50 then score = 10
else if pizza.olives < 50 then score = 5
so I will be creating an object against which I will be running it through a
filter of many, many if then else statements.
I have tried a couple of xml base rule engines and they are too complicated.
Can anyone help with any part of this process to at least simplify parts of
this task?
Thank you very much.
-hazz
1. table name
2. table column name
3. operator (>,< =)
4. value (0 to n)
5. score
how could I create code to create a rule automatically so that i could
create an object to compare to these rules in the database.
If I have an object with certain characteristics that I want to
evaluate(score), like
o.pizza
if o.pizza.olives > 50 then score = 10
else if pizza.olives < 50 then score = 5
so I will be creating an object against which I will be running it through a
filter of many, many if then else statements.
I have tried a couple of xml base rule engines and they are too complicated.
Can anyone help with any part of this process to at least simplify parts of
this task?
Thank you very much.
-hazz