| With the development of computer science and technology and the socialization trend of the modern society, customized-definition querying and analyses on the transaction data records has been paid more and more attention and emphasized by the business fields. But the traditional design of querying and analyses system focus on the business logic thus would not able to resolve issues such as the rapid increase on the kinds of business and the frequent changing of the business logic. That is to say, the traditional design of querying and analyses system is not the one of functional Expansion. So, a Customized-definition Query System Base on Rule Engine (CQSBRE), witch can separate the business logic and resolving logic clearly, is introduced in this article.Rule engine, witch has realized the algorithm called Rete algorithm that has excellent capacity in resolving sophisticated business rules logic, is on witch the Customized-definition Query System based to give the possibility and high performance in the use of query rule definition and used as a logic controller of web applications to face the rapid increase and frequent changing of the business logic. There are a few meaningful attempts in this article on both designing and implementing of such a kind of system.1. Both the relative technology and the interfaces of rule engine are introduced and expanded in the system, including XML rule files, transition of query condition, the ways of data operation and the process of the queue to parse the rules. 2. Several interfaces and database operating logic units based on rule engine are designed and implemented to make it easy and transparency for the rule engine to access different kinds of databases.3. Making the rule engine worked as logic controller of web application to control the business logic while defining the query rules.4. Using the XML rule file to separate the complex information such as query attribute information and query control information to make it easier for the rule engine to focus itself on the issues of query definition and resolving. |