Business process implementation method and device and storage medium
By obtaining business requests in the 5GC core network, traversing the model database to determine the target scheduling process model and instantiating it, disassembling the business process into independent nodes, configuring and executing the process model, it solves the problem of difficulty in serializing business processes in the asynchronous callback mode, and improves Improve the efficiency and stability of business implementation.
Patent Information
- Application Number
- CN202310337178.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In the 5GC core network, the asynchronous callback method leads to difficulties in serial connection of business processes, prolonged development cycle, high exception rate, difficult operation and maintenance, and lack of effective tools or frameworks for serial connection.
By obtaining the business request, traverse the model database to determine the target scheduling process model, instantiate the process model, disassemble the business process into independent nodes, configure node functions and relationship information, generate the scheduling process model, use message queues to implement business process execution, and process asynchronous nodes. of no response.
It improves the feasibility and scalability of business implementation, simplifies business implementation in complex scenarios, shortens the business implementation cycle, and enhances the stability and disaster recovery capabilities of operation and maintenance.
Smart Images

Figure CN118733207A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method, device and storage medium for implementing a business process. Background Art
[0002] In the current 5GC core network, applications are not allowed to directly connect to network elements to issue instructions. They need to go through an upper-layer application unified agent. Since the interaction process with network elements varies in length, the upper-layer application uses asynchronous callback to provide interfaces. When downstream business parties need to carry out business, they need to arrange, combine, and connect related interfaces in series. For conventional systems or applications, there is a lack of effective tools or frameworks for connecting these asynchronous interfaces in series, which makes it difficult to connect and connect. In addition, the asynchronous method brings more development and operation problems. If there are no better means or tools, it will cause a series of problems such as longer system development cycle, slower business execution process, higher business abnormality rate, and increased difficulty in business operation and maintenance, making it difficult to implement business. Summary of the invention
[0003] In view of this, in order to solve at least one of the above technical problems, an object of the present invention is to provide a business process implementation method, device, equipment and storage medium to improve the feasibility of business implementation.
[0004] The embodiment of the present invention provides a method for implementing a business process, including:
[0005] Get business request;
[0006] According to the business request, traverse the model database to determine a target scheduling process model from at least one scheduling process model;
[0007] The target scheduling process model is instantiated by calling a framework to generate a process instance; the process instance includes target relationship information of each target business node in the target scheduling process model and target atomic capabilities of each target business node;
[0008] The business process is implemented according to the target relationship information and the target atomic capability.
[0009] Further, the scheduling process model is constructed by the following steps:
[0010] Decompose the business process into several independent business nodes;
[0011] In response to the configuration instruction, configuring the service function of each of the service nodes and the relationship information of the service nodes in the configuration page to generate a scheduling process model;
[0012] The relationship information represents the execution order relationship between the service nodes.
[0013] Further, the generating of the scheduling process model includes:
[0014] Encoding the service function, and entering the encoded service node into the scheduling framework to form an atomic capability corresponding to each service node; the atomic capability is used to implement the service function of the service node;
[0015] The scheduling process model is generated according to the atomic capabilities and the relationship information of the service nodes.
[0016] Further, implementing the business process according to the target relationship information and the target atomic capability includes:
[0017] Determining at least one initial process node from the target service nodes according to the target relationship information;
[0018] Generate distribution information of each of the initial process nodes into a message queue through the calling framework;
[0019] Sending the distribution information to the processing program through the message queue to call the target atomic capability corresponding to each of the initial process nodes to obtain a first execution result; wherein obtaining the first execution result indicates that the execution of the initial process node is completed;
[0020] A business process is implemented according to the first execution result and the target relationship information.
[0021] Further, implementing a business process according to the first execution result and the target relationship information includes:
[0022] Determine at least one next business node of the initial process node according to the target relationship information;
[0023] Sending the first execution result to the message queue, pushing the first execution result to the next service node through the message queue, executing the target atomic capability corresponding to the next service node, and obtaining at least one second execution result;
[0024] The next business node is used as a new initial process node, and the second execution result is returned as a new first execution result to the step of determining at least one next business node of the initial process node according to the target relationship information to implement the business process, until the new initial process node is the last business node, and the final execution result of the business process is obtained.
[0025] Furthermore, the business process implementation method also includes:
[0026] When at least two new initial process nodes have the same next service node, aggregating new first execution results corresponding to the at least two new initial process nodes;
[0027] The aggregate processing result is pushed to the same next service node, so as to execute the corresponding target atomic capability according to the same next service node to obtain at least one second execution result.
[0028] Furthermore, the business process implementation method also includes:
[0029] When the next service node is an asynchronous node and sends an asynchronous request and monitoring information, monitoring response information for responding to the monitoring information;
[0030] When the response information is not received and the listening time is less than the time threshold, resending the listening information to return to the step of listening for the response information for responding to the listening information until the response information is received or until the listening time is greater than or equal to the time threshold, processing the no-response process, wherein the result of the no-response process is used as the second execution result;
[0031] When the response information is received, the target atomic capability corresponding to the asynchronous node is executed to obtain at least one second execution result.
[0032] The embodiment of the present invention further provides a business process implementation device, including:
[0033] An acquisition module is used to acquire business requests;
[0034] A determination module, configured to traverse a model database to determine a target scheduling process model from at least one scheduling process model according to the business request;
[0035] A generation module, used to instantiate the target scheduling process model by calling a framework to generate a process instance; the process instance includes target relationship information of each target business node in the target scheduling process model and target atomic capabilities of each target business node;
[0036] An implementation module is used to implement a business process according to the target relationship information and the target atomic capability.
[0037] An embodiment of the present invention also provides a business process implementation device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method.
[0038] An embodiment of the present invention also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the method.
[0039] The beneficial effects of the present invention are:
[0040] By obtaining a business request, according to the business request, traversing the model database to determine a target scheduling process model from at least one scheduling process model, instantiating the target scheduling process model through a calling framework, and generating a process instance; the process instance includes target relationship information of each target business node in the target scheduling process model and target atomic capabilities of each target business node, and according to the target relationship information and the target atomic capabilities, the business process is implemented, the target business nodes are decoupled, and each target business node forms an independent target atomic capability, which increases the feasibility of business expansion on the one hand, and is conducive to the reuse of target atomic capabilities between different businesses on the other hand, thereby improving the feasibility of business process implementation.
[0041] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of the steps of the method for implementing the business process of the present invention;
[0043] FIG. 2( a ) is a schematic diagram of a first situation of a service node according to a specific embodiment of the present invention, and FIG. 2( b ) is a schematic diagram of a second situation of a service node according to a specific embodiment of the present invention;
[0044] Figure 3 The figure is a schematic diagram of the asynchronous node processing process according to a specific embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0046] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0047] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0048] like Figure 1 As shown, an embodiment of the present invention provides a business process implementation method, including steps S100-S400:
[0049] S100: Obtain a service request.
[0050] Optionally, the business request is a request sent by a user and needs to be responded to and processed by a business process. The business request may include request information / request parameters indicating which business process.
[0051] S200 . According to a business request, traverse a model database to determine a target scheduling process model from at least one scheduling process model.
[0052] In an embodiment of the present invention, according to the request information in the business request, the model database is traversed to determine the target scheduling process model from at least one scheduling process model. It should be noted that a plurality of scheduling process models that implement different business processes may be pre-configured in the model database, and the corresponding target scheduling process model may be matched according to the request information. For example, if the current request information includes an SMF status evaluation, then the scheduling process model corresponding to the SMF status evaluation is determined to be the target scheduling process model. If the current request information includes an SMF status evaluation and an SMF status evaluation, then the scheduling process model corresponding to the SMF status evaluation and the scheduling process model corresponding to the SMF status evaluation are the target scheduling process model.
[0053] Optionally, in the embodiment of the present invention, each scheduling process model can be obtained by following the steps S201-S202:
[0054] S201. Decompose the business process of the business into several independent business nodes.
[0055] In the embodiment of the present invention, the business process of each business is decomposed into several independent business nodes, so that the independent business nodes can realize their own business node functions. For example, the business process of a certain business is decomposed into three independent business nodes A, B, and C.
[0056] S202 . In response to the configuration instruction, configure the service function of each service node and the relationship information of the service nodes in the configuration page to generate a scheduling process model.
[0057] Optionally, the configuration instruction can be an instruction input by the user through a mouse, keyboard, voice, etc. In response to the configuration instruction, the system configures the business function of each business node and the relationship information of the business node in the configuration page to generate a scheduling process model. It should be noted that the business function refers to the function that the business node needs to implement, and the relationship information represents the execution order relationship between each business node. Optionally, the relationship information can also include basic information of the business node, including but not limited to timeout time, number of retries, combination number, calling address, calling method, etc.
[0058] The generation of the scheduling process model in S202 may include steps S2021-S2022:
[0059] S2021. Encode the business functions and enter the encoded business nodes into the scheduling framework to form atomic capabilities corresponding to each business node.
[0060] In an embodiment of the present invention, the business functions of each business node are encoded. After the encoding work is completed, the encoded business nodes are entered into the scheduling framework, thereby forming the atomic capabilities corresponding to each business node, and the atomic capabilities can be used to implement the business functions of the business nodes.
[0061] S2022. Generate a scheduling process model based on atomic capabilities and relationship information of business nodes.
[0062] For example, the business process of a certain business is divided into three business nodes A1, B1, and C1. A1, B1, and C1 each have their own atomic capabilities, and the relationship information can be A1→B1→C1. At this time, the scheduling process model of the business can be generated according to the atomic capabilities and the relationship information. When the scheduling process model is used, the business function can be realized according to the relationship information A1→B1→C1 and the atomic capabilities of A1, B1, and C1, thereby realizing the entire business process of the business.
[0063] In the embodiment of the present invention, since the atomic capabilities of each business node are independently disassembled, when other business processes need to use a certain atomic capability, it can be configured in other business processes for reuse of the atomic capability, which is very convenient and conducive to improving the efficiency of business implementation.
[0064] S300, instantiating the target scheduling process model by calling the framework to generate a process instance; the process instance includes target relationship information of each target business node in the target scheduling process model and target atomic capabilities of each target business node.
[0065] Optionally, after determining the target scheduling process model, the target scheduling process model is instantiated by calling the framework, generating a process instance and obtaining the basic data required for the process instance. It should be noted that the basic data refers to the data required to implement the business process. Each time a process instance is generated, there will be a process instance number. All data involved in a business process are bound by a process instance number. Among them, the process instance includes the target relationship information of each target business node in the target scheduling process model and the target atomic capability of each target business node.
[0066] S400: Implementing business processes based on target relationship information and target atomic capabilities.
[0067] Optionally, step S400 includes steps S410-S440:
[0068] S410: Determine at least one initial process node from the target business nodes according to the target relationship information.
[0069] In the embodiment of the present invention, at least one initial process node can be determined from the target business node according to the target relationship information. For example, if the target relationship information is A→B→C, then the initial process node can be determined to be A. It should be noted that a target scheduling model can have one or more initial process nodes, or when the target scheduling process model includes more than two scheduling process models, it can have multiple initial process nodes.
[0070] S420 , generating distribution information of each initial process node into a message queue by calling a framework.
[0071] S430. Send the distribution information to the processing program through the message queue to call the target atomic capability corresponding to each initial process node to obtain a first execution result; wherein, obtaining the first execution result indicates that the execution of the initial process node is completed.
[0072] Optionally, the distribution information of each initial process node is generated by calling the framework to the message queue, and then the distribution information is sent to the processing program through the message queue to call the target atomic capability corresponding to each initial process node. The target atomic capability realizes the business function of the initial process node, and the target atomic capability of each initial process node can obtain a first execution result. Among them, when the first execution result is obtained, it indicates that the execution of the initial process node is completed, and the business function of the next business node can be continued. Optionally, the message sent by the message queue can be a kafka message.
[0073] S440: Implement the business process according to the first execution result and the target relationship information.
[0074] Optionally, step S440 includes steps S4401-S4403:
[0075] S4401. Determine at least one next business node of the initial process node according to the target relationship information.
[0076] Optionally, the next business node may have one or more. For example, as shown in Figure 2(a), the target relationship information is A→B→C→D, that is, the initial process node A has only one next business node B; or as shown in Figure 2(b), the relationship information is A→B1, B1→C1→D, B1→C2→D, A→B2→C3→D, and the initial process node A has two next business nodes B1 and B2.
[0077] S4402: Send the first execution result to a message queue, push the first execution result to a next service node through the message queue, execute the target atomic capability corresponding to the next service node, and obtain at least one second execution result.
[0078] Optionally, the first execution result is sent to a message queue, and the first execution result is pushed to the next business node through the message queue, thereby triggering the target atomic capability corresponding to the next business node according to the first execution result, realizing the business function, and obtaining at least one second execution result. For example, as shown in FIG2(a), the target atomic capability corresponding to the next business node B is executed to obtain a second execution result, and as shown in FIG2(b), the target atomic capabilities corresponding to the next business nodes B1 and B2 are respectively executed to obtain two second execution results.
[0079] S4403. Use the next business node as a new initial process node, and return the second execution result as a new first execution result to determine at least one next business node of the initial process node according to the target relationship information to implement the business process, until the new initial process node is the last business node, and obtain the final execution result of the business process.
[0080] For example, as shown in Figure 2(a), the next business node B is used as the new initial process node, and the second execution result is returned as the new first execution result. The step of determining at least one next business node of the initial process node according to the target relationship information is used to implement the business process, that is, the execution result obtained by the next business node B is sent to the message queue, and the execution result is pushed to the next business node C through the message queue. The target atomic capability of the target business node C is executed, and the next business node of the target business node C is determined again, until the new initial process node is the last business node, that is, until the new initial process node is D, the final execution result of the business process is obtained, that is, the result output by D.
[0081] For example, as shown in Figure 2(b), the next business nodes B1 and B2 are used as new initial process nodes, and the second execution result is returned as the new first execution result. The step of determining at least one next business node of the initial process node according to the target relationship information is used to implement the business process, that is, the execution results obtained by the next business nodes B1 and B2 are sent to the message queue, and the execution results are pushed to the next business nodes C1, C2, and C3 through the message queue. The target atomic capabilities of the business nodes C1, C2, and C3 are executed, and the next business nodes of the business nodes C1, C2, and C3 are determined again, until the new initial process node is the last business node, that is, until the new initial process node is D, the final execution result of the business process is obtained, that is, the result output by D.
[0082] Optionally, the business process implementation method of the embodiment of the present invention further includes steps S401-S402:
[0083] S401: When at least two new initial process nodes have the same next service node, aggregate new first execution results corresponding to the at least two new initial process nodes.
[0084] For example, as shown in FIG2(b), when it is determined that two new initial process nodes C1 and C2 have the same next business node D, in order to ensure the smooth progress of the business process, it is necessary to aggregate the new first execution results corresponding to the new initial process nodes.
[0085] It should be noted that when the business process needs to dynamically split or converge business nodes, it is necessary to obtain process data based on the current instance number to verify whether it can be advanced to the next business node. For example, in Figure 2(b), it is verified whether C1, C2, and C3 have all been executed to obtain a new first execution result. If so, it is allowed to advance to business node D.
[0086] S402: Push the aggregated processing result to the same next service node, so as to execute the corresponding target atomic capability according to the same next service node to obtain at least one second execution result.
[0087] Specifically, the aggregated processing results are pushed to the same next business node to execute the corresponding target atomic capability according to the same next business node to obtain at least one second execution result. For example, the corresponding target atomic capability is executed according to the same next business node D to obtain at least one second execution result, thereby ensuring that the business process can be executed smoothly when multiple branch process nodes are involved.
[0088] Optionally, the business process implementation method of the embodiment of the present invention further includes steps S411-S412:
[0089] S411: When the next service node is an asynchronous node, it sends an asynchronous request and monitoring information, and monitors response information for responding to the monitoring information.
[0090] Optionally, when a business node does not need to call a third-party interface, or only calls the third-party interface synchronously, the process flow in the business is sequentially executed, and we define the business node that executes this process as a synchronous node, such as the business node shown in Figure 2(a). When a third-party interface needs to be introduced in a business node and the third-party interface will delay the return of the result, the business process node will wait for the result to return before performing subsequent business processing, and the business node that executes this process is an asynchronous node. Figure 3 As shown, specifically, when the asynchronous node receives the kafka message from the message queue, the asynchronous node triggers the business logic for processing the asynchronous processing to send an asynchronous request and listen information, and listens for the response information used to respond to the listen information.
[0091] S412. When no response information is received and the listening time is less than the time threshold, resend the listening information to return to the step of listening for the response information used to respond to the listening information until the response information is received or until the listening time is greater than or equal to the time threshold, and process the unresponsive process, wherein the result of the unresponsive process is used as the second execution result.
[0092] Optionally, when no response information is received and the listening time is less than a time threshold, the listening information is resent (for example, a retried Kafka message is sent) and the step of listening for a response information used to respond to the listening information is returned until a response information is received, or until the listening time is greater than or equal to the time threshold, and the unresponsive process is processed, wherein the result of the unresponsive process is used as the second execution result.
[0093] When the response information is received, the asynchronous response logic is executed, for example, the target atomic capability corresponding to the asynchronous node is executed to obtain at least one second execution result. It should be noted that after obtaining the second execution result, the Kafka message of the second execution result is pushed to the message queue, and the next business node of the asynchronous node is determined according to the target relationship information, and the subsequent process is continued.
[0094] The following is an example of implementing the UPF status assessment service:
[0095] The first step is to configure the basic data of the process. First, the user splits the UPF evaluation process into multiple business nodes to implement its business function modules, including the code execution body, callback method, callback unresponsive method, exception handling method, parameter parsing method, and encapsulates them into atomic capabilities. Then the user configures the process information ([Process Name], [Process Number]), business node information ([Business Node Name], [Business Node Number], [Group Number], [Whether Starting Node], [Atomic Capability URL], [Atomic Capability Calling Method], etc.) on the framework process configuration page, and the inter-node link information ([Predecessor Node Number], [Post-Node Number]) to form a scheduling process model for UPF status evaluation.
[0096] The second step is to actually call the process. After the user sends a business request to trigger the evaluation process, the target scheduling process model is determined to be the scheduling process model for UPF status evaluation. By calling the framework's [Create Process Instance] method, the scheduling framework instantiates the target scheduling process model and generates a new process instance. The new process instance includes basic information such as node details of all business nodes (or process nodes), and filters out the initial process nodes. For example, after screening, this process filters out two initial process nodes: [Get POOL UPF] and [Get Uplink SMF].
[0097] Next, the scheduling framework generates two distribution messages, including the information of the above two initial process nodes, and pushes them into the distribution message queue. After receiving the message, the consumer end of the distribution queue sends it to the general process handler of the scheduling framework to process the message. The general process handler parses the message to obtain the node's [call URL] and [call method], and encapsulates the atomic capabilities corresponding to the request call node. After receiving the request, the atomic capabilities [get POOL pool UPF] and [get upper SMF] execute their own business logic, that is, execute atomic capabilities. These two atomic capabilities do not need asynchronous calls, so after the execution is completed, the [complete node] method of the scheduling framework is directly called to complete the processing flow of the node. After receiving the request, the scheduling framework obtains the next node according to the node link relationship, obtains the two nodes [execute UPF status evaluation] and [execute SMF status evaluation], and calls the corresponding atomic capabilities in the above manner. After receiving the request, the two business nodes encapsulate the parameters and execute the logic.
[0098] Specifically, take [Execute SMF status evaluation] as an example. When executing to obtain the upper connected SMF, there are several upper connected SMFs. At this time, before the service node is executed, the subsequent service steps will be executed on each SMF network element. This involves the need to split some nodes, that is, there are multiple next service nodes. The subsequent service nodes ([Query UPF status instance on SMF], [Query SMF deactivation rate], [Query SMF dynamic number]) and [Execute SMF status evaluation] are in the same node group. If splitting is to be performed, the above nodes need to be split at the same time. Assuming that there are 2 upper connected SMFs here, the above nodes will also be split into 2, and the process instance number will be added with a digit at the end to distinguish the sub-processes. After the split is completed, the [Execute SMF status evaluation] nodes corresponding to the two SMFs are executed simultaneously. After the execution is completed, each is advanced to the next node through the scheduling framework, and the subsequent nodes are repeated in this way.
[0099] The process continues to advance to the [Query the number of dynamic SMF users] node. The business in this node needs to call a third-party asynchronous interface. The node calls the [Send asynchronous http request] method of the scheduling framework. After receiving the request, the scheduling framework encapsulates [url], [request type], and [request parameters]. After encapsulating the request, it generates a [request number] and calls the external request. Then the scheduling framework encapsulates the [request number] and [waiting time] into a delayed listening message and pushes it to the delayed listening queue. In normal scenarios, after the third-party interface is processed, the callback request is sent to the general framework. The general framework fills the message into the request result table according to the [request number] and calls the callback method of the business node at the same time. If the third-party interface has no callback, the callback result in the request result table is empty. When the delayed message reaches the waiting time, the scheduling framework is automatically triggered to check whether the [request number] has a callback result. After finding no result, the scheduling framework determines whether the retry threshold is reached. If not, the original request is repackaged into a retry message and pushed to the retry message queue. After the retry message queue receives the message, it encapsulates [url], [request type], and [request parameters] as the original request. After encapsulating the request, it generates a [request number] and calls the external request. Then the scheduling framework encapsulates [request number] and [waiting time] into a delayed listening message and pushes it to the delayed listening queue. If the number of retries reaches the threshold, the scheduling framework triggers the business node unresponsive method to perform related business logic processing. After the business node processes the callback method, unresponsive method, or exception method, it will call the framework's general [completion node] method. The scheduling framework determines whether it needs to advance to the next node. If not, the process ends, triggering the process end logic. If necessary, it advances to the next node.
[0100] Advance to the last node [Generate Evaluation Results], which is a convergence node. It needs to wait for the completion of all the preceding business nodes. If there are any preceding nodes that have not been completed, it will monitor the preceding nodes until they are completed. If the status of the preceding nodes is [Complete Status], the scheduling framework will call the [Generate Evaluation Results] convergence node method after judgment. The convergence node encapsulates and processes the method passed by the preceding node, and advances to the next node after completion. At this time, the scheduling framework determines that [Generate Evaluation Results] is the last node, triggers the process end method, and obtains the final business process result. At this point, the business process of a UPF status evaluation business is completed.
[0101] Compared with the prior art, the business process implementation method of the embodiment of the present invention can cut and separate different business scenarios to form multiple independent business nodes. The independent business nodes have independent atomic capabilities and can realize the business functions of each business node itself. The present invention uses multiple message queues in the process of business nodes executing business processes. Business nodes are decoupled from each other. All interactions between business nodes are first passed through a scheduling framework. The scheduling framework then performs logical judgment based on the input and output parameters of the business nodes, analyzes the next business node to be pushed with the message, and finally sends the message to the next node through a distribution message queue. When the business request of the business node itself involves an asynchronous interface, the export method encapsulated by the present invention is uniformly called. When the export method receives the request, a request identification number is first generated, and then the interface request is transparently transmitted. At the same time, the export method binds the request identification number to the current request, encapsulates the binding relationship into a listening message, pushes it into a delayed listening message queue, waits for the message to reach a delay period, and waits until the delay message reaches the period. After the delay message reaches the period, the listening execution program is automatically triggered; the processing program determines whether the business node that issues the interface request has a callback method, and if so, the callback business logic of the business node is triggered; if not, a general interface retry method is triggered, and the scheduling program pushes the message into the retry message queue for automatic retry, and then the retry process pushes the listening message queue again. This goes on and on until the retry threshold is reached. If the threshold is reached, the program will automatically trigger the no-response processing logic of the business node, and the retry queue and the delayed listening queue will affect and call each other, ensuring the stability and security of the program when making asynchronous interface calls. The present invention combines message queues such as the distribution message queue, the listening message queue, and the retry message queue to form a complete asynchronous interface scheduling implementation method and device; communicate with the business node through the message queue to achieve series connection and connection between nodes, and form different business scenarios.
[0102] At the same time, independent atomic capabilities allow these atomic capabilities to be reused between different businesses, thereby greatly shortening the business implementation cycle, simplifying the business process, improving the feasibility of business implementation in more complex scenarios, and increasing the possibility of business expansion; for the operation and maintenance of business functions, after the asynchronous interface forms atomic capabilities, it is easier to locate the fault node by accurately analyzing the calling process and logs of the atomic capabilities. In high-risk sudden risk scenarios, by monitoring the scheduling process, it can help operation and maintenance personnel locate and solve problems more quickly.
[0103] Furthermore, the scheduling framework adds a unified error handling mechanism to business nodes, improves the efficiency and stability of business processes, reduces the pressure of business operation and maintenance, and enables 5GC network elements to have a certain disaster recovery capability.
[0104] In view of the fact that the service nodes required by the scheduling program are connected in series in a variety of interaction modes, the embodiment of the present invention:
[0105] In the first method, the business node determines whether to execute the current node based on the input parameters. The input parameters can be directly passed back from the previous node, or indirectly passed by the previous node in the form of placing them in the public cache. The business node uses the two channels on demand. At the same time, the information passed back by the previous node also includes the status information of the process. The business node determines the direction of the process based on this information. If it is executed, it will be executed according to the implementation content of the atomic capability. If it is not executed, the corresponding exit will be executed or the current business node will be skipped.
[0106] The second way is that after the business node obtains the input parameters, it can perform business analysis and grouping according to the input parameters (the format of the input parameters is a list type. If the length is greater than 1, it needs to be split into multiple nodes for concurrent execution. If the length is 1 or 0, there is no need to split). If it can be divided into multiple groups, the current node will be split and executed concurrently according to the group, otherwise there is no need to split. If splitting is required, the present invention will expand or delete a group of nodes bundled with the current node at the same time to ensure the smoothness of the business. During the expansion process, the scheduling framework will append the sub-process identification number to the original process identification number to distinguish each group of independent sub-processes.
[0107] The third method is that when there are multiple predecessor nodes for a business node, it is necessary to determine whether all the predecessor business nodes are completed before executing the business logic, as shown in Figure 2 (b), C1, C2, and C3 are the predecessor nodes of node D). Each time a predecessor node is completed, the verification logic will be triggered once. At the same time, in order to avoid simultaneous triggering, the scheduler is designed to add a lock mechanism to avoid repeated execution of the business of the rear convergence node. In general, the present invention provides an asynchronous interface scheduling implementation method in complex scenarios by unified control and scheduling of each link of the entire business process.
[0108] Finally, the embodiments of the present invention are highly adaptable to all complex services of the 5G core network. The scheduling framework itself is a stateless program built on a microservice framework, which can dynamically add nodes for traffic load. This scheduling framework disassembles the original complex services and recombines and connects services with certain correlations, saving the service implementation cycle, reducing operation and maintenance pressure, providing production stability guarantees, and facilitating rapid disaster recovery in high-risk scenarios. Based on the 5G core network service and extending to other service scenarios, the present invention can be adapted as a general asynchronous scheduling framework, and the corresponding scenarios only need to refer to the 5G core network service to atomically disassemble and combine the services.
[0109] The embodiment of the present invention further provides a business process implementation device, including:
[0110] An acquisition module is used to acquire business requests;
[0111] A determination module, configured to traverse a model database to determine a target scheduling process model from at least one scheduling process model according to the business request;
[0112] A generation module, used to instantiate the target scheduling process model by calling a framework to generate a process instance; the process instance includes target relationship information of each target business node in the target scheduling process model and target atomic capabilities of each target business node;
[0113] An implementation module is used to implement a business process according to the target relationship information and the target atomic capability.
[0114] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments, and will not be repeated herein.
[0115] The embodiment of the present invention also provides another business process implementation device, which includes a processor and a memory, wherein at least one instruction, at least one program, code set or instruction set is stored in the memory, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the business process implementation method of the above embodiment. Optionally, the business process implementation device includes but is not limited to a mobile phone, a tablet computer, a computer, and a car computer.
[0116] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments, and will not be repeated herein.
[0117] An embodiment of the present invention also provides a computer-readable storage medium, in which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the business process implementation method of the aforementioned embodiment.
[0118] The embodiment of the present invention also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the business process implementation method of the above embodiment.
[0119] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0120] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0121] In the several embodiments provided in the present 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 only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0122] 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 computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0123] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A business process implementation method, characterized in that: include: Get business request; According to the business request, traverse the model database to determine a target scheduling process model from at least one scheduling process model; Instantiate the target scheduling process model by calling the framework to generate a process instance; The process instance includes target relationship information of each target service node in the target scheduling process model and target atomic capability of each target service node; The business process is implemented according to the target relationship information and the target atomic capability.
2. The business process implementation method according to claim 1, characterized in that: The scheduling process model is constructed by the following steps: Decompose the business process into several independent business nodes; In response to the configuration instruction, configuring the service function of each of the service nodes and the relationship information of the service nodes in the configuration page to generate a scheduling process model; The relationship information represents the execution order relationship between the service nodes.
3. The business process implementation method according to claim 2, characterized in that: The generating of the scheduling process model comprises: Encoding the service function, and entering the encoded service node into the scheduling framework to form an atomic capability corresponding to each service node; the atomic capability is used to implement the service function of the service node; The scheduling process model is generated according to the atomic capabilities and the relationship information of the service nodes.
4. The business process implementation method according to any one of claims 1 to 3, characterized in that: The implementing the business process according to the target relationship information and the target atomic capability includes: Determining at least one initial process node from the target service nodes according to the target relationship information; Generate distribution information of each of the initial process nodes into a message queue through the calling framework; Sending the distribution information to the processing program through the message queue to call the target atomic capability corresponding to each of the initial process nodes to obtain a first execution result; wherein obtaining the first execution result indicates that the execution of the initial process node is completed; A business process is implemented according to the first execution result and the target relationship information.
5. The business process implementation method according to claim 4, characterized in that: Implementing a business process according to the first execution result and the target relationship information includes: Determine at least one next business node of the initial process node according to the target relationship information; Sending the first execution result to the message queue, pushing the first execution result to the next service node through the message queue, executing the target atomic capability corresponding to the next service node, and obtaining at least one second execution result; The next business node is used as a new initial process node, and the second execution result is returned as a new first execution result to the step of determining at least one next business node of the initial process node according to the target relationship information to implement the business process, until the new initial process node is the last business node, and the final execution result of the business process is obtained.
6. The method for implementing a business process according to claim 5, characterized in that: The business process implementation method also includes: When at least two new initial process nodes have the same next service node, aggregating new first execution results corresponding to the at least two new initial process nodes; The aggregate processing result is pushed to the same next service node, so as to execute the corresponding target atomic capability according to the same next service node to obtain at least one second execution result.
7. The business process implementation method according to claim 5, characterized in that: The business process implementation method also includes: When the next service node is an asynchronous node and sends an asynchronous request and monitoring information, monitoring response information for responding to the monitoring information; When the response information is not received and the listening time is less than the time threshold, resending the listening information to return to the step of listening for the response information for responding to the listening information until the response information is received or until the listening time is greater than or equal to the time threshold, processing the no-response process, wherein the result of the no-response process is used as the second execution result; When the response information is received, the target atomic capability corresponding to the asynchronous node is executed to obtain at least one second execution result.
8. A business process implementation device, characterized in that: include: An acquisition module is used to acquire business requests; A determination module, configured to traverse a model database to determine a target scheduling process model from at least one scheduling process model according to the business request; A generation module, used to instantiate the target scheduling process model by calling a framework to generate a process instance; The process instance includes target relationship information of each target service node in the target scheduling process model and target atomic capability of each target service node; An implementation module is used to implement a business process according to the target relationship information and the target atomic capability.
9. A business process implementation device, characterized in that: The business process implementation device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method as described in any one of claims 1-7.
Citation Information
Cited By
Self-adaptive workflow and risk collaborative management and control method and system based on double service modes
CN121660629A
