CN109377393A - Regular method of calibration and device - Google Patents

Regular method of calibration and device Download PDF

Info

Publication number
CN109377393A
CN109377393A CN201811217771.0A CN201811217771A CN109377393A CN 109377393 A CN109377393 A CN 109377393A CN 201811217771 A CN201811217771 A CN 201811217771A CN 109377393 A CN109377393 A CN 109377393A
Authority
CN
China
Prior art keywords
rule
script
business
verification
business datum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811217771.0A
Other languages
Chinese (zh)
Inventor
黄飞
赵鹏程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sunshine Life Insurance Co Ltd
Original Assignee
Sunshine Life Insurance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sunshine Life Insurance Co Ltd filed Critical Sunshine Life Insurance Co Ltd
Priority to CN201811217771.0A priority Critical patent/CN109377393A/en
Publication of CN109377393A publication Critical patent/CN109377393A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Abstract

The present invention relates to technical field of data processing, a kind of regular method of calibration and device are provided.This method and device are applied to service provider, wherein regular method of calibration includes: to receive rule verification request from business side, carries the business datum in need verified in rule verification request;According to rule verification request, the rule verification script being cached in memory in advance is obtained;Script is verified using rule, whether verification business datum meets business rule defined in script;The check results of acquisition are returned into business side.In the above-mentioned methods, check code writes in rule verification script and service code is there is no coupling, and carries out dynamic update, flexibility with higher and scalability convenient for rule verification script.The script of rule verification simultaneously is buffered in memory, is obtained script when carrying out rule verification directly from memory and is executed, significantly improves the efficiency of rule verification.The realization of entire rule checking procedure is fairly simple, is easy to learning and mastering.

Description

Regular method of calibration and device
Technical field
The present invention relates to technical field of data processing, in particular to a kind of regular method of calibration and device.
Background technique
In the business scenarios such as insure, save from damage, settle a claim of insurance industry, service logic requires to advise based on certain business Then.For example, certain insurance products limitation warrantee has to be larger than 30 years old at the age, warrantee's age was exactly a kind of greater than 30 years old here Business rule, needs whether the information for verifying warrantee first meets business rule before generating declaration form.
It is common at present that there are two types of regular checkschemas:
The first scheme stores the sql script for rule verification in the database, when needing to verify, from database Script is read out to verify business datum.The program can generate a large amount of database connection in checking procedure, cause to count Inefficiency is calculated, or even influences the normal use of business function.
Regular check code is directly coupled in service code by second scheme, and business rule can not be changed dynamically, such as Need to change, can only first halt system service, restart system service after more fresh code.In entire renewal process, system can not be external Service is provided, business function normal use is seriously affected.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of regular method of calibration and device, to improve in business rule verification The problem of.
To achieve the above object, the invention provides the following technical scheme:
In a first aspect, the embodiment of the present invention provides a kind of regular method of calibration, it is applied to service provider, method includes:
Rule verification request is received from business side, carries the business datum in need verified in rule verification request;
According to rule verification request, the rule verification script being cached in memory in advance is obtained;
Script is verified using rule, whether verification business datum meets business rule defined in script;
The check results of acquisition are returned into business side.
In a kind of possible implementation of first aspect, the rule verification script being cached in memory in advance is obtained, Include:
From it is pre-loaded and be cached in memory it is multiple rule verification scripts in obtain with rule verification request it is matched Rule verification script.
In a kind of possible implementation of first aspect, rule verification script is JavaScript script, script quilt The running environment of load is Nashorn script engine or Rhino script engine.
In a kind of possible implementation of first aspect, using rule verification script, whether verification business datum Before meeting business rule defined in script, method further include:
Acquisition needs other data to be used in the checking procedure of business datum.
In a kind of possible implementation of first aspect, using rule verification script, whether verification business datum Before meeting business rule defined in script, method further include:
Business datum is formatted and is encapsulated, converts business datum to the shape for being suitable for rule verification script processing Formula.
In a kind of possible implementation of first aspect, script is verified using rule, whether verification business datum is full Business rule defined in sufficient script, comprising:
According to rule verification request, obtained and rule from least one rule chain predetermined in rule verification script Matched rule chain is requested in verification, wherein includes multiple business rules in each rule chain;
Successively whether verification business datum meets each business rule in matched rule chain.
In a kind of possible implementation of first aspect, successively verify whether business datum meets matched rule chain In each business rule, comprising:
Matched rule chain is divided into the multiple regular pieces that can independently verify, wherein wrap in each rule piece Include at least one business rule;
Parallel check is carried out to multiple regular pieces, whether business datum, which meets the rule piece, is successively verified to each regular piece In each business rule;
Summarize the check results of multiple regular pieces.
In a kind of possible implementation of first aspect, whether verification business datum meets business defined in script Rule, comprising:
If business rule, not in the corresponding white list of business datum, whether verification business datum meets defined in script Business rule.
In a kind of possible implementation of first aspect, method further include:
It receives script and updates request, script, which updates, carries new rule verification script in request;
Updated and requested according to script, with new rule verification script replace in multiple rule verification scripts with new rule Verify the corresponding old rule verification script of script.
Second aspect, the embodiment of the present invention provide a kind of regular calibration equipment, are applied to service provider, device includes:
Request receiving module is verified, for receiving rule verification request from business side, carrying in rule verification request is needed The business datum verified;
Request management module is verified, for obtaining the rule verification being cached in memory in advance according to rule verification request Script;
Regular correction verification module, for using rule verification script, whether verification business datum to meet industry defined in script Business rule;
As a result feedback module, the check results for that will obtain return to business side.
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, on computer readable storage medium Computer program instructions are stored with, when computer program instructions are read out by the processor and run, execute first aspect or first party The step of method that the possible implementation of any one of face provides.
Fourth aspect, the embodiment of the present invention provide a kind of electronic equipment, including memory and processor, deposit in memory Computer program instructions are contained, when computer program instructions are read out by the processor and run, execute first aspect or first aspect Any one possible implementation provide method the step of.
Technical solution provided by the invention includes at least following the utility model has the advantages that the embodiment of the present invention provides regular method of calibration Applied to service provider, the rule verification request for carrying the business datum in need verified is received from business side first, Then according to rule verification request, the rule verification script being cached in memory in advance is obtained, is then verified by executing rule Whether script, verification business datum meet business rule defined in script, the check results of acquisition are finally returned to business side.
The business rule code of the above method writes in rule verification script and service code is there is no coupling, convenient for rule It then verifies script and carries out dynamic update, flexibility with higher and scalability.In the script of rule verification simultaneously is buffered in Script is obtained in depositing, when carrying out rule verification directly from memory and is executed, the efficiency of rule verification is significantly improved, is conducive to The normal execution of business function.In addition, the realization of this method checking procedure is fairly simple, user only needs to configure corresponding rule Script is verified, is easy to learning and mastering, later maintenance cost is relatively low.
To enable above-mentioned purpose of the invention, technical scheme and beneficial effects to be clearer and more comprehensible, special embodiment below, and Cooperate appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural block diagram that can be applied to the electronic equipment in the embodiment of the present invention;
Fig. 2 shows the interaction schematic diagrames of business side and service provider;
Fig. 3 shows the flow chart of regular method of calibration provided in an embodiment of the present invention;
Fig. 4 shows the flow chart of the step S14 to step S15 for the regular method of calibration that embodiment of the invention provides;
Fig. 5 shows the functional block diagram of regular calibration equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing one entity or operation from another entity or operation, It is not understood to indicate or imply relative importance, can not be understood as require that or imply and be deposited between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Fig. 1 shows a kind of structural block diagram of electronic equipment 100 that can be applied in the embodiment of the present invention.Referring to Fig.1, electric Sub- equipment 100 includes one or more processors 102, one or more storage devices 104, input unit 106 and output dress 108 are set, these components pass through the interconnection of bindiny mechanism's (not shown) of bus system 112 and/or other forms.
Processor 102 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution capability Other forms processing unit, and can control the other assemblies in electronic equipment 100 to execute desired function.
Storage device 104 can with various forms of computer readable storage mediums, such as volatile memory and/or it is non-easily The property lost memory.Volatile memory for example may include random access memory (RAM) and/or cache memory (cache) etc..Nonvolatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..Computer-readable Can store one or more computer program instructions on storage medium, processor 102 can run computer program instructions, with Realize the method and/or other desired functions in the embodiment of the present invention hereafter.In a computer-readable storage medium Various application programs and various data, such as application program use and/or the various data generated etc. can also be stored.
Input unit 106 can be the device that user is used to input instruction, and may include keyboard, mouse, microphone One or more of with touch screen etc..
Output device 108 can export various information (for example, image or sound) to external (for example, user), and can To include one or more of display, loudspeaker etc..
It is appreciated that structure shown in FIG. 1 is only to illustrate, electronic equipment 100 may also include it is more than shown in Fig. 1 or Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its Combination is realized.In the embodiment of the present invention, electronic equipment 100 can be server, personal computer, mobile device etc., can also To be not limited to physical equipment, such as can be virtual machine, Cloud Server etc..
Fig. 2 shows the interaction schematic diagrames of business side 200 and service provider 300.Referring to Fig. 2, business side 200 is by holding Row service code realizes business function, meets business demand.Service provider 300 provides rule verification clothes to business side 200 Business, rule method of calibration provided in an embodiment of the present invention are applied to service provider 300, i.e., the method and step illustrated below is held Row main body is service provider 300.Further, service provider 300 can be implemented as electronic equipment 100 shown in fig. 1 The step of (one or more), regular method of calibration, is executed by the processor 102 of electronic equipment 100, for ease of description, there is no harm in Think that regular method of calibration is integrated in a regulation engine, which is deployed on electronic equipment 100.In some realizations In mode, for the performance pressures for alleviating rule verification, regulation engine is also supported extending transversely to be multiple, and each regulation engine can Rule verification service is provided independently.
Fig. 3 shows the flow chart of regular method of calibration provided in an embodiment of the present invention.Referring to Fig. 3, this method comprises:
Step S10: rule verification request is received from business side 200.
When business side 200 needs to carry out rule verification, rule verification request is initiated to service provider 300, such as can To take in a manner of http request etc..The business datum in need verified is carried in rule verification request, to service offer Side 300 can verify business datum according to predefined business rule after receiving request.
Step S11: according to rule verification request, the rule verification script being cached in memory in advance is obtained.
Rule checking algorithms, i.e. business rule are realized by the code of scripting language in rule verification script, In the prior art, there are many business rules that are ready-made, realizing by sql available, it, can be with to avoid the duplication of labour Directly these sql business rule realized is migrated into rule verification script, i.e., sql sentence is passed through into corresponding scripting language It is expressed.Scripting language designated herein can be appointing in the scripting languages such as JavaScript, Shell, Python, Perl It anticipates one kind.
Rule verification script is usually stored in the storage mediums such as hard disk in the form of a file, before step S11 execution, It needs to load rule verification script and cache into memory, directly be obtained from memory when verifying script using rule later Script, to accelerate to execute speed.By taking JavaScript script as an example, when regulation engine starts, so that it may be loaded into Nashorn script engine is simultaneously cached into memory.Wherein Nashorn script engine (is in early stage JDK version by JDK1.8 offer Rhino script engine), which provides running environment for JavaScript script, so as to efficient in java applet Ground executes JavaScript code.In some implementations, the storage location of rule verification script can be stored in data In library, when regulation engine starts, database is accessed first, the path of script file is obtained, is then loaded.
The business rule verified in practical application is very more, for convenient for management, rule verification script is generally It is multiple, multiple associated business rules are configured in each rule verification script, for for a kind of a kind of (such as the production of business Product) business datum verified.Before step S11 execution, all rule verification scripts can be loaded and cache to In memory.It is obtained from the multiple rule verification scripts being cached in memory in advance and rule verification request in step s 11 The rule verification script matched, and subsequent calculating is carried out using matched rule verification script.
For example, in one implementation, business side 200 can directly specify in rule verification request need to be to be used Rule verification script name, service provider 300 is after parsing request, you can learn that needing which obtains from memory Rule verification script.
Step S12: using rule verification script, whether verification business datum meets business rule defined in script.
Executing rule verifies script, and the algorithm in script can verify business datum according to business rule, and obtain Check results.Check results may include, but be not limited to the mark of verified product, verify the mark of the business rule used, The contents such as the check results of business rule and its description.
Step S13: the check results of acquisition are returned into business side 200.
After obtaining check results, check results are back to business side 200, so that business side 200 can continue to execute industry Business logic.
In the above method and device, the code for business rule verification writes in rule verification script and business generation Coupled relation is not present in code, consequently facilitating rule verification script is during service provider 300 provides rule verification service Carry out dynamic update, flexibility with higher and scalability.The script of rule verification simultaneously is buffered in memory, is advised Script is obtained when then verifying directly from memory and is executed, the efficiency of rule verification is significantly improved, is conducive to business function It is normal to execute.In addition, the realization of this method checking procedure is fairly simple, user only needs to configure corresponding rule verification script i.e. Can, these scripts can be used common such as JavaScript scripting language and be write, and be easy to learning and mastering, later maintenance Cost is relatively low.
In actual business rule checking procedure, other than business datum, other data can be also used sometimes.Example Such as, some insurance products limits purchase three times to same client, it means that needs to obtain the history declaration form number of the client in verification According to judging whether it repeatedly bought the product, these historical datas are simultaneously not belonging to current business datum.Therefore, exist In one embodiment of the present of invention, before step S12 execution, if it is determined that this verification needs use in addition to business datum Other data, first these data can be obtained from other channels, to complete to verify.
In one embodiment of the invention, step S12 execution before, business datum can also be formatted with And encapsulation, convert business datum to the form for being suitable for rule verification script processing.After the formal Specification of business datum, favorably In the design for simplifying business rule, accelerate the speed verified to business datum.
Typically, multiple business rules can be all verified for each single item business, it in one embodiment of the invention, can Using the multiple business rule tissues that will need to verify as rule chain, and pre-configured in rule verification script can be used One or more rule chains.Rule chain to be used, service provider 300 are right when can specify verification in rule verification request After request is parsed, it will acquire the rule chain specified in request and business datum verified.
Each business rule in rule chain can successively be verified according to link sequence, be speed up processing, In a kind of implementation of the present embodiment, rule chain can also be divided into multiple regular pieces, each rule piece includes meta-rule A part of business rule of chain.In verification, parallel check can be carried out to multiple regular pieces, using each regular piece as one Independent task successively verifies whether business datum meets each business rule in the rule piece, finally by multiple regular pieces Check results summarize together, as the check results to rule chain.It should be understood that ensure that each regular piece can be simultaneously Row verification, needs to guarantee that the business rule in Different Rule piece is independent from each other, and there is no dependences (in same rule piece Business rule can have dependence).To realize parallel computation, it can use some distributed computing frames in the prior art Frame, such as Hadoop, Spark etc..
Although may be noted that can in rule verification script definition rule chain, can also be in rule verification request Predefined rule chain is not specified, but directly specifies the business rule verified, to improve the flexibility of verification.
In one embodiment of the invention, rule verification also has white list mechanism.For example, certain insurance products limits Warrantee has to be larger than 30 years old at the age, and the client age for currently buying the product is 29 years old, and according to normal flow, which can not It is verified by business rule.But service logic, after the declaration form data of analysis existing customer, discovery existing customer is top-tier customer, Can suitably reduce client purchase limitation, although such as the age slightly below require, also allow the client to buy the insurance products. At this point it is possible to which a white list is arranged, current number of policy and corresponding age limit rule are added in the white list, When the verification to current declaration form data goes to age limit rule, the rule is directly skipped, i.e., not to the business rule It is verified.
In short, in the present embodiment, for step S13, only when business rule is not in the corresponding white list of business datum When middle, just it can verify whether business datum meets business rule.Business rule verification is significantly enhanced by the way that white list is arranged Flexibility and practicability.
Business rule in rule verification script may need to adjust in use, or send out in use Business rule in existing script needs to correct there are mistake.It in one embodiment of the invention, can be dynamically to regular school It tests script to be updated, as shown in the step S14 and step S15 of Fig. 4.So-called dynamic update refers to be operated normally in regulation engine Change rule verification script in the process, does not need the execution that service logic is not influenced or have little influence on to halt system service. It is specific as follows:
Step S14: it receives script and updates request;
Script updates request can be initiated by any object that can be interacted with service provider 300, such as can be with business side 200 initiate, and can also be initiated by business rule designer.Script, which updates, carries new rule verification script in request.
For example, in one implementation, service provider 300 can provide script by way of interface and update clothes Business, under this implementation, script update request is actually that an interface calls, and new rule is verified foot by caller This passes to service provider 300 as a call parameters of script more new interface.
Step S15: updating according to script and request, with new rule verification script replace in multiple rule verification scripts with The corresponding old rule verification script of new rule verification script.
It can specify the script for needing to be replaced in request for example, updating in script, service provider 300 passes through parsing foot This update request is assured that out old rule verification script corresponding with new rule verification script, and then completes replacement. In replacement, it is necessary first to the script file on the storage mediums such as hard disk is updated, simultaneously because rule verification script is buffered It will be cached in memory to memory so also needing to load new rule verification script from storage medium and cache to memory Old rule verification script also synchronously replace.
In some implementations, after script file is updated, it can't load and be cached into memory immediately, service mentions All script files of 300 periodic scanning of supplier are loaded it and are cached to memory when scanning has update to script file, Replace corresponding rule verification script.In such implementation, if new rule verification script fails to be loaded in time, And the rule verification request received specifies new rule and verifies script, can attempt add before carrying out regular verification Carry specified script (because can not find the script in memory at this time).
It is the process that script updates above, in some cases it is also possible to increase new rule verification script or deletion Old rule verification script, processing mode is similar with update, is no longer specifically described here.
The embodiment of the present invention also provides a kind of regular calibration equipment 400, which is applied to be handed over business side 200 Mutual service provider 300.Fig. 5 shows the functional block diagram of regular calibration equipment 400, and referring to Fig. 5, which includes:
Request receiving module 410 is verified, for receiving rule verification request from business side, is carried in rule verification request The business datum verified;
Request management module 420 is verified, for obtaining the regular school being cached in memory in advance according to rule verification request Test script;
Regular correction verification module 430, for using rule verification script, whether verification business datum to meet defined in script Business rule;
As a result feedback module 440, the check results for that will obtain return to business side.
The technical effect of rule calibration equipment 400 provided in an embodiment of the present invention, realization principle and generation is in aforementioned side By the agency of in method embodiment, to briefly describe, Installation practice part does not refer to that place, the method for can refer to are applied in corresponding in example Hold.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program instruction when computer program instructions are read out by the processor and run, executes method provided in an embodiment of the present invention Step.The computer readable storage medium can be implemented as, but be not limited to storage device 104 shown in fig. 1.
The embodiment of the present invention also provides a kind of electronic equipment, including memory and processor, is stored with meter in memory Calculation machine program instruction when computer program instructions are read out by the processor and run, executes method provided in an embodiment of the present invention Step.The electronic equipment can be implemented as, but be not limited to electronic equipment 100 shown in fig. 1.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through it His mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are aobvious The device of multiple embodiments according to the present invention, architectural framework in the cards, the function of method and computer program product are shown It can and operate.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part of the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in computer-readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer Software product is stored in a storage medium, including some instructions are used so that computer equipment executes each embodiment institute of the present invention State all or part of the steps of method.Computer equipment above-mentioned includes: personal computer, server, mobile device, intelligently wears The various equipment with execution program code ability such as equipment, the network equipment, virtual unit are worn, storage medium above-mentioned includes: U Disk, mobile hard disk, read-only memory, random access memory, magnetic disk, tape or CD etc. are various to can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of rule method of calibration, which is characterized in that be applied to service provider, which comprises
Rule verification request is received from business side, carries the business datum in need verified in the rule verification request;
According to the rule verification request, the rule verification script being cached in memory in advance is obtained;
Script is verified using the rule, verifies whether the business datum meets business rule defined in script;
The check results of acquisition are returned into the business side.
2. rule method of calibration according to claim 1, which is characterized in that the acquisition is cached in the rule in memory in advance Then verify script, comprising:
From it is pre-loaded and be cached in memory it is multiple rule verification scripts in obtain with it is described rule verification request it is matched Rule verification script.
3. rule method of calibration according to claim 2, which is characterized in that the rule verification script is JavaScript Script, the running environment that script is loaded are Nashorn script engine or Rhino script engine.
4. rule method of calibration according to claim 1, which is characterized in that script is verified using the rule described, It verifies before whether the business datum meet business rule defined in script, the method also includes:
Acquisition needs other data to be used in the checking procedure of the business datum.
5. rule method of calibration according to claim 1, which is characterized in that script is verified using the rule described, It verifies before whether the business datum meet business rule defined in script, the method also includes:
The business datum is formatted and is encapsulated, converts the business datum to suitable for the rule verification script The form of processing.
6. rule method of calibration according to claim 1, which is characterized in that described to verify script, school using the rule Test whether the business datum meets business rule defined in script, comprising:
According to the rule verification request, from obtained at least one rule chain predetermined in the rule verification script with Matched rule chain is requested in the rule verification, wherein includes multiple business rules in each rule chain;
Successively verify whether the business datum meets each business rule in the matched rule chain.
7. rule method of calibration according to claim 6, which is characterized in that described whether successively to verify the business datum Meet each business rule in the matched rule chain, comprising:
The matched rule chain is divided into the multiple regular pieces that can independently verify, wherein wrap in each rule piece Include at least one business rule;
Parallel check is carried out to the multiple regular piece, whether the business datum, which meets the rule, is successively verified to each regular piece Then each business rule in piece;
Summarize the check results of the multiple regular piece.
8. rule method of calibration according to claim 1, which is characterized in that whether the verification business datum meets Business rule defined in script, comprising:
If the business rule in the corresponding white list of the business datum, does not verify whether the business datum meets script Defined in business rule.
9. rule method of calibration according to claim 2 or 3, which is characterized in that the method also includes:
It receives script and updates request, the script, which updates, carries new rule verification script in request;
Updated and requested according to the script, with the new rule verification script replace in the multiple rule verification script with The new corresponding old rule of rule verification script verifies script.
10. a kind of rule calibration equipment, which is characterized in that be applied to service provider, described device includes:
Request receiving module is verified, for receiving rule verification request from business side, carrying in the rule verification request is needed The business datum verified;
Request management module is verified, for obtaining the rule verification being cached in memory in advance according to the rule verification request Script;
Whether regular correction verification module verifies the business datum and meets in script and define for verifying script using the rule Business rule;
As a result feedback module, the check results for that will obtain return to the business side.
CN201811217771.0A 2018-10-18 2018-10-18 Regular method of calibration and device Pending CN109377393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811217771.0A CN109377393A (en) 2018-10-18 2018-10-18 Regular method of calibration and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811217771.0A CN109377393A (en) 2018-10-18 2018-10-18 Regular method of calibration and device

Publications (1)

Publication Number Publication Date
CN109377393A true CN109377393A (en) 2019-02-22

Family

ID=65401037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811217771.0A Pending CN109377393A (en) 2018-10-18 2018-10-18 Regular method of calibration and device

Country Status (1)

Country Link
CN (1) CN109377393A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471969A (en) * 2019-07-30 2019-11-19 北京恒赢智航科技有限公司 A kind of aeronautical product management system and its application method using regulation engine
CN110888646A (en) * 2019-11-28 2020-03-17 京东数字科技控股有限公司 Deployment method, device, system and storage medium
CN111339136A (en) * 2020-02-19 2020-06-26 中国建设银行股份有限公司 Data checking method and device, electronic equipment and storage medium
CN111338817A (en) * 2020-02-21 2020-06-26 中国农业银行股份有限公司 Interface preprocessing method and device
CN111427789A (en) * 2020-03-26 2020-07-17 平安医疗健康管理股份有限公司 Method, apparatus, computer device and storage medium for automatically verifying rules
CN111428132A (en) * 2020-03-18 2020-07-17 腾讯科技(深圳)有限公司 Data verification method and device, computer storage medium and electronic equipment
CN111722847A (en) * 2020-06-18 2020-09-29 国网电子商务有限公司 Data verification method and device based on rule engine
CN111930783A (en) * 2020-07-09 2020-11-13 北京皮尔布莱尼软件有限公司 Monitoring method, monitoring system and computing device
CN112463785A (en) * 2020-12-08 2021-03-09 中国人寿保险股份有限公司 Data quality monitoring method and device, electronic equipment and storage medium
CN112488855A (en) * 2020-11-23 2021-03-12 中国人寿保险股份有限公司 Business verification method and equipment based on rule template
CN112765138A (en) * 2021-01-11 2021-05-07 北京洛塔信息技术有限公司 Distributed service data verification system, method and device
CN113535146A (en) * 2021-07-14 2021-10-22 浙江集享电子商务有限公司 Rule checking method and device, electronic device and storage medium
CN113608913A (en) * 2021-08-05 2021-11-05 上海微盟企业发展有限公司 Parameter checking method, system, device and storage medium
CN114666399A (en) * 2022-03-08 2022-06-24 北京沃东天骏信息技术有限公司 Service request verification method, device, equipment and storage medium
CN117216063A (en) * 2023-09-13 2023-12-12 建信人寿保险股份有限公司 Data verification method, device, equipment, medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544074A (en) * 2012-07-09 2014-01-29 阿里巴巴集团控股有限公司 Method and device for verifying service
US8805950B1 (en) * 2007-09-12 2014-08-12 Aol Inc. Client web cache
CN104182234A (en) * 2014-08-25 2014-12-03 杭州华为数字技术有限公司 Business processing method and business system
CN105760976A (en) * 2014-12-17 2016-07-13 阿里巴巴集团控股有限公司 Method and system for service verification
CN106027644A (en) * 2016-05-18 2016-10-12 广州市忆科计算机系统有限公司 Service checking method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8805950B1 (en) * 2007-09-12 2014-08-12 Aol Inc. Client web cache
CN103544074A (en) * 2012-07-09 2014-01-29 阿里巴巴集团控股有限公司 Method and device for verifying service
CN104182234A (en) * 2014-08-25 2014-12-03 杭州华为数字技术有限公司 Business processing method and business system
CN105760976A (en) * 2014-12-17 2016-07-13 阿里巴巴集团控股有限公司 Method and system for service verification
CN106027644A (en) * 2016-05-18 2016-10-12 广州市忆科计算机系统有限公司 Service checking method and system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471969A (en) * 2019-07-30 2019-11-19 北京恒赢智航科技有限公司 A kind of aeronautical product management system and its application method using regulation engine
CN110888646B (en) * 2019-11-28 2021-11-12 京东数字科技控股有限公司 Deployment method, device, system and storage medium
CN110888646A (en) * 2019-11-28 2020-03-17 京东数字科技控股有限公司 Deployment method, device, system and storage medium
CN111339136A (en) * 2020-02-19 2020-06-26 中国建设银行股份有限公司 Data checking method and device, electronic equipment and storage medium
CN111338817A (en) * 2020-02-21 2020-06-26 中国农业银行股份有限公司 Interface preprocessing method and device
CN111338817B (en) * 2020-02-21 2023-11-03 中国农业银行股份有限公司 Interface preprocessing method and device
CN111428132B (en) * 2020-03-18 2023-09-19 腾讯科技(深圳)有限公司 Data verification method and device, computer storage medium and electronic equipment
CN111428132A (en) * 2020-03-18 2020-07-17 腾讯科技(深圳)有限公司 Data verification method and device, computer storage medium and electronic equipment
CN111427789A (en) * 2020-03-26 2020-07-17 平安医疗健康管理股份有限公司 Method, apparatus, computer device and storage medium for automatically verifying rules
CN111722847A (en) * 2020-06-18 2020-09-29 国网电子商务有限公司 Data verification method and device based on rule engine
CN111930783A (en) * 2020-07-09 2020-11-13 北京皮尔布莱尼软件有限公司 Monitoring method, monitoring system and computing device
CN112488855A (en) * 2020-11-23 2021-03-12 中国人寿保险股份有限公司 Business verification method and equipment based on rule template
CN112488855B (en) * 2020-11-23 2024-02-13 中国人寿保险股份有限公司 Business verification method and device based on rule template
CN112463785A (en) * 2020-12-08 2021-03-09 中国人寿保险股份有限公司 Data quality monitoring method and device, electronic equipment and storage medium
CN112463785B (en) * 2020-12-08 2024-04-16 中国人寿保险股份有限公司 Data quality monitoring method and device, electronic equipment and storage medium
CN112765138A (en) * 2021-01-11 2021-05-07 北京洛塔信息技术有限公司 Distributed service data verification system, method and device
CN113535146A (en) * 2021-07-14 2021-10-22 浙江集享电子商务有限公司 Rule checking method and device, electronic device and storage medium
CN113608913A (en) * 2021-08-05 2021-11-05 上海微盟企业发展有限公司 Parameter checking method, system, device and storage medium
CN114666399A (en) * 2022-03-08 2022-06-24 北京沃东天骏信息技术有限公司 Service request verification method, device, equipment and storage medium
CN117216063A (en) * 2023-09-13 2023-12-12 建信人寿保险股份有限公司 Data verification method, device, equipment, medium and program product

Similar Documents

Publication Publication Date Title
CN109377393A (en) Regular method of calibration and device
US11169903B2 (en) Risk-based software validation and change control
US9009183B2 (en) Transformation of a system change set from machine-consumable form to a form that is readily consumable by a human
US10284634B2 (en) Closed-loop infrastructure orchestration templates
CN104657255B (en) Computer implemented method and system for monitoring information technological system
US11200045B1 (en) Digital twin enabled asset performance and upgrade management
JP2019179575A (en) Dynamic graph performance monitoring
KR102404170B1 (en) Dynamic component performance monitoring
US10078579B1 (en) Metrics-based analysis for testing a service
US9448851B2 (en) Smarter big data processing using collaborative map reduce frameworks
CN108664289B (en) Service data processing method and terminal equipment
CN109460546A (en) List generation method, device and electronic equipment
WO2021111235A1 (en) Microservices change management and analytics
US11106572B2 (en) Progressive regression impact management for code changes in a computer program
US11775517B2 (en) Query content-based data generation
CN109447443A (en) Index calculating method and device
US11693858B2 (en) Access path optimization
CN105302556A (en) Calculation realization method and system and server apparatus
US11182272B2 (en) Application state monitoring
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
US20120203744A1 (en) Maintaining data integrity across execution environments
US20230086307A1 (en) Data transformation and quality checking
US20230177052A1 (en) Performance of sql execution sequence in production database instance
US20230105062A1 (en) Enhancing applications based on effectiveness scores
US20140082627A1 (en) Parallel compute framework

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190222