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.781234.001000.34and sample rule.xml looks like;total-assets = loans + others financial-data.total-assetsfinancial-data.loansfinancial-data.othersUse 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.

没有评论: