Hello all,

This question is not related to AppFuse so please pardon me, but since there
are so many developers from open source community here, just thought of
getting some opinions. We have a business requirement in which the end users
would create mathematical "formulae" through a UI. So in a single
transaction, a user could create a formula, apply it on the transactional
data, and save the formula for future use. The operands in a formula would
be attributes of certain objects, and the operators could potentially go
beyond just simple algebraic operators. An example could look like this:

if (object.country == "USA")
then output = (object.normalRate * (@someConstant + #someUserInput)) /
object.quantity
else output = (object.exciseRate * @someConstant) / object.quantity

The "decision-making" behavior of the formula inclines me towards using some
rules engine like JBoss Rules/Drools. Does anyone here know if JBoss Rules
or any other rules engine would fit for a requirement like this, where rules
could be created dynamically through a UI and then saved (file or database)
or users could select a rule among several available ones?

I would really appreciate any feedback.

Thanks,
Yogesh


-- 
View this message in context: 
http://www.nabble.com/Mathematical-formula-implementation-in-Java-JEE-tp21957774s2369p21957774.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to