CN111400353A - Rule calculation method, device, equipment and storage medium - Google Patents

Rule calculation method, device, equipment and storage medium Download PDF

Info

Publication number
CN111400353A
CN111400353A CN202010195768.4A CN202010195768A CN111400353A CN 111400353 A CN111400353 A CN 111400353A CN 202010195768 A CN202010195768 A CN 202010195768A CN 111400353 A CN111400353 A CN 111400353A
Authority
CN
China
Prior art keywords
target
rule
preset
script
condition information
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
CN202010195768.4A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010195768.4A priority Critical patent/CN111400353A/en
Publication of CN111400353A publication Critical patent/CN111400353A/en
Pending legal-status Critical Current

Links

Images

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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • 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/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • 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/03Credit; Loans; Processing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a rule calculation method, a device, equipment and a storage medium, wherein the rule calculation method comprises the following steps: acquiring target condition information corresponding to a target transaction; acquiring a target rule script corresponding to the target transaction according to the target condition information, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information; based on the rule script, the target condition information is calculated by using a rule calculation engine to obtain the target operation information corresponding to the target condition information.

Description

Rule calculation method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of rule engines, in particular to a rule calculation method, a rule calculation device, a rule calculation terminal and a storage medium.
Background
At present, rule calculation of many companies is performed based on open-source rule scripts, and when rules are used, the rule scripts need to be written first, and then the rule scripts are loaded into a memory, so that the corresponding rules can be used for calculation.
However, when the rule changes frequently (for example, the rule is changed just after the rule script is manually written, and the rule script needs to be manually modified repeatedly), or the traffic is large, and the rule script needs to be on-line immediately after being modified, great risk and labor cost may be caused. In addition, there may be a case where one rule script becomes a plurality of rule scripts due to different judgments of one field, so that a large number of redundant rules may occur, which greatly increases the workload of script maintenance.
Disclosure of Invention
The invention provides a rule calculation method, a rule calculation device, a terminal and a storage medium, which reduce the artificial workload of rule script compiling, improve the accuracy of the rule script and reduce the workload of script maintenance.
In a first aspect, an embodiment of the present invention provides a rule calculation method, where the method includes:
acquiring target condition information corresponding to a target transaction;
acquiring a target rule script corresponding to the target transaction, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information;
and calculating the target condition information by using a rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information.
In a second aspect, an embodiment of the present invention further provides a rule calculation apparatus, where the apparatus includes:
the target condition information acquisition module is used for acquiring target condition information corresponding to the target transaction;
the target rule script acquisition module is used for acquiring a target rule script corresponding to the target transaction, the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information;
and the target operation information determining module is used for calculating the target condition information by using a rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a rule calculation method according to any embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the rule calculation method according to any embodiment of the present invention.
The embodiment of the invention obtains the target condition information corresponding to the target transaction; acquiring a target rule script corresponding to a target transaction, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information; based on the target rule script, the rule calculation engine is used for calculating the target condition information to obtain the target operation information corresponding to the target condition information, so that the artificial workload for writing the rule script is reduced, the accuracy of the rule script is improved, and the workload for maintaining the script is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a rule calculation method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a rule calculation method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a rule calculation apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a rule calculation method according to an embodiment of the present invention, where the method is applicable to a case where rule calculation is required, and the method may be executed by a rule calculation apparatus, where the rule calculation apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a computer device. As shown in fig. 1, the method of this embodiment specifically includes:
and S110, acquiring target condition information corresponding to the target transaction.
Preferably, the target transaction can be different transactions which can be handled in various industries, such as loan transaction, taxi taking transaction and the like, and the target transaction can also be related transactions in the field of artificial intelligence, such as automatic driving and the like. The target condition information may preferably be various condition information required when transacting the target transaction, wherein each condition information may preferably include a condition name and a condition value corresponding to the condition name.
For example, the target transaction is loan transaction, and the borrower needs to provide the information related to the name of the borrower, the age of the borrower, the mobile phone number of the borrower, the identity number of the borrower, the monthly income of the borrower when transacting the loan transaction, such as the name of the borrower: zhang III, loan age: 28. the loan person mobile phone number: 18888888888, loan person identification number: 133333222222222222 and monthly income: 10k, the name of the borrower: zhang III, loan age: 24. the loan person mobile phone number: 18888888888, loan person identification number: 133333222222222222 and monthly income: and 10k, namely target condition information.
In this embodiment, the target condition information corresponding to the target transaction may be preferably obtained through an external interface, and for example, the target condition information may be obtained after the user inputs the target condition information by calling the external interface; a request may also be sent to the third-party information storage system through the external interface to obtain the target condition information from the third-party information storage system.
And S120, acquiring a target rule script corresponding to the target transaction, wherein the target rule script is automatically generated according to the acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information.
The target rule script may preferably be in the form of code to present specific transaction rules to be followed to execute the target transaction. Usually, the target rule script needs to be manually written and determined by a developer on the basis of the known business rule, and the target rule script in the embodiment is automatically generated according to the preset configuration rule, which does not need the developer to manually write the rule script.
For a transaction rule, condition information and operation information corresponding to the condition information may be generally included, that is, if a certain condition is satisfied, a corresponding operation may be performed. The condition information may include a condition name and a condition value corresponding to the condition name, and the operation information may include an operation name and an operation value corresponding to the operation name. Therefore, the preset configuration rule may preferably include preset condition information and preset operation information corresponding to the preset condition information.
The preset configuration rule in this embodiment may preferably be configured by an external service person, specifically, the external service person may directly input the preset condition information and the preset operation information corresponding to the preset condition information through a display interface, or may first obtain all preset condition names corresponding to the target transaction from an external system (for the field of risk control, an external system general index system), and display the preset condition names to the external service person through the display interface, and the external service person configures the preset condition value corresponding to the corresponding preset condition name, the preset operation name, and the preset operation value corresponding to the preset operation name according to the displayed preset condition name. Preferably, after the preset configuration rule configured by the external service staff is acquired, the preset configuration rule can be automatically converted into the target rule script.
For example, the target rule script corresponding to the target transaction may be determined and obtained by using the unique number or code of the target transaction, or the target rule script corresponding to the target transaction may be obtained according to the storage location of the known target rule script.
And S130, calculating the target condition information by using a rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information.
The rule calculation engine may include a business rule calculation engine and an open source rule calculation engine, wherein the business rule calculation engine may include visual rules and i L og, and the open source rule calculation engine may include Drools.
Preferably, after the target rule script is acquired, the rule calculation engine may be used to analyze the target rule script, perform matching calculation on the analyzed content and the target condition, and finally select the target operation information corresponding to the target condition information. Preferably, in the process of analyzing the target rule script by using the rule calculation engine and performing matching calculation on the analyzed content and the target condition, the content corresponding to the target rule script may be converted into one of a decision table, a decision tree or a score card, and the target condition is subjected to matching calculation based on one of the decision table, the decision tree or the score card.
For example, if the target transaction is a loan transaction, the corresponding target operation information may be a loan amount: 20 ten thousand; if the target transaction is a taxi-taking service, the corresponding target operation information may be a taxi-taking order: receiving orders; if the target transaction is automatic driving, the corresponding target operation information may be turning: left turn, etc. In the rule calculation method provided by this embodiment, target condition information corresponding to a target transaction is obtained; acquiring a target rule script corresponding to a target transaction, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information; based on the target rule script, the rule calculation engine is used for calculating the target condition information to obtain the target operation information corresponding to the target condition information, so that the artificial workload for writing the rule script is reduced, the accuracy of the rule script is improved, and the workload for maintaining the script is reduced.
On the basis of the foregoing embodiments, further before obtaining the target rule script corresponding to the target transaction, the method further includes:
and automatically generating a target rule script by using a rule script generation algorithm according to the acquired preset configuration rule.
The preset configuration rule in this embodiment is specifically described in the above S120, and is not described herein again. Preferably, the rule script generation algorithm may include a random forest algorithm or an infinite recursive tree algorithm.
On the basis of the foregoing embodiments, further, after automatically generating a target rule script by using a rule script generation algorithm according to the obtained preset configuration rule, the method further includes:
and if the preset configuration rule is detected to be changed into the change configuration rule, automatically generating a change rule script by using a rule script generation algorithm according to the obtained change configuration rule, and taking the change rule script as a target rule script.
After the target rule script is generated, part or all of the transaction rules corresponding to the target transaction may be changed, and preferably, a change operation may be performed on the target rule script generated before the rule is changed.
In this embodiment, code modification is not directly performed on the target rule script, but an external service person reconfigures the rule, specifically, the external service person directly inputs modification condition information and modification operation information corresponding to the modification condition information through a display interface, or acquires all modification condition names corresponding to the target transaction from an external system and displays the modification condition names to the external service person through the display interface, and the external service person reconfigures the modification condition values corresponding to the corresponding modification condition names, the modification operation names, and the modification operation values corresponding to the modification operation names according to the displayed modification condition names. Preferably, after the configuration change rule configured by the external service personnel is obtained again, the rule script generation algorithm is used for automatically generating the rule script. After the change rule script is generated, the change rule script is stored as a new target rule script. It can be understood that when the configuration change rule configured by the external service personnel through the display interface is acquired, the preset configuration rule input before can be determined to be changed into the configuration change rule according to the input information. On the basis of the foregoing embodiments, further, after automatically generating a target rule script by using a rule script generation algorithm according to the obtained preset configuration rule, the method further includes:
and storing the target rule script to the first database in a persistent mode, and caching the target rule script to the second database.
Preferably, the target rule script can be persistently stored in the mysql database and cached in the redis database (obtaining the target rule script from the cache can save more running memory and time). When the target rule script is changed, the target rule script in the mysql database can be preferably updated according to the ID corresponding to the rule script, and the data in the redis database is refreshed.
Example two
Fig. 2 is a flowchart of a rule calculation method according to a second embodiment of the present invention. On the basis of the foregoing embodiments, the present embodiment may select, according to an obtained preset configuration rule, to automatically generate the target rule script by using a rule script generation algorithm, where the method includes:
acquiring a preset condition field which is sent by a preset condition storage system and corresponds to a target transaction;
acquiring a preset condition corresponding value, a preset operation field and a preset operation corresponding value which are input by a user through a display interface and correspond to the preset condition field;
and automatically generating the target rule script by using a rule script generation algorithm according to the preset condition field, the preset condition corresponding value, the preset operation field and the preset operation corresponding value.
And based on the rule script, calculating the target condition information by using a rule calculation engine to obtain target operation information corresponding to the target condition information, wherein the target operation information comprises:
and based on the rule script, performing parallel shunt calculation on the target condition information by using a rule calculation engine to obtain target operation information corresponding to the target condition information.
As shown in fig. 2, the method of this embodiment specifically includes:
s210, acquiring a preset condition field which is sent by a preset condition storage system and corresponds to the target transaction.
The preset condition storage system may preferably be a system related to a target transaction, and for example, for the field of wind control, the preset condition storage system may be an index system. The preset condition field may preferably include the above-mentioned preset condition name. In this embodiment, after the preset condition field is obtained, the preset condition field may be preferably displayed on a display interface for external service personnel to view.
Still taking the target transaction as the loan transaction as an example, the system obtains the preset condition field corresponding to the loan transaction from the index system through the external interface, and the method specifically includes: and after the name of the borrower, the identification number of the borrower and the monthly income are obtained, the preset fields are displayed on a display interface.
And S220, acquiring a preset condition corresponding value, a preset operation field and a preset operation corresponding value which are input by a user through a display interface and correspond to the preset condition field.
Still taking the target transaction as an example of the loan transaction, the preset condition fields sequentially include: the loan name, the loan identity card number and the monthly income, the preset condition corresponding value, the preset operation field and the preset operation corresponding value which are input by the user through the display interface and correspond to the preset condition field comprise:
(1) the preset condition corresponds to a value: legal, 2k-10k, presetting an operation field: loan and loan amount, and the corresponding value of the preset operation is as follows: 50 ten thousand;
(2) the preset condition corresponds to a value: legal, more than 10k, presetting an operation field: loan and loan amount, and the corresponding value of the preset operation is as follows: 100 ten thousand;
(3) the preset condition corresponds to a value: legal, below 2k, presetting an operation field: loan and loan amount, and the corresponding value of the preset operation is as follows: if not, 0 ten thousand;
(4) the preset condition corresponds to a value: legal, illegal, 2k-10k, presetting operation fields: loan and loan amount, and the corresponding value of the preset operation is as follows: if not, 0 ten thousand;
(5) the preset condition corresponds to a value: legal, illegal, more than 10k, presetting an operation field: loan and loan amount, and the corresponding value of the preset operation is as follows: if not, 0 ten thousand;
(6) the preset condition corresponds to a value: legal, illegal, below 2k, presetting an operation field: loan and loan amount, and the corresponding value of the preset operation is as follows: no, 0 ten thousand.
And S230, automatically generating a target rule script by using a rule script generation algorithm according to the preset condition field, the preset condition corresponding value, the preset operation field and the preset operation corresponding value.
And automatically generating a target rule script by utilizing a random forest algorithm or an infinite recursive tree algorithm according to the preset condition corresponding value, the preset operation field and the preset operation corresponding value input by the external service personnel.
S240, acquiring target condition information corresponding to the target transaction.
Still taking the above target transaction as the loan transaction as an example, the obtained target condition information corresponding to the target transaction is: the name of the borrower: zhang III, loan person identification number: 133333222222222222 and monthly income: 10 k.
And S250, acquiring a target rule script corresponding to the target transaction, wherein the target rule script is automatically generated according to the acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information.
And S260, based on the target rule script, performing parallel shunting calculation on the target condition information by using the rule calculation engine to obtain target operation information corresponding to the target condition information.
Preferably, the drools rule calculation engine is used for performing parallel distribution calculation on the target condition information, so that the name of the loan owner of the target condition information can be determined as follows: zhang III, loan person identification number: 133333222222222222 and monthly income: the target operation information corresponding to 10k is loan-available, and the loan amount is 50 ten thousand. After the target operation information is acquired, the target operation information may be fed back to the external caller, for example, the target operation information may be displayed on a display interface corresponding to the external caller for the external caller to view.
Preferably, the hardware facility for realizing the parallel split-flow calculation can be three or more servers, the front end and the back end are separated, the front end page can be realized by vue, and the back end can be built by using a springboot frame. The whole system can be packaged into jar packages to be deployed on a plurality of servers, and load balancing is used at the front end for shunting, wherein the load balancing algorithm can be a weighting algorithm preferably.
In the rule calculation method provided by this embodiment, a preset condition field corresponding to a target transaction and sent by a preset condition storage system is obtained; acquiring a preset condition corresponding value, a preset operation field and a preset operation corresponding value which are input by a user through a display interface and correspond to the preset condition field; automatically generating a target rule script by using a rule script generation algorithm according to the preset condition field, the preset condition corresponding value, the preset operation field and the preset operation corresponding value; acquiring target condition information corresponding to a target transaction; acquiring a target rule script corresponding to a target transaction, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information; based on the target rule script, the rule calculation engine is used for carrying out parallel shunt calculation on the target condition information to obtain target operation information corresponding to the target condition information, so that the artificial workload for writing the rule script is reduced, the accuracy of the rule script is improved, and the workload for maintaining the script is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a rule calculation apparatus according to a third embodiment of the present invention. As shown in fig. 3, the apparatus of the present embodiment includes:
a target condition information obtaining module 310, configured to obtain target condition information corresponding to a target transaction;
a target rule script obtaining module 320, configured to obtain a target rule script corresponding to the target transaction, where the target rule script is automatically generated according to an obtained preset configuration rule, and the preset configuration rule includes preset condition information and preset operation information corresponding to the preset condition information;
and the target operation information determining module 330 is configured to calculate the target condition information by using the rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information.
The rule calculating device provided by the embodiment acquires target condition information corresponding to a target transaction by using a target condition information acquiring module; acquiring a target rule script corresponding to a target transaction by using a target rule script acquisition module, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information; and calculating the target condition information by using the rule calculation engine based on the target rule script by using the target operation information determining module to obtain the target operation information corresponding to the target condition information, thereby reducing the artificial workload for writing the rule script, improving the accuracy of the rule script and reducing the workload for maintaining the script.
On the basis of the above technical solutions, optionally, the rule calculation apparatus may further include a target rule script generation module, configured to automatically generate a target rule script according to an acquired preset configuration rule by using a rule script generation algorithm before acquiring the target rule script corresponding to the target transaction.
On the basis of the foregoing technical solutions, optionally, the rule calculation apparatus may further include a target rule script change module, configured to, after the target rule script is automatically generated by using a rule script generation algorithm according to the obtained preset configuration rule, if it is detected that the preset configuration rule is changed to the change configuration rule, automatically generate a change rule script by using a rule script generation algorithm according to the obtained change configuration rule, and use the change rule script as the target rule script.
On the basis of the above technical solutions, optionally, the target rule script generating module may include:
the device comprises a preset condition field acquisition unit, a preset condition field acquisition unit and a processing unit, wherein the preset condition field acquisition unit is used for acquiring a preset condition field which is sent by a preset condition storage system and corresponds to a target transaction;
the field and field value acquisition unit is used for acquiring a preset condition corresponding value, a preset operation field and a preset operation corresponding value which are input by a user through a display interface and correspond to the preset condition field;
and the target rule script generating unit is used for automatically generating a target rule script by using a rule script generating algorithm according to the preset condition field, the preset condition corresponding value, the preset operation field and the preset operation corresponding value.
On the basis of the above technical solutions, optionally, the rule script generation algorithm includes a random forest algorithm or an infinite recursion tree algorithm.
On the basis of the above technical solutions, optionally, the rule calculation apparatus may further include a storage module, configured to persistently store the target rule script in the first database and cache the target rule script in the second database after the target rule script is automatically generated by using a rule script generation algorithm according to the obtained preset configuration rule.
On the basis of the above technical solutions, optionally, the target operation information determining module 330 may be specifically configured to: and based on the rule script, performing parallel shunt calculation on the target condition information by using a rule calculation engine to obtain target operation information corresponding to the target condition information.
The rule calculation device provided by the embodiment of the invention can execute the rule calculation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 412 suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 4 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 412 is in the form of a general purpose computing device. Components of computer device 412 may include, but are not limited to: one or more processors 416, a memory 428, and a bus 418 that couples the various system components (including the memory 428 and the processors 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 428 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The computer device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc., where the display 424 may be configurable or not as desired), one or more devices that enable a user to interact with the computer device 412, and/or any device (e.g., network card, modem, etc.) that enables the computer device 412 to communicate with one or more other computing devices.
The processor 416 executes programs stored in the memory 428 to perform various functional applications and rule calculations, such as implementing the rule calculation methods provided by embodiments of the present invention.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a rule calculation method provided in an embodiment of the present invention, and the method includes:
acquiring target condition information corresponding to a target transaction;
acquiring a target rule script corresponding to a target transaction, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information;
and calculating the target condition information by using a rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information.
Of course, the computer-readable storage medium provided in the embodiments of the present invention, on which the computer program is stored, is not limited to executing the method operations described above, and may also execute the relevant operations in the rule calculation method based on the computer device provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of rule computation, comprising:
acquiring target condition information corresponding to a target transaction;
acquiring a target rule script corresponding to the target transaction, wherein the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information;
and calculating the target condition information by using a rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information.
2. The method of claim 1, prior to obtaining a target rule script corresponding to the target transaction, further comprising:
and automatically generating the target rule script by using a rule script generation algorithm according to the acquired preset configuration rule.
3. The method according to claim 2, wherein after automatically generating the target rule script by using a rule script generation algorithm according to the obtained preset configuration rule, the method further comprises:
if the preset configuration rule is detected to be changed into the change configuration rule, automatically generating a change rule script by using a rule script generation algorithm according to the obtained change configuration rule, and taking the change rule script as the target rule script.
4. The method according to claim 2 or 3, wherein automatically generating the target rule script by using a rule script generation algorithm according to the obtained preset configuration rule comprises:
acquiring a preset condition field which is sent by a preset condition storage system and corresponds to a target transaction;
acquiring a preset condition corresponding value, a preset operation field and a preset operation corresponding value which are input by a user through a display interface and correspond to the preset condition field;
and automatically generating the target rule script by using a rule script generation algorithm according to the preset condition field, the preset condition corresponding value, the preset operation field and the preset operation corresponding value.
5. A method as claimed in claim 2 or 3, wherein the rule script generation algorithm comprises a random forest algorithm or an infinite recursive tree algorithm.
6. The method according to claim 2, wherein after automatically generating the target rule script by using a rule script generation algorithm according to the obtained preset configuration rule, the method further comprises:
and storing the target rule script to a first database in a persistent mode, and caching the target rule script to a second database.
7. The method of claim 1, wherein calculating the target condition information by using a rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information comprises:
and based on the target rule script, carrying out parallel shunt calculation on the target condition information by using a rule calculation engine to obtain target operation information corresponding to the target condition information.
8. A rule calculation device, comprising:
the target condition information acquisition module is used for acquiring target condition information corresponding to the target transaction;
the target rule script acquisition module is used for acquiring a target rule script corresponding to the target transaction, the target rule script is automatically generated according to an acquired preset configuration rule, and the preset configuration rule comprises preset condition information and preset operation information corresponding to the preset condition information;
and the target operation information determining module is used for calculating the target condition information by using a rule calculation engine based on the target rule script to obtain target operation information corresponding to the target condition information.
9. A computer device, comprising:
one or more processing devices;
a memory for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the rule calculation method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the rule calculation method according to any one of claims 1 to 7.
CN202010195768.4A 2020-03-19 2020-03-19 Rule calculation method, device, equipment and storage medium Pending CN111400353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010195768.4A CN111400353A (en) 2020-03-19 2020-03-19 Rule calculation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010195768.4A CN111400353A (en) 2020-03-19 2020-03-19 Rule calculation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111400353A true CN111400353A (en) 2020-07-10

Family

ID=71428872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010195768.4A Pending CN111400353A (en) 2020-03-19 2020-03-19 Rule calculation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111400353A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112613275A (en) * 2020-12-24 2021-04-06 金蝶软件(中国)有限公司 Receipt generation method and device, computer equipment and storage medium
CN112883728B (en) * 2021-03-02 2024-04-09 岭东核电有限公司 Nuclear power test-based test procedure information display method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107316134A (en) * 2017-06-16 2017-11-03 深圳乐信软件技术有限公司 A kind of risk control method, device, server and storage medium
CN108279866A (en) * 2018-01-24 2018-07-13 马上消费金融股份有限公司 A kind of the layout execution method, apparatus and medium of operation flow
CN108647049A (en) * 2018-03-18 2018-10-12 平安科技(深圳)有限公司 Configurableization system, method, equipment and the storage medium of rule-based engine
CN109544321A (en) * 2018-10-26 2019-03-29 平安科技(深圳)有限公司 Intelligence loan method, apparatus, computer equipment and storage medium
CN110288462A (en) * 2019-05-31 2019-09-27 北京随信云链科技有限公司 Air control system, air control method, computer readable storage medium and calculating equipment
CN110490747A (en) * 2019-08-26 2019-11-22 深圳市盟天科技有限公司 A kind of trust interconnection method, device, server and storage medium
CN110674171A (en) * 2019-09-12 2020-01-10 苏州浪潮智能科技有限公司 Script generation method and device and data processing method and device
CN110825488A (en) * 2019-09-29 2020-02-21 山东中创软件工程股份有限公司 Business processing method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107316134A (en) * 2017-06-16 2017-11-03 深圳乐信软件技术有限公司 A kind of risk control method, device, server and storage medium
CN108279866A (en) * 2018-01-24 2018-07-13 马上消费金融股份有限公司 A kind of the layout execution method, apparatus and medium of operation flow
CN108647049A (en) * 2018-03-18 2018-10-12 平安科技(深圳)有限公司 Configurableization system, method, equipment and the storage medium of rule-based engine
WO2019179056A1 (en) * 2018-03-18 2019-09-26 平安科技(深圳)有限公司 Configurable system and method based on rule engine, device, and storage medium
CN109544321A (en) * 2018-10-26 2019-03-29 平安科技(深圳)有限公司 Intelligence loan method, apparatus, computer equipment and storage medium
CN110288462A (en) * 2019-05-31 2019-09-27 北京随信云链科技有限公司 Air control system, air control method, computer readable storage medium and calculating equipment
CN110490747A (en) * 2019-08-26 2019-11-22 深圳市盟天科技有限公司 A kind of trust interconnection method, device, server and storage medium
CN110674171A (en) * 2019-09-12 2020-01-10 苏州浪潮智能科技有限公司 Script generation method and device and data processing method and device
CN110825488A (en) * 2019-09-29 2020-02-21 山东中创软件工程股份有限公司 Business processing method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张民: "《基于python语言的软件测试技术》", 30 April 2015, 电子科技大学出版社, pages: 220 - 224 *
王桥: "《基于遥感的宏观生态监控技术研究》", 30 September 2016, 中国环境科学出版社, pages: 51 - 52 *
马晓青: "《构建区域性农村信用评估与征信体系研究》", 31 December 2017, 上海财经大学出版社, pages: 145 - 146 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112613275A (en) * 2020-12-24 2021-04-06 金蝶软件(中国)有限公司 Receipt generation method and device, computer equipment and storage medium
CN112883728B (en) * 2021-03-02 2024-04-09 岭东核电有限公司 Nuclear power test-based test procedure information display method and device

Similar Documents

Publication Publication Date Title
CN109086075B (en) Artificial intelligence processor and method for executing matrix multiplication vector instruction by using same
CN107679995B (en) Electronic device, insurance case claim settlement auditing method and computer-readable storage medium
CN110349009B (en) Multi-head lending default prediction method and device and electronic equipment
CN107220217A (en) Characteristic coefficient training method and device that logic-based is returned
CN108073429B (en) Payment mode configuration method, device, equipment and storage medium
CN111340616A (en) Method, device, equipment and medium for approving online loan
CN113177700B (en) Risk assessment method, system, electronic equipment and storage medium
CN111400353A (en) Rule calculation method, device, equipment and storage medium
CN114004700A (en) Service data processing method and device, electronic equipment and storage medium
CN111598122B (en) Data verification method and device, electronic equipment and storage medium
CN114490116B (en) Data processing method and device, electronic equipment and storage medium
CN115936895A (en) Risk assessment method, device and equipment based on artificial intelligence and storage medium
CN114373460A (en) Instruction determination method, device, equipment and medium for vehicle-mounted voice assistant
CN111367813B (en) Automatic testing method and device for decision engine, server and storage medium
CN113034046A (en) Data risk metering method and device, electronic equipment and storage medium
CN112508692A (en) Resource recovery risk prediction method and device based on convolutional neural network and electronic equipment
CN112989050A (en) Table classification method, device, equipment and storage medium
CN117273335A (en) Automatic flow carding method, device, equipment and storage medium
CN110377891B (en) Method, device and equipment for generating event analysis article and computer readable storage medium
CN111861757A (en) Financing matching method, system, equipment and storage medium
CN115237931A (en) Method and system for updating sub-service processing result of service arrangement
CN115375444A (en) Customer loss alarm method, system, electronic equipment and storage medium
CN111859985B (en) AI customer service model test method and device, electronic equipment and storage medium
CN110674491B (en) Method and device for real-time evidence obtaining of android application and electronic equipment
CN112115316B (en) Box separation method and device, electronic equipment and 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
TA01 Transfer of patent application right

Effective date of registration: 20220920

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right