Font Size: a A A

Rule-based Data Processing System

Posted on:2010-11-12Degree:MasterType:Thesis
Country:ChinaCandidate:Z Y QuFull Text:PDF
GTID:2178360272495896Subject:Computer system architecture
Abstract/Summary:PDF Full Text Request
Informationization is definitely important in large-scale enterprise building. Alogic and exact management information system is the basis of making brightdecisions for the enterprise. However, owing to the complicated procedure ofproduction and business logic of the MIS for electric power, the data stored in theenterprise is getting more and more. And the MIS for electric power has to manageother resources like people or salary, which would be supported bythe correspondingsystem, besides the electric power production to achieve the office automation. Whenthe managers have to change the business logic or upgrade the system, they have toask the developers to update business rules mixed with the data stored and the waytoimplementthesystem.Therefore,themanagers havetodepartthebusinessrules fromthe implementation by the developers in order to destroy the union between data andbusiness logic. If so, when the business logic has to been changed, the operator justhas to change the business rules of the subsystem without ask the developers tochange the logic embed in the complicated codes. In order to satisfythe expandingofthe electric power system and changes in the production and business logic andconvenienceto manage the information,we design and implementation the rule-baseddata processing system which uses the ideaa bout the rule engine in thi spaper.In the data processing system of the MIS for electric power, according to thecurrent situation of information in enterprise and users'desire for separating businessrules from the algorithm and data, we put forward two kinds of data transferringsystem, based on the rule engine which is the point in this paper, using databaseoperations and Java reflection. The data transferring subsystem in the rule-based dataprocessingsystem is based on the idea of the rule engine, separates the business rulesfrom the data, so the user just need to change the related business rules with thechange in the demands of the market, and the data will be changed owing to thechange in the rules and meaningful to help the manager make the right decision. Dataprocessing system plays an important role in the management of the enterprise.Followingsarethemaincontentsofthispaper: 1,Data extraction will select the data interested or to be operated from the alldatastoredbytheenterprise.Thedataqualitywillgettingworsewhenthedatawillbemore and more in case of the enterprise getting bigger and bigger. And someincomplete and meaningless data will exist. Data extraction will select the datalimited from the data source based on the extract conditions made by the users and themapping rules so that we can avoid the incomplete and meaningless data before thisbusiness operation. Data extraction operates the data base to make sure theconvenience and accurateness.2,Considering on the frequent change in the business rules and the research ontheruleengine,therule-baseddataprocessingsystemisbroughtforward,andtheideaof the rule engine is the core of the data transferring subsystem. The incomplete datawillturntobemeaningfulbasedontherulesmadebytherulesinthedatatransferring.Thedatatobeoperatedandinterestedis fromthedataextraction.Andtherulebaseisthe collection of the rules which are manipulated from the business logics and couldbe operated by the users. The rule defines a format including the condition and theresult. The condition handles the matching between the data and the rule, and theresult is the movement when the rule is activated. And there are some parameters inruletomaketheruleperfectlikesalience,description,loop.Andtherulematcherandthe execution engine is the core of the rule engine. The rule engine based on datatransferring can be accomplished via two approaches: database operation and Javareflection. The rule engine accomplished by database operation uses operation ofdatabase to achieve the rule matcher and execution engine based on the data modelstored in the database without any other operation. But the one accomplished byJavareflection achieves the rule matcher with parsing the concrete data expression andexecutionenginewithreflection.3,Report system is necessary for the ma nagement informationsystem.Reportisthe best choice when users want to display the analysis and statistics of the data whichis selected. Once display the detail of the data chose by users, meanwhile, it couldshow other statistics like sum,percentage,maximum and minimum. The reportsubsystem exists in the data processing system is based on the JasperReports. Wecould achieve the flexible report system via the APIafforded byJasperReports whichis open source software. The report template is the basis for JasperReports, we couldcompile,fill,show or print report on the basis of report template. Using the reportssubsystem,usersshouldselectsomereporttemplate,datasource,parametersusedin the template and the way to display.Besides, the points of the rule-based data processing system are as follows:First, the data transferring subsystem is achieved by the rule engine and theimplementation of the rule language. Users just have to operation the system, whichwill be executed after running the whole system, through the data model stored in thedatabase without extra defining the model of the fact.Second, the data report subsystem accomplished via JasperReports which is opensource software just operates the report template but other complicated operationswhich is supported by the commercial reports tools. Besides, we could use thetemplates supported by the developers, and so do the templates made by users throughtemplate design tools like iReport.Third, there are two kinds of rule engines. The one based on the databaseoperation transfers the defining data stored in the database, depending on all kinds ofdatabase operations. Besides, we can improve the performance of the system usingconnection pool and storage process. However, the other one based on Java Reflectiontries to reduce the database operation and achieves the data transferring using parsingexpression to match rule and reflection to active the rule. Those two engines arecomplementary for each other and have their features. We can select the appropriateengine to make the system flexible according to the running status of the dataprocessing system.Fourth, there is lots of tip and help supported by the system when users have toinput some parameters and other related data. For example, the data inputting pad isconvenient for users to type the completed expression.Fifth, the whole system is based on the B/S architecture, which will lighten theburden on the client, and MVC design pattern, which will make the maintenance andextend for the code of the system easy.In a word, the business rules to the enterprise are separated in the rule-based dataprocessing system whose core is the rule engine. Users operating the business rulesdirectly satisfied the frequent change in the business logics to the production ofelectric power. Beside, the data extraction and report in the system is helpful to themanagement and operation of the information for the MIS for electric power.
Keywords/Search Tags:Dataprocessing, Ruleengine, Reportsystem, Dataextraction
PDF Full Text Request
Related items