CN110471934A - Method of calibration, device, medium and the electronic equipment of business datum - Google Patents

Method of calibration, device, medium and the electronic equipment of business datum Download PDF

Info

Publication number
CN110471934A
CN110471934A CN201910764116.5A CN201910764116A CN110471934A CN 110471934 A CN110471934 A CN 110471934A CN 201910764116 A CN201910764116 A CN 201910764116A CN 110471934 A CN110471934 A CN 110471934A
Authority
CN
China
Prior art keywords
rule
insuring
business datum
node
insurance products
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
CN201910764116.5A
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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group 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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201910764116.5A priority Critical patent/CN110471934A/en
Publication of CN110471934A publication Critical patent/CN110471934A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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 provides a kind of methods of calibration of business datum, this method comprises: calling the rule of insuring of insurance products according to business datum, the rule of insuring is stored in the node or multiple nodes of zookeeper cluster;According to the rule of insuring, business datum is verified, and return to the check results of the business datum, since the rule of insuring of insurance products is stored in the node of zookeeper cluster, so can call directly, without calling IBM-ILOG by webservice mode, therefore, the method of calibration for the business datum that the disclosure provides can respond rapidly to the case where encountering high concurrent, that is to say, that this method can support high concurrent and respond rapid performance.The present invention also provides a kind of calibration equipment of business datum, medium and electronic equipments.

Description

Method of calibration, device, medium and the electronic equipment of business datum
Technical field
The present invention relates to the technical fields of adjuster, method of calibration, dress in particular to a kind of business datum It sets, medium and electronic equipment.
Background technique
Currently, insurance company can obtain customer resources by internet.For example, many clients can by wechat, Webpage, APP carry out operation of insuring, and when insuring, rear end needs the information inputted on wechat, webpage, APP to client to sentence It is disconnected, in order to judge whether the client meets the condition insured.Generally, when client insures, rear end can pass through tune With regulation engine, the essential information of client is judged.For example, being judged by IBM-ILOG rule of insuring, with this Mode can all be concentrated through the systematic rule of insuring of institute one rule engine system centralized processing rule, advantage be if Modifying all systems of rule of insuring can come into force simultaneously.The disadvantage is that calling IBM-ILOG is the side by webservice Formula, when the number of concurrent of calling is more than certain threshold value, system response will be overtime, so that system is difficult to support high concurrent and response Rapid performance.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
In view of this, the disclosure provides method of calibration, device and the medium of a kind of business datum, and then at least partly solve One or more problem caused by the limitation and defect determined due to the relevant technologies.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
A kind of method of calibration of business datum according to a first aspect of the embodiments of the present invention, this method comprises: the business of acquisition Data;The rule of insuring of insurance products is called according to the business datum, the rule of insuring is stored in zookeeper cluster In one node or multiple nodes;According to the rule of insuring, business datum is verified, and returns to the business datum Check results, the Configuration Type of the node in the zookeeper cluster are master slave mode.
In some embodiments of the invention, this method further include: in the zookeeper cluster, when host node goes out When now abnormal, one is automatically selected from node as host node.
In some embodiments of the invention, this method further include: if in host node an insurance products rule of insuring It is modified, then the rule of insuring based on Policy Updates insurance products from node of insuring modified in the host node is described It is identical as the rule of insuring before being modified in the host node from the rule of insuring of insurance products in node.
In some embodiments of the invention, the rule packet of insuring of the insurance products is called according to the business datum It includes: the business datum being parsed using regular engineering, the rule encoding of the insurance products is obtained, according to the rule Coding calls the rule of insuring of the insurance products, and the rule engineering uses the deployment way of multinode.
In some embodiments of the invention, this method comprises: by the rule of insuring of the insurance products with binary tree Mode is stored.
In some embodiments of the invention, this method further include: according to the extension of the quantity of insurance products The quantity of zookeeper in zookeeper cluster.
A kind of calibration equipment of business datum is provided according to a second aspect of the embodiments of the present invention, which includes: to obtain Modulus block, for obtaining business datum;Calling module, for it is described according to business datum call insurance products rule of insuring, The rule of insuring is stored in the node or multiple nodes of zookeeper cluster;Correction verification module, for according to the throwing Rule is protected, business datum is verified, and return to the check results of the business datum, in the zookeeper cluster The Configuration Type of node is master slave mode.
In some embodiments of the invention, the device further include: selecting module, in the zookeeper cluster, when When host node occurs abnormal, one is automatically selected from node as host node.
In some embodiments of the invention, the device further include: modified module, in the zookeeper cluster, such as The rule of insuring of an insurance products is modified in fruit host node, then based in the host node it is modified insure Policy Updates from The rule of insuring of insurance products in node, it is described before being modified in insure rule and the host node of insurance products in node Rule of insuring is identical.
In some embodiments of the invention, calling module includes: parsing module, using regular engineering to the business number According to being parsed, the rule encoding of the insurance products is obtained;Submodule is called, for according to rule encoding calling The rule of insuring of insurance products, the rule engineering use the deployment way of multinode.
In some embodiments of the invention, which includes: memory module, for by the rule of insuring of the insurance products Then stored in a manner of binary tree.
In some embodiments of the invention, device further include: expansion module extends institute according to the quantity of insurance products State the quantity of zookeeper in zookeeper cluster.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: one or more processors; Storage device, for storing one or more programs, when one or more of programs are held by one or more of processors When row, so that one or more of processors realize the verification side of the business datum as described in first aspect in above-described embodiment Method.
According to a fourth aspect of the embodiments of the present invention, a kind of computer-readable medium is provided, computer is stored thereon with Program realizes the verification side of the business datum as described in first aspect in above-described embodiment when described program is executed by processor Method.
The method of calibration of business datum provided in an embodiment of the present invention can include the following benefits:
In the technical solution provided by some embodiments of the present invention, insurance products can be called according to business datum It insures rule, the rule of insuring is stored in the node or multiple nodes of zookeeper cluster, according to the rule of insuring Business datum can then be verified, and return to the check results of the business datum, due to the rule of insuring of insurance products It is stored in the node of zookeeper cluster, it is possible to call directly, without calling IBM- by webservice mode ILOG, therefore, the method for calibration for the business datum that the disclosure provides can be responded rapidly to the case where encountering high concurrent, that is, Say that this method can support high concurrent and respond rapid performance.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 is shown can be using the method for calibration of the business datum of the embodiment of the present invention or the calibration equipment of business datum Exemplary system architecture 100 schematic diagram;
Fig. 2 diagrammatically illustrates the flow chart of the method for calibration of the business datum of embodiment according to the present invention;
Fig. 3 diagrammatically illustrates the flow chart of the method for calibration of business datum according to another embodiment of the invention;
Fig. 4 diagrammatically illustrates the schematic diagram of the storage mode of the rule of insuring of embodiment according to the present invention;
Fig. 5 diagrammatically illustrates the scene figure of the method for calibration of the business datum of embodiment according to the present invention;
Fig. 6 diagrammatically illustrates the block diagram of the calibration equipment of the business datum of embodiment according to the present invention;
Fig. 7 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention;
Fig. 8 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention;
Fig. 9 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention;
Figure 10 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention;
Figure 11 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention;
Figure 12 shows the structural schematic diagram for being suitable for the computer system for the electronic equipment for being used to realize the embodiment of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
Fig. 1 is shown can be using the method for calibration of the business datum of the embodiment of the present invention or the calibration equipment of business datum Exemplary system architecture 100 schematic diagram.
As shown in Figure 1, system architecture 100 may include one of client 101,102,103 or a variety of, network 104 With server 105.Network 104 between client 101,102,103 and server 105 to provide the medium of communication link. Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
It should be understood that the number of client, network and server in Fig. 1 is only schematical.According to realize needs, It can have any number of client, network and server.For example server 105 can be the service of multiple server compositions Device cluster etc..
User can be used client 101,102,103 and be interacted by network 104 with server 105, to receive or send Message etc..Client 101,102,103 can be the various electronic equipments with display screen, including but not limited to smart phone, Tablet computer, portable computer and desktop computer etc..
Server 105 can be to provide the server of various services.For example, server 105 can receive client 103 The business datum that (being also possible to client 101 or 102) sends, then can call insuring for insurance products according to business datum Rule, the rule of insuring are stored in the node or multiple nodes of zookeeper cluster, can according to the rule of insuring To verify to business datum, and the check results of the business datum are returned to, due to the rule storage of insuring of insurance products In the node of zookeeper cluster, it is possible to call directly, without calling IBM- by webservice mode Therefore ILOG can be responded rapidly to the case where encountering high concurrent.
In some embodiments, the method for calibration of business datum provided by the embodiment of the present invention is generally by server 105 It executes or is executed by server cluster, correspondingly, the method for calibration of business datum is generally positioned in server 105 or services In device cluster.In further embodiments, certain terminals can have function similar with server thereby executing this method.Cause This, the method for calibration of business datum provided by the embodiment of the present invention is not limited to server end execution.
Fig. 2 diagrammatically illustrates the flow chart of the method for calibration of the business datum of embodiment according to the present invention.
As shown in Fig. 2, the method for calibration of business datum includes step S201~step S203.
In step s 201, business datum is obtained.
In step S202, the rule of insuring of insurance products is called according to business datum, the rule of insuring is stored in In one node of zookeeper cluster or multiple nodes.
In step S203, according to the rule of insuring, business datum is verified, and return to the business datum Check results.
This method can call the rule of insuring of insurance products according to business datum, and the rule of insuring is stored in In one node of zookeeper cluster or multiple nodes, business datum can be verified according to the rule of insuring, and The check results for returning to the business datum, since the rule of insuring of insurance products is stored in the node of zookeeper cluster, So can call directly, without calling IBM-ILOG by webservice mode, therefore, the business number that the disclosure provides According to method of calibration can be responded rapidly to the case where encountering high concurrent, that is to say, that this method can support high concurrent and response Rapid performance.
In one embodiment of the invention, a node of above-mentioned zookeeper cluster or multiple nodes can refer to one Platform server or multiple servers, that is to say, that a server or more clothes can be disposed in above-mentioned zookeeper cluster Business device.Therefore the method for calibration of above-mentioned business datum can be executed by a server, can also be executed by multiple servers.
In one embodiment of the invention, above-mentioned business datum can be the information that client inputs on the client.Example Such as, which can include but is not limited to age at issue, occupation, warrantee's name, insure insured amount, total premium, insurer's name Etc..
In one embodiment of the invention, after server receives business datum, it parse To JSON parameter.For example, JSON parameter can for AGE, OCCUPATION, PREM, INSURED, HOLDER, AMNT, RULEINFO.Wherein, AGE represents age at issue, OCCUPATION represents occupation coding, PREM represents total premium, INSURED generation Table warrantee, HOLDER represent insurer, AMNT represents the insured amount, RULEINFO that insures and represents the rule encoding called.Server Rule of insuring can be called according to the value of RULEINFO.
In one embodiment of the invention, in zookeeper insure rule can be by the guarantor in the form of KEY--VALUE It deposits, specific as shown in table 1:
Table 1
In one embodiment of the invention, key value in table 1 above can be insurance products coding, rule encoding, Jump rule encoding.For example, insurance products are encoded to A000001, rule encoding is 000001~000010, jumps rule encoding It is 000001~000010.It should be noted that jumping rule encoding can refer to when the corresponding rule of insuring of a certain rule encoding When verification failure, it can continue to verify according to jumping rule encoding and jumping to next verification step.For example, rule encoding is 000001, corresponding value value is AGE < 60, but the age at issue in business datum is 70 at this time, it is clear that verification failure, In such a case, it is possible to continue to verify according to rule encoding (for example, 000002) is jumped.
In one embodiment of the invention, value value in table 1 above can be the condition of jumping and Rule of judgment. The condition of jumping can be true and false.Wherein, true can refer to that core is protected successfully, and false can refer to that core protects failure.Judge item Part can refer to that insurance products encode Rule of judgment corresponding with rule encoding, for example, (1) age at issue, less than 60 years old, (2) insure The occupation of people cannot be high-risk occupation, and the range of high-risk occupation is underground mining coal industry, high altitude operation, explosion industry, and (3) insure premium 1000 yuan cannot be greater than, (4) insurer and beneficiary cannot be same people, and (5) are accumulative insured amount no more than 500,000.
In one embodiment of the invention, the rule of insuring of above-mentioned insurance products can be used for judging client in client Whether the information of upper input meets the condition of insuring.For example, a product of insuring is A001, the rule of insuring of this product is as follows:
(1) age at issue was less than 60 years old.
(2) occupation of insurer cannot be high-risk occupation, and the range of high-risk occupation is underground mining coal industry, high altitude operation, quick-fried Broken industry.
(3) premium of insuring cannot be greater than 1000 yuan.
(4) insurer and beneficiary cannot be same people.
(5) add up insured amount no more than 500,000.
Based on aforementioned schemes, the rule of insuring of insurance products A001 can be stored in a manner of binary tree, such as Fig. 4 It is shown.
With reference to Fig. 4, the coding A000001, value that the key in root node can be insurance products can be age at issue Less than 60 years old, child node, which can refer to jump, insured rule and jumps condition.For example, the age at issue in business datum is 70, show It so is unsatisfactory for the rule of insuring of root node, to jump to next rule of insuring, and back-checking is as a result, jump to sub- section Point.Key in child node can be rule encoding 000001, value can be return check results (for example, core protects failure, That is FALSE).Above-mentioned five rules of insuring can store it in a manner of binary tree by this method, such storage Mode facilitates calling, and in entire deterministic process also than smoother.
In one embodiment of the invention, the Configuration Type of the node in above-mentioned zookeeper cluster is master slave mode. For example, multiple servers are disposed in zookeeper cluster, it can be using a server in multiple servers as main service Device, using other servers as from server, such configuration mode can prevent primary server from delaying because amount of access is too high Machine.
In one embodiment of the invention, the above method further include: in zookeeper cluster, when host node occurs When abnormal, one is automatically selected from node as host node.In this example, host node can refer to primary server, can from node To refer to from server.When primary server because amount of access too it is high there is delay machine situation when, can be automatic in zookeeper cluster It selects one and switches to primary server from server, can guarantee the stability of system in this way.
In one embodiment of the invention, the above method further include: in zookeeper cluster, if host node one The rule of insuring of insurance products is modified, then production is insured from node based on modified Policy Updates of insuring in the host node The rule of insuring of product, insure rule and the regular phase of insuring before modification in the host node from insurance products in node Together.For example, in zookeeper cluster, if be modified to the rule of insuring in primary server, from server The modified rule of insuring that identical rule of insuring will be automatically updated into primary server with the rule of insuring.Specifically, main The rule 00001 of insuring of insurance products A000001 in server is modified to rule 00002 of insuring, in this case, from The rule 00001 of insuring of insurance products A000001 in server is revised as rule 00002 of insuring automatically, without passing through people Work point is other to modify to from the rule 00001 of insuring of the insurance products A000001 in server, and reduces human cost.
Fig. 3 diagrammatically illustrates the flow chart of the method for calibration of business datum according to another embodiment of the invention.
As shown in figure 3, above-mentioned steps 202 can specifically include step S301 and step S302.
In step S301, the business datum is parsed using regular engineering, obtains the rule of the insurance products Then encode.
In step s 302, the rule of insuring of the insurance products, the rule engineering are called according to the rule encoding Using the deployment way of multinode.
This method can use regular engineering and parse to the business datum, and the rule for obtaining the insurance products is compiled Code, the rule of insuring of the insurance products is called according to the rule encoding, wherein regular engineering uses the deployment side of multinode Formula, it is traffic engineered in this way pressure to be evenly distributed in calling rule engineering in these regular engineerings, to allow system It can bear more pressure.
In some embodiments of the invention, this method further include: according to the extension of the quantity of insurance products The quantity of zookeeper in zookeeper cluster.For example, the quantity of insurance products can be the data without insurance products, It can be the quantity of identical insurance products.That is, insurance products are more, it is corresponding with the insurance products to insure rule more More, correspondingly, the quantity of zookeeper is more, it is understood that for server data it is more, can guarantee in this way be It unites extending transversely.
Fig. 5 diagrammatically illustrates the scene figure of the method for calibration of the business datum of embodiment according to the present invention.
As shown in figure 5, regular engineering uses the deployment way of multinode, respectively regular 1~rule of engineering engineering 4. The traffic engineered deployment way that can also use multinode may be implemented pressure to be evenly distributed to each regular engineering in this way In, to allow system that can bear more pressure.
In one embodiment of the invention, the above-mentioned traffic engineered operation system that can indicate to need calling rule, rule Then engineering can indicate the algorithm of the business datum calling rule uploaded according to operation system.For example, operation system can be with For receiving the business datum of client upload, and algorithm is sent by the business datum, receives industry in algorithm After data of being engaged in, it is parsed, obtains rule encoding, and insuring in zookeeper cluster is called according to rule encoding Check results are finally returned to operation system by rule, and check results are returned to client by operation system.
The business datum is sent to after traffic engineered 1 receives the business datum that client uploads with reference to Fig. 5 Regular engineering 1 parses it after regular engineering 1 receives business datum, obtains rule encoding, and according to rule Coding calls the rule of insuring of zookeeper cluster interior joint 1, check results is finally returned to traffic engineered 1, and by business Check results are returned to client by engineering 1.
Specifically, traffic engineered 1 the JSON data of verification rule are passed in regular engineering 1, for example, typing JSON parameter It is as follows:
{ " AGE ": " 20 ", " OCCUPATION ": " 05 ", " PREM ": " 100 ", " INSURED ": " Zhang San
", " HOLDER ": " Zhang San ", " AMNT ": " 600000 " " RULEINFO ": " A000001 " }
Wherein AGE represents age at issue, OCCUPATION represents occupation coding, PREM represents total premium, INSURED is represented Warrantee, HOLDER represent insurer, AMNT represents the insured amount, RULEINFO that insures and represents the rule encoding called.
The value of RULEINFO is uploaded to zookeeper by regular engineering 1, and the rule tree of specific rules is found by the value. Then returned data, the data are as follows: [" KEY ": " 000001 ", " VALUE ": " { OCCUPATION } IN { " 01 ", " 02\",\"03\"}"},{"KEY":"000002","VALUE":"{VALUE}FALSE"},{"KEY":"000003","VAL UE":"{PREM}>1000"},{"KEY":"000004","VALUE":"{VALUE}FALSE"},{"KEY":"000005"," VALUE":"{INSURED}!={ HOLDER } " }, { " KEY ": " 000006 ", " VALUE ": " { VALUE }=FALSE " }, " KEY":"000007","VALUE":"{AMNT}<500000"}]。
In one embodiment of the invention, the specific implementation process of regular engineering 1 may include following steps:
(1) received parameter is as follows:
" AGE ": " 20 ", " OCCUPATION ": " 05 ", " PREM ": " 100 ", " INSURED ": " Zhang San ", " HOLDER ": " Zhang San ", " AMNT ": " 600000 " " RULEINFO ": " A000001 " }
Finding product code by RULEINFO field is A000001, and the inside is found in ZOOKEEPER by this value Rule is { AGE } > 60.It is 20 in the value of received AGE, is specific value by replacement { AGE }, is changed to 20 < 60, the expression formula Corresponding BOOLEAN value is TRUE.
It (2) is that A000001, CURRULEID are A000001 and CONDITION is by data base querying PRODUCTID The data of TRUE.And returned data, shown in specific table 2:
Table 2
ID PRODUCTID CURRULEID CONDITION NEXTRULEID CREATEDATE MODIFYDATE OPERATOR
1 A000001 A000001 TRUE 000001 2018-10-18 2018-10-18 SYS
According to the rule tree of the product, the rule encoding after rule encoding is A000001 is 000001.
(3) looked in ZOOKEEPER KEY be 000001 value, be worth for { OCCUPATION } NOT IN " 01 ", and " 02 ", " 03"}.The value of OCCUPATION is 05 in entering ginseng, by the value of replacement { OCCUPATION } expression formula be 05NOT IN " 01","02","03"}.The corresponding BOOLEAN value of the expression formula is TRUE.
It (4) is that A000001, CURRULEID are 000001 and CONDITION is by data base querying PRODUCTID The data of TRUE.And returned data, shown in specific table 3:
Table 3
ID PRODUCTID CURRULEID CONDITION NEXTRULEID CREATEDATE MODIFYDATE OPERATOR
3 A000001 000001 TRUE 000003 2018-10-18 2018-10-18 SYS
According to the rule tree of the product, the rule encoding after being 000001 in rule encoding is 000003.
(5) subsequent as preceding step judges.It should be noted that when rule encoding is 00005, due to " INSURED " It is all Zhang San with " HOLDER ", so the check results returned are FALSE.
(6) when rule is 000010, the data of return are as shown in table 4:
Table 4
ID PRODUCTID CURRULEID CONDITION NEXTRULEID CREATEDATE MODIFYDATE OPERATOR
20 A000001 000010 FALSE 2018-10-18 2018-10-18 SYS
The value obtained in ZOOKEEPER is that expression formula is { VALUE }=FALSE.It is directly returned when encountering the value Return FALSE.And NEXTRULEID is sky in database table, is illustrated not subsequent after rule encoding is 000100 rule Step.So the judging result for the rule that rule encoding is 000100 is FALSE.
Wherein, PRODUCTID is product coding, and CURRULEID is rule encoding, and CONDITION is to jump condition, NEXTRULEID is to jump rule encoding, and CREATEDATE is the creation time of rule, when MODIFYDATE is the modification of rule Between, OPERATOR is operator.
In the above-mentioned methods, since the rule of insuring of insurance products is stored in the node of zookeeper cluster, so can To call directly, without calling IBM-ILOG by webservice mode, therefore, the school for the business datum that the disclosure provides Proved recipe method can respond rapidly to the case where encountering high concurrent, that is to say, that this method can support high concurrent and response rapid Performance.
Fig. 6 diagrammatically illustrates the block diagram of the calibration equipment of the business datum of embodiment according to the present invention.
As shown in fig. 6, the calibration equipment 400 of business datum includes obtaining module 410, calling module 420 and correction verification module 430。
Specifically, module 410 is obtained, for obtaining business datum.
Calling module 420, for calling the rule of insuring of insurance products according to business datum, the rule of insuring is stored in In one node of zookeeper cluster or multiple nodes.
Correction verification module 420 verifies business datum for rule of insuring according to, and returns to the business number According to check results.
The calibration equipment 400 of the business datum can call the rule of insuring of insurance products, institute according to business datum Rule of insuring is stated to be stored in the node or multiple nodes of zookeeper cluster, it can be to industry according to the rule of insuring Business data are verified, and return to the check results of the business datum, since the rule of insuring of insurance products is stored in In the node of zookeeper cluster, it is possible to it calls directly, without calling IBM-ILOG by webservice mode, Therefore, the method for calibration for the business datum that the disclosure provides can respond rapidly to the case where encountering high concurrent, that is to say, that should Method can support high concurrent and respond rapid performance.
In accordance with an embodiment of the present disclosure, the calibration equipment 400 of above-mentioned business datum can be used to implement the description of Fig. 2 embodiment Business datum method of calibration.
Fig. 7 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention.
As shown in fig. 7, in addition to Fig. 6 embodiment description acquisition module 410, calling module 420 and correction verification module 430 it Outside, the calibration equipment 500 of business datum further includes selecting module 510.
Specifically, selecting module 510, when host node occurs abnormal, automatically select in the zookeeper cluster One from node as host node.
In the calibration equipment 500 of the business datum, when host node occurs abnormal, one is automatically selected from node conduct Host node.For example, host node can refer to primary server, can refer to from node from server.When primary server because amount of access is too high When there is delay machine situation, in zookeeper cluster, one can be selected automatically and switches to primary server from server, in this way It can guarantee the stability of system.
Fig. 8 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention.
As shown in figure 8, in addition to Fig. 6 embodiment description acquisition module 410, calling module 420 and correction verification module 430 it Outside, the calibration equipment 600 of business datum further includes modified module 610.
Specifically, modified module 610, in zookeeper cluster, if in host node an insurance products rule of insuring It is modified, then the rule of insuring based on Policy Updates insurance products from node of insuring modified in the host node is described It is identical as the rule of insuring before being modified in the host node from the rule of insuring of insurance products in node.
In the calibration equipment 600 of the business datum, if the rule of insuring of an insurance products is modified in host node, Rule of insuring based on Policy Updates insurance products from node of insuring modified in the host node.For example, In In zookeeper cluster, if be modified to the rule of insuring in primary server, from server with the rule of insuring The then modified rule of insuring that identical rule of insuring will be automatically updated into primary server.Specifically, in primary server The rule 00001 of insuring of insurance products A000001 is modified to rule 00002 of insuring, in this case, from server The rule 00001 of insuring of insurance products A000001 is revised as insuring rule 00002 automatically, without by it is artificial respectively to from The rule 00001 of insuring of insurance products A000001 in server is modified, and human cost is reduced.
Fig. 9 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention.
As shown in figure 9, above-mentioned calling module 420 includes parsing module 421 and calling submodule 422.
Specifically, parsing module 421 parse the business datum using regular engineering, obtain the insurance and produce The rule encoding of product.
Submodule 422 is called, for calling the rule of insuring of the insurance products, the rule according to the rule encoding Engineering uses the deployment way of multinode.
The calling module 420 can use regular engineering and parse to the business datum, obtain the insurance products Rule encoding, the rule of insuring of the insurance products is called according to the rule encoding, wherein regular engineering use multinode Deployment way, it is traffic engineered in this way pressure to be evenly distributed in calling rule engineering in these regular engineerings, from And allow system that can bear more pressure.
According to embodiment of the disclosure, above-mentioned calling module 420 can be used to implement the business datum of Fig. 3 embodiment description Method of calibration.
Figure 10 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention.
As shown in Figure 10, in addition to Fig. 6 embodiment description acquisition module 410, calling module 420 and correction verification module 430 it Outside, the calibration equipment 700 of business datum further includes memory module 710.
Specifically, memory module 710, for depositing the rule of insuring of the insurance products in a manner of binary tree Storage.
Figure 11 diagrammatically illustrates the block diagram of the calibration equipment of business datum according to another embodiment of the invention.
As shown in figure 11, in addition to Fig. 6 embodiment description acquisition module 410, calling module 420 and correction verification module 430 it Outside, the calibration equipment 800 of business datum further includes expansion module 810.
Specifically, expansion module 810 extend zookeeper in the zookeeper cluster according to the quantity of insurance products Quantity.
The calibration equipment 800 of the business datum can extend in the zookeeper cluster according to the quantity of insurance products The quantity of zookeeper can guarantee that system can be extending transversely in this way.
It is understood that obtaining module 410, calling module 420, parsing module 421, calling submodule 422, calibration mode Block 430, selecting module 510, modified module 610, memory module 710 and expansion module 810 may be incorporated in a module It realizes or any one module therein can be split into multiple modules.Alternatively, one or more moulds in these modules At least partly function of block can be combined at least partly function of other modules, and be realized in a module.According to this The embodiment of invention obtains module 410, calling module 420, parsing module 421, calls submodule 422, correction verification module 430, choosing Selecting at least one of module 510, modified module 610, memory module 710 and expansion module 810 can be at least by partly It is embodied as on hardware circuit, such as field programmable gate array (FPGA), programmable logic array (PLA), system on chip, substrate System, the system in encapsulation, specific integrated circuit (ASIC), can with to circuit carry out it is integrated or encapsulate any other The hardware such as rational method or firmware realize, or with software, three kinds of implementations of hardware and firmware it is appropriately combined come it is real It is existing.Alternatively, obtaining module 410, calling module 420, parsing module 421, calling submodule 422, correction verification module 430, selection mould At least one of block 510, modified module 610, memory module 710 and expansion module 810 can be at least at least partially implemented The function of corresponding module can be executed when the program is run by computer for computer program module.
Due to the modules of the calibration equipment of the business datum of example embodiments of the present invention can be used to implement it is above-mentioned The step of example embodiment of the method for calibration of the business datum of Fig. 2 and Fig. 3 description, therefore in apparatus of the present invention embodiment Undisclosed details please refers to the embodiment of the method for calibration of the above-mentioned business datum of the present invention.
Below with reference to Figure 12, it illustrates the computer systems for the electronic equipment for being suitable for being used to realize the embodiment of the present invention 900 structural schematic diagram.The computer system 900 of electronic equipment shown in Figure 12 is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.
As shown in figure 12, computer system 900 includes central processing unit (CPU) 901, can be read-only according to being stored in Program in memory (ROM) 902 or be loaded into the program in random access storage device (RAM) 903 from storage section 908 and Execute various movements appropriate and processing.In RAM 903, it is also stored with various programs and data needed for system operatio.CPU 901, ROM 902 and RAM 903 is connected with each other by bus 904.Input/output (I/O) interface 905 is also connected to bus 904。
I/O interface 905 is connected to lower component: the importation 906 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 907 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 908 including hard disk etc.; And the communications portion 909 of the network interface card including LAN card, modem etc..Communications portion 909 via such as because The network of spy's net executes communication process.Driver 910 is also connected to I/O interface 905 as needed.Detachable media 911, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 910, in order to read from thereon Computer program be mounted into storage section 908 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 909, and/or from detachable media 911 are mounted.When the computer program is executed by central processing unit (CPU) 901, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs When standby execution, so that the electronic equipment realizes the method for calibration such as above-mentioned business datum as described in the examples.
For example, the electronic equipment may be implemented as shown in Figure 2: in step s 201, according to business datum tune With the rule of insuring of insurance products, the rule of insuring is stored in the node or multiple nodes of zookeeper cluster;In In step S202, according to the rule of insuring, business datum is verified, and return to the check results of the business datum.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (8)

1. a kind of method of calibration of business datum, which is characterized in that this method comprises:
Obtain business datum;
The rule of insuring of insurance products is called according to the business datum, the rule of insuring is stored in zookeeper cluster In one node or multiple nodes;
According to the rule of insuring, business datum is verified, and returns to the check results of the business datum, it is described The Configuration Type of node in zookeeper cluster is master slave mode.
2. the method according to claim 1, wherein this method further include:
In the zookeeper cluster, when host node occurs abnormal, one is automatically selected from node as host node.
3. the method according to claim 1, wherein this method further include:
In the zookeeper cluster, if the rule of insuring of an insurance products is modified in host node, it is based on the master The rule of insuring of modified Policy Updates insurance products from node of insuring, the throwing of the insurance products from node in node It is identical as the rule of insuring before modifying in the host node to protect rule.
4. the method according to claim 1, wherein this method comprises:
The rule of insuring of the insurance products is stored in a manner of binary tree.
5. the method according to claim 1, wherein this method further include:
The quantity of zookeeper in the zookeeper cluster is extended according to the quantity of the insurance products.
6. a kind of calibration equipment of business datum, which is characterized in that the device includes:
Module is obtained, for obtaining business datum;
Calling module, for calling the rule of insuring of insurance products according to the business datum, the rule of insuring is stored in In one node of zookeeper cluster or multiple nodes;
Correction verification module verifies business datum for rule of insuring according to, and returns to the verification of the business datum As a result, the Configuration Type of the node in the zookeeper cluster is master slave mode.
7. a kind of electronic equipment, comprising:
One or more processors;And
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing When device executes, so that method described in the realization according to claim 1~any one of 5 of one or more of processors.
8. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is executed by processor Shi Shixian the method according to claim 1~any one of 5.
CN201910764116.5A 2019-08-19 2019-08-19 Method of calibration, device, medium and the electronic equipment of business datum Pending CN110471934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910764116.5A CN110471934A (en) 2019-08-19 2019-08-19 Method of calibration, device, medium and the electronic equipment of business datum

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910764116.5A CN110471934A (en) 2019-08-19 2019-08-19 Method of calibration, device, medium and the electronic equipment of business datum

Publications (1)

Publication Number Publication Date
CN110471934A true CN110471934A (en) 2019-11-19

Family

ID=68511067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910764116.5A Pending CN110471934A (en) 2019-08-19 2019-08-19 Method of calibration, device, medium and the electronic equipment of business datum

Country Status (1)

Country Link
CN (1) CN110471934A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444224A (en) * 2020-03-24 2020-07-24 政采云有限公司 Service data verification method and device
CN113688158A (en) * 2021-09-07 2021-11-23 京东科技控股股份有限公司 Processing method, device, equipment, system and medium for business rule verification

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038590A (en) * 2002-07-03 2004-02-05 Nissay Dowa General Insurance Co Ltd Data management system, method and program, and computer-readable storage medium with the program stored therein
CN103729436A (en) * 2013-12-27 2014-04-16 中国科学院信息工程研究所 Distributed metadata management method and system
CN108460688A (en) * 2018-01-08 2018-08-28 平安科技(深圳)有限公司 Core protects method, apparatus, storage medium and the terminal of verification
CN109410070A (en) * 2018-09-04 2019-03-01 中国平安人寿保险股份有限公司 Core protects data processing method and system
CN109614403A (en) * 2018-10-24 2019-04-12 北京三快在线科技有限公司 The data consistency verification method and device of cluster service node

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038590A (en) * 2002-07-03 2004-02-05 Nissay Dowa General Insurance Co Ltd Data management system, method and program, and computer-readable storage medium with the program stored therein
CN103729436A (en) * 2013-12-27 2014-04-16 中国科学院信息工程研究所 Distributed metadata management method and system
CN108460688A (en) * 2018-01-08 2018-08-28 平安科技(深圳)有限公司 Core protects method, apparatus, storage medium and the terminal of verification
CN109410070A (en) * 2018-09-04 2019-03-01 中国平安人寿保险股份有限公司 Core protects data processing method and system
CN109614403A (en) * 2018-10-24 2019-04-12 北京三快在线科技有限公司 The data consistency verification method and device of cluster service node

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444224A (en) * 2020-03-24 2020-07-24 政采云有限公司 Service data verification method and device
CN111444224B (en) * 2020-03-24 2023-08-15 政采云有限公司 Service data verification method and device
CN113688158A (en) * 2021-09-07 2021-11-23 京东科技控股股份有限公司 Processing method, device, equipment, system and medium for business rule verification

Similar Documents

Publication Publication Date Title
CN108683539A (en) Management method, device, medium and the electronic equipment of block chain network
CN111427701A (en) Workflow engine system and business processing method
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN110427304A (en) O&amp;M method, apparatus, electronic equipment and medium for banking system
CN110471934A (en) Method of calibration, device, medium and the electronic equipment of business datum
US20160378162A1 (en) Validating power paths to it equipment
CN109413125A (en) The method and apparatus of dynamic regulation distributed system resource
CN113961311A (en) Service data processing method, device, electronic equipment and medium
CN109597810A (en) A kind of task cutting method, device, medium and electronic equipment
CN108920618A (en) A kind of store method, device, medium and the electronic equipment of object reference relationship
CN103259869B (en) A kind of concentration approaches to IM based on Distributed Storage
CN108667660A (en) The method and apparatus and route system of routing management and business routing
CN110795135A (en) Method and device for realizing injection-resolution configuration
CN111951112A (en) Intelligent contract execution method based on block chain, terminal equipment and storage medium
CN108804451A (en) Generate method, apparatus, electronic equipment and the readable storage medium storing program for executing of major key
CN108536447B (en) Operation and maintenance management method
CN110275701A (en) Data processing method, device, medium and calculating equipment
CN109614440A (en) Method of data synchronization and relevant device based on big data
CN113312900A (en) Data verification method and device
Raayatpanah et al. Design of survivable wireless backhaul networks with reliability considerations
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
CN108718241B (en) Charging method and device
CN111984616A (en) Method, device and system for updating shared file
CN109547552A (en) API request processing method, device, storage medium and electronic equipment
CN108874625A (en) Information processing method and device, electronic equipment, storage medium

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

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication