Business processing methods, devices, computer equipment and storage media

By setting up a local rule base in the local business system and calling local rules offline based on the priority identifier of the rules, the network problems caused by the high timeliness requirements of the business system and the high frequency of intensive business are solved, achieving rapid response and reducing the burden on remote systems.

CN116860793BActive Publication Date: 2026-04-03SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

When business systems request remote rule systems, the processing results, which have high timeliness requirements, cannot be returned in a timely manner. High-intensity business leads to large network overhead and increases the burden on the remote rule system.

Method used

The local business system has a pre-set local rule base. It determines whether to call local rules or remote rules offline based on the priority identifier of the rules. This includes setting rules with high timeliness requirements and high-intensity business as offline rules. No network support is required when calling local rules offline.

Benefits of technology

It solves the problem of delayed return of results for business requests with high timeliness requirements, reduces network overhead caused by high-intensity business, and lowers the burden on the remote rules system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860793B_ABST
    Figure CN116860793B_ABST
Patent Text Reader

Abstract

This application discloses a business processing method, apparatus, computer equipment, and storage medium. The method includes: a local business system acquiring a target business request, the target business request including a target rule identifier and a target factor value; then determining a target priority identifier corresponding to the target rule identifier according to a preset correspondence between rules and priority identifiers; if the target priority identifier is a remote identifier, sending the target business request to a remote rule system, so that the remote rule system determines a target processing result according to a first target rule and a target factor value, the first target rule being a rule in a remote rule library corresponding to the target rule identifier, the remote rule library being located in the remote rule system; receiving the target processing result returned by the remote rule system; if the target priority identifier is an offline identifier, determining the target processing result according to a second target rule in the local rule library corresponding to the target rule identifier and a target factor value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a business processing method, apparatus, computer equipment, and storage medium. Background Technology

[0002] With the rapid development of business, the number of business systems is increasing day by day. In order to facilitate the rule calling of each business system, a remote rule system is set up. When a business system needs to call a rule, it sends a request to the remote rule system, and then the remote rule system returns the corresponding processing result to the business system according to the request.

[0003] However, when a business system requests a remote rules system, the processing results may not be returned in a timely manner due to network issues, which is not user-friendly for some business requests with high timeliness requirements. In addition, for some high-intensity business, frequent access to the remote rules system is required, resulting in high network overhead. Furthermore, if all requests call the remote rules system's interface, it will increase the burden on the remote rules system. There is an urgent need for a way to solve the above problems. Summary of the Invention

[0004] This application provides a business processing method, apparatus, computer equipment, and storage medium, which can solve the problems of delayed return of processing results for business requests with high timeliness requirements and high network overhead caused by high-intensity business, and reduce the burden on remote rule systems.

[0005] In a first aspect, embodiments of this application provide a business processing method, the method being applied to a local business system, the method comprising:

[0006] Obtain the target service request, which includes the target rule identifier and the target factor value;

[0007] Based on the preset correspondence between rules and priority identifiers, determine the target priority identifier corresponding to the target rule identifier;

[0008] If the target priority identifier is a remote identifier, then the target service request is sent to the remote rule system, so that the remote rule system determines the target processing result according to the first target rule and the target factor value. The first target rule is the rule in the remote rule base that corresponds to the target rule identifier. The remote rule base is located in the remote rule system.

[0009] Receive the target processing result returned by the remote rule system;

[0010] If the target priority identifier is an offline identifier, then the target processing result is determined according to the second target rule corresponding to the target rule identifier in the local rule base and the target factor value.

[0011] Secondly, embodiments of this application provide a business processing method, which is applied to a remote rules system, and the method includes:

[0012] When the local business system determines that the target rule identifier in the target business request is a remote identifier, it receives the target business request sent by the local business system. The target business request includes the target rule identifier and the target factor value.

[0013] Determine the first target rule corresponding to the target rule identifier from a preset remote database;

[0014] The target processing result is determined based on the first target rule and the target factor value;

[0015] The target processing result is sent to the local business system.

[0016] This application also provides a service processing apparatus, including a first service processing apparatus provided by a third aspect and a second service processing apparatus provided by a fourth aspect.

[0017] Thirdly, embodiments of this application also provide a first service processing device, which is configured in a local service system, and the first service processing device includes:

[0018] The first transceiver unit is used to acquire a target service request, the target service request including a target rule identifier and a target factor value;

[0019] The first processing unit is used to determine the target priority identifier corresponding to the target rule identifier according to the preset correspondence between the rules and priority identifiers.

[0020] The first transceiver unit is further configured to send the target service request to the second service processing device when the target priority identifier is a remote identifier, so that the second service processing device determines the target processing result according to the first target rule and the target factor value, wherein the first target rule is a rule in the remote rule base corresponding to the target rule identifier, and the remote rule base is located in the second service processing device; and receive the target processing result returned by the second service processing device.

[0021] The first processing unit is further configured to determine the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value when the target priority identifier is an offline identifier.

[0022] Thirdly, embodiments of this application also provide a second service processing device, which is configured in a remote rules system, and the second service processing device includes:

[0023] The second transceiver unit is configured to receive the target service request sent by the first service processing device when the first service processing device determines that the target rule identifier in the target service request is a remote identifier. The target service request includes the target rule identifier and the target factor value.

[0024] The second processing unit is configured to determine a first target rule corresponding to the target rule identifier from a preset remote database; and to determine a target processing result based on the first target rule and the target factor value.

[0025] The second transceiver unit is also used to send the target processing result to the first service processing device.

[0026] Fourthly, embodiments of this application also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0027] Fifthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, can implement the above-described method.

[0028] This application provides a business processing method, apparatus, computer device, and storage medium. The method includes: a local business system acquiring a target business request, the target business request including a target rule identifier and a target factor value; then, based on a preset correspondence between rules and priority identifiers, determining a target priority identifier corresponding to the target rule identifier; if the target priority identifier is a remote identifier, sending the target business request to a remote rule system, causing the remote rule system to determine a target processing result based on a first target rule and the target factor value, the first target rule being a rule in a remote rule library corresponding to the target rule identifier, the remote rule library being located in the remote rule system; receiving the target processing result returned by the remote rule system; if the target priority identifier is an offline identifier, determining the target processing result based on a second target rule in the local rule library corresponding to the target rule identifier and the target factor value. Since the local business system in this solution has a pre-set local rule base, the rules in the local rule base can be used offline by the local business system. Users can pre-set different priority indicators for different rules as needed. For example, the priority indicator of rules corresponding to business with high timeliness requirements and high frequency can be set to offline indicator. When a business request is obtained, the local business system will determine whether to call the local rule offline or the rule in the remote rule system according to the priority indicator of the rule to be called by the business request. Since offline calling of local rules does not require network support, this solution can solve the problems of the inability to return the processing results of business requests with high timeliness requirements in a timely manner and the large network overhead caused by high frequency and high frequency business, and reduce the burden on the remote rule system. Attached Figure Description

[0029] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 This is a schematic diagram illustrating an application scenario of the business processing method provided in the embodiments of this application;

[0031] Figure 2 A flowchart illustrating the rule configuration provided in this application embodiment;

[0032] Figure 3 Another flowchart illustrating the rule configuration provided in this application embodiment;

[0033] Figure 4 A flowchart illustrating the business processing method provided in this application embodiment;

[0034] Figure 5 A schematic block diagram of a first service processing apparatus provided in an embodiment of this application;

[0035] Figure 6 A schematic block diagram of a second service processing apparatus provided in an embodiment of this application;

[0036] Figure 7 A schematic block diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0037] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0038] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0039] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0040] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0041] This application provides a business processing method, apparatus, computer equipment, and storage medium.

[0042] The execution subject of this business processing method may be the business processing device (first business processing device and / or second business processing device) provided in the embodiments of this application, or a computer device that integrates the business processing device. The business processing device may be implemented in hardware or software, and the computer device may be a terminal or a server. The terminal may be a smartphone, tablet computer, handheld computer, or laptop computer, etc.

[0043] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of the business processing method provided in an embodiment of this application. The business processing method is applied to… Figure 1 In the local business system 10, the local business system 10 acquires a target business request, which includes a target rule identifier and a target factor value. Then, according to a preset correspondence between rules and priority identifiers, it determines a target priority identifier corresponding to the target rule identifier. If the target priority identifier is a remote identifier, the local business system 10 sends the target business request to a remote rule system 20, so that the remote rule system 20 determines a target processing result based on a first target rule and the target factor value. The first target rule is a rule in a remote rule library that corresponds to the target rule identifier, and the remote rule library is located in the remote rule system 20. The local business system 10 receives the target processing result returned by the remote rule system 20. If the target priority identifier is an offline identifier, the local business system 10 determines the target processing result based on a second target rule in the local rule library that corresponds to the target rule identifier and the target factor value.

[0044] It should be noted that the remote rule system provided in this application can provide remote rule invocation services for multiple business systems. Users can easily create new rules for the remote rule system or local business systems, and then store these new rules in the remote database. Specifically, when creating a new rule, multiple rule configuration methods are supported, including text, images, and JSON. The rules are ultimately saved as JSON, allowing them to run without subsequent compilation.

[0045] Among them, the text rule configuration method involves inputting a text description of the rule and then creating the rule by translating the rule text; the image rule configuration method involves creating the rule by pulling the corresponding add component and combining it with the rule parameters; and the JSON rule configuration method involves directly inputting the rule in JSON format to create the rule.

[0046] Specifically, the image rule configuration method is as follows: Figure 2 As shown, it includes the following steps:

[0047] S110. Display the rule configuration page, which displays multiple condition components.

[0048] The conditional components include if components, else conditional components, etc., and are displayed on the page in the form of images.

[0049] S120: Obtain the user's selection operation for the target condition component among the multiple condition components.

[0050] For example, if the user selects the if component, then the if component will be used as the target condition component.

[0051] S130. In response to the selection operation, display the parameter input box of the target condition component.

[0052] In this embodiment, after selecting the target condition component, the corresponding parameter input box will be displayed.

[0053] S140. Obtain the target rule parameters input by the user based on the parameter input box.

[0054] Specifically, enter the target rule parameter in the displayed parameter input box. For example, the target rule parameter entered in the parameter input box corresponding to the if component is: greater than 5 and less than or equal to 7.

[0055] S150. Create the new rule based on the target condition component and the target rule parameters.

[0056] Specifically, users need to select multiple target condition components and enter the target rule parameters corresponding to each target component. After all the input is completed, click "OK" on the page to automatically generate new rules.

[0057] As can be seen, this embodiment eliminates the need for users to write code when creating new rules, resulting in low learning costs and high efficiency.

[0058] Specifically, the text rule configuration method is as follows: Figure 3 As shown, it includes the following steps:

[0059] S210, Obtain the new rule text input by the user.

[0060] Specifically, users can directly enter the new rule text in text form.

[0061] S220. The new rule text is converted into JSON format using a preset text rule parser and preset factor matching and conversion rules to obtain the new rule.

[0062] In this embodiment, the text rule parser can be an Antlr text parser. First, the text rule parser parses the conditional text in the new rule text. Then, the new rule text is converted into JSON format according to the preset factor matching and conversion rules. The factor matching and conversion rules include multiple factors and JSON format factors corresponding to each factor. These factors are conditional text.

[0063] As can be seen, this embodiment also eliminates the need for users to write code when creating new rules, resulting in low learning costs and high efficiency.

[0064] The following is a detailed description of the business processing method provided in this application:

[0065] Figure 4 This is a flowchart illustrating the business processing method provided in an embodiment of this application. For example... Figure 4 As shown, the method includes the following steps S310-S370.

[0066] S310. The local business system obtains the target business request, which includes the target rule identifier and the target factor value.

[0067] In some embodiments, when the target business system needs to invoke the target rule, it first needs to enter or select the target rule identifier of the required rule in the rule invocation page of the local business system. For example, when it is necessary to invoke the "salary adjustment rule", the salary adjustment rule identifier corresponding to the "salary adjustment rule" is entered or selected in the rule invocation interface.

[0068] At this point, when a user enters or selects a target rule identifier in the local business system, the local business system will display the factor input box corresponding to the target rule identifier. The user enters the corresponding target factor value in the factor input box. For example, the factor input box corresponding to the target rule identifier includes a seniority factor input box and a level factor input box. For example, if the entered seniority is 5 years and the level is 3, then 5 years and 3 levels will be used as the target factor values ​​corresponding to the seniority factor and the level factor, respectively. Then, the user clicks "confirm" on the page, so that the local business system obtains the target business request containing the target rule identifier and the target factor value.

[0069] In other embodiments, when a user selects or enters a target rule identifier, the target factor value can be automatically obtained through a preset target factor value acquisition interface.

[0070] Furthermore, after the local business system obtains the target business request, it will further determine whether the target factor value meets the target factor condition corresponding to the target rule identifier.

[0071] For example, the target factor condition corresponding to the seniority factor is: the factor value is a number greater than 0 and less than 20. In this case, if the number 30 is entered, or a Chinese character is entered, an error will be returned. Only when the target factor value is verified to meet the target factor condition corresponding to the target rule identifier will the target priority identifier corresponding to the target rule identifier be further determined according to the correspondence between the rule and the priority identifier.

[0072] S320. The local business system determines the target priority identifier corresponding to the target rule identifier according to the preset correspondence between the rules and priority identifiers; if the target priority identifier is a remote identifier, then steps S330-S360 are executed; if the target priority identifier is an offline identifier, then step S370 is executed.

[0073] In this embodiment, when the local business system receives a target business request and the target factor value in the request is verified, the target priority label corresponding to the target rule label is obtained according to the preset correspondence between the rules and priority labels.

[0074] In the local business system, each rule required by the system is assigned a priority identifier, which can be either a remote identifier or an offline identifier. When the identifier is remote, rules in the remote rule system are called first; when the identifier is offline, rules in the local rule library are called first.

[0075] For example, in this embodiment, the user can set the priority identifier of the rules corresponding to services with high timeliness requirements and high frequency of occurrence to an offline identifier, and determine the identifier of the rules corresponding to low frequency of occurrence to a remote identifier.

[0076] S330. The local business system sends the target business request to the remote rules system.

[0077] In this embodiment, when the target priority identifier is a remote identifier, the target service request is sent to the remote rule system.

[0078] Specifically, the remote rules system's interface is invoked via HyperText Transfer Protocol (HTTP) or Remote Procedure Call Protocol (RPC), enabling the remote rules system to process the target business request.

[0079] It should be noted that if a remote call exception response is received from the remote rule system, the target processing result needs to be determined based on the second target rule corresponding to the target rule identifier in the local business system and the target factor value.

[0080] S340. The remote rule system determines the first target rule corresponding to the target rule identifier from a preset remote database.

[0081] In this embodiment, the remote database contains multiple rules, such as rules for calculating salaries upon new employee onboarding, rules for adjusting salaries, and so on.

[0082] If the target rule identifier is the new employee onboarding salary rule identifier, then the new employee onboarding salary rule corresponding to the new employee onboarding salary rule identifier in the remote database will be determined as the first target rule.

[0083] In this embodiment, the business of new employee onboarding and payroll is a business with low timeliness requirements and low request density. Therefore, a remote priority flag can be set for the rule flag corresponding to this business, and the process can be carried out by calling the remote rule system.

[0084] S350, The remote rule system determines the target processing result based on the first target rule and the target factor value.

[0085] For example, if the target factor value is "yes" for whether a certain skill certificate is possessed and the years of service are 5, then these factor values ​​are combined with the first target rule to return the processing result, which is the salary of the new employee.

[0086] Specifically, in some embodiments, the target service request also includes multiple target rule identifiers. In this case, when the remote rule system executes the rules corresponding to each target rule identifier, it also needs to parse the dependencies between the rules and the order in which the rules are assembled, and then determine the target processing result based on the assembled rules and the target factor value.

[0087] Executing different rule contents requires calling the corresponding rule executor. In this embodiment, the rule executors include: operation expression executor, decision table rule executor, decision set rule executor, and scorecard rule executor, etc.

[0088] S360, the remote rules system sends the target processing result to the local business system.

[0089] In this embodiment, after the remote rule system obtains the corresponding target processing result, it returns the target processing result to the local business system.

[0090] S370. The local business system determines the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value.

[0091] In this embodiment, if the target priority identifier is an offline identifier, the rules in the local rule base need to be called first, and the target processing result is determined according to the second target rule corresponding to the target rule identifier in the local rule base and the target factor value.

[0092] For example, if the target rule is identified as "salary adjustment rule identifier", then the "salary adjustment rule" corresponding to the "salary adjustment rule identifier" in the local rule base needs to be identified as the second target rule, and then the target processing result is determined according to the second target rule and the target factor value.

[0093] It should be noted that, after the target priority identifier is an offline identifier, before determining the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value, the method further includes: determining whether the second target rule call is abnormal; if the second target rule call is abnormal, then sending the target service request to the remote rule system; if the second target rule call is normal, then executing the step of determining the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value.

[0094] At this point, determining the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value includes: if the second target rule is invoked normally, then determining the target processing result based on the second target rule and the target factor value.

[0095] If the salary adjustment is a collective adjustment for all company employees, then this is a high-incidence and high-volume business. Adjusting salaries using offline rules can reduce network overhead.

[0096] This embodiment can update the rules in the local database. The update steps are as follows:

[0097] Generate a rule update request, the rule update request including an identifier of the rule to be updated; send the rule update request to the remote rule system; receive the updated rule corresponding to the identifier of the rule to be updated returned by the remote rule system; update the local rule base according to the updated rule.

[0098] It should be noted that the rules in the local business system's local rule base need to be updated according to the rules in the remote rule system, including at least one of the following update methods: manual update and automatic update.

[0099] In some embodiments, different update methods are set for different rules. For example, for low-frequency rules such as the new employee onboarding salary calculation rule (such as the rule corresponding to the first rule identifier), automatic updates can be set. For rules such as the salary adjustment rule that involves salary adjustments for all employees in the company (such as the rule corresponding to the second rule identifier), manual updates need to be set in order to ensure that all employees in the company use the same set of rules.

[0100] Specifically, the rules are automatically updated through the following steps: a first update request carrying a first rule identifier is generated according to a preset rule update script, wherein the rule update request includes the first update request, and the identifier to be updated includes the first rule identifier;

[0101] The rules are manually updated according to the following rules: receiving a rule update instruction input by the user for a second rule identifier, wherein the identifier to be updated includes the second rule identifier; in response to the rule update instruction, generating a second update request carrying the second rule identifier, wherein the rule update request includes the second update request.

[0102] When the remote rule system determines that the rule corresponding to the rule identifier to be updated has been updated, it returns the updated rule to the local business system.

[0103] In summary, since the local business system of this solution has a pre-set local rule base, the rules in the local rule base can be used offline by the local business system. Users can pre-set different priority indicators for different rules as needed. For example, the priority indicator for rules corresponding to business with high timeliness requirements and high frequency can be set to an offline indicator. When a business request is obtained, the local business system will determine whether to call the local rule offline or the rule in the remote rule system based on the priority indicator of the rule to be called by the business request. Since offline calling of local rules does not require network support, this solution can solve the problems of the inability to return the processing results of business requests with high timeliness requirements in a timely manner and the large network overhead caused by high frequency business, and reduce the burden on the remote rule system.

[0104] In addition, this application also has the following beneficial effects:

[0105] 1. The local business system supports two operating modes: remote service invocation and local offline operation;

[0106] 2. JSON rules support advanced rule patterns such as decision sets, rule streams, and rule tables;

[0107] 3. Rules are fully configurable, easy to learn, and require zero-code development;

[0108] 4. The offline operation rules are decentralized, supporting high-concurrency scenarios.

[0109] This application also provides a business processing apparatus, including... Figure 5 The first service processing device 500 shown, and Figure 6 The second service processing device 600 shown includes:

[0110] Figure 5 This is a schematic block diagram of a first service processing device 500 provided in an embodiment of this application. Figure 5As shown, corresponding to the above business processing method, this application also provides a first business processing apparatus 500. The first business processing apparatus 500 includes a unit for executing the above business processing method, and the first business processing apparatus 500 can be configured in a local business system. Specifically, please refer to... Figure 5 The first service processing device 500 includes a first transceiver unit 501 and a first processing unit 502, wherein:

[0111] The first transceiver unit 501 is used to acquire a target service request, the target service request including a target rule identifier and a target factor value;

[0112] The first processing unit 502 is used to determine the target priority identifier corresponding to the target rule identifier according to the preset correspondence between the rules and priority identifiers.

[0113] The first transceiver unit 501 is further configured to send the target service request to the second service processing device 600 when the target priority identifier is a remote identifier, so that the second service processing device 600 determines the target processing result according to the first target rule and the target factor value, wherein the first target rule is a rule in the remote rule base corresponding to the target rule identifier, and the remote rule base is located in the second service processing device 600; and receive the target processing result returned by the second service processing device 600.

[0114] The first processing unit 502 is further configured to determine the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value when the target priority identifier is an offline identifier.

[0115] In some embodiments, the first processing unit 502 is further configured to generate a rule update request, the rule update request including an identifier of a rule to be updated; send the rule update request to the second service processing device 600; receive an updated rule corresponding to the identifier of the rule to be updated returned by the second service processing device 600; and update the local rule base according to the updated rule.

[0116] In some embodiments, when the first processing unit 502 executes the generation rule update request step, it is specifically used for:

[0117] A first update request carrying a first rule identifier is generated according to a preset rule update script; the rule update request includes the first update request, and the identifier to be updated includes the first rule identifier; and / or,

[0118] The first transceiver unit 501 receives a rule update instruction input by the user for a second rule identifier, wherein the identifier to be updated includes the second rule identifier; in response to the rule update instruction, a second update request carrying the second rule identifier is generated, wherein the rule update request includes the second update request.

[0119] In some embodiments, after performing the step of sending the target service request to the second service processing device 600, the first transceiver unit 501 is further configured to:

[0120] If a remote call exception response is received from the second service processing device 600, the target processing result is determined according to the second target rule and the target factor value.

[0121] In some embodiments, after determining that the target priority identifier is an offline identifier, and before executing the step of determining the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value, the first processing unit 502 is further configured to:

[0122] Determine whether the second target rule call is abnormal; if the second target rule call is abnormal, send the target service request to the second service processing device 600 based on the first transceiver unit 501; if the second target rule call is normal, execute the step of determining the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value.

[0123] In some embodiments, after the first transceiver unit 501 performs the step of obtaining the target service request, the first processing unit 502 is further configured to:

[0124] Determine whether the target factor value meets the target factor condition corresponding to the target rule identifier;

[0125] At this time, when the first processing unit 502 executes the step of determining the target priority identifier corresponding to the target rule identifier based on the preset correspondence between rules and priority identifiers, it is specifically used for:

[0126] If the target factor value meets the target factor condition, then the target priority identifier corresponding to the target rule identifier is determined according to the correspondence between the rule and the priority identifier.

[0127] Figure 6 This application provides a schematic block diagram of a second service processing device 600. (See attached diagram.) Figure 6As shown, corresponding to the above business processing method, this application also provides a second business processing apparatus 600. The second business processing apparatus 600 includes a unit for executing the above business processing method, and the second business processing apparatus 600 can be configured in a remote rule system. Specifically, please refer to... Figure 6 The second service processing device 600 includes a second transceiver unit 601 and a second processing unit 602, wherein:

[0128] The second transceiver unit 601 is used to receive the target service request sent by the first service processing device 500 when the first service processing device 500 determines that the target rule identifier in the target service request is a remote identifier. The target service request includes the target rule identifier and the target factor value.

[0129] The second processing unit 602 is configured to determine a first target rule corresponding to the target rule identifier from a preset remote database; and determine a target processing result based on the first target rule and the target factor value.

[0130] The second transceiver unit 601 is also used to send the target processing result to the first service processing device 500.

[0131] In some embodiments, the second processing unit 602 is further configured to create a new rule and store the new rule in the remote database.

[0132] In some embodiments, when the second processing unit 602 performs the step of creating a new rule, it is specifically used to display a rule configuration page, which displays multiple condition components; obtain the user's selection operation for a target condition component among the multiple condition components through the second transceiver unit 601; in response to the selection operation, display a parameter input box for the target condition component; obtain the target rule parameters input by the user based on the parameter input box through the second transceiver unit 601; and create the new rule according to the target condition component and the target rule parameters.

[0133] In other embodiments, when the second processing unit 602 performs the step of creating a new rule, it is specifically used to obtain the new rule text input by the user through the second transceiver unit 601; and convert the new rule text into JSON format through a preset text rule parser and preset factor matching and conversion rules to obtain the new rule.

[0134] In summary, since the first business processing device 500 of this solution has a pre-set local rule base, the rules in the local rule base can be used offline by the first business processing device 500. Users can pre-set different priority indicators for different rules as needed. For example, the priority indicator of rules corresponding to services with high timeliness requirements and high frequency can be set to an offline indicator. When a business request is obtained, the first business processing device 500 will determine whether to call the local rule offline or the rule in the second business processing device 600 based on the priority indicator of the rule to be called by the business request. Since offline calling of local rules does not require network support, this solution can solve the problems of the inability to return the processing results of business requests with high timeliness requirements in a timely manner and the large network overhead caused by high frequency and high frequency services, and reduce the burden on the second business processing device 600.

[0135] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned business processing device and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.

[0136] The aforementioned business processing device can be implemented as a computer program, which can, for example... Figure 7 It runs on the computer device shown.

[0137] Please see Figure 7 , Figure 7 This is a schematic block diagram of a computer device 700 provided in an embodiment of this application. The computer device 700 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.

[0138] Specifically, the computer device 700 may be equipped with a local business system or a remote rules system.

[0139] See Figure 7 The computer device 700 includes a processor 702, a memory, and a network interface 705 connected via a system bus 701. The memory may include a non-volatile storage medium 703 and internal memory 704.

[0140] The non-volatile storage medium 703 may store an operating system 7031 and a computer program 7032. The computer program 7032 includes program instructions that, when executed, cause the processor 702 to perform a business processing method.

[0141] The processor 702 provides computing and control capabilities to support the operation of the entire computer device 700.

[0142] The internal memory 704 provides an environment for the execution of the computer program 7032 in the non-volatile storage medium 703. When the computer program 7032 is executed by the processor 702, the processor 702 can perform a business processing method.

[0143] This network interface 705 is used for network communication with other devices. Those skilled in the art will understand that... Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 700 to which the present application is applied. The specific computer device 700 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0144] When a local business system is installed in the computer device 700, the processor 702 is used to run the computer program 7032 stored in the memory to perform the following steps:

[0145] Obtain the target service request, which includes the target rule identifier and the target factor value;

[0146] Based on the preset correspondence between rules and priority identifiers, determine the target priority identifier corresponding to the target rule identifier;

[0147] If the target priority identifier is a remote identifier, then the target service request is sent to the remote rule system, so that the remote rule system determines the target processing result according to the first target rule and the target factor value. The first target rule is the rule in the remote rule base that corresponds to the target rule identifier. The remote rule base is located in the remote rule system.

[0148] Receive the target processing result returned by the remote rule system;

[0149] If the target priority identifier is an offline identifier, then the target processing result is determined according to the second target rule corresponding to the target rule identifier in the local rule base and the target factor value.

[0150] When a remote rules system is installed in the computer device 700, the processor 702 is used to run the computer program 7032 stored in the memory to perform the following steps:

[0151] When the local business system determines that the target rule identifier in the target business request is a remote identifier, it receives the target business request sent by the local business system. The target business request includes the target rule identifier and the target factor value.

[0152] Determine the first target rule corresponding to the target rule identifier from a preset remote database;

[0153] The target processing result is determined based on the first target rule and the target factor value;

[0154] The target processing result is sent to the local business system.

[0155] It should be understood that in the embodiments of this application, the processor 702 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0156] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0157] Therefore, this application also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the following steps:

[0158] Obtain the target service request, which includes the target rule identifier and the target factor value;

[0159] Based on the preset correspondence between rules and priority identifiers, determine the target priority identifier corresponding to the target rule identifier;

[0160] If the target priority identifier is a remote identifier, then the target service request is sent to the remote rule system, so that the remote rule system determines the target processing result according to the first target rule and the target factor value. The first target rule is the rule in the remote rule base that corresponds to the target rule identifier. The remote rule base is located in the remote rule system.

[0161] Receive the target processing result returned by the remote rule system;

[0162] If the target priority identifier is an offline identifier, then the target processing result is determined according to the second target rule corresponding to the target rule identifier in the local rule base and the target factor value.

[0163] or,

[0164] When the local business system determines that the target rule identifier in the target business request is a remote identifier, it receives the target business request sent by the local business system. The target business request includes the target rule identifier and the target factor value.

[0165] Determine the first target rule corresponding to the target rule identifier from a preset remote database;

[0166] The target processing result is determined based on the first target rule and the target factor value;

[0167] The target processing result is sent to the local business system.

[0168] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.

[0169] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0170] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0171] The steps in the methods of this application embodiment can be adjusted, merged, or deleted according to actual needs. The units in the apparatus of this application embodiment can be merged, divided, or deleted according to actual needs. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0172] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0173] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A business processing method, characterized in that, The method is applied to a local business system, and the method includes: Obtain the target service request, which includes the target rule identifier and the target factor value; Based on the preset correspondence between rules and priority identifiers, determine the target priority identifier corresponding to the target rule identifier; If the target priority identifier is a remote identifier, then the target service request is sent to the remote rule system, so that the remote rule system determines the target processing result according to the first target rule and the target factor value. The first target rule is the rule in the remote rule library that corresponds to the target rule identifier. The remote rule library is located in the remote rule system. The remote identifier is the rule identifier corresponding to low-density services. Receive the target processing result returned by the remote rule system; If the target priority identifier is an offline identifier, the target processing result is determined according to the second target rule corresponding to the target rule identifier in the local rule base and the target factor value. The offline identifier is a rule identifier corresponding to services with high timeliness requirements and high frequency of occurrence. Generate a rule update request, the rule update request including the identifier of the rule to be updated; Send a rule update request to the remote rule system; Receive the updated rule returned by the remote rule system, which corresponds to the rule identifier to be updated; The local rule base is updated according to the updated rules.

2. The method according to claim 1, characterized in that, The generation rule update request includes: A first update request carrying a first rule identifier is generated according to a preset rule update script; the rule update request includes the first update request, and the rule identifier to be updated includes the first rule identifier; and / or, Receive a rule update instruction input by the user for a second rule identifier, wherein the rule identifier to be updated includes the second rule identifier; In response to the rule update instruction, a second update request carrying the second rule identifier is generated, the rule update request including the second update request.

3. The method according to claim 1, characterized in that, After sending the target service request to the remote rules system, the method further includes: If a remote call exception response is received from the remote rule system, the target processing result is determined based on the second target rule and the target factor value.

4. The method according to claim 1, characterized in that, If the target priority identifier is an offline identifier, before determining the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value, the method further includes: Determine if the second target rule was invoked abnormally; If the second target rule call fails, the target service request is sent to the remote rule system; If the second target rule is invoked normally, then the step of determining the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value is executed.

5. The method according to any one of claims 1 to 4, characterized in that, After obtaining the target service request, the method further includes: Determine whether the target factor value meets the target factor condition corresponding to the target rule identifier; The step of determining the target priority identifier corresponding to the target rule identifier based on the preset correspondence between rules and priority identifiers includes: If the target factor value meets the target factor condition, then the target priority identifier corresponding to the target rule identifier is determined according to the correspondence between the rule and the priority identifier.

6. A business processing method, characterized in that, The method is applied to a remote rules system, and the method includes: When the local business system determines that the target rule identifier in the target business request is a remote identifier, it receives the target business request sent by the local business system. The target business request includes the target rule identifier and the target factor value. The remote identifier is the rule identifier corresponding to low-density business. When the local business system determines that the target rule identifier in the target business request is an offline identifier, the local business system determines the target processing result according to the second target rule corresponding to the target rule identifier in the local rule base and the target factor value. The offline identifier is the rule identifier corresponding to business with high timeliness requirements and high frequency of occurrence. Determine the first target rule corresponding to the target rule identifier from a preset remote database; The target processing result is determined based on the first target rule and the target factor value; Send the target processing result to the local business system; Receive a rule update request sent by the local business system, wherein the rule update request includes an identifier of the rule to be updated; The updated rule corresponding to the rule identifier to be updated is returned to the local business system, so that the local business system can update the local rule base based on the updated rule.

7. The method according to claim 6, characterized in that, The method further includes: Create a new rule; The new rules are stored in the remote database.

8. The method according to claim 7, characterized in that, The creation of new rules includes: The rule configuration page is displayed, which shows multiple condition components; Obtain the user's selection operation for a target condition component among the multiple condition components; In response to the selection operation, the parameter input box of the target condition component is displayed; Based on the parameter input box, obtain the target rule parameters input by the user; The new rule is created based on the target condition component and the target rule parameters.

9. The method according to claim 7, characterized in that, The creation of new rules includes: Get the new rule text input by the user; The new rule text is converted into JSON format using a preset text rule parser and preset factor matching and transformation rules to obtain the new rule.

10. A business processing apparatus, characterized in that, The service processing apparatus includes a first service processing apparatus and a second service processing apparatus. The first service processing apparatus is configured in a local service system, and the second service processing apparatus is configured in a remote rules system. The first service processing apparatus includes a first transceiver unit and a first processing unit, and the second service processing apparatus includes a second transceiver unit and a second processing unit, wherein: The first transceiver unit is used to acquire a target service request, wherein the target service request includes a target rule identifier and a target factor value; The first processing unit is used to determine the target priority identifier corresponding to the target rule identifier according to the preset correspondence between rules and priority identifiers; The first transceiver unit is further configured to send the target service request to the second service processing device when the target priority identifier is a remote identifier, so that the second service processing device determines the target processing result according to the first target rule and the target factor value, wherein the first target rule is a rule in the remote rule base corresponding to the target rule identifier, the remote rule base is located in the second service processing device, and the remote identifier is a rule identifier corresponding to a low-density service; and receive the target processing result returned by the second service processing device. The first processing unit is further configured to determine the target processing result based on the second target rule corresponding to the target rule identifier in the local rule base and the target factor value when the target priority identifier is an offline identifier, wherein the offline identifier is a rule identifier corresponding to services with high timeliness requirements and high frequency of occurrence. The second transceiver unit is configured to receive the target service request sent by the first service processing device when the first service processing device determines that the target rule identifier in the target service request is a remote identifier. The target service request includes the target rule identifier and the target factor value. The second processing unit is configured to determine a first target rule corresponding to the target rule identifier from a preset remote database; and determine a target processing result based on the first target rule and the target factor value. The second transceiver unit is further configured to send the target processing result to the first service processing device; The first processing unit is further configured to generate a rule update request, wherein the rule update request includes an identifier of the rule to be updated; The first transceiver unit is further configured to send a rule update request to the second service processing device; and receive the updated rule corresponding to the rule identifier to be updated returned by the second service processing device; The first processing unit is further configured to update the local rule base according to the updated rules.

11. A computer device 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, it implements the business processing method as described in any one of claims 1-5 or 6-9.

12. A storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions that, when executed by a processor, cause the processor to perform the business processing method as described in any one of claims 1-5 or 6-9.

Citation Information

Patent Citations

  • Information processing method and device

    CN105989066A

  • Business processing method, device and system

    CN115544090A