Business rule data auditing method and system, computer equipment and medium
By generating and verifying business rule tables online, generating visual forms and conducting secondary audits, the problem of inefficiency in business rule review in the context of big data is solved, and efficient business rule management and cost control are achieved.
Patent Information
- Application Number
- CN202510340387.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-07-08
AI Technical Summary
In the context of big data and artificial intelligence, enterprises face the problems of increased workload, inefficiency and high operating costs of audit personnel caused by the large amount of rule data in business rules, and it is difficult for traditional manual maintenance to locate and modify personnel and manage versions.
By obtaining and configuring the business rule table headers, generating and verifying the business rule table, calling the database for parsing and generating visual tables, the target personnel only need to conduct a secondary audit of the visual tables, supporting online operations such as restoration, editing and viewing.
It reduces the workload of target personnel, improves business audit efficiency, reduces the operating costs of enterprises, and accurately locates and modifys records through online business rules tables, which facilitates management and maintenance.
Smart Images

Figure CN120277111A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical fields of computers and data processing, and particularly to a method and system for auditing business rule data, a computer device, and a medium. Background Art
[0002] In the context of big data and artificial intelligence, the need for enterprises to reduce costs and increase efficiency is increasing, and there is a scenario where a decision needs to be made based on numerous complex business rules. Business rules can be the logic and constraints formulated according to the specific business needs of an enterprise or organization, and are used to guide business processes, system interactions, data processing, user operations, etc. For example, for business auditing, currently, it is manually audited by auditors, requiring the auditors to master all the business rule formats corresponding to the business. However, when the amount of rule data is huge, it will increase the workload of the auditors and is also likely to cause the auditors to be unable to make accurate classification and induction. At the same time, when the number of businesses to be audited increases significantly in a short period of time, it will not only increase the operating costs of the enterprise, but also reduce the processing efficiency, resulting in a longer processing time. In addition, during the business auditing process, the auditors also need to perform various maintenance operations on the business rules. However, due to the offline mode of the traditional manual maintenance method, problems such as being unable to locate the modifier, the modified content, version management, and version rollback will occur. Summary of the Invention
[0003] In view of the above-mentioned disadvantages of the prior art, the purpose of this application is to provide a method and system for auditing business rule data, a computer device, and a medium, which are used to solve the technical problems existing in the prior art.
[0004] To achieve the above purpose and other related purposes, this application provides a method for auditing business rule data, including the following steps:
[0005] Obtain a first business rule table created in advance or in real time, and configure the header of the first business rule table; wherein, the header is used to restrict the data type and parsing method of the business rules;
[0006] Based on the header, configure the rule content of the first business rule table to generate a second business rule table;
[0007] Verify the rule content in the second business rule table, and add the second business rule table to a database established in advance or in real time according to the verification result;
[0008] Call the business rule table in the database to parse the business rule data to be audited, generate a visual business rule table according to the parsed data, and feedback the visual business rule table as the initial audit result of the business data to be audited to a target person determined in advance or in real time.
[0009] In an embodiment of the present application, after adding the second service rule table to a database established in advance or in real time according to the verification result, the method further includes:
[0010] Synchronize the service rule table in the database to a pre-established service rule table management interface, so that the target person can perform target operations through the service rule table management interface; wherein, the target operations include restoring the to-be-published service rules in the service rule table, editing the to-be-published service rules in the service rule table, publishing the to-be-published service rules in the service rule table, viewing the published service rules in the service rule table, editing the service rule table, deleting the service rule table, and / or viewing the log of the service rule table.
[0011] In an embodiment of the present application, the method further includes: comparing the to-be-published service rules and the published service rules in the service rule table, marking the differences between the to-be-published service rules and the published service rules with different display flags, and pop-up displaying the comparison result of the to-be-published service rules and the published service rules on the service rule table management interface; wherein, the display flag includes color.
[0012] In an embodiment of the present application, after performing a publishing operation on the to-be-published service rules in the service rule table, the method further includes:
[0013] In response to a publishing record viewing instruction, enter the service rule table publishing record management interface, and display the service rule table publishing record and the service rule change area in the service rule table publishing record management interface; wherein, the publishing record viewing instruction is generated by the target person by triggering on the service rule table management interface; the service rule table publishing record includes the service rule publishing name, service rule publishing version number, service rule publishing time, service rule publishing personnel, service rule publishing volume, service rule publishing status, and / or service rule publishing description; the service rule change area includes a button area for viewing the change content of the service rule table, a button area for rolling back the service rule publishing version, and / or a button area for adjusting the service rule publishing volume.
[0014] In an embodiment of the present application, the process of configuring the header of the first service rule table includes:
[0015] Determine the list table area to be configured with the header from the first service rule table, denoted as the target column; and,
[0016] Select the header of the target column from the preset header types, and fill the selected header into the target column to complete the configuration of the header of the target column; wherein, the preset header types include: business execution conditions, business execution actions, business data, business scenarios, and / or business execution priorities.
[0017] In an embodiment of the present application, the process of configuring the rule content for the first business rule table based on the header includes:
[0018] Determine the list table area to be configured with rule content from the first business rule table, select rule conditions according to the configuration conditions of the headers of the corresponding list table area, and select rule fields from the selected rule conditions;
[0019] Associate the rule conditions and rule fields in the same list table area as the rule content of the corresponding list table area; and perform pre-checks on the configured rule content, where the pre-checks include integrity checks, accuracy checks, and / or consistency checks.
[0020] In an embodiment of the present application, the method further includes: receiving the review note information of the target person on the visual business rule table, and using the review note information as the final review result of the business data to be reviewed.
[0021] The present application also provides a business rule data review system, which includes:
[0022] A data collection module for obtaining a first business rule table created in advance or in real time;
[0023] A configuration module for configuring the header of the first business rule table and configuring the rule content for the first business rule table based on the header to generate a second business rule table; wherein, the header is used to limit the data type and parsing method of the business rule;
[0024] A verification and storage module for verifying the rule content in the second business rule table and adding the second business rule table to a database established in advance or in real time according to the verification result;
[0025] An audit module for calling the business rule table in the database to parse the business rule data to be audited, generating a visual business rule table according to the parsed data, and feeding back the visual business rule table as the initial audit result of the business data to be audited to a pre-determined or real-time determined target person.
[0026] The present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory. The processor executes the computer program to implement the steps of the business rule data auditing method described in any one of the above.
[0027] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the business rule data auditing method described in any one of the above are implemented.
[0028] As described above, the present application provides a business rule data auditing method, system, computer device, and medium, which have the following beneficial effects: The present application generates a business rule table online and then adds the generated business rule table to the database. When a target person (such as an auditor) needs to conduct a business audit, the business rule table in the database is called to parse the business rule data to be audited to generate a visual business rule table, and then the visual business rule table is fed back to the target person as the initial audit result of the business data to be audited. The target person only needs to conduct a secondary audit on the visual business rule table to complete the audit work of the business data to be audited, thereby reducing the workload of the target person during business auditing and improving the business auditing efficiency of the target person. Moreover, by classifying and summarizing business rules in the business rule table, even if a large number of audit operations are added in a short period of time, it is not necessary for auditors to master all business rule formats, thus avoiding increasing the operating costs of the enterprise. At the same time, compared with the current offline maintenance mode, the modification records of the business rule table can be accurately located through the online business rule table, which is not only convenient for viewing the historical versions of the business rule table, but also convenient for the target person to manage and maintain the business rule table. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of an exemplary system architecture for applying the technical solutions in one or more embodiments of the present application;
[0030] Figure 2 A flowchart of the business rule data auditing method provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of a display interface when configuring rule content provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of a display interface when performing a target operation provided in an embodiment of the present application;
[0033] Figure 5 A schematic diagram of the comparison result between the business rules to be published and the published business rules provided in an embodiment of the present application;
[0034] Figure 6 Schematic diagram of the display interface of the business rule table release record management interface provided in an embodiment of the present application;
[0035] Figure 7 Schematic diagram of the display interface when configuring the business rule table header provided in an embodiment of the present application;
[0036] Figure 8 Schematic diagram of the display interface for selecting the data type of the condition column provided in an embodiment of the present application;
[0037] Figure 9 Schematic diagram of the display interface when selecting rule conditions provided in an embodiment of the present application;
[0038] Figure 10 Schematic diagram of the display interface when selecting rule fields provided in an embodiment of the present application;
[0039] Figure 11 Schematic diagram of the display interface of the business rule table after completing the configuration of the table header and rule content provided in an embodiment of the present application;
[0040] Figure 12 Schematic diagram of the execution principle of the rule middleware provided in an embodiment of the present application;
[0041] Figure 13 Schematic diagram of the process of the business rule data review method provided in another embodiment of the present application;
[0042] Figure 14 Schematic diagram of the hardware structure of the business rule data review system provided in an embodiment of the present application;
[0043] Figure 15 Schematic diagram of the hardware structure of a computer device suitable for implementing one or more embodiments of the present application. Detailed implementation manners
[0044] The following describes the implementation manners of the present application through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present application from the content disclosed in this specification. The present application can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It can be understood that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. In addition, it can be understood that the diagrams provided in the following embodiments only illustrate the basic concept of the present application schematically. Therefore, only the components related to the present application are shown in the diagrams, rather than being drawn according to the number, shape, and size of the components in actual implementation. The types, quantities, and proportions of the components in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0045] Figure 1 The following shows a schematic diagram of an exemplary system architecture to which the technical solutions in one or more embodiments of the present application can be applied. As Figure 1 shown, the system architecture 100 may include a terminal device 110, a network 120, and a server 130. The terminal device 110 may include various electronic devices such as a smart phone, a tablet computer, a laptop computer, and a desktop computer. The server 130 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 120 may be a communication medium of various connection types capable of providing a communication link between the terminal device 110 and the server 130. For example, it may be a wired communication link or a wireless communication link. According to the implementation requirements, the system architecture in the embodiments of the present application may have any number of terminal devices, networks, and servers. For example, the server 130 may be a server group composed of multiple server devices. In addition, the technical solutions provided in the embodiments of the present application can be applied to the terminal device 110, or can be applied to the server 130, or can be jointly implemented by the terminal device 110 and the server 130. The present application makes no special limitation thereto.
[0046] In an embodiment of the present application, the terminal device 110 or the server 130 of the present application can obtain a first service rule table created in advance or in real time, and configure the header of the first service rule table; and configure the rule content of the first service rule table based on the header to generate a second service rule table; verify the rule content in the second service rule table, and add the second service rule table to a database established in advance or in real time according to the verification result; call the service rule table in the database to parse the service rule data to be audited, generate a visual service rule table according to the parsed data, and feedback the visual service rule table as the initial audit result of the service rule data to be audited to a target person determined in advance or in real time. By using the terminal device 110 or the server 130 to execute the service rule data audit method, a service rule table can be generated online, and then the generated service rule table can be added to the database. When a target person (such as an auditor) needs to conduct a service audit, the service rule table in the database is called to parse the service rule data to be audited to generate a visual service rule table, and then the visual service rule table is fed back to the target person as the initial audit result of the service rule data to be audited. The target person only needs to conduct a secondary audit on the visual service rule table to complete the audit work of the service rule data to be audited, thereby reducing the workload of the target person during the service audit and improving the service audit efficiency of the target person. Moreover, by classifying and summarizing the service rules in the service rule table, even if a large number of audit services are added in a short period of time, it is not necessary for the auditors to master all the service rule formats, thereby avoiding increasing the operating costs of the enterprise. At the same time, compared with the current offline maintenance mode, the modification records of the service rule table can be accurately located through the online service rule table, which is not only convenient for viewing the historical versions of the service rule table, but also convenient for the target person to manage and maintain the service rule table.
[0047] The above part introduced the content of the exemplary system architecture applying the technical solution of the present application. Next, the service rule data audit method of the present application will be continued to be introduced.
[0048] Figure 2 The flowchart of a service rule data audit method is shown. Specifically, in an exemplary embodiment, as Figure 2 shown, this embodiment provides a service rule data audit method, including the following steps:
[0049] S210, Obtain the first business rule table created in advance or in real time, and configure the header of the first business rule table; wherein, the header is used to restrict the data type and parsing method of business rules. As an example, in this embodiment or other embodiments, the first business rule table may be a newly created blank business rule table or a business rule table in the initial state. As an example, in this embodiment or other embodiments, the first business rule table may be created by clicking the New Business Rule Table button on the business rule table management interface, and then saving the business rule table information after filling it in. As an example, in this embodiment or other embodiments, the business rule table management interface may be constructed using a construction tool based on the network visualization interface, where the construction tool can be selected according to the actual network visualization interface, and no specific restrictions are imposed on the construction tool here.
[0050] S220, Configure the rule content of the first business rule table based on the header to generate a second business rule table. As an example, the display interface when configuring the rule content of the first business rule table may be as Figure 3 shown, in Figure 3 the business rule table includes a button operation area, a rule content area, and a header.
[0051] S230, Verify the rule content in the second business rule table, and add the second business rule table to the database established in advance or in real time according to the verification result. As an example, in this embodiment or other embodiments, the database can be established or selected according to the actual situation, and no specific restrictions are imposed on the database here.
[0052] S240, Invoke the business rule table in the database to parse the business rule data to be audited, generate a visualized business rule table based on the parsed data, and feedback the visualized business rule table as the initial audit result of the business data to be audited to the target person determined in advance or in real time. As an example, in this embodiment or other embodiments, the target person may be an auditor or an operator who conducts business audits, etc.
[0053] According to the above description, in an exemplary embodiment, after adding the second business rule table to a database established in advance or in real time according to the verification result, the business rule data review method may further include: synchronizing the business rule table in the database to a pre-established business rule table management interface so that the target personnel can perform target operations through the business rule table management interface; wherein, the target operations include restoring the to-be-published business rules in the business rule table, editing the to-be-published business rules in the business rule table, publishing the to-be-published business rules in the business rule table, viewing the published business rules in the business rule table, editing the business rule table, deleting the business rule table, and / or viewing the log of the business rule table. As an example, in this embodiment or other embodiments, the business rule table management interface may include a header form query and new button area, a bottom table content display area, etc., and the target personnel can perform target operations in areas such as the header form query and new button area, the bottom table content display area. As an example, the display interface when the target personnel perform target operations through the business rule table management interface is as Figure 4 shown.
[0054] According to the above description, in an exemplary embodiment, the business rule data review method may further include: comparing the to-be-published business rules and the published business rules in the business rule table, marking the differences between the to-be-published business rules and the published business rules with different display flags, and pop-up displaying the comparison result of the to-be-published business rules and the published business rules on the business rule table management interface; wherein, the display flags include colors. As an example, in this embodiment or other embodiments, when marking the differences between the to-be-published business rules and the published business rules with different colors, the deletion difference between the to-be-published business rules and the published business rules may be marked in red, the addition difference between the to-be-published business rules and the published business rules may be marked in green, and the modification difference between the to-be-published business rules and the published business rules may be marked in yellow. As an example, the comparison result of the to-be-published business rules and the published business rules is as Figure 5 shown. It can be seen that by marking the differences between the to-be-published business rules and the published business rules with different colors, there is no need for the target personnel to manually compare the differences of the business rules, thereby reducing the workload of the target personnel, lowering the technical requirements for the target personnel, and improving the business review efficiency of the target personnel.
[0055] According to the above description, in an exemplary embodiment, after performing a publishing operation on the business rules to be published in the business rule table, the business rule data review method may further include: in response to a publishing record viewing instruction, entering the business rule table publishing record management interface, and displaying the business rule table publishing record and the business rule change area in the business rule table publishing record management interface; wherein, the publishing record viewing instruction is generated by a target person through triggering on the business rule table management interface; the business rule table publishing record includes the business rule publishing name, the business rule publishing version number, the business rule publishing time, the business rule publishing personnel, the business rule publishing volume, the business rule publishing status, and / or the business rule publishing description; the business rule change area includes a button area for viewing the change content of the business rule table, a button area for rolling back the business rule publishing version, and / or a button area for adjusting the business rule publishing volume. As an example, the display interface of the business rule table publishing record management interface is as shown in Figure 6 shown. It can be seen that by displaying the business rule table publishing record and the business rule change area in the business rule table publishing record management interface, when multiple people maintain and manage business rules, by clicking or triggering the button area for viewing the change content of the business rule table, the modifier, modification time, modification content, etc. of the business rule can be clearly queried; at the same time, by clicking or triggering the button area for rolling back the business rule publishing version, the historical published versions of the business rule can be viewed or rolled back; and by clicking or triggering the button area for adjusting the business rule publishing volume, the business rule publishing volume can be adjusted, solving the defect that the release ratio of the newly released version of the business rule cannot be set.
[0056] According to the above description, in an exemplary embodiment, the process of configuring the header of the first business rule table includes: determining the list table area to be configured with the header from the first business rule table, denoted as the target column; and selecting the header of the target column from the preset header types, and filling the selected header into the target column to complete the header configuration of the target column; wherein, the preset header types include: business execution conditions, business execution actions, business data, business scenarios, and / or business execution priorities. As an example, in this embodiment or other embodiments, the business rule header can be configured by right-clicking on the blank header area, and the corresponding display interface is as shown in Figure 7 shown. As an example, for example, if the business execution condition is selected from the preset header types as the table column of the target column, then the target column is the condition column at this time. Taking the condition column as an example, at this time, the data type of the header can be selected, the left value of the fixed condition rule can be selected, or the left value of the non-single source non-fixed condition rule can be selected. After triggering the save button, the business execution condition can be filled into the condition column to complete the header configuration of the condition column. The display interface for selecting the data type of the condition column is as shown in Figure 8 shown.
[0057] According to the above description, in an exemplary embodiment, the process of configuring rule content for the first business rule table based on the table header includes: determining a list table area in the first business rule table for which rule content is to be configured, selecting rule conditions according to the configuration conditions of the table header corresponding to the list table area, and selecting rule fields from the selected rule conditions; associating the rule conditions and rule fields of the same list table area as the rule content corresponding to the list table area; and performing a pre-check on the configured rule content, where the pre-check includes integrity check, accuracy check, and / or consistency check. As an example, in this embodiment or other embodiments, to determine the condition column in the first business rule table for which rule content is to be configured, one can right-click on the cell in the condition column where rule content needs to be configured, and then select rule conditions according to the configuration conditions of the table header corresponding to the list table area. The corresponding display interface is as shown in Figure 9 shown. When entering the specific rule configuration of the rule conditions, then select rule fields from the selected rule conditions. The corresponding display interface is as shown in Figure 10 shown. As an example, in this embodiment or other embodiments, the pop-up window content for configuring the rule content of the condition column includes a left value, a relational operator, and a right value. The left value belongs to a configurable enumeration type, such as a model field, a filled-in field, etc.; the relational operators include equal to, greater than, not equal to, contains, does not contain, etc.; the right value belongs to a configurable enumeration type, such as a model field, a filled-in field, a model field, etc. After filling in the content of the left value, relational operator, and right value, a conditional rule can be generated. At the same time, multiple rules can be filled in and combined into a new conditional rule using logical symbols such as AND and OR. For example: condition 1 AND (condition 2 OR condition 3), thus completing the configuration of the rule content for the condition column of the business rule table. As an example, the display interface of the business rule table generated after completing the configuration of the table header and rule content of the rule table is as shown in Figure 11 shown.
[0058] According to the above description, in an exemplary embodiment, the business rule data review method may further include: receiving the review note information of the target person on the visual business rule table, and using the review note information as the final review result of the business data to be reviewed. It can be seen that by using the visual business rule table as the initial review result of the business data to be reviewed and feedbacking it to the target person, the target person only needs to conduct a secondary review on the visual business rule table to complete the review work of the business data to be reviewed, thereby reducing the workload of the target person during business review and improving the business review efficiency of the target person.
[0059] According to the above description, in an exemplary embodiment, the business rule data review method may further include: synchronizing the successfully released business rules to the rule middleware platform. When business review is required, the rule data for the corresponding business scenario closest to the current time can be called from the rule middleware platform. When a target person (such as a reviewer) needs to conduct a business review, the business rule table in the database is called to parse the business rule data to be reviewed and generate a visual business rule table. Moreover, even if a large number of review operations are added in a short period of time, it is not necessary for the reviewers to master all business rule formats, thus avoiding an increase in the enterprise's operating costs. As an example, the execution principle of the rule middleware platform is as Figure 12 shown.
[0060] In another exemplary embodiment of the present application, as Figure 13 shown, this embodiment further provides a business rule data review method, including the following steps:
[0061] Step 1: Create a business rule table for decision-making, which can also be referred to as a decision business table. For example, the button for creating a new business rule table can be clicked on the business rule table management interface, and after filling in the business rule table information, it is saved to create a blank business rule table. The business rule table management interface can be constructed using a construction tool based on the network visualization interface. The construction tool can be selected according to the actual network visualization interface, and specific limitations on the construction tool are not provided here. Among them, the business rule table management interface is as Figure 4 shown, including a header form query and a new button area and a bottom table content display area. Click the button for creating a new business rule table, fill in the business rule table information, and then save it.
[0062] Step 2: Configure the header of the business rule table. After the creation of the business rule table is completed, click the edit button under the column of the rule to be released to enter the configuration of the business rule table. The business rule table consists of a button operation area and a rule table area, as Figure 3 shown; right-click on the blank header area to configure the business rule header, as Figure 7 shown. The header types include conditions, actions, business data, scenarios, and priorities. The header types limit the data types of the rules in this column and the subsequent rule parsing methods. As Figure 8 shown, taking the condition column as an example, select the data type, fix the left value of the conditional rule or select a non-single-source non-fixed conditional rule left value. After saving, the configuration of this column header takes effect. For other header types, no examples are given one by one here.
[0063] Step 3: Create rule content in the business rule table. After the configuration of the header type is completed, the specific rule content of this column can be configured, as Figure 9As shown, right-click on the cell that needs to configure the rule, select the specific operation content of this type, select the configuration condition to perform the specific configuration of the rule, and enter the specific rule configuration of the condition type. For example, Figure 10 As shown, the content of the condition type rule configuration pop-up window includes the left value, relational operator, and right value. The left value belongs to the configurable enumeration type, such as model fields, completion fields, etc. The relational operators include equal to, greater than, not equal to, contains, does not contain, etc. The right value belongs to the configurable enumeration type, such as model fields, completion fields, model fields, etc. Completing the filling of the left value, relational operator, and right value can generate a condition rule. At the same time, multiple rules can be filled in and combined into a new condition rule using logical symbols such as AND and OR. For example: Condition 1 AND (Condition 2 OR Condition 3). Thus, the content configuration of the condition type in the business rule table is completed. During the configuration process, the integrity, accuracy, and consistency of the rule will be verified in real time. The content configuration of other types of rules will not be exemplified one by one.
[0064] Step 4, verify and save the content of the business rule table and submit it to the rule server. After completing the configuration of the rule table header type and rule content, a business rule table is generated. As Figure 11 shown, click the save button to push the content of the business rule table to the rule server. The server program will verify the accuracy of the rule data. If the verification fails, it will respond with failure and throw error content to the operator. The operator modifies the rule according to the error prompt content and saves it again. After the rule data verification passes, the server responds successfully, and the operator gets a save success prompt on the rule management interface.
[0065] Step 5, the rule server parses the business rule data and stores it in the database. After the rule server responds successfully to the rule data, it parses the rule data according to the established rule parsing method. After parsing, it is stored in the database, and the stored data will be synchronized to the business rule table management interface. As Figure 4 shown, after storing in the database, the rule can be restored, edited, published, and the online rule can be viewed. At the same time, it also supports operations such as editing, deleting, and viewing operation logs of the rule table.
[0066] Step 6, publish the business rule table for execution in the business rule middleware platform. As Figure 4 shown, after the rule table data is updated and stored in the database, click the publish button on the business rule table management interface. The publish pop-up window can view the differences between the rules to be published and the published rules. As Figure 4 shown, red indicates deletion, green indicates addition, and yellow indicates modification. Fill in the release description and the release volume percentage. After successful release, the latest rule data is synchronized to the rule middleware platform. As Figure 12As shown, the corresponding business scenario can call the latest rule data. All release records can be viewed on the business rule table release record management interface. The release records can display the rule name, version number, release time, publisher, release volume, release status, etc. At the same time, it also supports viewing the release content, reverting to the specified version of the rule, and adjusting the rule release volume. Among them, the business rule table release record management interface is as Figure 6 shown.
[0067] Step 7, the client obtains the rule table data from the rule server. As Figure 4 shown, for rule changes, the edit button needs to be clicked on the business rule table management interface to enter the business rule visualization interface, and the rule data can be obtained by calling the rule server query interface according to the rule number.
[0068] Step 8, parse the business rule data to generate a rule visualization table. After obtaining the business rule data, based on the preset rule parsing code, different rule parsing codes are called according to different rule types to generate data recognizable by the corresponding rule components; based on the preset different types of rule components, the parsed data and the corresponding rule components are combined to generate the cells of the visualization rule table; finally, the rule components are used to integrate the parsed rule data and the corresponding rule components, and all cells are combined to generate a visual business rule table. Among them, the rule components include five types: priority, scenario, business data, action, and condition. The priority is used to configure the execution order of this rule; the scenario is used to configure which specific business scenario the rule applies to; the business data is used to configure the content of the rule, such as ID number, name, ID expiration time, etc.; the action is used to configure the specific execution action of the rule, for example: non-empty character (string: ID number - value), indicating that the ID number cannot be empty; the condition is used to configure the execution conditions, action, relationship, result, such as the registration node contains an ID card, the registration node contains a driver's license, etc.
[0069] It can be seen from this that in this embodiment, a new business rule is provided for the user through a network visualization interface. It supports setting the rule type of each column header in the rule table in the way of panel attributes. The rule content of each row sets the rule component according to the rule type of the header. Each rule component provides a visualization operation panel, and the integrity, accuracy, and consistency of the rule data are verified in real time. The configured rule can be saved to the rule server and pushed to the rule middleware for each business rule scenario to call. The business rule data of the rule server is obtained, and different rule parsing methods are called according to the rule type to generate rule data that can be recognized by different rule type components. The parsed rule data and the rule component are merged and rendered into a visualization rule table, which greatly facilitates the user operation and reduces the technical requirements for the operating user. At the same time, this embodiment also provides rule differentiation preview, release, rollback, etc., without the user having to manually compare, merge, and withdraw the rule data, which greatly enriches the meaning of the data processing result and brings great convenience to the operating user.
[0070] In summary, this application provides a method for auditing business rule data. By obtaining a first business rule table created in advance or in real time and configuring the header of the first business rule table; and based on the header, configuring the rule content of the first business rule table to generate a second business rule table; verifying the rule content in the second business rule table, and adding the second business rule table to a database established in advance or in real time according to the verification result; calling the business rule table in the database to parse the business rule data to be audited, generating a visualization business rule table according to the parsed data, and feeding back the visualization business rule table as the initial audit result of the business data to be audited to a target person determined in advance or in real time. This method generates a business rule table online and then adds the generated business rule table to the database. When a target person (such as an auditor) needs to conduct a business audit, the business rule table in the database is called to parse the business rule data to be audited to generate a visualization business rule table, and then the visualization business rule table is fed back as the initial audit result of the business data to be audited to the target person. The target person only needs to conduct a secondary audit on the visualization business rule table to complete the audit work of the business data to be audited, thereby reducing the workload of the target person during business audit and improving the business audit efficiency of the target person. Moreover, by classifying and summarizing business rules in the business rule table, even if a large number of audit operations are added in a short period of time, it is not necessary for the auditor to master all business rule formats, thereby avoiding increasing the operating cost of the enterprise. At the same time, compared with the current offline maintenance mode, the modification records of the business rule table can be accurately located through the online business rule table, which is not only convenient for viewing the historical version of the business rule table, but also convenient for the target person to manage and maintain the business rule table.
[0071] In another exemplary embodiment of this application, such asFigure 14 As shown in the figure, this embodiment also provides a business rule data audit system, including:
[0072] A data acquisition module 1410, configured to obtain a first business rule table created in advance or in real time. As an example, in this embodiment or other embodiments, the first business rule table may be a newly created blank business rule table or a business rule table in an initial state. As an example, in this embodiment or other embodiments, the first business rule table may be created by clicking the new business rule table button on the business rule table management interface, and then saving the business rule table information after filling it in. As an example, in this embodiment or other embodiments, the business rule table management interface may be constructed using a construction tool based on the network visualization interface, where the construction tool can be selected according to the actual network visualization interface, and no specific limitation is imposed on the construction tool here.
[0073] A configuration module 1420, configured to configure the header of the first business rule table and perform rule content configuration on the first business rule table based on the header to generate a second business rule table; wherein, the header is used to restrict the data type and parsing method of the business rules. As an example, the display interface when performing rule content configuration on the first business rule table may be as Figure 3 shown in the figure, and the business rule table in Figure 3 includes a button operation area, a rule content area, and a header.
[0074] A verification and warehousing module 1430, configured to verify the rule content in the second business rule table and add the second business rule table to a database established in advance or in real time according to the verification result. As an example, in this embodiment or other embodiments, the database can be established or selected according to the actual situation, and no specific limitation is imposed on the database here.
[0075] An audit module 1440, configured to call the business rule table in the database to parse the business rule data to be audited, generate a visual business rule table according to the parsed data, and feedback the visual business rule table as the initial audit result of the business data to be audited to a target person determined in advance or in real time. As an example, in this embodiment or other embodiments, the target person may be an auditor or an operator who conducts business audits, etc.
[0076] According to the above description, in an exemplary embodiment, after adding the second business rule table to a pre-established or real-time database according to the verification result, the business rule data review system may further include: synchronizing the business rule table in the database to a pre-established business rule table management interface, so that the target personnel can perform target operations through the business rule table management interface; wherein, the target operations include restoring the to-be-published business rules in the business rule table, editing the to-be-published business rules in the business rule table, publishing the to-be-published business rules in the business rule table, viewing the published business rules in the business rule table, editing the business rule table, deleting the business rule table, and / or viewing the log of the business rule table. As an example, in this embodiment or other embodiments, the business rule table management interface may include a header form query and new button area, a bottom table content display area, etc., and the target personnel can perform target operations in areas such as the header form query and new button area, the bottom table content display area. As an example, the display interface when the target personnel perform target operations through the business rule table management interface is as Figure 4 shown.
[0077] According to the above description, in an exemplary embodiment, the business rule data review system may further include: comparing the to-be-published business rules and the published business rules in the business rule table, marking the differences between the to-be-published business rules and the published business rules with different display flags, and pop-up displaying the comparison result of the to-be-published business rules and the published business rules on the business rule table management interface; wherein, the display flags include colors. As an example, in this embodiment or other embodiments, when marking the differences between the to-be-published business rules and the published business rules with different colors, the deletion differences between the to-be-published business rules and the published business rules can be marked in red, the new differences between the to-be-published business rules and the published business rules can be marked in green, and the modification differences between the to-be-published business rules and the published business rules can be marked in yellow. As an example, the comparison result of the to-be-published business rules and the published business rules is as Figure 5 shown. It can be seen that by marking the differences between the to-be-published business rules and the published business rules with different colors, there is no need for the target personnel to manually compare the differences of the business rules, thereby reducing the workload of the target personnel, lowering the technical requirements for the target personnel, and improving the business review efficiency of the target personnel.
[0078] According to the above description, in an exemplary embodiment, after performing a publishing operation on the business rules to be published in the business rule table, the business rule data review system may further include: in response to a publishing record viewing instruction, entering the business rule table publishing record management interface, and displaying the business rule table publishing record and the business rule change area in the business rule table publishing record management interface; wherein, the publishing record viewing instruction is generated by a target person through triggering on the business rule table management interface; the business rule table publishing record includes the business rule publishing name, the business rule publishing version number, the business rule publishing time, the business rule publishing personnel, the business rule publishing volume, the business rule publishing status, and / or the business rule publishing description; the business rule change area includes a button area for viewing the change content of the business rule table, a button area for rolling back the business rule publishing version, and / or a button area for adjusting the business rule publishing volume. As an example, the display interface of the business rule table publishing record management interface is as Figure 6 shown. It can be seen from this that by displaying the business rule table publishing record and the business rule change area in the business rule table publishing record management interface, when multiple people maintain and manage business rules, by clicking or triggering the button area for viewing the change content of the business rule table, the modification personnel, modification time, modification content, etc. of the business rule can be clearly queried; at the same time, by clicking or triggering the button area for rolling back the business rule publishing version, the historical publishing versions of the business rule can be viewed or rolled back; and by clicking or triggering the button area for adjusting the business rule publishing volume, the business rule publishing volume can be adjusted, solving the defect that the release ratio of the business rule of the newly released version cannot be set.
[0079] According to the above description, in an exemplary embodiment, the process of the configuration module 1420 configuring the header of the first business rule table includes: determining a list table area to be configured with a header from the first business rule table, denoted as the target column; and selecting a header for the target column from the preset header types, and filling the selected header into the target column to complete the header configuration of the target column; wherein, the preset header types include: business execution conditions, business execution actions, business data, business scenarios, and / or business execution priorities. As an example, in this embodiment or other embodiments, the business rule header can be configured by right-clicking on the blank header area, and the corresponding display interface is as Figure 7 shown. As an example, for example, selecting business execution conditions from the preset header types as the column of the target column, then the target column is the condition column at this time. Taking the condition column as an example, at this time, the data type of the header can be selected, the left value of the fixed condition rule can be selected or the left value of the non-single-source non-fixed condition rule can be selected. After triggering the save button, the business execution conditions can be filled into the condition column to complete the header configuration of the condition column. Among them, the display interface for selecting the data type of the condition column is as Figure 8 shown.
[0080] According to the above description, in an exemplary embodiment, the process of the configuration module 1420 configuring the rule content based on the table header for the first service rule table includes: determining a list table area to be configured with rule content from the first service rule table, selecting rule conditions according to the configuration conditions of the table header corresponding to the list table area, and selecting rule fields from the selected rule conditions; associating the rule conditions and rule fields of the same list table area as the rule content corresponding to the list table area; and performing a pre-check on the configured rule content, where the pre-check includes integrity check, accuracy check, and / or consistency check. As an example, in this embodiment or other embodiments, to determine the condition column to be configured with rule content from the first service rule table, one can right-click on the cell in the condition column where the rule content needs to be configured, and then select rule conditions according to the configuration conditions of the table header corresponding to the list table area. The corresponding display interface is as Figure 9 shown. When entering the specific rule configuration of the rule conditions, then select rule fields from the selected rule conditions. The corresponding display interface is as Figure 10 shown. As an example, in this embodiment or other embodiments, the pop-up window content for configuring the rule content of the condition column includes a left value, a relational operator, and a right value. The left value belongs to a configurable enumeration type, such as a model field, a completion field, etc.; the relational operators include equal to, greater than, not equal to, contains, does not contain, etc.; the right value belongs to a configurable enumeration type, such as a model field, a completion field, a model field, etc. After filling in the content of the left value, relational operator, and right value, a conditional rule can be generated. At the same time, multiple rules can be filled in and combined into a new conditional rule using logical symbols such as AND and OR. For example: condition 1 AND (condition 2 OR condition 3), thus completing the configuration of the rule content for the condition column of the service rule table. As an example, the display interface of the service rule table generated after completing the configuration of the table header and rule content of the rule table is as Figure 11 shown.
[0081] According to the above description, in an exemplary embodiment, the service rule data review system may further include: receiving the review note information of the target person on the visual service rule table and using the review note information as the final review result of the service data to be reviewed. It can be seen from this that by using the visual service rule table as the initial review result of the service data to be reviewed and feedbacking it to the target person, the target person only needs to perform a secondary review on the visual service rule table to complete the review work of the service data to be reviewed, thereby reducing the workload of the target person during business review and improving the business review efficiency of the target person.
[0082] According to the above description, in an exemplary embodiment, the business rule data review system may further include: synchronizing the successfully published business rules to the rule middle platform. When business review is required, the most recent rule data for the corresponding business scenario can be called from the rule middle platform. When a target person (such as a reviewer) needs to conduct a business review, the business rule table in the database is called to parse the business rule data to be reviewed to generate a visual business rule table. Moreover, even if a large number of review operations are added in a short period of time, it is not necessary for reviewers to master all business rule formats, thus avoiding increasing the operation cost of the enterprise. As an example, the execution principle of the rule middle platform is as Figure 12 shown.
[0083] In summary, the present application provides a business rule data review system. By obtaining a first business rule table created in advance or in real time and configuring the header of the first business rule table; and based on the header, configuring the rule content of the first business rule table to generate a second business rule table; verifying the rule content in the second business rule table, and adding the second business rule table to a database established in advance or in real time according to the verification result; calling the business rule table in the database to parse the business rule data to be reviewed, and generating a visual business rule table according to the parsed data, and using the visual business rule table as the initial review result of the business data to be reviewed and feeding it back to a target person determined in advance or in real time. This system generates a business rule table online and then adds the generated business rule table to the database. When a target person (such as a reviewer) needs to conduct a business review, the business rule table in the database is called to parse the business rule data to be reviewed to generate a visual business rule table, and then the visual business rule table is used as the initial review result of the business data to be reviewed and fed back to the target person. The target person only needs to conduct a secondary review of the visual business rule table to complete the review of the business data to be reviewed, thus reducing the workload of the target person during business review and improving the business review efficiency of the target person. Moreover, by classifying and summarizing business rules in the business rule table, even if a large number of review operations are added in a short period of time, it is not necessary for reviewers to master all business rule formats, thus avoiding increasing the operation cost of the enterprise. At the same time, compared with the current offline maintenance mode, the modification records of the business rule table can be accurately located through the online business rule table, which is not only convenient for viewing the historical versions of the business rule table, but also convenient for the target person to manage and maintain the business rule table.
[0084] It can be understood that the business rule data review system provided by the above embodiments and the business rule data review method provided by the above embodiments belong to the same concept. The specific manner of performing operations in the business rule data review method has been described in detail in the above method embodiments and will not be repeated here. In actual application, the business rule data review system provided by the above embodiments can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the business rule data review system into different functional modules, and then implement all or part of the functions of the corresponding functional modules through the business rule data review method described in the above embodiments. No specific limitation is made here either.
[0085] In another exemplary embodiment of the present application, this embodiment further provides a computer device, which may include a memory, a processor, and a computer program stored on the memory. The processor executes the computer program to cause the computer device to execute Figure 2 or Figure 13 the steps of the business rule data review method described above. Figure 15 FIG. shows a schematic structural diagram of a computer device 1000. Refer to Figure 15 As shown, the computer device 1000 includes: a processor 1010, a memory 1020, a power supply 1030, a display unit 1040, and an input unit 1060.
[0086] The processor 1010 is the control center of the computer device 1000, connects various components through various interfaces and lines, and executes various functions of the computer device 1000 by running or executing computer programs / instructions stored in the memory 1020, thereby performing overall monitoring of the computer device 1000. In the embodiments of the present application, when the processor 1010 calls the computer program stored in the memory 1020, it executes the steps of the business rule data review method as Figure 2 or Figure 13 described above. Optionally, the processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, applications, etc., and the modem processor mainly processes wireless communication. In some embodiments, the processor and the memory can be implemented on a single chip, and in some embodiments, they can also be implemented on separate chips respectively.
[0087] The memory 1020 may mainly include a program storage area and a data storage area. Among them, the program storage area may store the operating system, various applications, etc.; the data storage area may store instruction data created according to the use of the computer device 1000, etc. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices, etc.
[0088] The computer device 1000 further includes a power supply 1030 (such as a battery) for powering each component. The power supply can be logically connected to the processor 1010 through a power management system, so as to manage functions such as charging, discharging, and power consumption through the power management system.
[0089] The display unit 1040 can be used to display information input by the user or information provided to the user, as well as various menus of the computer device 1000, etc. In the embodiments of the present application, it is mainly used to display the display interfaces of various applications in the computer device 1000 and objects such as text and pictures displayed in the display interfaces. The display unit 1040 may include a display panel 1050. The display panel 1050 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
[0090] The input unit 1060 can be used to receive information such as numbers or characters input by the user. The input unit 1060 may include a touch panel 1070 and other input devices 1080. Among them, the touch panel 1070, also known as a touch screen, can collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel 1070).
[0091] Specifically, the touch panel 1070 can detect the touch operation of the user, detect the signals brought by the touch operation, convert these signals into contact coordinates, send them to the processor 1010, and receive and execute the commands sent by the processor 1010. In addition, the touch panel 1070 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. The other input devices 1080 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.
[0092] Of course, the touch panel 1070 can cover the display panel 1050. After the touch panel 1070 detects a touch operation on or near it, it is transmitted to the processor 1010 to determine the type of touch event. Subsequently, the processor 1010 provides a corresponding visual output on the display panel 1050 according to the type of touch event. Although in Figure 15 the touch panel 1070 and the display panel 1050 are implemented as two independent components to realize the input and output functions of the computer device 1000, in some embodiments, the touch panel 1070 and the display panel 1050 can be integrated to realize the input and output functions of the computer device 1000.
[0093] The computer device 1000 may further include one or more sensors, such as a pressure sensor, a gravitational acceleration sensor, a proximity light sensor, etc. Of course, according to the needs in specific applications, the above computer device 1000 may further include other components such as a camera.
[0094] The embodiment of the present application also provides a computer-readable storage medium. When the computer program / instructions stored in the storage medium are executed by a processor, the above device can execute the steps of the service rule data review method as described in Figure 2 or Figure 13 this application.
[0095] Those skilled in the art can understand that Figure 15 is only an example of a computer device and does not constitute a limitation on the device. The device may include more or fewer components than shown in the figure, or combine some components, or different components. For the convenience of description, the above parts are divided into various modules (or units) according to functions and described separately. Of course, when implementing the present application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0096] Those skilled in the art should understand that the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be applied to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, so that the instructions executed by the processors of the computer or other programmable data processing devices generate for implementing the process in Figure 1means for the functions specified in one or more processes and / or one or more boxes Figure 1 These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction means that implements the functions in the process Figure 1 means for the functions specified in one or more processes and / or one or more boxes Figure 1 These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, such that a series of operational steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in the process Figure 1 means for the functions specified in one or more processes and / or one or more boxes Figure 1 steps for implementing the functions specified in one or more boxes or more boxes.
[0097] The above embodiments are only illustrative of the principles and effects of the present application and are not intended to limit the present application. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed in the present application should still be covered by the claims of the present application.
Claims
1. A method for auditing business rule data, characterized in that, The method includes: Obtaining a first business rule table created in advance or in real time, and configuring the header of the first business rule table; wherein, the header is used to restrict the data type and parsing method of business rules; Based on the header, configuring the rule content of the first business rule table to generate a second business rule table; Verifying the rule content in the second business rule table, and adding the second business rule table to a database established in advance or in real time according to the verification result; Invoking the business rule table in the database to parse the business rule data to be audited, generating a visual business rule table according to the parsed data, and feeding back the visual business rule table as the initial audit result of the business data to be audited to a target person determined in advance or in real time.
2. The business rule data review method according to claim 1, characterized in that After adding the second business rule table to the database established in advance or in real time according to the verification result, the method further includes: Synchronizing the business rule table in the database to a pre-established business rule table management interface, so that the target person can perform target operations through the business rule table management interface; wherein, the target operations include restoring the business rules to be published in the business rule table, editing the business rules to be published in the business rule table, publishing the business rules to be published in the business rule table, viewing the published business rules in the business rule table, editing the business rule table, deleting the business rule table, and / or viewing the log of the business rule table.
3. The business rule data review method according to claim 2, characterized in that, The method further includes: comparing the business rules to be published and the published business rules in the business rule table, marking the differences between the business rules to be published and the published business rules with different display flags, and pop-up displaying the comparison result of the business rules to be published and the published business rules on the business rule table management interface; wherein, the display flags include colors.
4. The business rule data verification method according to claim 2, wherein After performing the publishing operation on the business rules to be published in the business rule table, the method further includes: Responding to a publishing record viewing instruction, entering a business rule table publishing record management interface, and displaying a business rule table publishing record and a business rule change area in the business rule table publishing record management interface; wherein, the publishing record viewing instruction is generated by the target person through triggering on the business rule table management interface; the business rule table publishing record includes a business rule publishing name, a business rule publishing version number, a business rule publishing time, a business rule publishing person, a business rule publishing volume, a business rule publishing status, and / or a business rule publishing description; the business rule change area includes a button area for viewing the change content of the business rule table, a button area for rolling back the business rule publishing version, and / or a button area for adjusting the business rule publishing volume.
5. The business rule data verification method according to claim 1, wherein The process of configuring the header of the first business rule table includes: Determining a list table area to be configured with a header from the first business rule table, denoted as a target column; and, Select the header of the target column from the preset header types, and fill the selected header into the target column to complete the configuration of the header of the target column; wherein, the preset header types include: business execution conditions, business execution actions, business data, business scenarios, and / or business execution priorities.
6. The business rule data verification method according to claim 1 or 5, characterized in that The process of configuring the rule content for the first business rule table based on the header includes: Determine the list table area to be configured with rule content from the first business rule table, select rule conditions according to the configuration conditions of the header of the corresponding list table area, and select rule fields from the selected rule conditions; Associate the rule conditions and rule fields in the same list table area as the rule content of the corresponding list table area; and perform pre-checks on the configured rule content, where the pre-checks include integrity checks, accuracy checks, and / or consistency checks.
7. The business rule data review method according to claim 1, wherein The method further includes: receiving the review comment information of the target person on the visual business rule table, and using the review comment information as the final review result of the business data to be reviewed.
8. A business rule data audit system, characterized in that The system includes: A data collection module for obtaining a first business rule table created in advance or in real time; A configuration module for configuring the header of the first business rule table and configuring the rule content for the first business rule table based on the header to generate a second business rule table; wherein, the header is used to restrict the data type and parsing method of the business rule; A verification and storage module for verifying the rule content in the second business rule table and adding the second business rule table to a database established in advance or in real time according to the verification result; A review module for calling the business rule table in the database to parse the business rule data to be reviewed, generating a visual business rule table according to the parsed data, and feeding back the visual business rule table as the initial review result of the business data to be reviewed to a target person determined in advance or in real time.
9. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory. The processor executes the computer program to implement the steps of the business rule data review method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the computer program is executed by a processor, it implements the steps of the business rule data review method according to any one of claims 1 to 7.