Invention content
An embodiment of the present invention provides a kind of data processing method, device, server and computer readable storage mediums, canThe correctness that regulation engine handles rule file is improved, the user satisfaction of user is improved.
In a first aspect, an embodiment of the present invention provides a kind of data processing method, this method includes:
Pending data is obtained according to parameter configuration table, the parameter configuration table is used to indicate obtaining for the pending dataTake rule;
It is the parameter assignment in parameter list using the pending data, the parameter list includes identification parameters and each businessThe peculiar parameter of rule;
Calling rule engine handles the parameter of the assignment, obtains the handling result of the pending data.
Wherein, the method further includes:
According to the peculiar parameter of the identity information of rule file and each business rule, the parameter model of rule file is established;
Model based on the parameter, creates the parameter list of the rule file, and the rule file is to utilize program codeThe file of defined data processing rule.
Wherein, the method further includes:
According to the data acquisition rule in the rule file, the parameter configuration model of the rule file is established;
Allocation models based on the parameter, creates the parameter configuration table of the rule file, and the rule file is to utilizeThe file of data processing rule defined in program code.
Wherein, the method further includes:
The update operation inputted for the configuration information of the rule file is received, the update operation includes increasing newly, deletingRemove and change any one of operation or multinomial;
It is operated according to the update, updates the parameter list and/or parameter configuration table.
Wherein, the parameter list and the parameter configuration table are stored in server buffer.
Wherein, the method further includes:
Receive the refresh operation for the server buffer;
The refresh operation is responded, the parameter list and parameter configuration table are loaded into the server buffer.
Second aspect, an embodiment of the present invention provides a kind of data processing equipment, which includes for holdingThe unit of the method for the above-mentioned first aspect of row.
The third aspect, an embodiment of the present invention provides a kind of server, which includes:Memory, processor andTransceiver is stored with computer program in the memory, and the transceiver is used for the control messaging by the processor,The processor realizes such as first aspect any one of them method when executing the computer program.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storageMedia storage includes computer program, and such as first aspect any one of them is realized when the computer program is executed by processorMethod.
The embodiment of the present invention may indicate that the acquisition rule of pending data due to parameter configuration table, can pass through parameter configuration tableThe pending data is obtained, is the parameter value in parameter list using the pending data, wherein the parameter list includes identity ginsengThe peculiar parameter of number and each business rule, therefore server can call regulation engine to handle the parameter of the assignment, and obtainThe handling result for obtaining the pending data, realizes the modelling, flexibility and visual configuration to rule file relevant information,So that the relevant information of rule file is stored in specific table, it is not easy to malfunction, and simplify to rule file correlationWhile the amending method of information, the rate of the rules engines processes rule file is also improved, helps to improve user's useSatisfaction.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.
The data that data acquisition or the rule file in the rule file obtain alternatively referred to as are fetched, in this hairIn bright embodiment, is alternatively referred to as fetched according to the parameter configuration model that the data acquisition rule in the rule file is established and configure mouldType, the parameter configuration table alternatively referred to as access allocation list of the rule file based on the parameter configuration model creation, in the present inventionIt is not made difference in embodiment.
Current internet financial industry mostly realizes the separation of business rule and program code using regulation engine, byThe continuous variation that may result in business rule in the continuous variation of exterior market environment just needs constantly repairing to business ruleChange, but is currently all based on the modification to program code greatly to the modification mode of business rule to realize, it is this to programWhile the modification mode of code requires developer to have the modification knowledge to program code, the complexity of the modification mode itselfProperty determine that modification to business rule is easy error, and take longer, therefore the processing speed of pending data also comparedRelatively slow, the present invention proposes a kind of data processing method, can the parameter information of rule file be established model and be converted to parameterTable, and parameter configuration model is established according to the data acquisition rule in the rule file and is converted to parameter configuration table, to ruleIt then can directly be carried out in parameter list and parameter configuration table when file modification, and then improve the processing speed to pending dataDegree.
It is a kind of schematic flow diagram of data processing method provided in an embodiment of the present invention referring to Fig. 1, as shown in Figure 1, shouldMethod may include:
S101, server obtain pending data according to parameter configuration table, and it is pending which is used to indicate thisThe acquisition rule of data.
Specifically, the acquisition rule when server first can obtain data according to rule file establishes the ginseng of the rule fileNumber allocation models, and can be based on the parameter configuration table of the parameter configuration model creation rule file, wherein the rule file isUsing the file of data processing rule defined in program code, which may include that rule file obtains pendingThe source of data and description etc. to the pending data, which can determine according to the source of the pending data obtainsDatabase belonging to the pending data, and can be according to the class determined to the description of the pending data belonging to the pending dataType, which for example can be that the vehicle that user submits borrows application, cash borrows application etc., if the pending data isVehicle borrows application, then can be that vehicle borrows class to the description of the pending data, server can be according to the description for borrowing application to the vehicleDetermining that this application is that user buys the loan application submitted when vehicle, wherein the server can only obtain a pending data,Also can obtain a plurality of pending data simultaneously, the acquisition rule of the pending data include the pending data acquisition source andOne or more in the acquisition modes of the pending data.
Optionally, after which creates the parameter configuration table of the rule file, developer can be by changing the parameterData in allocation list realize modification of the server to pending data acquisition rule so that developer can visually treatThe acquisition rule of processing data is added, modified or deleted, since traditional amending method is by program codeIt changes to realize, therefore compared to the complicated modification mode to program code, the modification mode of parameter configuration table can be solvedServer memory is put, it is more convenient flexible, it is not easy to malfunction, and can be formed such as along with being operated to the modification of parameter configuration tableOperation log shown in Fig. 2 realizes effective record that server obtains the pending data modification of rule, has accomplished haveAccording to can look into.
S102, the server by utilizing pending data are the parameter assignment in parameter list, which includes identity ginsengThe peculiar parameter of number and each business rule.
Specifically, the server can be established first according to the peculiar parameter of the identity information of rule file and each business ruleThe parameter model of the rule file, and the parameter list of the rule file, optionally, the server can be created based on the parameter modelEstablished according to the data acquisition rule in rule file the parameter configuration model of the rule file process and the server according toThe process that the peculiar parameter of the identity information of the rule file and each business rule establishes the parameter model of the rule file can be withIt is carried out at the same time, also may not be to be carried out at the same time.Wherein, the peculiar parameter of each business rule determines that processing is pending for serverBusiness rule when data, such as pending data are borrowed for vehicle when applying, which can extract the key in pending dataWord such as " vehicle loan ", and determine that handling the vehicle borrows the business applied according to the configuration rule that the keyword and the server includeRule.
Optionally, any rule file may include the identity information and business rule of itself, which for example can be withIt is alias, signature etc., does not limit in embodiments of the present invention, wherein the realization of each business rule relies in the rule fileIn the pending data of acquisition.
Optionally, after creating the parameter list in the server, developer directly can change the parameter by the parameter listThe peculiar parameter of identification parameters and each business rule in table, without being repaiied again by changing complicated program code to realizeChange needs, the workload of developer can be reduced to a certain extent, therefore quickly can more accurately adapt to changeable cityField variation, to be advantageously implemented accurate configuration of the developer to rule file.
Wherein, developer is built by the model to the parameter of the rule file and the data acquisition rule of the rule fileThe vertical and conversion to the established model realizes the image processing to rule file, easily facilitates developer to regular textThe timely and accurately processing of part.
S103, the server calls regulation engine handle the parameter of the assignment, obtain the place of the pending dataManage result.
Specifically, the parameter of the assignment includes the peculiar parameter of the identification parameters of assignment and each business rule of assignment, it shouldServer can call regulation engine to read the parameter of the assignment, and the parameter of the assignment is stored in the server buffer, lead toIt crosses and the parameter of the assignment in the caching is analyzed, verifies the processing knot that can return to result data determination to the pending dataFruit, since the call by value parameter that the regulation engine is read is relatively more, data volume is big, therefore by the way that the parameter of the assignment is stored in thisIn server buffer, for the parameter of the assignment is stored directly in the method in the memory of server, it can improveThe speed for obtaining the parameter of the assignment improves the processing of regulation engine so as to accelerate the processing speed to the parameter of the assignmentPerformance.
In embodiments of the present invention, since parameter configuration table may indicate that the acquisition rule of pending data, parameter can be passed throughAllocation list obtains the pending data, is the parameter value in parameter list using the pending data, wherein the parameter list includesThe peculiar parameter of identification parameters and each business rule, thus server can call regulation engine to the parameter of the assignment atReason, and the handling result of the pending data is obtained, pass through the modelling, flexibility and visualization to rule file relevant informationConfiguration, realizes and the relevant information of rule file is stored in specific table, simplify to the rule file relevant informationWhile amending method, the accuracy of the modification to the rule file relevant information is improved, rules engines processes are also improvedThe rate of the rule file, helps to improve users' satisfaction degree.
It is a kind of schematic flow diagram for data processing method that another embodiment of the present invention provides, such as Fig. 3 institutes referring to Fig. 3Show, this method may include:
S301, server obtain pending data according to parameter configuration table, and it is pending which is used to indicate thisThe acquisition rule of data.
Optionally, the data that the data acquisition in the rule file or the rule file obtain alternatively referred to as takeNumber, therefore the parameter configuration model alternatively referred to as access allocation models established according to the data acquisition rule in the rule file,The allocation list so parameter configuration table of the rule file based on the parameter configuration model creation is alternatively referred to as fetched, in the present inventionIt is not made difference in embodiment.
Such as Fig. 4 is a kind of figure of parameter configuration model provided in an embodiment of the present invention, as shown in figure 4, the parameter configurationModel includes and " access " relevant information is all a kind of description to the input data of the rule file, for example, " access nameClaim " it is used to indicate the title of input data, the type and " access source " of " access type " for describing input data are used forThe acquiring way, etc. of input data is described.
It optionally, can be as shown in Figure 5 new when developer needs to increase to the data acquisition rule of rule fileIncrease rule file and obtains the increase realized in regular table to the data acquisition rule of rule file, it is labeled wherein in the tableItem (band " * " item i.e. in figure) is the required item of developer when newly-increased acquisition is regular, can improve having for newly-increased acquisition ruleEffect property.
S302, the server by utilizing pending data are the parameter assignment in parameter list, which includes identity ginsengThe peculiar parameter of number and each business rule.
It is a kind of parameter model provided in an embodiment of the present invention as shown in Figure 6, parameter model as shown in the figure includes ruleCoding, alias, signature, input, output and output flow code, it should be noted that established according to same rule fileParameter model and parameter configuration model rule encoding having the same.
S303, the server calls regulation engine handle the parameter of the assignment, obtain the place of the pending dataManage result.
For example, if pending data is the request applied for vehicle and borrowed, server can be borrowed according to the vehicle indicated by parameter configuration tableThe acquisition rule of application first acquires the vehicle and borrows application, and the data that then server can be borrowed according to the vehicle in application are parameterParameter assignment in table, then server can call regulation engine judge assignment identification parameters whether there is in blacklist,The regulation engine can be also called to determine the business rule for borrowing application for handling vehicle according to the peculiar parameter of each business rule simultaneously,To determine that the vehicle borrows whether application meets lending condition, to which server can be according to regulation engine to the judgement knot of the identification parametersFruit and the vehicle borrow the judgement whether application meets lending condition, obtain the lending result that application is borrowed to the vehicle.
S304, the server receive the update operation inputted for the configuration information of the rule file, update operation packetInclude any one of newly-increased, deletion and modification operation or multinomial.
Wherein, the configuration information of the rule file includes parameter list and parameter configuration table.
Specifically, being that the relevant configuration information of rule file is also required to accordingly when external market environment changesChange to adapt to external turn of the market, could preferably cater to market, is realizing according to the data acquisition in the rule fileAfter rule establishes parameter configuration table and establishes parameter list according to the parameter of the rule file, developer can be by the parameterThe modification of table and the parameter configuration table is improved and is configured to rule file to realize the modification to the rule file configuration informationThe treatment effeciency of information avoids by way of realizing alteration ruler engine configuration information changing program code, and then makesThe variation of market environment can more accurately be catered to by obtaining the relevant configuration information of rule file.
S305, the server are operated according to the update, update the parameter list and/or parameter configuration table.
Specifically, after the server update tables of data and/or parameter configuration table, since regulation engine is applied in serverIn using clustered deploy(ment) mode, in order to ensure the rule file in each server buffer configuration data consistency, shouldServer can receive the refresh operation for the server buffer, so that by updated parameter list and/or parameter configuration tableIt is loaded into the server buffer, to ensure that the consistency of the rule file configuration information in each server buffer, thereforeIt efficiently avoids caused by the difference for the rule file configuration information that different server caches to same pending numberAccording to result different problems, improve the accuracy to pending data processing.
It optionally, can be directly by each clothes after the server detects the update to the parameter list and/or parameter configuration tableRule file configuration information in business device caching is refreshed, and can be further increased the accuracy to pending data processing, be kept awayExempted from due to it is artificial forget factor and so that the case where server causes erroneous judgement.
For example, developer can click refreshing of the Refresh button realization to the rule file relevant configuration information, it should " brushNewly " button can be only fitted in parameter list, can also be configured in parameter configuration table, be not construed as limiting in embodiments of the present invention.
Wherein, it since server can monitor each data queue in the server buffer, is detecting to queueIn data when being refreshed, updated relevant information can be loaded into each server buffer.
In embodiments of the present invention, server can be obtained according to the acquisition rule of the pending data indicated by parameter configuration tablePending data is taken, and can be the peculiar parameter tax of the identification parameters and each business rule in parameter list according to the pending dataValue, and calling rule engine handles the parameter of the assignment, obtains the handling result of the pending data, can also receiveTo the configuration information input of the needle rule file update operation when, update the parameter list and/or parameter configuration table, and refresh clothesBe engaged in device it is data cached so that rule file can be adjusted more timely and accurately according to exterior market environment, ensure that ruleAccurate processing of the engine to pending data.
The embodiment of the present invention also provides a kind of data processing equipment, and the data processing equipment is for executing any one of aforementioned instituteThe unit for the method stated.Specifically, it is a kind of schematic block diagram of data processing equipment provided in an embodiment of the present invention referring to Fig. 7.The data processing equipment of the present embodiment includes:Acquiring unit 701, assignment unit 702 and processing unit 703.
Acquiring unit 701, for obtaining pending data according to parameter configuration table, the parameter configuration table is used to indicate instituteState the acquisition rule of pending data;
Assignment unit 702, for being the parameter assignment in parameter list using the pending data, the parameter list includesThe peculiar parameter of identification parameters and each business rule;
Processing unit 703 is handled the parameter of the assignment for calling rule engine, obtains the pending numberAccording to handling result.
Wherein, the data processing equipment further includes:Establish unit 704.
Unit 704 is established, for according to the identity information of rule file and the peculiar parameter of each business rule, establishing ruleThe parameter model of file;
It is described to establish unit 704, it is additionally operable to model based on the parameter, creates the parameter list of the rule file, it is describedRule file is the file using data processing rule defined in program code.
Wherein, described to establish unit 704, it is additionally operable to according to the data acquisition rule in the rule file, described in foundationThe parameter configuration model of rule file;
It is described to establish unit 704, it is additionally operable to allocation models based on the parameter, creates the parameter configuration of the rule fileTable, the rule file are the file using data processing rule defined in program code.
Wherein, the data processing equipment further includes:Receiving unit 705, updating unit 706.
Receiving unit 705, the update operation that the configuration information for receiving for the rule file inputs, the updateOperation includes any one of newly-increased, deletion and modification operation or multinomial;
Updating unit 706 updates the parameter list and/or parameter configuration table for being operated according to the update.
Wherein, the parameter list and the parameter configuration table are stored in server buffer.
Wherein, the data processing equipment further includes:Response unit 707.
The receiving unit 705 is additionally operable to receive the refresh operation for the server buffer;
The parameter list and parameter configuration table are loaded into the clothes by response unit 707 for responding the refresh operationIt is engaged in device caching.
It in embodiments of the present invention, can acquiring unit since parameter configuration table may indicate that the acquisition rule of pending data701 obtain the pending data according to parameter configuration table, and assignment unit 702 utilizes the parameter that the pending data is in parameter listAssignment, wherein the parameter list includes the peculiar parameter of identification parameters and each business rule, therefore processing unit 703 can call ruleThen engine handles the parameter of the assignment, and obtains the handling result of the pending data, by rule file correlationModelling, flexibility and the visual configuration of information, realize and the relevant information of rule file are stored in specific table, letterWhile having changed the amending method to the rule file relevant information, the standard of the modification to the rule file relevant information is improvedTrue property, also improves the rate of the rules engines processes rule file, helps to improve users' satisfaction degree.
It is a kind of schematic block diagram of server provided in an embodiment of the present invention referring to Fig. 8.In the present embodiment as shown in the figureServer may include:One or more processors 801;One or more network interfaces 802 and memory 803.Above-mentioned placeReason device 801, network interface 802 and memory 803 are connected by bus 804.Memory 803 is for storing computer program, instituteIt includes program instruction to state computer program, and processor 801 is used to execute the program instruction of the storage of memory 803.Wherein, processor801 are configured for calling described program instruction execution:
Pending data is obtained according to parameter configuration table, the parameter configuration table is used to indicate obtaining for the pending dataTake rule;
It is the parameter assignment in parameter list using the pending data, the parameter list includes identification parameters and each businessThe peculiar parameter of rule;
Calling rule engine handles the parameter of the assignment, obtains the handling result of the pending data.
Wherein, the processor 801 is additionally operable to execute:
According to the peculiar parameter of the identity information of rule file and each business rule, the parameter model of rule file is established;
Model based on the parameter, creates the parameter list of the rule file, and the rule file is to utilize program codeThe file of defined data processing rule.
Wherein, the processor 801 is additionally operable to execute:
According to the data acquisition rule in the rule file, the parameter configuration model of the rule file is established;
Allocation models based on the parameter, creates the parameter configuration table of the rule file, and the rule file is to utilizeThe file of data processing rule defined in program code.
Wherein, the processor 801 is additionally operable to execute:
Network interface 802 is called to receive the update operation inputted for the configuration information of the rule file, the updateOperation includes any one of newly-increased, deletion and modification operation or multinomial;
It is operated according to the update, updates the parameter list and/or parameter configuration table.
Wherein, the parameter list and the parameter configuration table are stored in server buffer.
Wherein, the processor 801 is additionally operable to execute:
Network interface 802 is called to receive the refresh operation for the server buffer;
The refresh operation is responded, the parameter list and parameter configuration table are loaded into the server buffer.
In the specific implementation, processor 801 described in the embodiment of the present invention, network interface 802 can perform Fig. 1 and Fig. 3Shown in realization method described in data processing method, also can perform data processing described in Fig. 7 of the embodiment of the present inventionThe realization method of device, details are not described herein.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of the inventionMatter is stored with computer program, and the computer program includes program instruction, and described program instruction is realized when being executed by processorAbove-mentioned method.
The computer readable storage medium can be the internal storage unit of the server described in aforementioned any embodiment,Such as the hard disk or memory of server.The computer readable storage medium can also be that the external storage of the server is setPlug-in type hard disk that is standby, such as being equipped on the server, intelligent memory card (Smart Media Card, SMC), secure digital(Secure Digital, SD) blocks, flash card (Flash Card) etc..Further, the computer readable storage medium is alsoCan both include the server internal storage unit and also including External memory equipment.The computer readable storage medium is usedIn other programs and data needed for the storage computer program and the server.The computer readable storage mediumIt can be also used for temporarily storing the data that has exported or will export.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyThose familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replaceIt changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with rightIt is required that protection domain subject to.