J
Jason Shohet
I have 6 rules for a given 'time' value.
if (0 < iTime <= .5) {iFee = 17}
else if ( .5 < iTime <= 1) {iFee = 20}
else if...
else if...
yada yada
I don't want to code this in C# within my application, or a web service,
because then I have to recompile everytime a user decides to tweek the rules
above. I was thinking that I could create a javascript function and have
the .NET app call it, passing in the iTime, and getting back iFee.
But Javascript is a pain to work with. I'm wondering -- if there's a
derivation of XML -- that can do this. Pass in a value, get back something
else: a rules engine thats easy to modify.
TY for any advice
Jason Shohet
if (0 < iTime <= .5) {iFee = 17}
else if ( .5 < iTime <= 1) {iFee = 20}
else if...
else if...
yada yada
I don't want to code this in C# within my application, or a web service,
because then I have to recompile everytime a user decides to tweek the rules
above. I was thinking that I could create a javascript function and have
the .NET app call it, passing in the iTime, and getting back iFee.
But Javascript is a pain to work with. I'm wondering -- if there's a
derivation of XML -- that can do this. Pass in a value, get back something
else: a rules engine thats easy to modify.
TY for any advice
Jason Shohet