Method and system for deciding business data based on rule tree
Through the method of decision-making based on rule trees, the problem of tight coupling between business logic and code is solved, the separation of business logic and code is realized, the flexibility and scalability of the system are improved, maintenance costs and communication barriers are reduced, and business efficiency is improved. Decision-making efficiency.
Patent Information
- Application Number
- CN202411231992.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, business logic and code are tightly coupled, making maintenance and updates difficult, business rules reusability is low, and scalability is poor, resulting in low communication efficiency, low efficiency, and high maintenance costs.
Adopt a method based on rule tree decision-making, obtain and configure the variables and constants required by business rules, use the configuration interface to draw business rules, support serial, parallel and nested decision-making, conduct overall testing and adjustment, and form business data after decision-making .
It achieves the complete separation of business logic and code, shortens the development cycle, reduces maintenance costs, improves system flexibility and scalability, reduces communication barriers between development and business personnel, improves the efficiency and accuracy of business decision-making, and detects configuration problems in a timely manner. , to avoid rework.
Smart Images

Figure CN118732994A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method and system for making business data decisions based on a rule tree. Background Art
[0002] As the system develops, business logic tends to become more and more complex, including a large number of conditional judgments, decision-making processes, and reuse of some businesses. If these logics are hard-coded directly in the code, the code will become difficult to understand and maintain, and the scalability will be poor. In addition, business requirements often change, which requires the system to respond to these changes quickly. If the business logic is directly embedded in the code, it needs to be modified and redeployed every time the business rules change, which is time-consuming and error-prone. In addition, business analysts or domain experts cannot directly participate in the definition and modification of rules, which greatly reduces the efficiency of communication between business and technology. At the same time, business rules are not transparent and not easy to audit.
[0003] Deficiencies of existing technologies: Strong business coupling and difficult maintenance and updates: In the traditional software development process, business rules are often embedded in the code throughout the system, resulting in tight coupling between business logic and application code, making maintenance and updates difficult.
[0004] Weak independence and low efficiency: Business analysts cannot manage and maintain business rules and can only rely on developers. Developers need to understand and implement complex rules. There is no division of labor and cooperation, resulting in reduced efficiency.
[0005] Low reuse and poor scalability: As business rules become more and more complex, one or more rules or parts of rules are often reused. The traditional hard-coding model is difficult to implement, resulting in reduced rule reuse and system scalability. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides a method and system for making business data decisions based on a rule tree, which are used to solve the technical problems in the prior art.
[0007] On the one hand, the invention provides the following technical solution, a method for making business data decisions based on a rule tree, the method comprising: Obtaining variables and constants required for configuring business rules, wherein the number of the variables and the constants is multiple; Entering the configuration interface of the business rule, and drawing the business rule based on the variable and the constant using the configuration rule, wherein the configuration rule includes any one of serial decision, parallel decision and nested sub-rule decision or any arrangement of two or more of them; Performing an overall test on the drawn business rules using input technology, and adjusting the drawn business rules based on the test results, wherein the input technology includes manual entry and electronic spreadsheet import; The variables are compared with the structures of the real business table one by one. After the comparison is completed, the business data corresponding to the business table is processed based on the adjusted business rules to form the business data after the decision.
[0008] Compared with the prior art, the beneficial effects of the present application are as follows: through the setting of business rules, business logic and code are completely separated, which greatly shortens the subsequent development cycle and reduces maintenance costs, and improves the flexibility and scalability of the system. Through interface configuration, users can easily configure business rules to continuously respond to changing business needs, more easily adapt to new business scenarios, and help reduce communication barriers between developers and business personnel, improve the efficiency and accuracy of business decisions, and achieve the effect of online calling through the steps of adjusting the drawn business rules based on test results, so that users can promptly discover problems in the configuration process, avoid the cost of rework, and improve efficiency and accuracy.
[0009] Furthermore, before the step of obtaining the variables and constants required for configuring the business rules, the method further includes: Create a structure library to provide variable benchmarks required for business rule configuration and prepare constants and variables, wherein the structure library includes multiple structures, each of which includes a structure table and fields, and the attributes of the fields include field name, field code, field value type, field value range, purpose and default value.
[0010] Furthermore, the serial decision includes the business rules being executed in sequence without any conditional branching; The parallel decision-making includes different scenarios according to different business flows in one or more nodes during the flow of the business rules.
[0011] Furthermore, the nested sub-rule decision includes: In the business rule drawing process, determining whether other existing rules need to be used; If other existing rules need to be used, a sub-rule is selected to map the variables of the sub-rule with the variables of the parent rule; The mapping result is used as the decision value of the sub-rule node to facilitate the subsequent process flow.
[0012] Further, the manual entry includes: inputting the variable value used in the rule path of the drawn business rule to the user end, wherein the manual entry only supports the simulation call of one piece of data; The electronic form importing includes: inputting electronic form data into the user end in batches.
[0013] Furthermore, after the step of drawing the business rule based on the variable and the constant by using the configuration rule, the method further includes: After drawing the business rules, the designer generates object representation and extensible markup language corresponding to the business rules.
[0014] Furthermore, after the step of using input technology to test the drawn business rules as a whole and adjusting the drawn business rules based on the test results, the method includes: The adjusted business rules are published, and corresponding authorization services are generated based on the published business rules, and provided to a third party for use.
[0015] In a second aspect, the invention provides the following technical solution: a system for making business data based on a rule tree, the system comprising: An acquisition module, used to acquire variables and constants required for configuring business rules, wherein the number of the variables and constants is multiple; A drawing module, used for entering the configuration interface of the business rule, and drawing the business rule based on the variable and the constant using the configuration rule, wherein the configuration rule includes any one of serial decision, parallel decision and nested sub-rule decision, or any arrangement of two or more of them; An adjustment module, used to perform an overall test on the drawn business rules using input technology, and adjust the drawn business rules based on the test results, wherein the input technology includes manual entry and electronic spreadsheet import; The processing module is used to compare the variables with the structure of the real business table one by one. After the comparison is completed, the business data corresponding to the business table is processed based on the adjusted business rules to form the business data after the decision.
[0016] In a third aspect, the invention provides the following technical solution: a computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for making decisions on business data based on a rule tree when executing the computer program.
[0017] In a fourth aspect, the invention provides the following technical solution: a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-mentioned method for making decisions on business data based on a rule tree. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 A flowchart of a method for making business data decisions based on a rule tree provided in a first embodiment of the present invention; Figure 2 A flowchart of a sub-rule definition process based on a rule tree decision service data provided by the first embodiment of the present invention; Figure 3 A flowchart of a parent rule definition process based on rule tree decision service data provided by the first embodiment of the present invention; Figure 4 A structural block diagram of a system for making business data based on rule tree decisions provided by a second embodiment of the present invention; Figure 5 A schematic diagram of the hardware structure of a computer provided in the third embodiment of the present invention.
[0020] The embodiments of the present invention will be further described below with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout are the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the embodiments of the present invention, and should not be construed as limiting the present invention.
[0022] In the description of the embodiments of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0024] Embodiment 1 In the first embodiment of the present invention, see Figure 1 , a method for making business data decisions based on a rule tree, comprising the following steps S01 to S04: S01, obtaining variables and constants required for configuring business rules, wherein the number of the variables and the constants is multiple; Specifically, before the step of obtaining the variables and constants required for configuring the business rules, the method further includes: Creating a structure library to provide a variable benchmark required for business rule configuration and prepare constants and variables, wherein the structure library includes a plurality of structures, each of the structures includes a structure table and a field, and the attributes of the field include a field name, a field code, a field value type, a field value range, a purpose, and a default value; In this embodiment, preparing constants includes a dictionary of constants that is customized from a source or a dictionary of a business library. Preparing variables includes variables that support access to data sources, support coming from a structure library, and also support customization. And the variables in each rule are independent and do not affect each other. Creating a structure library includes the structure library supporting access to data sources, and also supports customized addition. The structure library provides a variable benchmark for subsequent business rule configuration, and is independent of the variables in each rule. It not only satisfies the reuse of variables, but also realizes data isolation. A structure library contains multiple structures, each structure includes a structure table and fields, wherein the attributes of the structure field include field name, field encoding, field value type (including character type, long integer, double precision, high precision, date, timestamp, single column table), field value range (source constant), purpose (including input, output and input and output) and default value.
[0025] S02, entering the configuration interface of the business rule, and drawing the business rule based on the variable and the constant using the configuration rule, wherein the configuration rule includes any one of serial decision, parallel decision and nested sub-rule decision, or any arrangement of two or more of them; Specifically, the serial decision includes that the business rules are executed in sequence without any conditional branching.
[0026] The parallel decision-making includes different scenarios according to different business flows in one or more nodes during the flow of the business rules.
[0027] Specifically, the nested sub-rule decision includes: In the business rule drawing process, determining whether other existing rules need to be used; If other existing rules need to be used, a sub-rule is selected to map the variables of the sub-rule with the variables of the parent rule; The mapping result is used as the decision value of the sub-rule node to facilitate the subsequent process flow.
[0028] Specifically, after the step of drawing the business rule based on the variable and the constant by using the configuration rule, the method further includes: After drawing the business rules, the designer generates object representation and extensible markup language corresponding to the business rules.
[0029] In this embodiment, after data preparation is completed, the business rule configuration interface is entered. This interface provides a visual operation area, and the operation area supports full screen, zooming in and out. This interface supports the selection of variables, constants, common functions, common methods, and the nesting of configured sub-rules. It supports serial decision-making, parallel decision-making, and multi-level nesting of nested sub-rule decisions. At the same time, during the business rule configuration process, each variable will be marked with the variable data type, which greatly reduces the difficulty and errors in the user configuration process; Serial decision-making: Business rules are executed in sequence without conditional branching; Parallel decision-making: During the flow of business rules, different scenarios are carried out according to different business flows in one or more nodes; Nested sub-rule decision: If other existing rules need to be used in the business rule drawing process, it can be completed by nesting sub-rules. First select the sub-rule, then map the sub-rule variables with the parent rule variables. After the mapping is completed, select the output variable for the node as the value of the sub-rule node decision, which is convenient for the subsequent process flow.
[0030] In the specific implementation process, for example: insurance claims scenario; like Figure 2 As shown, the sub-rule definition is: judging whether the claim conditions are met; Sub-rule 1: Accident type determination: If the accident type is "theft", it will be directly determined to meet the claim conditions.
[0031] If the accident type is "natural disaster", it will be further judged based on the degree of loss: if the degree of loss is greater than 50%, it will be determined to meet the conditions for claim settlement; If the extent of loss is less than or equal to 50%, it will be determined that the conditions for claim are not met.
[0032] Sub-rule 2: Driver status judgment: If the driver was not wearing a seat belt at the time of the accident, it will be directly determined that he does not meet the conditions for compensation.
[0033] If the driver was wearing a seat belt but was driving under the influence of alcohol or drugs when the accident occurred, he or she will be deemed not to meet the conditions for compensation.
[0034] Variable assignment: According to the judgment result of the sub-rule, the variable "whether the claim case information meets the claim conditions (String)" is assigned a value: if it meets the claim conditions, the value is "whether it meets the claim conditions_custom compliance"; If the claim conditions are not met, the value is whether the claim conditions are met_customized not met.
[0035] like Figure 3 As shown, the parent rule definition: the claim amount is determined based on the claim conditions and the severity of the accident; Quote sub-rule result: Use whether the claim case information meets the claim conditions (String) as a variable node in the process.
[0036] Determination of claim amount: If it is determined that the conditions for claim are met, the amount of claim will be further determined based on the extent of the loss caused by the accident: If the extent of loss is greater than 70%, the claim amount is 90% of the vehicle value; If the extent of the loss is between 50% and 70%, the claim amount is 70% of the vehicle value; If the extent of loss is less than 50%, the claim amount will be 50% of the vehicle value.
[0037] Special situation handling: If the vehicle is insured with additional comprehensive coverage, an additional 10% will be added to the above claim amounts.
[0038] After drawing is completed, the designer will generate the corresponding json (JavaScript Object Notation) and xml (eXtensible Markup Language) of the rule tree, which is convenient for users to quickly generate rules through import mode.
[0039] S03, using input technology to perform an overall test on the drawn business rules, and adjusting the drawn business rules based on the test results, wherein the input technology includes manual entry and electronic spreadsheet import; Specifically, the manual entry includes: inputting the variable value used in the rule path of the drawn business rule to the user end, wherein the manual entry only supports the simulation call of one piece of data; The electronic form importing includes: inputting electronic form data into the user end in batches.
[0040] In this embodiment, when the business rules are drawn or in the process of drawing, the overall test of the business rules is supported at any time. Online calling supports two modes: manual entry and excel import (spreadsheet import).
[0041] Among them, manual entry: Manual entry only supports the simulated call of one piece of data. Users only need to enter the variable value used in the rule path. If the variable is a dictionary, users can drop down to select. After entering, users can view the output results and execution path. According to the results, adjust the configuration of the rule at any time until the requirements are met. At the same time, it also provides debugging functions to help users quickly locate and solve problems in rule execution.
[0042] Excel Import: Excel import is to import batch data through Excel. After the call is successful, the Excel after the user's decision is returned. The user can adjust the rule configuration at any time by viewing the Excel data until the needs are met.
[0043] S04, comparing the variables with the structures of the real business table one by one, and after the comparison is completed, processing the business data corresponding to the business table based on the adjusted business rules to form business data after decision.
[0044] Specifically, after the step of using the input technology to test the drawn business rules as a whole and adjusting the drawn business rules based on the test results, the method includes: The adjusted business rules are published, and corresponding authorization services are generated based on the published business rules, and provided to a third party for use.
[0045] In this embodiment, after the business rules are configured and published successfully, the corresponding authorization service will be generated and provided to third parties for use. Users only need to provide signature-related information to pass in real business data / simulated data to call the service and obtain the desired decision result data. After the business rules are configured, the structure table and fields used in the business rules are compared one by one with the real business table structure. After the comparison is completed, the preview of business data (including table form and json format) is supported, and the business data is processed (single or periodic) according to the configured business rules, and finally the business data after the decision is formed for use by the business party.
[0046] In summary, the rule engine is a component embedded in the application, which separates business decisions from the application code. This separation allows business decisions to adapt to changes more flexibly without modifying the application code, and the technical threshold for use is greatly reduced. It mainly includes two parts, the designer and the engine. The designer is a visual configuration interface that supports the configuration of variables, constants, functions, methods, and existing rules. It supports multiple decision-making methods such as parallel decision-making, serial decision-making, and rule nesting, and supports the generation of configuration interface xml and json data. The engine uses the Rete algorithm to parse the xml first, then execute the decision tree, and finally give the decision result, which is published as a service for third parties to use or directly use the configured rule tree to process business data; A method for making business data decisions based on rule trees brings many benefits. It completely separates business logic from code, greatly shortens subsequent development cycles and reduces maintenance costs, and improves the flexibility and scalability of the system. Through interface configuration, users can easily configure business rules to continuously respond to changing business needs, more easily adapt to new business scenarios, and help reduce communication barriers between developers and business personnel, and improve the efficiency and accuracy of business decisions. The use of structure libraries makes rule configuration faster and enhances the reuse of structures. The use of online calls enables users to promptly discover problems in the configuration process, avoid the cost of rework, and improve efficiency and accuracy. The generated services facilitate the use of third-party business systems. The processing mode of business rule configuration facilitates users to quickly obtain batches of business decision data.
[0047] Embodiment 2 like Figure 4 As shown, in a second embodiment of the present invention, a system for making business data based on a rule tree is provided, and the system includes: An acquisition module 10 is used to acquire variables and constants required for configuring business rules, wherein the number of the variables and constants is multiple; A drawing module 20, used to enter the configuration interface of the business rule, and draw the business rule based on the variable and the constant using the configuration rule, wherein the configuration rule includes any one of serial decision, parallel decision and nested sub-rule decision or any arrangement of two or more of them; An adjustment module 30, configured to perform an overall test on the drawn business rules using an input technology, and adjust the drawn business rules based on the test results, wherein the input technology includes manual entry and electronic spreadsheet import; The processing module 40 is used to compare the variables with the structure of the real business table one by one. After the comparison is completed, the business data corresponding to the business table is processed based on the adjusted business rules to form the business data after the decision.
[0048] In some optional embodiments, the system further comprises: A creation module is used to create a structure library to provide variable benchmarks required for business rule configuration and prepare constants and variables, wherein the structure library includes multiple structures, each of which includes a structure table and fields, and the attributes of the fields include field name, field code, field value type, field value range, purpose and default value.
[0049] Furthermore, the serial decision includes the business rules being executed in sequence without conditional branching; the parallel decision includes the business rules being executed in one or more nodes during the flow process according to different business flow scenarios.
[0050] Furthermore, the nested sub-rule decision includes: In the business rule drawing process, determining whether other existing rules need to be used; If other existing rules need to be used, a sub-rule is selected to map the variables of the sub-rule with the variables of the parent rule; The mapping result is used as the decision value of the sub-rule node to facilitate the subsequent process flow.
[0051] Furthermore, the manual entry includes: inputting the variable values used in the rule path of the drawn business rule to the user end, wherein the manual entry only supports the simulation call of one data; the spreadsheet import includes: batch inputting the spreadsheet data to the user end.
[0052] In some optional embodiments, the system further comprises: The generation module is used to generate the object representation and extensible markup language corresponding to the business rules after drawing the business rules.
[0053] In some optional embodiments, the system further comprises: The service module is used to publish the adjusted business rules, generate corresponding authorization services based on the published business rules, and provide them to third parties for use.
[0054] The system based on rule tree decision-making business data provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the system embodiment, reference can be made to the corresponding contents in the aforementioned method embodiment.
[0055] Embodiment 3 like Figure 5 As shown, in the third embodiment of the present invention, the embodiment of the present invention provides the following technical solution, a computer, including a memory 202, a processor 201, and a computer program stored in the memory 202 and executable on the processor 201, and the processor 201 implements the method for making business data based on rule trees as described above when executing the computer program.
[0056] Specifically, the processor 201 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0057] Among them, the memory 202 may include a large-capacity memory for data or instructions. For example, but not limitation, the memory 202 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 202 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 202 may be inside or outside the data processing device. In a specific embodiment, the memory 202 is a non-volatile memory. In a specific embodiment, the memory 202 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM) or a flash memory (FLASH), or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0058] The memory 202 may be used to store or cache various data files that need to be processed and / or used for communication, as well as possible computer program instructions executed by the processor 201 .
[0059] The processor 201 implements the above-mentioned method for determining service data based on a rule tree by reading and executing computer program instructions stored in the memory 202 .
[0060] In some embodiments, the computer may further include a communication interface 203 and a bus 200. Figure 5 As shown, the processor 201, the memory 202, and the communication interface 203 are connected via a bus 200 and communicate with each other.
[0061] The communication interface 203 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 203 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.
[0062] The bus 200 includes hardware, software or both, and couples the components of the computer to each other. The bus 200 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 200 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 200 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0063] Embodiment 4 In a fourth embodiment of the present invention, in combination with the above-mentioned method for making decisions on business data based on a rule tree, an embodiment of the present invention provides the following technical solution: a storage medium having a computer program stored thereon, and the computer program implements the above-mentioned method for making decisions on business data based on a rule tree when executed by a processor.
[0064] Those skilled in the art will appreciate that the logic and / or steps described in the flowchart as data or in other ways herein, for example, can be considered as a sequenced data table of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses.
[0065] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0066] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0067] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0068] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for making business data decisions based on rule trees, characterized in that: The method comprises: Obtaining variables and constants required for configuring business rules, wherein the number of the variables and the constants is multiple; Entering the configuration interface of the business rule, and drawing the business rule based on the variable and the constant using the configuration rule, wherein the configuration rule includes any one of serial decision, parallel decision and nested sub-rule decision or any arrangement of two or more of them; Performing an overall test on the drawn business rules using input technology, and adjusting the drawn business rules based on the test results, wherein the input technology includes manual entry and electronic spreadsheet import; The variables are compared with the structures of the real business table one by one. After the comparison is completed, the business data corresponding to the business table is processed based on the adjusted business rules to form the business data after the decision.
2. The method for determining business data based on rule trees according to claim 1, characterized in that: Before the step of obtaining the variables and constants required for configuring the business rules, the method further includes: Create a structure library to provide variable benchmarks required for business rule configuration and prepare constants and variables, wherein the structure library includes multiple structures, each of which includes a structure table and fields, and the attributes of the fields include field name, field code, field value type, field value range, purpose and default value.
3. The method for determining business data based on rule trees according to claim 1, characterized in that: The serial decision-making includes the business rules being executed in sequence without any conditional branching; The parallel decision-making includes different scenarios according to different business flows in one or more nodes during the flow of the business rules.
4. The method for determining business data based on rule trees according to claim 1, characterized in that: The nested sub-rule decision includes: In the business rule drawing process, determining whether other existing rules need to be used; If other existing rules need to be used, a sub-rule is selected to map the variables of the sub-rule with the variables of the parent rule; The mapping result is used as the decision value of the sub-rule node to facilitate the subsequent process flow.
5. The method for determining business data based on rule trees according to claim 1, characterized in that: The manual entry includes: inputting the variable value used in the rule path of the drawn business rule to the user end, wherein the manual entry only supports the simulation call of one piece of data; The electronic form importing includes: inputting electronic form data into the user end in batches.
6. The method for determining business data based on rule trees according to claim 1, characterized in that: After the step of drawing the business rules based on the variables and the constants using the configuration rules, the method further includes: After drawing the business rules, the designer generates object representation and extensible markup language corresponding to the business rules.
7. The method for determining business data based on rule trees according to claim 1, characterized in that: After the step of using input technology to test the drawn business rules as a whole and adjusting the drawn business rules based on the test results, the method includes: The adjusted business rules are published, and corresponding authorization services are generated based on the published business rules, and provided to a third party for use.
8. A system for making business data based on rule trees, characterized in that: The system comprises: An acquisition module, used to acquire variables and constants required for configuring business rules, wherein the number of the variables and constants is multiple; A drawing module, used for entering the configuration interface of the business rule, and drawing the business rule based on the variable and the constant using the configuration rule, wherein the configuration rule includes any one of serial decision, parallel decision and nested sub-rule decision, or any arrangement of two or more of them; An adjustment module, used to perform an overall test on the drawn business rules using input technology, and adjust the drawn business rules based on the test results, wherein the input technology includes manual entry and electronic spreadsheet import; The processing module is used to compare the variables with the structure of the real business table one by one. After the comparison is completed, the business data corresponding to the business table is processed based on the adjusted business rules to form the business data after the decision.
9. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for making decision on business data based on a rule tree as described in any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the method for making decision on business data based on a rule tree according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Natural language-like-based rule configuration and analysis method, system and device
CN111966342A
Parallel fusion DRG analysis method and corresponding system
CN117976159A
Risk control decision engine decision method
CN118034769A
