Business processing method and device, computer equipment and storage medium

By generating an efficient process execution chain for supply chain finance business through a dynamic rule engine, the problems of difficult modification and poor stability caused by complex logic are solved, and efficient business system modification and stability improvement are achieved.

CN120746480APending Publication Date: 2025-10-03SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510828945.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

In the existing technology, the program development logic of complex supply chain finance businesses is complex and the process is long, which makes modification difficult, inefficient and prone to errors, affecting the stability of the business system.

Method used

A dynamic rule engine is used to obtain target rule configuration information through configuration components, determine the process execution link corresponding to the target business identifier, and execute business requests according to the execution order and conditions of the logical components to generate an efficient process execution link. There is no association between logical components.

Benefits of technology

It improves the generation efficiency of the process execution link, simplifies the evaluation of the modification scope, avoids the problems of low modification efficiency and errors, and enhances the stability of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120746480A_ABST
    Figure CN120746480A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a business processing method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring target rule configuration information through a configuration component, wherein the target rule configuration information comprises a target service identifier, a plurality of target logic component identifiers, an execution sequence corresponding to each target logic component identifier and an execution condition corresponding to each target logic component identifier; determining a target process execution link corresponding to the target service identifier according to the plurality of target logic component identifiers, the execution sequence corresponding to each target logic component identifier and the execution condition corresponding to each target logic component identifier; and when a target service request corresponding to the target service identifier is received, executing the target service request according to the target process execution link to obtain a service execution result. By implementing the method provided by the embodiment of the invention, the generation efficiency of the process execution link, the modification efficiency of the process execution link and the stability of a service system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to business processing methods, devices, computer equipment and storage media. Background Art

[0002] With the rapid development of computer technology, the demand for development of different programs is increasing, and the programs developed are becoming more and more complex.

[0003] For example, in program development for complex supply chain finance businesses, the business logic is complex and the process is long. As the business develops, the demand for the same business will also change. At this time, it is necessary to modify the corresponding business logic in the business system. However, since the developed business logic is mixed with various verification logics and other business processing logics, and the coupling between the codes is high, the scope of the logic modification is difficult to evaluate, the modification efficiency is low, and the modification is prone to errors, affecting the stability of the business system. Summary of the Invention

[0004] The embodiments of the present application provide a business processing method, apparatus, computer equipment, and storage medium, which can improve the efficiency of generating process execution links (business logic), the efficiency of modifying process execution links, and the stability of business systems.

[0005] In a first aspect, an embodiment of the present application provides a business processing method, which is applied to a business processing system, wherein the business processing system is deployed with a dynamic rule engine, wherein the dynamic rule engine includes a configuration component and multiple logic components, and the method includes:

[0006] Obtain target rule configuration information through the configuration component, the target rule configuration information including a target service identifier, multiple target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers;

[0007] Determining a target process execution link corresponding to the target business identifier according to multiple target logical component identifiers, execution orders corresponding to the target logical component identifiers, and execution conditions corresponding to the target logical component identifiers;

[0008] When a target service request corresponding to the target service identifier is received, the target service request is executed according to the target process execution link to obtain a service execution result.

[0009] In some embodiments, determining the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier includes:

[0010] determining a plurality of target logical components from the plurality of logical components according to the plurality of target logical component identifiers;

[0011] Determining the execution order and execution condition corresponding to each target logical component according to the plurality of target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier;

[0012] The target process execution link is generated according to the plurality of logic components, the execution order and execution conditions corresponding to each target logic component.

[0013] In some embodiments, when a target service request corresponding to the target service identifier is received, executing the target service request according to the target process execution link to obtain a service execution result includes:

[0014] Determining the target process execution link corresponding to the target service identifier from a plurality of preset process execution links;

[0015] Determine the current logical component according to the target process execution link;

[0016] Acquire business data from the context corresponding to the target business request;

[0017] Inputting the business data into the current logic component, processing the business data by the current logic component, outputting an execution result, and storing the execution result in the context;

[0018] If the current logic component is the tail logic component in the target process execution link, outputting the business execution result according to the context;

[0019] If the current logic component is not the tail logic component in the target process execution link, the process returns to the step of determining the current logic component according to the target process execution link.

[0020] In some embodiments, determining the current logical component according to the target process execution link includes:

[0021] determining a candidate logic component from the target process execution link;

[0022] acquiring, from the context, execution data corresponding to the execution condition of the candidate logic component;

[0023] If the execution data meets the execution condition of the candidate logic component, determining the candidate logic component as the current logic component;

[0024] If the execution data does not meet the execution condition of the candidate logic component, the process returns to the step of determining the candidate logic component from the target process execution link.

[0025] In some embodiments, after processing the business data by the current logic component and outputting an execution result, the method further includes:

[0026] If the execution result is an abnormal component execution result, a rollback operation is performed;

[0027] The storing the execution result into the context includes:

[0028] If the execution result is a normal result of component execution, the execution result is stored in the context.

[0029] In some embodiments, after determining the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier, the method includes:

[0030] Determine whether there is a historical process execution link corresponding to the target service identifier;

[0031] If the historical process execution link exists, the historical process execution link is deleted.

[0032] In some embodiments, obtaining target rule configuration information through the configuration component includes:

[0033] Obtaining a component configuration instruction triggered by a user based on the configuration component;

[0034] When the component configuration instruction is a new configuration instruction, a new configuration page is displayed through the configuration component, and the target rule configuration information input by the user is obtained through the new configuration page;

[0035] When the component configuration instruction is a configuration modification instruction, displaying a configuration modification page through the configuration component;

[0036] Obtaining the target service identifier through the configuration modification page, and displaying a target configuration modification page according to the target service identifier, wherein the target configuration modification page displays historical rule configuration information corresponding to the target service identifier;

[0037] Acquiring configuration modification information input by the user for the historical rule configuration information through the target configuration modification page;

[0038] The target rule configuration information is determined based on the configuration modification information and the historical rule configuration information.

[0039] In a second aspect, an embodiment of the present application further provides a business processing device, wherein the business processing device is deployed in a business processing system, wherein the business processing system is deployed with a dynamic rule engine, wherein the dynamic rule engine includes a configuration component and multiple logic components, and wherein the business processing device includes:

[0040] a transceiver unit, configured to obtain target rule configuration information through the configuration component, wherein the target rule configuration information includes a target service identifier, multiple target logical component identifiers, an execution order corresponding to each of the target logical component identifiers, and an execution condition corresponding to each of the target logical component identifiers;

[0041] The processing unit is used to determine the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier; when receiving the target business request corresponding to the target business identifier, execute the target business request according to the target process execution link to obtain a business execution result.

[0042] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0043] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the above method can be implemented.

[0044] The embodiment of the present application provides a business processing method, apparatus, computer equipment and storage medium. The method is applied to a business processing system, wherein the business processing system is deployed with a dynamic rule engine, wherein the dynamic rule engine includes a configuration component and a plurality of logic components, and the method includes: obtaining target rule configuration information through the configuration component, wherein the target rule configuration information includes a target business identifier, a plurality of target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers; determining a target process execution link corresponding to the target business identifier based on the plurality of target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers; upon receiving a target business request corresponding to the target business identifier, executing the target business request according to the target process execution link to obtain a business execution result. The dynamic rule engine provided in the embodiment of the present application includes a configuration component and multiple logic components. The configuration component in the dynamic rule engine can be used to configure logic components, the execution order of logic components, and execution conditions for different businesses, and generate corresponding process execution links. The generated process execution links are highly efficient, and there is no logical association between the logic components in the process execution links, making it easy to determine the scope of modification. When the code needs to be modified, the problem of low modification efficiency and easy errors caused by the difficulty in evaluating the scope of the logic modification is avoided, thereby improving the stability of the business system. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0046] Figure 1 A flowchart of a business processing method provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of a sub-flow of the business processing method provided in an embodiment of the present application;

[0048] Figure 3 This is another sub-flow diagram of the business processing method provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of another sub-flow of the business processing method provided in an embodiment of the present application;

[0050] Figure 5 A schematic block diagram of a service processing device provided in an embodiment of the present application;

[0051] Figure 6 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0053] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0054] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present 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.

[0055] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0056] The embodiments of the present application provide a business processing method, apparatus, computer equipment, and storage medium.

[0057] The execution subject of the business processing method can be the business processing device provided in the embodiment of the present application, or a computer device that integrates the business processing device. The computer device is a physical device of the business processing system provided in the present application, wherein the business processing device can be implemented in hardware or software, and the computer device can be a terminal, which can be a smart phone, tablet computer, PDA, or laptop computer, etc.

[0058] The business processing method provided in this embodiment is applied to a business processing system, and the business processing system is deployed with a dynamic rule engine, and the dynamic rule engine includes a configuration component and a plurality of logic components. Specifically, the business system provided in the embodiment of the present application obtains target rule configuration information through the configuration component, and the target rule configuration information includes a target business identifier, a plurality of target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers; according to the plurality of target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers, the target process execution link corresponding to the target business identifier is determined; when a target business request corresponding to the target business identifier is received, the target business request is executed according to the target process execution link to obtain a business execution result. It can be seen that the dynamic rule engine provided in the embodiment of the present application includes a configuration component and multiple logic components. The configuration component in the dynamic rule engine can be used to configure logic components, the execution order and execution conditions of logic components for different businesses, and generate corresponding process execution links. The generated process execution links are highly efficient, and there is no logical association between the logic components in the process execution links, which makes it easy to determine the scope of modification. When the code needs to be modified, the problem of low modification efficiency and easy error in modification due to the difficulty in evaluating the scope of logical modification is avoided, thereby improving the stability of the business system.

[0059] Figure 1 This is a flow chart of the business processing method provided by the embodiment of this application. Figure 1 As shown, the method includes the following steps S110-S130.

[0060] S110. Obtain target rule configuration information through the configuration component, where the target rule configuration information includes a target service identifier, multiple target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers.

[0061] Specifically, see Figure 2 , step S110 specifically includes:

[0062] S1101. Obtain a component configuration instruction triggered by a user based on the configuration component; wherein, when the component configuration instruction is a new configuration instruction, execute step S1102; when the component configuration instruction is a modified configuration instruction, execute steps S1103-S1106;

[0063] In this embodiment, the user can configure or modify the process execution link for different services through the configuration component in the service processing system.

[0064] For example, an entry control for the configuration component is displayed on the homepage of the business processing system. The user enters the function page of the configuration component by clicking the entry control. The function page of the configuration component displays entry controls for different configuration functions, including the function of adding a new logical component, the function of deleting a logical component, the function of modifying a logical component, the function of adding a new process execution link, and the function of modifying a process execution link.

[0065] Among them, multiple logical components in the business processing system can be uniformly stored in the logical component pool. Users can add logical components to the logical component pool by configuring the component's add logical component function, delete the specified logical component in the logical component pool by deleting the logical component, and modify the logical components in the logical component pool by modifying the logical component function.

[0066] In addition, the new process execution link function and the modification process execution link function in the configuration component can be implemented through nacos (an open source component).

[0067] S1102: Displaying a new configuration page through the configuration component, and obtaining the target rule configuration information input by the user through the new configuration page;

[0068] For example, when the user clicks the entry control corresponding to the new process execution link function in the function page of the configuration component, the system displays the new configuration page, which includes selection entries for multiple logical components. When the user selects a logical component, the user also needs to configure the component for the logical component. The component configuration includes the execution order configuration and execution condition configuration of the logical component.

[0069] S1103, displaying a configuration modification page through the configuration component;

[0070] For example, when a user clicks the entry control corresponding to the Modify Process Execution Link function in the Configuration Component function page, the system first displays the business identifiers corresponding to the existing process execution links.

[0071] S1104. Obtain the target service identifier through the configuration modification page, and display a target configuration modification page according to the target service identifier, wherein the target configuration modification page displays historical rule configuration information corresponding to the target service identifier;

[0072] For example, the user selects the target business identifier that currently needs to be modified from the multiple business identifiers displayed on the interface. At this time, the system determines the process execution link to be modified from the preset multiple process execution links, and displays the historical rule configuration information corresponding to the process execution link to be modified. The historical rule configuration information includes the execution order and execution conditions corresponding to each logical component identifier in the process execution link to be modified.

[0073] S1105. Acquire, through the target configuration modification page, configuration modification information input by the user for the historical rule configuration information;

[0074] For example, users can add, replace, or delete logical components based on historical rule configuration information. Through the target configuration modification page, users can intuitively adjust the execution chain of the modification process. Since logical components are unrelated, it is easy to determine the scope of modification. When code modifications are required, this avoids the difficulty in assessing the scope of logical modifications, which can lead to inefficient and error-prone modifications, thereby improving the stability of the business system.

[0075] S1106: Determine the target rule configuration information based on the configuration modification information and the historical rule configuration information.

[0076] For example, after the user determines the configuration modification information based on the historical rule configuration information, the user modifies the historical rule configuration information using the configuration modification information to generate the target rule configuration information.

[0077] Among them, the target rule configuration information in the embodiment of the present application can specifically be configuration information in the nacos xml format. Specifically, this embodiment uses @RefreshScope+@Value to implement nacos hot update. When the rule configuration information change is monitored, the new rule configuration information is read and the process execution link is generated or updated according to the new rule configuration information.

[0078] S120: Determine a target process execution link corresponding to the target business identifier according to multiple target logical component identifiers, execution orders corresponding to the target logical component identifiers, and execution conditions corresponding to the target logical component identifiers.

[0079] Specifically, see Figure 3 In some embodiments, the target process execution link is generated by the following steps:

[0080] S1201: Determine a plurality of target logical components from a plurality of logical components according to a plurality of target logical component identifiers;

[0081] S1202: Determine the execution order and execution condition corresponding to each target logical component according to multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier;

[0082] S1203: Generate the target process execution link according to the plurality of logic components, the execution order corresponding to each target logic component, and the execution conditions.

[0083] Specifically, multiple logical components in the component pool are scanned through multiple target logical component identifiers, the scanned logical components are included in the spring lifecycle management, and the execution order and execution conditions corresponding to each logical component are determined according to the corresponding logical component identifiers; the read logical components and the execution order and execution conditions of each logical component are converted into corresponding rule objects and assembled into a process execution link.

[0084] It can be seen that through the dynamic rule engine provided by this embodiment, using the real-time update technology (hot update) supported by nacos, the execution order of the process execution link can be modified in real time, new logical components can be added to the existing process execution link, existing logical components can be deleted, and other operations can be performed. In addition, new process execution links can be quickly generated based on the configuration components, and the business logic (process execution link) can be dynamically adjusted in real time without the need for version processing.

[0085] In some embodiments, after determining the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier, the method includes:

[0086] Determine whether there is a historical process execution link corresponding to the target service identifier; if the historical process execution link exists, delete the historical process execution link.

[0087] In other embodiments, the historical process execution link may not be deleted, but different process execution links under the same business identifier may be distinguished by generating a version number of the target process execution link. Generally, the latest version of the process execution link is used by default as the execution link for executing the business request. In addition, in this case, the user can also use the specified version of the process execution link as the execution link for the current business request.

[0088] S130: When a target service request corresponding to the target service identifier is received, the target service request is executed according to the target process execution link to obtain a service execution result.

[0089] Specifically, see Figure 4 In some embodiments, the service execution result of the target service request is determined by the following steps:

[0090] S1301. Determine the target process execution link corresponding to the target service identifier from a plurality of preset process execution links;

[0091] S1302, determining a current logical component according to the target process execution link;

[0092] S1303: Acquire service data from the context corresponding to the target service request;

[0093] The service data is the data that needs to be processed in the target service request.

[0094] S1304: Input the business data into the current logic component, process the business data through the current logic component, output an execution result, and store the execution result in the context. If the current logic component is the last logic component in the target process execution chain, execute step S1305; if the current logic component is not the last logic component in the target process execution chain, return to step S1302.

[0095] S1305: Output the service execution result according to the context;

[0096] Specifically, when a business request that needs to be processed is received, the business identifier in the business request is first obtained. Different business request identifiers correspond to different business requests and different process execution links, that is, there is a one-to-one correspondence between the business request identifier, the business request, and the process execution link. Then, based on the correspondence between the business request identifier and the process execution link, the target process execution link corresponding to the target business identifier is determined from multiple pre-generated process execution links. The logical components in the target process execution link are then executed serially. During execution, each logical component obtains business data from the context and, after processing, returns the business data and execution results to the context, eliminating dependencies between components.

[0097] Furthermore, determining the current logical component according to the target process execution link includes:

[0098] Determine a candidate logic component from the target process execution link; obtain execution data corresponding to the execution condition of the candidate logic component from the context; if the execution data meets the execution condition of the candidate logic component, determine the candidate logic component as the current logic component; if the execution data does not meet the execution condition of the candidate logic component, return to the step of determining the candidate logic component from the target process execution link.

[0099] For example, if the invoice amount is greater than or equal to 10,000, logic component A is executed (the execution condition of logic component A is that the invoice amount is greater than or equal to 10,000), otherwise logic component A is skipped.

[0100] Furthermore, after processing the business data by the current logic component and outputting the execution result, the method further includes:

[0101] If the execution result is an abnormal component execution result, a rollback operation is performed;

[0102] At this time, storing the execution result in the context includes: if the execution result is a normal result of component execution, storing the execution result in the context.

[0103] Specifically, in the process of executing the process execution link of this embodiment, as long as any logical component executes abnormally, the entire execution process will be terminated and the rollback method logic will be executed. Only when all components have executed results can the execution be determined to be successful and the business execution result will be output.

[0104] For example, the business processing system is a supply chain finance electronic debt certificate system, which is used to verify uploaded business data. For example, when a customer applies for financing, the target business request is a financing application request. The components in the target process execution link include, in sequence, a contract invoice upload verification component, a financing application amount verification component, an enterprise in transit verification component, a voucher legality verification component, a fee calculation component, a withholding voucher amount component, a copy of the electronic debt certificate file component, a capital-party relationship maintenance component, and a transaction component.

[0105] To summarize, the dynamic rule engine provided in the embodiment of the present application includes a configuration component and multiple logic components. The configuration component in the dynamic rule engine can be used to configure logic components, the execution order and execution conditions of logic components for different businesses, and generate corresponding process execution links. The generated process execution links are highly efficient, and there is no logical association between the logic components in the process execution links, making it easy to determine the scope of modification. When the code needs to be modified, the problem of low modification efficiency and easy errors caused by the difficulty in evaluating the scope of the logic modification is avoided, thereby improving the stability of the business system.

[0106] Figure 5 This is a schematic block diagram of a service processing device provided in an embodiment of the present application. Figure 5 As shown, corresponding to the above business processing method, the present application also provides a business processing device 500. The business processing device 500 includes a unit for executing the above business processing method. The business processing device 500 can be configured in a terminal such as a desktop computer, a tablet computer, a laptop computer, etc. Specifically, the business processing device 500 is deployed in a business processing system, and the business processing system is deployed with a dynamic rule engine. The dynamic rule engine includes a configuration component and multiple logical components. Figure 5The service processing device 500 includes a transceiver unit 501 and a processing unit 502, wherein:

[0107] The transceiver unit 501 is configured to obtain target rule configuration information through the configuration component, wherein the target rule configuration information includes a target service identifier, multiple target logical component identifiers, an execution order corresponding to each of the target logical component identifiers, and an execution condition corresponding to each of the target logical component identifiers;

[0108] The processing unit 502 is used to determine the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier; when receiving a target business request corresponding to the target business identifier, execute the target business request according to the target process execution link to obtain a business execution result.

[0109] In some embodiments, when executing the step of determining the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier, the processing unit 502 is specifically configured to:

[0110] Determine multiple target logical components from the multiple logical components based on the multiple target logical component identifiers; determine the execution order and execution conditions corresponding to each target logical component based on the multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution conditions corresponding to each target logical component identifier; generate the target process execution link based on the multiple logical components, the execution order and execution conditions corresponding to each target logical component.

[0111] In some embodiments, when the processing unit 502 executes the step of executing the target service request corresponding to the target service identifier according to the target process execution link and obtaining a service execution result upon receiving the target service request, the processing unit 502 is specifically configured to:

[0112] Determine the target process execution link corresponding to the target business identifier from a plurality of preset process execution links; determine the current logical component based on the target process execution link; obtain business data from the context corresponding to the target business request; input the business data into the current logical component, process the business data through the current logical component, output the execution result, and store the execution result in the context; if the current logical component is the tail logical component in the target process execution link, output the business execution result based on the context; if the current logical component is not the tail logical component in the target process execution link, return to execute the step of determining the current logical component based on the target process execution link.

[0113] In some embodiments, when executing the step of determining the current logical component according to the target process execution link, the processing unit 502 is specifically configured to:

[0114] determining a candidate logic component from the target process execution link;

[0115] acquiring, from the context, execution data corresponding to the execution condition of the candidate logic component;

[0116] If the execution data meets the execution condition of the candidate logic component, determining the candidate logic component as the current logic component;

[0117] If the execution data does not meet the execution condition of the candidate logic component, the process returns to the step of determining the candidate logic component from the target process execution link.

[0118] In some embodiments, after executing the step of processing the business data by the current logic component and outputting an execution result, the processing unit 502 is further configured to:

[0119] If the execution result is an abnormal component execution result, a rollback operation is performed;

[0120] At this time, when executing the step of storing the execution result in the context, the processing unit 502 is specifically configured to: if the execution result is a normal result of component execution, store the execution result in the context.

[0121] In some embodiments, after executing the step of determining the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier, the processing unit 502 is further configured to:

[0122] Determine whether there is a historical process execution link corresponding to the target service identifier;

[0123] If the historical process execution link exists, the historical process execution link is deleted.

[0124] In some embodiments, when executing the step of obtaining target rule configuration information through the configuration component, the transceiver unit 501 is specifically configured to:

[0125] Obtaining a component configuration instruction triggered by a user based on the configuration component;

[0126] When the component configuration instruction is a new configuration instruction, a new configuration page is displayed through the configuration component, and the target rule configuration information input by the user is obtained through the new configuration page;

[0127] When the component configuration instruction is a configuration modification instruction, displaying a configuration modification page through the configuration component;

[0128] Obtaining the target service identifier through the configuration modification page, and displaying a target configuration modification page according to the target service identifier, wherein the target configuration modification page displays historical rule configuration information corresponding to the target service identifier;

[0129] Acquiring configuration modification information input by the user for the historical rule configuration information through the target configuration modification page;

[0130] The target rule configuration information is determined based on the configuration modification information and the historical rule configuration information.

[0131] In summary, the dynamic rule engine of the business processing device 500 provided in the embodiment of the present application includes a configuration component and multiple logic components. The configuration component in the dynamic rule engine can be used to configure logic components, the execution order and execution conditions of logic components for different businesses, and generate corresponding process execution links. The generated process execution links are highly efficient, and there is no logical association between the logic components in the process execution links, so it is easy to determine the scope of modification. When the code needs to be modified, the problem of low modification efficiency and easy error in modification due to the difficulty in evaluating the scope of logical modification is avoided, thereby improving the stability of the business system.

[0132] 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 refer to the corresponding description in the aforementioned method embodiment. For the convenience and brevity of description, it will not be repeated here.

[0133] The above-mentioned service processing device can be implemented in the form of a computer program. The computer program can be used in Figure 6Runs on the computer device shown.

[0134] See also Figure 6 , Figure 6 6 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 600 may be a terminal, which is a physical device of the business processing system provided in the present application. The business processing system is deployed with a dynamic rule engine, which includes a configuration component and multiple logical components.

[0135] See Figure 6 The computer device 600 includes a processor 602 , a memory, and a network interface 605 connected via a system bus 601 , wherein the memory may include a non-volatile storage medium 603 and an internal memory 604 .

[0136] The non-volatile storage medium 603 can store an operating system 6031 and a computer program 6032. The computer program 6032 includes program instructions, which, when executed, can enable the processor 602 to execute a service processing method.

[0137] The processor 602 is used to provide computing and control capabilities to support the operation of the entire computer device 600.

[0138] The internal memory 604 provides an environment for the operation of the computer program 6032 in the non-volatile storage medium 603. When the computer program 6032 is executed by the processor 602, the processor 602 can execute a business processing method.

[0139] The network interface 605 is used to communicate with other devices over the network. Figure 6 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 600 to which the solution of the present application is applied. The specific computer device 600 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0140] The processor 602 is configured to execute a computer program 6032 stored in the memory to implement the following steps:

[0141] Obtain target rule configuration information through the configuration component, the target rule configuration information including a target service identifier, multiple target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers;

[0142] Determining a target process execution link corresponding to the target business identifier according to multiple target logical component identifiers, execution orders corresponding to the target logical component identifiers, and execution conditions corresponding to the target logical component identifiers;

[0143] When a target service request corresponding to the target service identifier is received, the target service request is executed according to the target process execution link to obtain a service execution result.

[0144] It should be understood that in the embodiment of the present application, the processor 602 may be a central processing unit (CPU), and the processor 602 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0145] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.

[0146] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor performs the following steps:

[0147] Obtain target rule configuration information through the configuration component, the target rule configuration information including a target service identifier, multiple target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers;

[0148] Determining a target process execution link corresponding to the target business identifier according to multiple target logical component identifiers, execution orders corresponding to the target logical component identifiers, and execution conditions corresponding to the target logical component identifiers;

[0149] When a target service request corresponding to the target service identifier is received, the target service request is executed according to the target process execution link to obtain a service execution result.

[0150] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.

[0151] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

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

[0153] The steps in the method of the embodiment of the present application can be adjusted in order, combined, and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided, and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.

[0154] If the integrated unit is implemented in the form of 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 the present application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0155] The above description is merely a specific embodiment of the present application, but the scope of protection of the present 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 the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A business processing method, characterized in that: The method is applied to a business processing system, wherein the business processing system is deployed with a dynamic rule engine, wherein the dynamic rule engine includes a configuration component and multiple logic components, and the method includes: Obtain target rule configuration information through the configuration component, the target rule configuration information including a target service identifier, multiple target logic component identifiers, an execution order corresponding to each of the target logic component identifiers, and an execution condition corresponding to each of the target logic component identifiers; Determining a target process execution link corresponding to the target business identifier according to multiple target logical component identifiers, execution orders corresponding to the target logical component identifiers, and execution conditions corresponding to the target logical component identifiers; When a target service request corresponding to the target service identifier is received, the target service request is executed according to the target process execution link to obtain a service execution result.

2. The method according to claim 1, characterized in that The determining, based on a plurality of target logical component identifiers, execution orders corresponding to the target logical component identifiers, and execution conditions corresponding to the target logical component identifiers, a target process execution link corresponding to the target business identifier includes: determining a plurality of target logical components from the plurality of logical components according to the plurality of target logical component identifiers; Determining the execution order and execution condition corresponding to each target logical component according to the plurality of target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier; The target process execution link is generated according to the plurality of logic components, the execution order and execution conditions corresponding to each target logic component.

3. The method according to claim 1, characterized in that When receiving the target service request corresponding to the target service identifier, executing the target service request according to the target process execution link to obtain a service execution result includes: Determining the target process execution link corresponding to the target service identifier from a plurality of preset process execution links; Determine the current logical component according to the target process execution link; Acquire business data from the context corresponding to the target business request; Inputting the business data into the current logic component, processing the business data by the current logic component, outputting an execution result, and storing the execution result in the context; If the current logic component is the tail logic component in the target process execution link, outputting the business execution result according to the context; If the current logic component is not the tail logic component in the target process execution link, the process returns to the step of determining the current logic component according to the target process execution link.

4. The method according to claim 3, characterized in that The determining the current logical component according to the target process execution link includes: determining a candidate logic component from the target process execution link; acquiring, from the context, execution data corresponding to the execution condition of the candidate logic component; If the execution data meets the execution condition of the candidate logic component, determining the candidate logic component as the current logic component; If the execution data does not meet the execution condition of the candidate logic component, the process returns to the step of determining the candidate logic component from the target process execution link.

5. The method according to claim 3, characterized in that After processing the business data by the current logic component and outputting the execution result, the method further includes: If the execution result is an abnormal component execution result, a rollback operation is performed; The storing the execution result into the context includes: If the execution result is a normal result of component execution, the execution result is stored in the context.

6. The method according to claim 1, characterized in that After determining the target process execution link corresponding to the target business identifier based on the multiple target logical component identifiers, the execution orders corresponding to the target logical component identifiers, and the execution conditions corresponding to the target logical component identifiers, the method includes: Determine whether there is a historical process execution link corresponding to the target service identifier; If the historical process execution link exists, the historical process execution link is deleted.

7. The method according to claim 1, characterized in that The obtaining target rule configuration information through the configuration component includes: Obtaining a component configuration instruction triggered by a user based on the configuration component; When the component configuration instruction is a new configuration instruction, a new configuration page is displayed through the configuration component, and the target rule configuration information input by the user is obtained through the new configuration page; When the component configuration instruction is a configuration modification instruction, displaying a configuration modification page through the configuration component; Obtaining the target service identifier through the configuration modification page, and displaying a target configuration modification page according to the target service identifier, wherein the target configuration modification page displays historical rule configuration information corresponding to the target service identifier; Acquiring configuration modification information input by the user for the historical rule configuration information through the target configuration modification page; The target rule configuration information is determined based on the configuration modification information and the historical rule configuration information.

8. A business processing device, characterized in that: The business processing device is deployed in a business processing system. The business processing system is deployed with a dynamic rule engine. The dynamic rule engine includes a configuration component and multiple logic components. The business processing device includes: a transceiver unit, configured to obtain target rule configuration information through the configuration component, wherein the target rule configuration information includes a target service identifier, multiple target logical component identifiers, an execution order corresponding to each of the target logical component identifiers, and an execution condition corresponding to each of the target logical component identifiers; The processing unit is used to determine the target process execution link corresponding to the target business identifier based on multiple target logical component identifiers, the execution order corresponding to each target logical component identifier, and the execution condition corresponding to each target logical component identifier; when receiving the target business request corresponding to the target business identifier, execute the target business request according to the target process execution link to obtain a business execution result.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the service processing method according to any one of claims 1 to 7 is implemented.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the service processing method according to any one of claims 1 to 7.