| Rule engine can greatly increase the flexibility and the ability of rapid response of the IT system, and has been applied in many enterprises. However, the rule engine also has its own limitations, and does not adapt to all enterprise systems. For example, rules are more complex in commercial bank credit system, and the bank always has a higher standard on the flexibility than others. The author has research into the literatures to the rule engine domestic and foreign countries, and found that there are some general-purpose rule engines already. However, often a dedicated solution is needed for the specific business scenario. Rule engine should implement the management and the execute of the rules, also should concern the need of system security, data security, the performance of rule execution, data warehousing processing, and a good visual configuration interface for the rules. Also we should consider the exception handling, logging, auditing for the rule engine.This thesis first describes the background and significance of the research, then the rule engine related definitions and theory in the existing literature are explained. This thesis also compares existing rule engines, and found that it only solves part of the demand for bank credit system. On this basis, based on existing literature and the author’s own proposed improvement plan, design and implement a bank credit oriented rule engine system (referred to as the system). In this system, the related functions of rule engine are redesigned, the flexibility and ease of rule configuration has been greatly increased. This system provides the function of nested rule configurator, and the special purpose function, and automated exception handling, execution path records, online tests, and other functions.The author’s main work completed is as follows:(1) Responsible for the analysis of system requirements. This includes find out the user groups which will use the system, the execution environment of the system, research and analysis the demands on the flexibility, performance, and scalability, as well as the scene of using the rule engine in the credit system and rule engine’s function requirement analysis in the scenes.(2) Responsible for system design. The author designs the function for rules classification; designs the rule templates and rule configurator functions for ease of use, and the functions for data storage method and data structures, and the process flow of code generated, compile, rule execution and testing.(3) Responsible for the implement of the core functions of this system.Contrast to the existing rule engines which can only be operated by technicians, this system has a business-oriented perspective, and can be ease of use. This system has functions such as automatic exception handling, automatic type conversion, recording of execution path, data access control, and rule configuration without too much detail of the implementation of the system. Via the adapter mode, the system can generate different code you need such as structured query language or program language source code; therefore, this system is preferable for satisfy the requirements of the credit system. |