2007年5月15日星期二
Evaluating Finance based mathametical expressions in XML & Java
To evaluate such rules; A simple expression rule engine can be developed using Java, XML and JEP (Java Expression Parser). For example; suppose we have financial_data.xml which looks like;2234.78 1234.00 1000.34 and sample rule.xml looks like;total-assets = loans + others financial-data.total-assets financial-data.loans financial-data.others Use java components which parses the rule.xml and financial-data.xml and replaces the rule expression with actual data and forms the string. This formulated string will in-turn passed as expression to JEP framework which gives us boolean result.
订阅:
博文评论 (Atom)
没有评论:
发表评论