Service session data tracking method and apparatus, and related device

By using the business process information to configure the interface and data processing rules in the tracking system, the target business process is generated, which solves the problem in the existing technology that the business session data inspection affects the system operation and cannot track the complete session, and realizes efficient tracking of the business system. and monitoring.

WO2024174589A1PCT designated stage expired Publication Date: 2024-08-29HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Patent Information

Application Number
PCT/CN2023/130641
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-12
Filing Date
2023-11-09
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

When the existing technology uses business session data to check the business system, it will affect the normal operation of the system, and the business session data generated by the business system cannot be tracked without adding an identifier, resulting in the tracking system being unable to effectively monitor the business system. The complete business conversation process.

Method used

By introducing the business process information configuration interface into the tracking system, the business process configuration information input by the user is obtained, the target business process is generated, and the data processing rules are executed based on this configuration information, and the business session data generated by the business system is obtained and processed to achieve business management. System tracking does not require the cooperation of the business system to add identification.

Benefits of technology

It reduces the impact on the operation of the business system, expands the application scenarios of the tracking system, can visually display business processes and tracking progress, solves the problem of being unable to track complete business session data, and improves the accuracy and efficiency of monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023130641_29082024_PF_FP_ABST
    Figure CN2023130641_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed by the present application is a service session tracking method applicable to a tracking system. The method is applicable to the technical field of computers. A tracking system is used for tracking a service system. The tracking system comprises a service flow information configuration interface. The tracking system obtains service flow configuration information by means of the service flow information configuration interface. The service flow configuration information comprises a plurality of service flow nodes, an execution sequence among the plurality of service flow nodes, and a data processing rule corresponding to the at least one service flow node. The tracking system generates a target service flow on the basis of the service flow configuration information, and executes the data processing rule corresponding to the at least one service flow node. A user may, from the target service flow, visually understand the tracking progress of the tracking system. Moreover, tracking may be achieved without adding an identifier to the service system in cooperation with the tracking system, and the adverse effect of the tracking service system on the operation of the service system is reduced. Further provided by the present application are a corresponding apparatus and a related device.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device and related equipment for tracking business session data

[0001] This application claims priority to Chinese patent application number 202310152758.6, filed with the State Intellectual Property Office on February 22, 2023, entitled “A Method and System for Tracking Business Session Data,” the entire contents of which are hereby incorporated by reference into this application. This application claims priority to Chinese patent application number 202310538162.X, filed with the State Intellectual Property Office on May 12, 2023, entitled “A Method, Apparatus, and Related Equipment for Tracking Business Session Data,” the entire contents of which are hereby incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a method, apparatus, and related equipment for tracking business session data. Background Art

[0003] A business system processes business transactions based on preconfigured business process flows. Users use the business system to manage and process transactions. The business process flows within a business system are configured by users based on their business needs. These flows typically include multiple steps. When processing transactions, the business system executes these steps sequentially based on the business process flows to complete the transaction.

[0004] When a business system processes a business transaction based on a business process, it generates business session data. This data can be used to monitor the execution of the business process by the business system. By examining this data, anomalies can be detected during the execution of the business process by the business system.

[0005] Currently, using business session data to check business systems will affect the normal operation of the business systems.

[0006] Summary of the Invention

[0007] This application provides a method for tracking business session data, which can reduce the adverse effects of using business session data to inspect business systems on their operation. Furthermore, it can more intuitively display target business processes, making it easier for users to understand the processes executed by the business system and track their progress. This application also provides a corresponding apparatus, a computer device cluster, a computer-readable storage medium, and a computer program product.

[0008] In a first aspect, the present application provides a business session tracking method for a tracking system. The tracking system is used to track a business system. The tracking system obtains business process configuration information input by a user through a business process information configuration interface. The business process configuration information is used to configure the business process handled by the business system tracked by the tracking system. The business process configuration information includes multiple business process nodes, the execution order between the multiple business process nodes, and data processing rules. Business process nodes represent the process steps for handling a business. The execution order between the multiple business process nodes can reflect the business process flow. The data processing rules instruct the tracking system on how to process business session data generated by the business system. The data processing rules correspond to at least one business process node, so that when the tracking system processes a business process node, it processes the data using the data processing rules corresponding to the business process node. The tracking system generates a target business process based on the business process configuration information. The target business process corresponds to a business session process in the business system. The tracking system can display the target business process to the user, allowing the user to intuitively understand the business session process handled by the business system and the progress of the tracking system in tracking the business session data. The tracking system executes the data processing rules corresponding to at least one business process node based on the business process configuration information. The data processing rules corresponding to the first business process node include raw session data collection rules. The raw session data collection rules process business session data generated by the business system during business processing. This enables the processing of business session data based on business process configuration information, thus enabling tracking of the business system. Furthermore, the business system does not need to cooperate with the tracking system to add identifiers. This reduces the negative impact of tracking on the business system's operation and resolves the issue of the tracking system being unable to track business session data generated by the business system due to the inability of the business system to add identifiers. This method expands the application scenarios of the tracking system and facilitates user understanding of the tracking system's tracking progress and results.

[0009] In some possible implementations, the tracking system also displays tracking data. The tracking data includes one or more of node execution results, process execution results, and data inspection results. Node execution results are the execution results of a business process node. Process execution results are the execution results of the business process corresponding to the business process configuration information. Data inspection results are the results of inspecting the processed data obtained by executing the data processing rules corresponding to the business process node. Based on the displayed tracking data, users can more conveniently and comprehensively understand the tracking results and the business system's business processing status.

[0010] In one possible implementation, the tracking data is automatically generated by the tracking system after completing a tracking task for the business system. In another possible implementation, the tracking system receives a query request including data information of the tracking data. The data information includes one or more of session information, node information, and session step data information. Based on the data information, the tracking system can determine the tracking data to be queried. The tracking system obtains the tracking data based on the query request.

[0011] In some possible implementations, the business process information configuration interface provides multiple business process node diagrams for user selection. Business process node diagrams correspond to business process nodes. The tracking system receives the multiple business process node diagrams and execution sequences configured by the user through the business process configuration interface, and then generates a business process diagram based on the multiple business process node diagrams and execution sequences. The business process nodes corresponding to the business process node diagrams included in the business process diagram correspond to the business processing steps included in the business session flow in the business system. The execution sequence included in the business process diagram corresponds to the flow of business processing steps included in the business session flow in the business system.

[0012] In some possible implementations, the original session data collection rule includes a first collection path indicating the target data source of the original session data collection operation. The target data source is used to store the business session data generated by the business system. For example, the target data source includes one or any combination of a DB SQL database structured query language data source, a DB binlog database binary log data source, a RESTful interface data source, a NoSQL non-relational database data source, a business log source, a business DB database data source, and a file data source. The tracking system performs the original session collection operation based on the original session collection rule corresponding to the first business process node, including: sending a business session data collection request to the business system and receiving business session data fed back by the business system. As an example, the business session data collection request can be generated based on the first collection path.

[0013] In some possible implementations, the raw session data collection rules also include query index establishment rules. When the tracking system processes the first business process node and executes the raw session data collection rules corresponding to the first business process node, including the query index establishment rules, it converts the business session data into cached business session data and establishes a query index for the cached business session data based on the query index establishment rules of the target data source and the cached business session data. Finally, the cached business session data and query index are written to a cache database. The cache database belongs to the tracking system. The format of the cached business session data matches the cache database. In this way, the tracking system can organize the acquired business session data and generate cached business session data. Furthermore, using the established query index, the tracking system can more easily and accurately query the required cached business session data from the cache database, flexibly enabling the collection of raw session business data from different types of target data sources, facilitating expansion and adaptation to more data source types.

[0014] In some possible implementations, the data processing rules corresponding to the first business process node also include a session start data identification rule. The session start data identification rule is used to identify session start data. The session start data is used to determine that the business system starts executing the business session process. This type of first business process node is the starting node of the business session process. When processing the first business process node, the tracking system executes the session start data identification rule corresponding to the first business process node, and after identifying the session start data, creates a first business session instance. The starting node of the first business session instance is the first business process node whose corresponding data processing rules also include the session start data identification rule. Starting from the first business process node, the tracking system determines the business process node to be executed, that is, the target process node, based on the business process configuration information. The tracking system executes the data processing rules corresponding to the target process node.

[0015] In some possible implementations, the multiple business process nodes include a second business process node. The data processing rules corresponding to the second business process node also include session step data processing rules. The session step data processing rules include a second acquisition path. The second acquisition path includes one or both of the first acquisition path and a cache database. The second acquisition path is used to indicate the storage location of the collected session step data. When processing the second business process node and executing the session step data processing rules corresponding to the second business process node, the tracking system obtains a processed data set, generates query parameters based on the query rules and the processed data set, and finally, based on the query parameters, queries the storage location indicated by the second acquisition path to obtain the session step data. The processed data set includes one or more of the business session data and the processed data obtained by executing the data processing rules corresponding to the business process node. The query rules are used to determine query parameters for querying the session step data. The tracking system uses the processed data set and the query rules to query the session step data.

[0016] In some possible implementations, the data processing rules also include data checking rules. The data checking rules are used to instruct the tracking system on the checking method for processing data obtained by executing the data processing rules corresponding to the business process node. Based on the data checking rules, the tracking system performs a data check on the processing data obtained by executing the data processing rules corresponding to the business process node, obtaining a data check result. The data checking rules enable checking of processing data at the business process node level, improving the accuracy of the tracking system's checking of processing data.

[0017] In some possible implementations, the multiple business process nodes include a third business process node. The data processing rules corresponding to the third business process node include a branch judgment rule. There is an execution order between the third business process node and the multiple business process nodes. That is, according to the execution order, there are multiple business process nodes that need to be executed next to the third business process node. The tracking system can determine the next business process node to be executed from the multiple business process nodes based on the branch judgment rule, and realize the selection of the branches included in the execution order. After determining the next business process node to be executed, the tracking system can also display the target business process containing the next business process node to be executed, so that the user can understand the branches of the process executed by the tracking system.

[0018] In some possible implementations, the tracking system can also determine breakpoints. During the process of processing a business process node, if the breakpoint condition is met, the tracking system marks the currently processed business process node as a breakpoint. The business process node marked as a breakpoint is interrupted. Furthermore, when the recovery condition is met, the tracking system executes the data processing rule corresponding to the breakpoint. If the tracking system successfully executes the data processing rule corresponding to the breakpoint, it continues to process the next business process node based on the execution order. If the tracking system fails to execute the data processing rule corresponding to the breakpoint, it continues to execute the data processing rule corresponding to the breakpoint again when the recovery condition is met. The operation is repeated until the data processing rule corresponding to the breakpoint is successfully executed or the total time for processing the breakpoint reaches a threshold. In this way, the interruption and reprocessing of the business process nodes that meet the breakpoint conditions can be achieved, so that the tracking system can be applied to tracking scenarios that require interruption processing, thereby expanding the scope of application of the tracking system.

[0019] In a second aspect, the present application provides a service session tracking device. The service session tracking device is applied to a tracking system, the tracking system is used to track the service system, the service session tracking device includes a service process information configuration interface, and the service session tracking device includes:

[0020] A business process configuration information acquisition module, configured to acquire business process configuration information input by a user from the business process information configuration interface, wherein the business process configuration information includes a plurality of business process nodes, an execution order between the plurality of business process nodes, and a data processing rule corresponding to at least one business process node;

[0021] A target business process generation module, configured to generate a target business process based on the business process configuration information, wherein the target business process corresponds to a business session process in the business system;

[0022] A data processing rule execution module is used to execute the data processing rules corresponding to the at least one business process node based on the business process configuration information, wherein the data processing rules corresponding to the first business process node among the multiple business process nodes include original session data collection rules, and the data source of the original session data collection rules is the business session data in the business system.

[0023] In some possible implementations, the apparatus further includes:

[0024] A display module is used to display tracking data, wherein the tracking data includes one or more of a node execution result, a process execution result, and a data inspection result. The node execution result is the execution result of the business process node, the process execution result is the execution result of the business process corresponding to the business process configuration information, and the data inspection result is the result obtained by inspecting the processing data obtained by executing the data processing rule corresponding to the business process node.

[0025] In some possible implementations, the business process information configuration interface provides a plurality of business process node diagrams for user selection, wherein the business process node diagrams correspond to business process nodes, and the business process configuration information acquisition module is configured to acquire the business process configuration information input by the user from the business process information configuration interface, including:

[0026] The business process configuration information acquisition module is specifically used to receive multiple business process node diagrams and execution sequences configured by the user through the business process configuration interface; generate a business process diagram, in which the business process nodes corresponding to the business process node diagram and the execution sequence correspond to the business session process in the business system.

[0027] In some possible implementations, the original session data collection rule includes a first collection path, where the first collection path is used to indicate a target data source for the original session data collection operation. The data processing rule execution module, configured to execute the data processing rule corresponding to the business process node, includes:

[0028] The data processing rule execution module is configured to send a business session data collection request to the business system and receive business session data sent by the business system, wherein the business session data is stored in the target data source of the business system, wherein the target data source includes one or any combination of a DB SQL database structured query language data source, a DB binlog database binary log data source, a RESTful interface data source, a NoSQL non-relational database data source, a business log source, a business DB database data source, and a file data source. In some possible implementations, the raw session data collection rules also include query index establishment rules. The data processing rule execution module is configured to execute the data processing rules corresponding to the business process node, including:

[0029] The data processing rule execution module is specifically configured to convert the business session data into cached business session data, wherein the format of the cached business session data matches the cache database of the tracking system; establish a query index for the cached business session data based on the query index establishment rule of the target data source and the cached business session data; and write the cached business session data and the query index into the cache database.

[0030] In some possible implementations, the data processing rules further include a session start data identification rule corresponding to the first business process node, the first business process node is the start node of the business session process, and the business session data is the start session data of the business session process. The data processing rule execution module is configured to execute the data processing rule corresponding to the business process node based on the business process configuration information, including:

[0031] The data processing rule execution module is specifically used to create a first business session instance, where the starting node of the first business session instance is the first business process node; and execute the data processing rule corresponding to the target process node, where the target process node starts from the first business process node and determines the business process node to be executed based on the business process configuration information.

[0032] In some possible implementations, the data processing rule further includes a session step data processing rule corresponding to a second business process node among the multiple business process nodes, the session step data processing rule includes a second acquisition path, wherein the second acquisition path includes the first acquisition path, and the data processing rule execution module, configured to execute the data processing rule corresponding to the business process node, includes:

[0033] The data processing rule execution module is specifically configured to obtain a processed data set, the processed data set including the business session data and one or more of the processed data obtained by executing the data processing rules corresponding to the business process node; generate query parameters based on the query rules and the processed data set; and retrieve session step data from the storage location indicated by the second acquisition path based on the query parameters. In some possible implementations, the data processing rules further include a session step data processing rule corresponding to the second business process node, the session step data processing rule including a second acquisition path, wherein the second acquisition path includes one or both of the first acquisition path and the cache database. The data processing rule execution module is configured to execute the data processing rule corresponding to the business process node, including:

[0034] The data processing rule execution module is specifically used to obtain a processing data set, where the processing data set includes one or more of the business session data, the cached business session data, and the processing data obtained by executing the data processing rule corresponding to the business process node; generate a query parameter based on the query rule and the processing data set; and query the storage location indicated by the second acquisition path based on the query parameter to obtain session step data.

[0035] In some possible implementations, the data processing rules further include data inspection rules, and the data processing rule execution module is configured to execute the data processing rules corresponding to the business process node based on the business process configuration information, including:

[0036] The data processing rule execution module is specifically used to perform data inspection on the processed data obtained by executing the data processing rule corresponding to the business process node based on the data inspection rule; and obtain a data inspection result.

[0037] In some possible implementations, the data processing rules further include a branch judgment rule corresponding to a third business process node, and the third business process node and the plurality of business process nodes have an execution order. The data processing rule execution module is configured to execute the data processing rule corresponding to the business process node based on the business process configuration information, including:

[0038] The data processing rule execution module is specifically used to determine the next executed business process node from the multiple business process nodes based on the branch judgment rule corresponding to the third business process node; and display the target business process including the business process node.

[0039] In some possible implementations, the apparatus further includes:

[0040] The breakpoint processing module is used to mark the currently processed business process node as a breakpoint if the breakpoint condition is met; repeatedly execute the data processing rule corresponding to the breakpoint in response to meeting the recovery condition until the data processing rule corresponding to the breakpoint is successfully executed or the total time for processing the breakpoint reaches a threshold; if the data processing rule corresponding to the breakpoint is successfully executed, continue to process the next business process node based on the execution order.

[0041] In some possible implementations, the apparatus further includes:

[0042] A query module is used to obtain a query request before displaying the tracking data, wherein the query request includes data information of the tracking data, and the data information includes one or more of session information, node information, and session step data information; and obtain the tracking data based on the data information query.

[0043] In a third aspect, the present application provides a computing device cluster, comprising at least one computing device, the at least one computing device comprising at least one processor and at least one memory; the at least one memory is used to store instructions, and the at least one processor executes the instructions stored in the at least one memory, so that the computing device cluster performs the service session tracking method described in the first aspect or any possible implementation of the first aspect. It should be noted that the memory can be integrated into the processor or independent of the processor. The at least one computing device may also include a bus. The processor is connected to the memory via the bus. The memory may include a readable memory and a random access memory.

[0044] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on at least one computing device, the at least one computing device executes the method described in the first aspect or any implementation of the first aspect.

[0045] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on at least one computing device, enables the at least one computing device to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0046] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] FIG1 is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0048] FIG2 is a schematic diagram of another system architecture provided in an embodiment of the present application;

[0049] FIG3 is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;

[0050] FIG4 is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0051] FIG5 is a flow chart of a method for tracking service session data according to an embodiment of the present application;

[0052] FIG6 is a schematic diagram of the structure of a tracking system provided in an embodiment of the present application;

[0053] FIG7 is a schematic diagram of the data composition structure of a business process diagram provided in an embodiment of the present application;

[0054] FIG8 is a schematic diagram of a target business process provided in an embodiment of the present application;

[0055] FIG9 is a schematic diagram showing a target business process according to an embodiment of the present application;

[0056] FIG10 is a schematic diagram showing another target business process according to an embodiment of the present application;

[0057] FIG11 is a flowchart of the interaction between a session tracking module and a data acquisition module provided in an embodiment of the present application;

[0058] FIG12 is a schematic diagram of a data structure of breakpoint data provided in an embodiment of the present application;

[0059] FIG13 is a schematic diagram of a process for processing breakpoints according to an embodiment of the present application;

[0060] As shown in FIG14 , an embodiment of the present application further provides a schematic structural diagram of a service session tracking device;

[0061] FIG15 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0062] FIG16 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0063] FIG17 is a schematic diagram of a connection method of computing devices in a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The following will describe the solutions in the embodiments provided in this application in conjunction with the drawings in this application.

[0065] The terms "first," "second," and so on, in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate and are merely used to describe the manner in which objects with the same attributes are distinguished in the embodiments of this application.

[0066] The business session data generated by a business system during the process of processing business based on the business process flow can be used to monitor the business system's business processing process. Business session data is data related to business processing generated by a business transaction. For example, business session data includes one or both of business data and tracking logs. Business data is business-related data generated by a business system during business processing. The business system can directly send business data to the tracking system for inspection, thereby tracking the business system's business processing. The business system can also record the generated business data or the business processing process in a tracking log. The tracking system can collect and inspect the tracking logs, monitor the business system's business processing process, and track the business system's business processing process.

[0067] At present, in order to distinguish the business session data generated by different times of business processing, the business system assigns a corresponding identifier to the business session data generated for each business processing. For example, when the business system starts to execute the business processing flow, it assigns an identifier to the business session data generated by this execution of the business processing flow. The identifier is, for example, a trace identifier (trace ID) or a session identifier. Here, a session refers to the process of a business system executing a business processing flow. Starting from processing the business, the business system carries an identifier in the business session data generated at each step of the execution of the business processing flow, and passes the identifier during the business processing process. The business system sends the business session data including the identifier to the tracking system. The tracking system can obtain the business session data sent by the business system. Based on the identifier, the tracking system can determine the business session data corresponding to a business processing, and check the business session data to monitor the business processing of the business system and promptly discover problems with the business system.

[0068] To support the tracking system's monitoring of business processing, the business system requires additional identifiers. These identifiers are not part of the data required or generated by the business system itself. This can be intrusive to the business system, reducing its performance and impacting its normal operation. Furthermore, in some cases, the business system's processing involves interactions with users, external systems, and scheduled tasks, all of which cannot be identified. This fragments the business process into multiple stages, making it impossible for the business system to identify a complete business process, or session. This makes it difficult for the tracking system to inspect and monitor complete business sessions.

[0069] Based on this, an embodiment of the present application provides a method for tracking business session data. This method can be applied to a tracking system. The tracking system is used to track a business system. The tracking system includes a business process information configuration interface. Users can use this interface to configure business process configuration information. The business process configuration information includes multiple business process nodes, the execution order between the multiple business process nodes, and data processing rules corresponding to at least one business process node. The tracking system generates a target business process based on the business process configuration information. The target business process corresponds to a business session process in the business system. Based on the target business process, users can more intuitively understand the business system's business processing process and the tracking system's progress in tracking business session data. The tracking system executes the data processing rules corresponding to at least one business process node based on the business process configuration information. The data processing rules corresponding to the first business process node included in the multiple business process nodes include raw session collection rules. The data source for the raw session data collection rules is the business session data in the business system. In this way, the tracking system can obtain business session data from the business system based on the data processing rules of the multiple business process nodes including the first business process node, and can monitor the business processing process of the business system based on the execution order of the business process nodes, thereby tracking the business system. The business session tracking method provided in this application does not require the business system to cooperate with the tracking system to add identifiers. It can not only reduce the adverse impact of the tracking business system on the operation of the business system, but also solve the problem that the tracking system cannot track the business session data generated by the business system due to the inability of the business system to add identifiers, expand the application scenarios of the tracking system, and facilitate users to understand the tracking progress and tracking results of the tracking system.

[0070] The following describes the system architecture involved in the service session data tracking method provided in the embodiments of the present application. Figures 1 and 2 are schematic diagrams of possible system architectures provided in the embodiments of the present application. It should be noted that the system architectures shown in Figures 1 and 2 are merely exemplary implementations provided in the embodiments of the present application. The application scenarios of the service session data tracking method provided in the embodiments of the present application are not limited to the system architectures shown in Figures 1 or 2.

[0071] The service session tracking method provided in this application is applied to a tracking system. The tracking system is a system that tracks a service system based on service session data.

[0072] In one possible implementation, the tracking system belongs to the business system. Referring to FIG1 , which is a schematic diagram of the structure of a business system provided in an embodiment of the present application, the business system 100 includes a tracking system 101. The business system 100 is used to process business and generate business session data. Based on the business process configuration information input by the user through the business process information configuration interface, the tracking system 101 can generate a target business process corresponding to the business session process of the business system 100, and based on the business process configuration information, execute the data processing rules corresponding to at least one business process node, obtain the original business session data generated by the business system 100, and implement tracking of the business system 100.

[0073] In another possible implementation, the tracking system and the business system are independent of each other. See Figure 2, which is a schematic diagram of the business system and tracking system provided in an embodiment of the present application. Business system 201 is connected to tracking system 202. Based on the business process configuration information input by the user through the business process information configuration interface, tracking system 202 can generate a target business process corresponding to the business session process of business system 201. Based on the business process configuration information, tracking system 202 executes the data processing rules corresponding to at least one business process node, obtains the business session data generated by business system 201, and implements tracking of business system 201.

[0074] As an example, the tracking system can be deployed in the cloud to provide users with cloud services for tracking business systems. For example, in the application scenario shown in Figure 3, the tracking system can be a computing device 301 (or a cluster of computing devices) located in the cloud. In addition, the computing device 301 can provide a client 302 for interacting with a user 303, such as obtaining business process configuration information input by the user 303 through the business process configuration interface and displaying the target business process to the user 303. In actual application, the client 302 can be, for example, an application running on the user's device, or a web browser provided by the computing device 301.

[0075] In another example, the tracking system can be deployed locally to provide users with local business system monitoring services. For example, in the application scenario shown in Figure 4, the tracking system is specifically applied to terminal 401, which can obtain business process configuration information input by user 402 through the business process configuration interface and track the business system based on the business process configuration information.

[0076] The following describes a method for tracking a service session provided in an embodiment of the present application. Referring to FIG5 , this figure is a flow chart of a method for tracking service session data provided in an embodiment of the present application, which includes the following steps.

[0077] S501: Acquire business process configuration information input by a user from a business process information configuration interface.

[0078] The business process information configuration interface is an interface included in the tracking system for obtaining business process configuration information. Users of the tracking system can call this interface to input business process configuration information. Business process configuration information is information about the business system's processing flow and is used to instruct the tracking system to obtain business session data and track the business system.

[0079] Business process configuration information includes multiple business process nodes, the execution order between the multiple business process nodes, and data processing rules corresponding to at least one business process node. A business process node is a node that represents the process for processing business. As some examples, a business process node can be a process node included in the process of a business system processing a business session. The execution order between the multiple business process nodes is used to indicate the order in which the multiple business process nodes are executed. The execution order between the multiple business process nodes can be determined based on the process of the business system processing business, and can also reflect the association relationship between the business session data generated or used in different steps in the process of the business system processing business. Business process configuration information includes data processing rules. The data processing rules correspond to at least one business processing node. The data processing rules are used to indicate the method of processing data. Users can configure data processing rules based on the need to track the business system's processing of business session data.

[0080] The embodiments of the present application do not limit the way in which the business process configuration information is generated. In one possible implementation, the business process configuration information is generated in a business system or other system capable of editing business process configuration information, and is input into the tracking system by the user through a business process information configuration interface. In some cases, the business process configuration information that the tracking system can support processing may be in a preset data format. If the business process configuration information input by the user is not in a preset data format, the tracking system first converts the data format of the business process configuration information input by the user to obtain business process configuration information in a preset data format. In another possible implementation, the business process information configuration interface of the tracking system provides the function of editing business process configuration information. The user accesses the editing page through the business process information configuration interface. The user can edit the business process configuration information in the editing page, and after completing the editing of the business process configuration information, trigger the input of the business process configuration information into the tracking system.

[0081] The embodiments of the present application do not limit the specific form of the business process configuration information. In one possible implementation, the business process configuration information is configuration data of the business process. In another possible implementation, the business process configuration information can be a business process diagram.

[0082] Taking the business process configuration information as a business process diagram as an example, the business process configuration interface can provide users with multiple business process node diagrams. The embodiments of the present application do not limit the manner in which the business process configuration interface provides users with multiple business process node diagrams. As an example, the business process configuration interface provides users with a business process node diagram database. The service provided by the business process configuration interface displays an editing page to the user. The editing page can display the business process node diagram database. The business process node diagram database includes multiple business process node diagrams. Users can select the required business process node diagram from the business process node diagram database.

[0083] The functions of the business process nodes corresponding to different types of business process node graphs vary. Specifically, the business process nodes corresponding to some types of business process node graphs have corresponding data processing rules. The data processing rules corresponding to the business process nodes match the functions of the business process nodes.

[0084] As an example, the various business process node graphs include one or more of a start node graph, a session step data processing node graph, a branch judgment node graph, and a sub-process node graph.

[0085] The start node diagram corresponds to the start node. The start node is the starting node of the business session process and is used to trigger the continued processing of business process configuration information. The data processing rules corresponding to the start node include the original session data collection rule and the session start data identification rule. The session step data processing node diagram corresponds to the session step processing node. The session step data processing node is used to process session step data. The data processing rules corresponding to the session step data processing node include the session step data processing rules. Specifically, the session step data processing node includes the session step data collection node and the session step data conversion node. The session step data collection node is used to collect session step data. The session step data conversion node is used to convert session step data. The branch decision node diagram corresponds to the branch decision node. The branch decision node is used to determine the business process node that needs to be executed subsequently. The data processing rules corresponding to the branch decision node include the branch decision rule. The sub-process node diagram corresponds to the sub-process node. The sub-process node is used to call reusable business process configuration information. Using sub-process nodes can simplify the complexity of process management. Pre-configure the sub-process node's process ID, sub-process input parameter list, and output parameter list in the current business process configuration information. This allows you to call the historical, reusable business process configuration information corresponding to the sub-process node based on the process ID. The sub-process input parameter list and output parameter list define the input parameters that the sub-process node needs to process and the resulting output parameters.

[0086] The above business process node diagram and the business process nodes corresponding to the business process node diagram are only used as an example. The embodiment of the present application does not limit the type of the business process node diagram, and those skilled in the art can set it based on their needs.

[0087] This embodiment of the present application provides a specific implementation method for obtaining business process configuration information input by a user from a business process information configuration interface, including the following two steps:

[0088] A1: Receive multiple business process node graphs and execution sequences configured by the user through the business process configuration interface.

[0089] Users configure multiple business process node graphs and their execution order by calling the business process configuration interface. In one possible implementation, users can select multiple business process node graphs on the editing page provided by the business process configuration interface and edit the execution order between the multiple business process node graphs. In another possible implementation, users enter configuration parameters for configuring multiple business process node graphs and their execution order through the business process configuration interface.

[0090] In addition, users can also configure data processing rules corresponding to the business process nodes corresponding to the business process node diagram.

[0091] A2: Generate a business process diagram, in which the business process nodes corresponding to the business process node diagram and the execution order correspond to the business session process in the business system.

[0092] The tracking system uses the received multiple business process node diagrams and execution sequences to generate a business process diagram. The business process diagram includes a business process node diagram and an execution sequence. A business process diagram is a directed graph that arranges the business processing flows that the business system needs to handle. The business process diagram corresponds to the business session flow of the business system. The business process nodes corresponding to the business process node diagram correspond to the execution steps of the business session flow in the business system. The execution sequence corresponds to the execution process of the business session flow in the business system. The business process diagram can restore the business system's business processing process. In this way, the tracking system can process the original business session data generated by the business system with reference to the business process diagram to achieve business system tracking.

[0093] In some possible implementations, the business process diagram further includes a process ID and a process name. The process ID is used to uniquely identify the business process data flow diagram. The process name is the name of the business process data flow diagram.

[0094] As an example, an embodiment of the present application provides a data composition structure diagram of a business process diagram, as shown in FIG7 , where the business process diagram mainly includes the following contents:

[0095] Process ID: an ID that uniquely identifies a business process diagram;

[0096] Process name: the name of the business process diagram;

[0097] Starting node: The starting node corresponds to the original business data collection rules and session start data identification rules.

[0098] Business process node set: This refers to the set of business process nodes in a business process graph, excluding the start node. For example, a business process node set includes session step data processing nodes, branch decision nodes, and sub-process nodes. Session step data processing nodes include session step data collection nodes and session step data conversion nodes.

[0099] Execution order: defines the execution order between business process nodes. Execution order includes sequential execution, decision branching, parallel branching, parallel branch merging, and looping.

[0100] Target Data Source: Defines the target data source used to collect business session data from the business system and the query rules for querying data from the target data source. There are several types of target data sources, as described below.

[0101] As an example, see FIG6 , which is a schematic diagram of the structure of a tracking system provided in an embodiment of the present application. Tracking system 600 includes a business process definition module 601, a business process definition database 602, a session tracking module 603, a data acquisition module 604, a business session data database 605, a cache database 606, a data anomaly detection module 607, a session detection result database 608, a breakpoint data storage database 609, and a process dashboard module 610.

[0102] The business process definition module 601 is connected to the business process definition database 602. The business process definition database 602 is connected to the business process definition module 601, the session tracking module 603, the data collection module 604, and the data anomaly detection module 607. The session tracking module 603 is connected to the business process definition database 602, the data collection module 604, the service session data database 605, the cache database 606, the data anomaly detection module 607, and the breakpoint data storage database 609. The data collection module 604 is connected to the business process definition database 602, the session tracking module 603, and the cache database 606. The service session data database 605 is connected to the session tracking module 603 and the process dashboard module 610. The cache database 606 is connected to the session tracking module 603 and the data collection module 604. The data anomaly detection module 607 is connected to the session tracking module 603 and the session detection result database 608. The session detection result database 608 is connected to the data anomaly detection module 607 and the process dashboard module 610. The breakpoint data storage database 609 is connected to the session tracking module 603. The process dashboard module 610 is connected to the service session data database 605 and the session detection result database 608.

[0103] The business process definition module 601 is used to obtain business process configuration information input by the user through the business process information configuration interface. The business process configuration information obtained by the tracking system 600 is stored in the business process definition database 602 of the tracking system 600. Users can access the business process definition database 602 to visually view and modify the business process configuration information entered into the tracking system 600.

[0104] The other modules and databases included in the tracking system 600 are described below.

[0105] S502: Generate a target business process based on the business process configuration information.

[0106] Business process configuration information contains information indicating the process by which a business system handles business sessions. The tracking system can generate a target business process based on the business process configuration information. The target business process corresponds to the business session process within the business system. The target process nodes specifically include business process nodes and the execution order between them. Based on the target business process, users can more intuitively understand the process and progress of the business system being tracked by the tracking system.

[0107] As an example, referring to FIG6 , the session tracking module 603 is configured to obtain business process configuration information from the business process definition database 602 and generate a target business process based on the business process configuration information. The session tracking module 603 stores the target business process in the form of a flowchart in the business session data database 605. The process dashboard module 610 can obtain the target business process from the business session data database 605 and display it to the user, allowing the user to understand the process executed by the business system to process services and track the progress.

[0108] As an example, the business system needs to handle the purchase of goods. Figure 8 shows the target business process generated based on the business process configuration information. The target business process includes seven nodes: creating a purchase order, user payment, product shipment, logistics delivery, user receipt, and order cancellation. Specifically, the execution process involves first creating a purchase order and then triggering user payment. If the user payment is successful, the product shipment, logistics delivery, and user receipt nodes are executed in sequence. If the user payment fails, the order cancellation node is executed.

[0109] S503: Execute the data processing rules corresponding to the business process nodes based on the business process configuration information.

[0110] The tracking system determines the business process nodes that need to be executed based on the multiple business process nodes included in the business process configuration information and the execution order of the multiple business process nodes. If the business process node to be executed has a corresponding data processing rule, the tracking system executes the corresponding data processing rule to process the business session data obtained from the business system and track the business system.

[0111] During a business transaction, the business system generates business session data as the business process is executed. The tracking system needs to obtain the business session data generated by the business system in order to track the business session. The business process configuration information includes multiple business process nodes, including a first business process node. The data processing rules corresponding to the first business process node include raw session data collection rules.

[0112] Raw session data collection rules instruct the tracking model to collect raw business session data from the business system. For example, these rules include the target data source connection method, data collection rules, data conversion methods and output data structures, whether the collected data is stored in a cache database, and post-caching expiration rules, as well as rules for processing the collected data. Based on the raw session data collection rules corresponding to the first business process node, the tracking system can retrieve raw business session data from the business system for subsequent processing and tracking of the business system.

[0113] It should be noted that the present embodiment does not limit the order of executing S502 and S503. The tracking system can execute S502 first and then S503; or execute S503 first and then S502; or execute S502 and S503 simultaneously. The present embodiment does not limit this.

[0114] After the tracking system executes the data processing rules corresponding to the business process node data, it can store the generated or used data in a processed data set. The processed data set includes the data used or generated by the tracking system in processing the business process configuration information. As an example, the processed data set includes one or more of the business session data and the processed data obtained by executing the data processing rules corresponding to the business process node. The embodiments of the present application do not limit the form of the processed data set. In one possible implementation, the processed data set is a session context data set.

[0115] Taking the tracking system shown in Figure 6 as an example, the session tracking module 603 stores the processed data obtained by processing the process node into the processed data set included in the service session data database 605. The service session data database 605 is used to store the processed data obtained by processing the service process node.

[0116] In one possible implementation, the processed data obtained by a business process node that processes a piece of business process configuration information belongs to the same processed data set. The processed data obtained by each business process node has the business process node identifier, allowing subsequent querying of the processed data using the business process node identifier. The processed data set has the process identifier of the business process configuration information, or the instance identifier of the established business session instance, allowing subsequent querying of the processed data set obtained by processing the business process configuration information using the process identifier or instance identifier.

[0117] As an example, the service session data database stores service session data for a session, including a process identifier, a session instance identifier, a processed data set, and a list of identifiers for currently executing process nodes. The processed data set includes processed data generated by processed business process nodes. The specific content of the service session data can be defined in the business process configuration information.

[0118] Original service session data from different data sources have corresponding original session data collection rules. This embodiment of the application provides two different original session data collection rules and implementation methods for executing the two different original session data collection rules. Please refer to the following for details.

[0119] As an example, referring to FIG. 6 , the session tracking module 603 is configured to obtain business process configuration information from the business process definition database 602 and execute a data processing rule corresponding to at least one business process node based on the business process configuration information.

[0120] Specifically, the session tracking module 603 processes the raw session data collection rules corresponding to the first business process node based on the business process configuration information. Based on the raw session data collection rules, the session tracking module 603 calls the data collection module 604. In response to the call by the session tracking module 603, the data collection module 604 is configured to obtain raw business session data from the business system's data source based on the raw session data collection rules and send the collected business session data to the session tracking module 603. The session tracking module 603 is further configured to utilize the data collection module 604 to obtain business session data from the business system's data source and process the obtained business session data.

[0121] In this way, the business system allows the tracking system to obtain business session data, which enables tracking of business session data. The business system does not need to configure additional data other than business session data, such as identifiers, to support the monitoring of the tracking system. The processing method of business session data provided by the embodiment of the present application does not invade the operating logic of the business system itself, nor does it require the integration of plug-ins or the installation of agents in the business system to realize the transmission of business session data, thereby reducing the impact on the performance of the business system in processing business and normal operation. In addition, it also solves the problem that in some scenarios, the business system cannot configure identifiers for complete business session data, resulting in the tracking system being unable to check the complete session and monitor exceptions, thereby expanding the scope of use of tracking business session data.

[0122] Business systems generate a wide variety of service session data. Different types of service session data may have different data sources and different methods of transmitting the data. This embodiment of the present application provides two raw session data collection rules. Different raw session data collection rules are used to indicate how to collect raw service session data for different collection requirements.

[0123] In one possible implementation, the original session data collection rule includes a first collection path. The first collection path is used to indicate the target data source for obtaining the original business session data. The target data source is, for example, a database (DB) data source, a file data source, a log data source, or a RESTful interface (Representational State Transfer, REST) ​​data source, a NoSQL (not only SQL) database, or any combination of one or more of the data sources for storing business session data in the business system. Among them, the DB data source includes a DB Structured Query Language (SQL) database data source and a DB binary log (binlog) data source. The embodiment of the present application does not limit the specific type of the data source and can be expanded to other types of data sources according to the characteristics of the business system.

[0124] Correspondingly, when processing the first business process node whose original session data collection rules include the first collection path, the tracking system sends a business session data collection request to the business system. The business session data collection request can be generated based on the first collection path. As an example, the business session data collection request can include an identifier of the target data source indicated by the first collection path. In some cases, the first collection path can also indicate the specific storage location of the business session data in the target data source. The embodiments of the present application do not limit the range or size of the storage location. As an example, the storage location is, for example, the location of a file storing business session data in the target data source. Based on the business session data collection request, the business system can obtain the stored business session data from the target data source and send the business session data to the tracking system. The tracking system receives the business session data sent by the business system in response to the business session data collection request.

[0125] In one possible implementation, some target data sources in the business system do not support the tracking system's collection of business session data. After generating the business session data, the business system proactively pushes the data to the tracking system. Alternatively, the tracking system may further cache the business needs collected from the business system. The raw session data collection rules include, in addition to the first collection path, query index establishment rules. When the tracking system executes the raw session data collection rules, it converts the acquired business session data into cached business session data. The business session data can be sent to the tracking system by the business system in response to the tracking system's request for business session data collection, or proactively triggered by the business system. The format of the cached business session data matches the tracking system's cache database.

[0126] The embodiments of this application do not limit the specific implementation method by which the tracking system converts the service session data into cached service session data. As an example, the tracking system first cleans the service session data and then converts the data format of the cleaned service session data to obtain cached service session data whose format matches the tracking system's cache database.

[0127] The tracking system then establishes rules based on the query index of the target data source and the cached business session data, creating a query index for the cached business session data. In some implementations, the query index needs to be established based on the data query rules of the target data source indicated by the first collection path. As some examples, the data query rules of the target data source include a list of input parameters for the query data, rules for querying data from the cache database, and rules for querying data directly from the target data source. The query index established by the tracking system can support subsequent processing of business process nodes by querying the cached business session data to be processed based on the query index, thereby improving the performance of business session tracking. The tracking system writes the cached business session data and the query index to the cache database. The cache database is the database of the tracking system and is used to store the cached business session data. In this way, the tracking system can organize the business session data and more conveniently and accurately query the cached business session data from the cache database. This allows for flexible collection of raw session business data from different types of target data sources, facilitating expansion and adaptation to more data source types.

[0128] In some implementations, business session data includes session initiation data and session step data. Session initiation data is business session data generated when the business system begins processing a business session. The present embodiments do not limit the specific content of session initiation data. Session initiation data can include one or more parameters. Session initiation data can be used to distinguish between single business sessions. That is, after detecting session initiation data, it can be determined that the business process has been executed. Session step data is business session data other than session initiation data. Session step data is business session data generated by executing steps in the business process other than the initiation step. Business session data before and after the execution sequence are associated with each other. As an example, the business that the business system needs to process is a product purchase. The business process includes creating a product purchase order, user payment, product shipment, logistics delivery, user receipt, and order cancellation. According to this business process, the business data generated by a product purchase constitutes business session data. The order data for the created product purchase order constitutes session initiation data. Business session data generated during the payment, product shipment, logistics delivery, user receipt, and order cancellation processes constitutes session step data.

[0129] To process business process configuration information, the data processing rules also include a session initiation data identification rule corresponding to the first business process node. The session initiation data identification rule is used to identify session initiation data. The first business process node corresponding to the session initiation data identification rule is the starting node of the business session process and is the first business process node executed in the execution sequence. Specifically, the session initiation data identification rule, for example, includes a field for session initiation data. The tracking system obtains business session data from the target data source indicated by the first acquisition path. The business session data may include session initiation data and other business session data. The tracking system then identifies and determines the session initiation data from the business session data based on the session initiation data identification rule.

[0130] The embodiments of the present application do not limit the implementation of the tracking system's processing of the start node and execution of the original session data collection rules and session start data identification rules. As an example, the tracking system receives a user-triggered instruction to start tracking. Based on the received instruction, the tracking system begins processing the start node based on the business process configuration information. As another example, after the tracking system receives the business process configuration information, it periodically processes the start node until the processing count reaches a certain threshold or until the processing is complete and the session start data is obtained.

[0131] When the session start data is obtained, it means that the business system starts to process this business. The tracking system creates a business session instance. The starting node of the business session instance is the first business process node as the starting node. After the business session instance is created, the business process nodes that need to be executed after the starting node are determined based on the business process configuration information, and the data processing rules corresponding to the business process nodes that need to be executed are executed. Starting from the starting node, the business process nodes that need to be executed subsequently based on the business process configuration information are also called target process nodes. The target process node is the business process node that needs to be executed subsequently based on the business process nodes included in the business process configuration information and the execution order. The number of target process nodes and the type of target process nodes are determined based on the business process configuration information.

[0132] Taking the tracking system shown in Figure 6 as an example, the session tracking module 603 obtains business process configuration information from the business process definition database 602. Based on the obtained business process configuration information, the session tracking module 603 determines the starting node and executes the data processing rules corresponding to the starting node. Based on the original session data collection rules, the session tracking module 603 sends a request to the data collection module 604 to obtain the original session start data. The data collection module 604 obtains the original session data collection rules from the business process configuration information in the business process definition database 602 and collects the original session start data based on the original session data collection rules. The data collection module 604 identifies the session start data included in the original session data based on the session start data identification rules. The data collection module 604 pushes the identified session start data to the session tracking module 603. In some possible implementations, the data collection module 604 sends the collected session start data along with the process identifier of the business process configuration information to the session tracking module 603. Based on the process identifier, the session tracking module 603 determines the business process configuration information to which the detected session start data belongs and establishes a corresponding business session instance and business session instance identifier. The service session instance identifier is used to identify the service session instance.

[0133] In some implementations, the plurality of business process nodes further include second business process node data. The data processing rules corresponding to the second business process node data include session step data processing rules. The session step data processing rules are used to process the session step data.

[0134] In one possible implementation, a session step data processing rule is used to collect session step data. The session step data processing rule includes a second collection path. The second collection path indicates the storage location of the session step data. It should be noted that the second collection path can include multiple storage locations, with different collection priorities for different storage locations. Storage locations with higher priorities are queried first. Based on the session step data processing rule, the tracking system obtains the session step data from the storage location indicated by the second collection path for subsequent processing.

[0135] The second collection path includes the first collection path, or, in the case where the tracking system establishes a cache database, the second collection path includes one or more of the first collection path and the cache database.

[0136] In some cases, the storage location indicated by the second collection path only stores session step data. The tracking system can generate a session step data query request based on the second collection path and send it to the business system. The business system obtains the session step data according to the second collection path and feeds the session step data back to the tracking system. In other cases, the storage location indicated by the second collection path contains more data. The session step data collection rules also include query rules. The query rules are used to determine query parameters for querying session step data. The query rules are determined based on the associations between session business data generated during the business system's processing of a business session. The tracking system obtains a processed data set and generates query parameters based on the query rules and the processed data set. As an example, the query rule is a function expression. The input parameters of the function expression are processed data generated by historical business process nodes. The tracking system obtains the processed data from the processed data set and inputs it into the function expression, obtaining the query parameters output by the function expression. The tracking system uses the query parameters to query the storage location indicated by the second collection path to obtain the session step data.

[0137] In another possible implementation, the session step data processing rules are used to convert the data format of the session step data. The session step data processing rules include format conversion rules. The format conversion rules are used to instruct the conversion of the data format of the session step data. The format conversion rules include the data formats before and after the conversion. The tracking system can convert the format of the session step data based on the format conversion rules.

[0138] In some cases, the multiple business process nodes further include a third business process node. The data processing rules corresponding to the third business process node include a branch judgment rule. The third business process node is also referred to as a branch judgment node. The third business process node and the multiple business process nodes have an execution order.

[0139] When the tracking system processes the third business process node based on the business process configuration information, it determines the next business process node to be executed based on the branch judgment rule corresponding to the third business process node.

[0140] The embodiments of this application do not limit the specific content of the branch judgment rule. As an example, the branch judgment rule determines the next business process node to be executed based on the current processing status of the business process node being processed by the tracking system. As another example, the branch judgment rule includes a determination expression. The tracking system can obtain the processing data generated by the processed business process node and use the determination expression to determine the business process node to be executed.

[0141] Taking the target business process shown in Figure 8 as an example, the user payment business process node is the third business process node. The branch judgment rule corresponding to the user payment business process node is whether the business session data of successful user payment has been obtained. If the tracking system obtains the business session data of successful user payment, it determines to execute the product shipment and subsequent business process nodes based on the branch judgment rule.

[0142] After determining the next business process node to be executed, the tracking system displays the target business process including the next business process node to be executed. This makes it easier for users to understand the business process currently being executed by the tracking system.

[0143] The embodiments of the present application do not limit the specific implementation method of the tracking system displaying the target business process including the next business process node that needs to be executed. In one possible implementation method, the tracking system deletes the branches of the business process that does not need to be executed from the target business process and only displays the business process that needs to be executed. Taking the target business process shown in Figure 8 as an example, refer to Figure 9, which is a schematic diagram of a target business process provided by an embodiment of the present application. Delete the branch of the business process node for canceling orders in the target business process, and only retain the branch where the business process nodes for executing goods out of the warehouse and subsequent operations are located. In another possible implementation method, the tracking system distinguishes between the business process nodes that need to be executed and the business process nodes that do not need to be executed in the target business process to facilitate user differentiation. Taking the target business process shown in Figure 8 as an example, refer to Figure 10, which is another schematic diagram of a target business process provided by an embodiment of the present application. The branch of the business process node for canceling orders in the target business process is represented by a dotted line, and the branch where the business process nodes for executing goods out of the warehouse and subsequent operations are located is represented by a solid line.

[0144] In some possible implementations, after each business process node is processed, the tracking system also generates a node execution result. This node execution result is the result of executing the business process node. For example, the node execution result includes one or more of the business process node processing time, output processing data, and whether an exception was handled. Based on the node execution result, the tracking node's processing of the business process node included in the business process configuration information can be analyzed.

[0145] Taking the tracking system shown in FIG. 6 as an example, the session tracking module 603 generates a node execution result of the business process node each time the data processing rule of the business process node is executed, and writes the result into the business session data database 605 .

[0146] Taking the session tracking module 603 and the data collection module 604 included in the tracking system 600 shown in Figure 6 as an example, referring to Figure 11, an embodiment of the present application provides an interaction flow chart of the session tracking module and the data collection module.

[0147] The data collection module 604 retrieves the raw session data collection rules and session initiation data identification rules corresponding to the start node from the business process configuration information in the business process definition database 602, and obtains business session data from the business system based on the raw session data collection rules. If session initiation data is identified in the business session data based on the session initiation data identification rules, the session initiation data is pushed to the session tracking module 603. If session initiation data is not identified in the business session data, the data collection module 604 processes the business session data into cached business session data and writes it to the data cache 406. Furthermore, based on the query index creation rules included in the raw session data collection rules, the data collection module 604 generates a query index and writes the query index to the data cache 406.

[0148] Upon receiving the session initiation data, the session tracking module 603 receives the session initiation data from the data collection module 604, creates a service session instance, and writes the session initiation data into the processed data set of the service session data database 605. The session tracking module 603 obtains the execution order from the service process configuration information in the service process definition database 602 and determines the next service process node to be processed.

[0149] The session tracking module 603 obtains the data processing rules corresponding to the business process nodes.

[0150] If the data processing rule corresponding to the business process node is the session step data processing rule. The session step data processing rule includes a second acquisition path and a query rule. Among them, the second acquisition path includes the cache database 606 and the data source A. Among them, the acquisition priority of the cache database 606 is higher than that of the data source A. The session tracking module 603 obtains the processing data set. Based on the query rule, the session tracking module 603 uses the processing data set to calculate the query parameters. The query parameters are used to query the cache database 606. If the session tracking module 603 obtains the session step data through the query, the session step data is written into the processing data set as the processing data of the business process node. The processing of the business process node is completed and the node execution result is generated. If the query does not obtain the session step data, the session tracking module 603 uses the business process node as a breakpoint to perform a breakpoint retry process. For details about the breakpoint processing method, please see below.

[0151] If the data processing rule corresponding to the business process node is a session step data processing rule, which includes a format conversion rule, the session tracking module 603 converts the session step data based on the format conversion rule. The output session step data is the converted session step data. The session tracking module 603 writes the converted session step data into the processed data set, completing the processing of the business process node and generating a node execution result.

[0152] If the data processing rule corresponding to the business process node is a branch judgment rule, the session tracking module 603 determines the next target process node to be executed from multiple process nodes based on the branch judgment rule, completes the processing of the business process node, and generates a node execution result.

[0153] If, based on the business process configuration information, it is determined that there is a next business process node according to the execution order, the next business process node is processed. If, based on the business process configuration information, it is determined that there is no next business process node according to the execution order, the current processing of the business process configuration information is terminated and a process execution result is generated.

[0154] In some possible implementations, the tracking system needs to perform data checks on the processed data obtained after executing the data processing rules corresponding to the business process node. Data processing rules also include data checking rules. Data checking rules are used to determine whether the processed data output by the business process node after executing the data processing rules corresponding to the business process node is correct. Data checking rules include, for example, rules for checking the data format of the processed data, rules for checking data values, and rules for checking data value ranges.

[0155] Correspondingly, an embodiment of the present application provides a specific implementation method for executing a data processing rule corresponding to a business process node when the data processing rule also includes a data inspection rule, including:

[0156] The tracking system uses the data inspection rule to perform data inspection on the processed data obtained by executing the data processing rule corresponding to the business process node to obtain a data inspection result.

[0157] Check whether the processed data output by the business process node complies with data inspection rules. If the processed data complies with the data inspection rules, the data inspection result is normal. If the processed data does not comply with the data inspection rules, the data inspection result is abnormal. The obtained data inspection result can be stored in a data inspection result database so that the data inspection result can be subsequently queried from the data inspection result database. In some possible implementations, after obtaining an abnormal data inspection result, an alarm message is displayed. The alarm message includes the abnormal processing data and the business process node corresponding to the abnormal processing data. The business process of the business system corresponding to the abnormal processing data can be determined based on the business process node that generated the abnormal processing data. This enables abnormality inspection of processing data at the business process node level, improving the accuracy of business session data inspection. In some possible implementations, the data inspection rules involve processing data of other business process nodes with which they have a data association. Based on the data inspection rules and the processing data set, the tracking system inspects the processing data obtained by executing the data processing operation corresponding to the business process node to obtain a data inspection result.

[0158] Taking the tracking system shown in FIG6 as an example, tracking system 600 includes a data anomaly detection module 607 and a session detection result database 608. When processing a business process node, session tracking module 603 obtains processing data for the current business process node and sends this processing data to data anomaly detection module 607. Data anomaly detection module 607 retrieves the processed data and, from the business process configuration information stored in business process definition database 602, obtains the data inspection rules included in the data processing rules corresponding to the business process node, and then inspects the processed data. Data anomaly detection module 607 stores the data inspection results obtained in the inspection in session detection result database 608, allowing subsequent querying of the data inspection results from session detection result database 608.

[0159] The above describes the process of processing business process nodes in the order of execution based on business process configuration information, and obtaining and processing business session data from the business system. In some cases, processing may be interrupted during the execution of the data processing rules corresponding to a business process node. For example, the business system may process services more slowly than the tracking system can process business process nodes based on the business process configuration information. When the tracking system processes a specific business process node, the business system may not have generated the corresponding business session data. Unable to obtain the business session data properly, the tracking system cannot process the business process node, necessitating a suspension of processing the business process node while waiting for the business system to process it. Another possible scenario is that the tracking system experiences a failure while processing a business process node, preventing normal processing and thus suspending processing. Another possible scenario is that there is an issue with the business process node or the execution order within the business process configuration information itself. The tracking system cannot process the business process node properly based on the business process configuration information and thus suspends processing of the business process node.

[0160] Based on the above situation, the tracking system uses the interrupted business process node as a breakpoint in the process of processing the business process node based on the business process configuration information. The business session data tracking method provided in the embodiment of the present application also includes the following steps:

[0161] B1: If the breakpoint condition is met, mark the currently processed business process node as a breakpoint.

[0162] A breakpoint is a business process node where processing is interrupted. The breakpoint condition can be determined based on the conditions for interrupting processing and the type of business process node. As an example, it is necessary to determine the business process node where execution is interrupted as a breakpoint. The breakpoint condition is that processing needs to be interrupted. For example, the business process node currently being processed is the first business process node, that is, the process node whose corresponding data processing rules include the original session data collection rules. The breakpoint condition is that no business session data is obtained within a preset time period. As another example, it is necessary to determine the business process node that is switched to manual user operation as a breakpoint. The breakpoint condition is to start processing the business process node. As another example, it is necessary to determine the business process node that processes data anomalies as a breakpoint. The breakpoint condition is that the result of checking the processed data is a data anomaly.

[0163] When the breakpoint condition is met, the executed business process node is marked as a breakpoint.

[0164] After the currently processed business process node is determined as a breakpoint, breakpoint data is generated. Referring to FIG. 12 , this figure is a schematic diagram of the data structure of breakpoint data provided in an embodiment of the present application. The breakpoint data includes a process identifier, a session instance identifier, a processed data set, and a breakpoint node identifier. Based on the breakpoint data, the business process node where processing is interrupted can be determined.

[0165] Taking the tracking system shown in FIG6 as an example, the tracking system includes a breakpoint data storage database 609. The breakpoint data storage database 609 is connected to the session tracking module 603. The session tracking module 603 determines the breakpoint based on the breakpoint condition, generates the breakpoint data, and writes the breakpoint data into the breakpoint data storage database 609.

[0166] B2: Repeatedly executing the data processing rule corresponding to the breakpoint in response to the recovery condition being met, until the data processing rule corresponding to the breakpoint is successfully executed or the total time duration for processing the breakpoint reaches a threshold.

[0167] After determining a breakpoint, if the recovery conditions are met, the data processing rule corresponding to the breakpoint is executed again. If the execution of the data processing rule corresponding to the breakpoint is successful, step B3 is executed. If the execution of the data processing rule corresponding to the breakpoint is unsuccessful, the data processing rule corresponding to the breakpoint is executed again if the recovery conditions are met. This process is repeated until the total processing time for the breakpoint reaches the threshold or the data processing rule corresponding to the breakpoint is successfully executed. The threshold can be configured for the processing time of the business process node.

[0168] The recovery condition is the condition for re-executing the breakpoint. For example, the recovery condition is that the time after executing the breakpoint reaches a preset interval length. In another example, the recovery condition is to obtain a breakpoint execution request input by the user. The breakpoint execution request is used to instruct the breakpoint to be re-executed. As an example, the breakpoint execution request includes the node identifier of the breakpoint. In some implementations, the breakpoint execution request input by the user also includes input data. After obtaining the breakpoint execution request, the tracking system uses the input data included in the breakpoint execution request as the input data of the breakpoint and re-executes the breakpoint, so that the user can modify the input data of the breakpoint. In another example, the data processing rule corresponding to the breakpoint is the original session data collection rule. The recovery condition is to obtain the original session data indicated by the original session data collection rule.

[0169] If the breakpoint cannot be successfully processed after reaching the threshold, the breakpoint processing fails. In one possible implementation, when the breakpoint processing fails, the processing of the business process configuration information is stopped, and the process execution result is generated. The process execution result includes the processing status of the business process configuration information and the breakpoint information of this processing. The status of the business process configuration information processed this time is a processing exception. In another possible implementation, when the breakpoint processing fails and the breakpoint does not affect the processing of the business process nodes of other branches in the execution order included in the business process configuration information, the business process nodes of other branches continue to be processed. The process execution result is generated until the processing of other branches is completed, or a breakpoint occurs in other branches and the breakpoint processing fails. The process execution result includes the processing status of the business process configuration information and the breakpoint information of this processing.

[0170] As an example, in combination with the tracking system shown in Figure 6, refer to Figure 13, which is a schematic diagram of a process for processing breakpoints in an embodiment of the present application.

[0171] The session tracking module 603 generates a breakpoint data read request. The session tracking module 603 sends the breakpoint data read request to the breakpoint data storage database 609. After receiving the breakpoint data read request, the breakpoint data storage database 609 queries for pending breakpoint data that meets the recovery conditions. The breakpoint data storage database 609 then feeds back the pending breakpoint data that meets the recovery conditions to the session tracking module 603. The session tracking module 603 obtains the pending breakpoint data. If the pending breakpoint data is empty, it indicates that there are currently no breakpoints that need to be processed. The session tracking module 603 waits for a preset period of time before sending another breakpoint data read request to the breakpoint data storage database 609. If the pending breakpoint data is not empty, it indicates that there is currently pending breakpoint data that needs to be processed. The session tracking module 603 uses the session instance identifier included in the pending breakpoint data to restore the session instance corresponding to the session instance identifier and load the processed data set included in the breakpoint data. The session tracking module 603 processes the breakpoint. If the breakpoint is successfully processed, the business process nodes included in the business process configuration information continue to be processed in the execution order. If the breakpoint processing fails, the session tracking module 603 determines whether the total duration of the breakpoint processing reaches a threshold. If the total duration of the breakpoint processing reaches the threshold, the session tracking module 603 terminates processing the business process configuration information or the branch of the execution sequence of the business process configuration information where the breakpoint is located. If the total duration of the breakpoint processing does not reach the threshold, the session tracking module 603 generates a breakpoint data read request and continues to retry the breakpoint.

[0172] B3: If the data processing rule corresponding to the breakpoint is successfully executed, the next business process node will be processed based on the execution order.

[0173] It should be noted that the execution order included in the business process configuration information may include multiple branches executed in parallel. When a breakpoint occurs in a business process node included in one branch, it does not affect the processing of business process nodes included in other branches.

[0174] In real-time session tracking scenarios, the tracking system's execution progress may lag behind the actual business system's session progress. Saving and retrying breakpoints ensures the integrity of the tracking system's business session data. Furthermore, a breakpoint timeout mechanism can identify abnormal terminations.

[0175] When the processing of the business process nodes is completed in the execution order based on the business process configuration information, or when a processing breakpoint fails and the processing of the business process configuration information is terminated, the tracking system determines that the processing of the business process configuration information is completed.

[0176] The tracking system also generates process execution results. These are the results of executing the business process configuration information. For example, these results include session execution status, session interruption information, and session execution duration. Based on these results, it is possible to determine how the tracking system processes the business process configuration information.

[0177] Taking the tracking system shown in FIG. 6 as an example, the session tracking module 603 determines that the processing of the business process configuration information has concluded, generates a process execution result, and writes it to the business session data database 605. The tracking system can also display the execution of the data processing rule corresponding to at least one business process node and the operation of the business system. The tracking system generates tracking data. The tracking data includes one or more of the following: node execution results, process execution results, and data inspection results. After generating the tracking data, the tracking system displays the tracking data so that users can understand the operation of the business system and the tracking system.

[0178] The embodiments of the present application do not limit the triggering method for the tracking system to generate tracking data. In one possible implementation, after the tracking system completes tracking of a business session based on the business process configuration information, it automatically triggers the generation of tracking data. In another possible implementation, the user can query the required tracking data. The user can trigger a query request. The query request includes data information of the tracking data. The data information of the tracking data is, for example, the node identifier of the process node, or the identifier of the business process configuration information being processed this time. The tracking system obtains the query request and, based on the data information included in the query request, queries and obtains the tracking data.

[0179] Taking the tracking system shown in FIG. 6 as an example, tracking system 600 includes a process dashboard module 610. The process dashboard module can automatically or based on a user's query request obtain process execution results and node execution results from the service session data database 605, and obtain data inspection results from the session detection result database 608. The obtained process execution results, node execution results, and data inspection results are displayed as tracking data.

[0180] Based on the service session tracking method provided in an embodiment of the present application, as shown in FIG14 , an embodiment of the present application also provides a schematic structural diagram of a service session tracking device 1400 . This service session tracking device 1400 can implement the functions of a tracking system. The service session tracking device 1400 is applied to a tracking system. The tracking system is used to track a service system. The service session tracking device 1400 includes a service process information configuration interface.

[0181] Figure 14 is a schematic diagram of the structure of a business session tracking device provided in an embodiment of the present application. Business session tracking device 1400 includes a business process configuration information acquisition module 1401, a target business process generation module 1402, and a data processing rule execution module 1403. The functions of each module in business session tracking device 1400 are described in detail in the relevant sections of the embodiment shown in Figure 5. Business process configuration information acquisition module 1401 is used to implement S501 of the embodiment shown in Figure 5; target business process generation module 1402 is used to implement S502 of the embodiment shown in Figure 5; and data processing rule execution module 1403 is used to implement S503 of the embodiment shown in Figure 5.

[0182] Specifically, the business process configuration information acquisition module 1401 is configured to acquire business process configuration information input by a user from the business process information configuration interface, wherein the business process configuration information includes multiple business process nodes, an execution order between the multiple business process nodes, and a data processing rule corresponding to at least one business process node;

[0183] A target business process generating module 1402 is configured to generate a target business process based on the business process configuration information, wherein the target business process corresponds to a business session process in the business system;

[0184] The data processing rule execution module 1403 is used to execute the data processing rules corresponding to the at least one business process node based on the business process configuration information, wherein the data processing rules corresponding to the first business process node among the multiple business process nodes include original session data collection rules, and the data source of the original session data collection rules is the business session data in the business system.

[0185] In a possible implementation, the apparatus further includes:

[0186] Display module 1404 is used to display tracking data, and the tracking data includes one or more of node execution results, process execution results and data inspection results. The node execution result is the execution result of the business process node, the process execution result is the execution result of the business process corresponding to the business process configuration information, and the data inspection result is the result obtained by checking the processing data obtained by executing the data processing rule corresponding to the business process node.

[0187] In one possible implementation, the business process information configuration interface provides a plurality of business process node diagrams for user selection, wherein the business process node diagrams correspond to business process nodes, and the business process configuration information acquisition module is configured to acquire the business process configuration information input by the user from the business process information configuration interface, including:

[0188] The business process configuration information acquisition module is specifically used to receive multiple business process node diagrams and execution sequences configured by the user through the business process configuration interface; generate a business process diagram, in which the business process nodes corresponding to the business process node diagram and the execution sequence correspond to the business session process in the business system.

[0189] In one possible implementation, the original session data collection rule includes a first collection path, where the first collection path is used to indicate a target data source for the original session data collection operation. The data processing rule execution module is used to execute the data processing rule corresponding to the business process node, including:

[0190] The data processing rule execution module is configured to send a business session data collection request to the business system and receive business session data sent by the business system, wherein the business session data is stored in the target data source of the business system, wherein the target data source includes one or any combination of a DB SQL database structured query language data source, a DB binlog database binary log data source, a RESTful interface data source, a NoSQL non-relational database data source, a business log source, a business DB database data source, and a file data source. In one possible implementation, the raw session data collection rules also include query index establishment rules. The data processing rule execution module is configured to execute the data processing rules corresponding to the business process nodes, including:

[0191] The data processing rule execution module is specifically configured to convert the business session data into cached business session data, wherein the format of the cached business session data matches the cache database of the tracking system; establish a query index for the cached business session data based on the query index establishment rule of the target data source and the cached business session data; and write the cached business session data and the query index into the cache database.

[0192] In one possible implementation, the data processing rules further include a session initiation data identification rule corresponding to the first business process node, the first business process node is the starting node of the business session process, and the business session data is the starting session data of the business session process. The data processing rule execution module is configured to execute the data processing rule corresponding to the business process node based on the business process configuration information, including:

[0193] The data processing rule execution module is specifically used to create a first business session instance, where the starting node of the first business session instance is the first business process node; and execute the data processing rule corresponding to the target process node, where the target process node starts from the first business process node and determines the business process node to be executed based on the business process configuration information.

[0194] In one possible implementation, the data processing rule further includes a session step data processing rule corresponding to a second business process node among the multiple business process nodes, the session step data processing rule includes a second acquisition path, wherein the second acquisition path includes the first acquisition path, and the data processing rule execution module, configured to execute the data processing rule corresponding to the business process node, includes:

[0195] The data processing rule execution module is specifically configured to obtain a processed data set, the processed data set including the business session data and one or more of the processed data obtained by executing the data processing rules corresponding to the business process node; generate query parameters based on the query rules and the processed data set; and obtain session step data by querying the storage location indicated by the second acquisition path based on the query parameters. In one possible implementation, the data processing rules further include a session step data processing rule corresponding to the second business process node, the session step data processing rule including a second acquisition path, wherein the second acquisition path includes one or both of the first acquisition path and the cache database. The data processing rule execution module is configured to execute the data processing rule corresponding to the business process node, including:

[0196] The data processing rule execution module is specifically used to obtain a processing data set, where the processing data set includes one or more of the business session data, the cached business session data, and the processing data obtained by executing the data processing rule corresponding to the business process node; generate a query parameter based on the query rule and the processing data set; and query the storage location indicated by the second acquisition path based on the query parameter to obtain session step data.

[0197] In a possible implementation, the data processing rules further include data inspection rules. The data processing rule execution module is configured to execute the data processing rules corresponding to the business process node based on the business process configuration information, including:

[0198] The data processing rule execution module is specifically used to perform data inspection on the processed data obtained by executing the data processing rule corresponding to the business process node based on the data inspection rule; and obtain a data inspection result.

[0199] In one possible implementation, the data processing rules further include a branch judgment rule corresponding to a third business process node, and the third business process node and the plurality of business process nodes have an execution order. The data processing rule execution module is configured to execute the data processing rules corresponding to the business process node based on the business process configuration information, including:

[0200] The data processing rule execution module is specifically used to determine the next executed business process node from the multiple business process nodes based on the branch judgment rule corresponding to the third business process node; and display the target business process including the business process node.

[0201] In a possible implementation, the apparatus further includes:

[0202] The breakpoint processing module 1405 is used to mark the currently processed business process node as a breakpoint if the breakpoint condition is met; repeatedly execute the data processing rule corresponding to the breakpoint in response to the recovery condition being met until the data processing rule corresponding to the breakpoint is successfully executed or the total time for processing the breakpoint reaches a threshold; if the data processing rule corresponding to the breakpoint is successfully executed, continue processing the next business process node based on the execution order.

[0203] In a possible implementation, the apparatus further includes:

[0204] The query module 1406 is used to obtain a query request before displaying the tracking data, wherein the query request includes data information of the tracking data, and the data information includes one or more of session information, node information, and session step data information; and obtain the tracking data based on the data information query.

[0205] In actual application, the business process configuration information acquisition module 1401, the target business process generation module 1402, the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405 and the query module 1406

[0206] This can be implemented through software or hardware. For example, the implementation of the business process configuration information acquisition module 1401 will be described below, using the business process configuration information acquisition module 1401 as an example. Similarly, the implementation of the target business process generation module 1402, the data processing rule execution module 1403, the presentation module 1404, the breakpoint processing module 1405, and the query module 1406 can refer to the implementation of the business process configuration information acquisition module 1401.

[0207] As an example of a software functional unit, the business process configuration information acquisition module 1401 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the business process configuration information acquisition module 1401 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.

[0208] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0209] As an example of a hardware functional unit, the business process configuration information acquisition module 1401 may include at least one computing device, such as a server. Alternatively, the business process configuration information acquisition module 1401 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0210] The multiple computing devices included in the business process configuration information acquisition module 1401 can be distributed in the same region or in different regions. The multiple computing devices included in the business process configuration information acquisition module 1401 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the business process configuration information acquisition module 1401 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0211] It should be noted that, in the embodiment of the present application, the division and functional description of each module within the business process configuration information acquisition module 1401, the target business process generation module 1402, the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405 and the query module 1406 are merely used as an example.

[0212] In other embodiments, the business process configuration information acquisition module 1401 can be used to execute any step in the business session tracking method, the target business process generation module 1402 can be used to execute any step in the business session tracking method, the data processing rule execution module 1403 can be used to execute any step in the business session tracking method, the display module 1404 can be used to execute any step in the business session tracking method, the breakpoint processing module 1405 can be used to execute any step in the business session tracking method, and the query module 1406 can be used to execute any step in the business session tracking method. The steps that the business process configuration information acquisition module 1401, the target business process generation module 1402, the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405 and the query module 1406 are responsible for implementing can be specified as needed. The business process configuration information acquisition module 1401, the target business process generation module 1402, the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405 and the query module 1406 respectively implement different steps in the business session tracking method to realize all the functions of the business session tracking device.

[0213] In the embodiment shown in FIG. 14 , the business process configuration information acquisition module 1401, the target business process generation module 1402, the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405, and the query module 1406 can be software configured on a computing device or computing device cluster. Running this software on the computing device or computing device cluster enables the computing device or computing device cluster to implement the functions of the aforementioned devices. The following describes in detail the devices involved in the code review process from the perspective of hardware device implementation.

[0214] This application also provides a computing device 1500. As shown in Figure 15, computing device 1500 includes a bus 1502, a processor 1504, a memory 1506, and a communication interface 1508. Processor 1504, memory 1506, and communication interface 1508 communicate with each other via bus 1502. Computing device 1500 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 1500.

[0215] Bus 1502 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG15 shows a single bus line, but this does not imply a single bus or type of bus. Bus 1502 may include a path for transmitting information between various components of computing device 1500 (e.g., memory 1506, processor 1504, and communication interface 1508).

[0216] The processor 1504 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0217] The memory 1506 may include volatile memory, such as random access memory (RAM). The processor 1504 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0218] Memory 1506 stores executable program code. Processor 1504 executes this executable program code to implement the functions of the aforementioned business process configuration information acquisition module 1401, target business process generation module 1402, data processing rule execution module 1403, presentation module 1404, breakpoint processing module 1405, and query module 1406, thereby implementing the business session tracking method. In other words, memory 1506 stores instructions for executing the business session tracking method.

[0219] The communication interface 1508 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1500 and other devices or a communication network.

[0220] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0221] As shown in Figure 16, the computing device cluster includes at least one computing device 1500. The memory 1506 in one or more computing devices 1500 in the computing device cluster may store the same instructions for executing the service session tracking method.

[0222] It should be noted that the memory 1506 in different computing devices 1500 in the computing device cluster can store different instructions, each used to execute a portion of the functions of the business session tracking apparatus. That is, the instructions stored in the memory 1506 in different computing devices 1500 can implement the functions of one or more of the business process configuration information acquisition module 1401, the target business process generation module 1402, the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405, and the query module 1406.

[0223] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network or a local area network, etc. FIG17 shows a possible implementation. As shown in FIG17 , two computing devices 1500A and 1500B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1506 in the computing device 1500A stores instructions for executing the functions of the business process configuration information acquisition module 1401. At the same time, the memory 1506 in the computing device 1500B stores instructions for executing the functions of the target business process generation module 1402, the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405, and the query module 1406.

[0224] The connection method between the computing device clusters shown in Figure 17 can be based on the fact that the business process configuration information acquisition module 1401 in the business session tracking method provided in this application needs to interact with the user a lot, so it is considered to entrust the functions implemented by the target business process generation module 1402 and the data processing rule execution module 1403, the display module 1404, the breakpoint processing module 1405 and the query module 1406 to the computing device 1500B for execution.

[0225] It should be understood that the functionality of the computing device 1500A shown in FIG17 may also be implemented by multiple computing devices 1500. Similarly, the functionality of the computing device 1500B may also be implemented by multiple computing devices 1500.

[0226] Embodiments of the present application also provide a computer program product containing instructions. The computer program product may be software or a program product containing instructions that can be executed on a computing device or stored in any available medium. When the computer program product is executed on at least one computing device, the at least one computing device executes the service session tracking method.

[0227] Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the service session tracking method.

[0228] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A service session tracking method, characterized in that: The method is applied to a tracking system, the tracking system is used to track a business system, the tracking system includes a business process information configuration interface, and the method includes: Acquire business process configuration information input by a user from the business process information configuration interface, wherein the business process configuration information includes a plurality of business process nodes, an execution order between the plurality of business process nodes, and a data processing rule corresponding to the at least one business process node; Based on the business process configuration information, generating a target business process, wherein the target business process corresponds to a business session process in the business system; Based on the business process configuration information, execute the data processing rules corresponding to the at least one business process node, wherein the data processing rules corresponding to the first business process node among the multiple business process nodes include original session data collection rules, and the data source of the original session data collection rules is the business session data in the business system.

2. The method according to claim 1, characterized in that The method further comprises: Display tracking data, the tracking data including one or more of node execution results, process execution results and data inspection results, the node execution result is the execution result of the business process node, the process execution result is the execution result of the business process corresponding to the business process configuration information, and the data inspection result is the result obtained by checking the processing data obtained by executing the data processing rule corresponding to the business process node.

3. The method according to claim 1 or 2, characterized in that: The business process information configuration interface provides a variety of business process node diagrams for users to select, and the business process node diagrams correspond to business process nodes. The business process configuration information input by the user is obtained from the business process information configuration interface, including: Receiving a plurality of business process node diagrams and execution orders configured by a user through the business process configuration interface; A business process diagram is generated, wherein the business process nodes corresponding to the business process node diagram in the business process diagram and the execution order correspond to the business session flow in the business system.

4. The method according to any one of claims 1 to 3, characterized in that: The original session data collection rule includes a first collection path, and the first collection path is used to indicate a target data source of the original session data collection operation. The data processing rule corresponding to the execution of the business process node includes: Send a business session data collection request to the business system; Receive business session data sent by the business system, the business session data is stored in the target data source of the business system, the target data source includes one or any combination of a DB SQL database structured query language data source, a DB binlog database binary log data source, a REST RESTful style interface data source, a NoSQL non-relational database data source, a business log source, a business DB database data source and a file data source.

5. The method according to claim 4, characterized in that The original session data collection rules also include query index establishment rules, and the data processing rules corresponding to the execution of the business process nodes include: Converting the service session data into cached service session data, wherein the format of the cached service session data matches the cache database of the tracking system; Establishing a query index for the cached service session data based on a query index establishment rule for the target data source and the cached service session data; The cache service session data and the query index are written into the cache database.

6. The method according to any one of claims 1 to 5, characterized in that: The data processing rule further includes a session start data identification rule corresponding to the first business process node, the first business process node is the start node of the business session process, the business session data is the start session data of the business session process, and the data processing rule corresponding to the business process node is executed based on the business process configuration information, including: Creating a first service session instance, wherein the starting node of the first service session instance is the first service process node; Execute a data processing rule corresponding to a target process node, where the target process node is a business process node determined to be executed starting from the first business process node based on the business process configuration information.

7. The method according to any one of claims 4 to 6, characterized in that: The data processing rule further includes a session step data processing rule corresponding to a second business process node among the multiple business process nodes, the session step data processing rule includes a second acquisition path, wherein the second acquisition path includes the first acquisition path, and the data processing rule corresponding to the business process node executed includes: Acquire a processing data set, the processing data set including the business session data and one or more of the processing data obtained by executing a data processing rule corresponding to a business process node; generating query parameters based on the query rules and the processed data set; The session step data is obtained by querying the storage location indicated by the second collection path based on the query parameter.

8. The method according to claim 5 or 6, characterized in that: The data processing rules further include a session step data processing rule corresponding to the second business process node, the session step data processing rule includes a second acquisition path, wherein the second acquisition path includes one or both of the first acquisition path and the cache database, and the data processing rule corresponding to the execution of the business process node includes: Acquire a processing data set, the processing data set including one or more of the business session data, the cached business session data, and processing data obtained by executing a data processing rule corresponding to a business process node; generating query parameters based on the query rule and the processed data set; The session step data is obtained by querying the storage location indicated by the second collection path based on the query parameter.

9. The method according to any one of claims 1 to 8, characterized in that: The data processing rules further include data checking rules, and the data processing rules corresponding to the business process nodes are executed based on the business process configuration information, including: Performing data inspection on the processed data obtained by executing the data processing rule corresponding to the business process node based on the data inspection rule; Get the data inspection results.

10. The method according to any one of claims 1 to 9, characterized in that: The data processing rule further includes a branch judgment rule corresponding to a third business process node, the third business process node and the plurality of business process nodes have an execution order, and the data processing rule corresponding to the business process node is executed based on the business process configuration information, including: Determine a next executed business process node from the multiple business process nodes based on the branch judgment rule corresponding to the third business process node; The target business process including the business process node is displayed.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: If the breakpoint condition is met, the currently processed business process node is marked as a breakpoint; Repeating the execution of the data processing rule corresponding to the breakpoint in response to satisfying the recovery condition until the data processing rule corresponding to the breakpoint is successfully executed or the total time duration for processing the breakpoint reaches a threshold; If the data processing rule corresponding to the breakpoint is executed successfully, the next business process node is processed based on the execution order.

12. The method according to claim 2, characterized in that: Prior to presenting the tracking data, the method includes: Obtaining a query request, wherein the query request includes data information of the tracking data, wherein the data information includes one or more of session information, node information, and session step data information; The tracking data is obtained based on the data information query.

13. A service session tracking device, characterized in that: The service session tracking device is applied to a tracking system, the tracking system is used to track the service system, the service session tracking device includes a service process information configuration interface, and the service session tracking device includes: A business process configuration information acquisition module, used to acquire business process configuration information input by a user from the business process information configuration interface, wherein the business process configuration information includes a plurality of business process nodes, an execution order between the plurality of business process nodes, and a data processing rule corresponding to the at least one business process node; A target business process generation module, used to generate a target business process based on the business process configuration information, wherein the target business process corresponds to a business session process in the business system; A data processing rule execution module is used to execute the data processing rules corresponding to the at least one business process node based on the business process configuration information, wherein the data processing rules corresponding to the first business process node among the multiple business process nodes include original session data collection rules, and the data source of the original session data collection rules is the business session data in the business system.

14. The device according to claim 13, characterized in that The device also includes: A display module is used to display tracking data, wherein the tracking data includes one or more of a node execution result, a process execution result, and a data inspection result. The node execution result is the execution result of the business process node, the process execution result is the execution result of the business process corresponding to the business process configuration information, and the data inspection result is the result obtained by inspecting and executing the processing data of the data processing rule corresponding to the business process node.

15. The device according to claim 13 or 14, characterized in that The business process information configuration interface provides a variety of business process node diagrams for users to select, and the business process node diagrams correspond to business process nodes. The business process configuration information acquisition module is used to obtain business process configuration information input by the user from the business process information configuration interface, including: The business process configuration information acquisition module is specifically used to receive multiple business process node diagrams and execution sequences configured by the user through the business process configuration interface; generate a business process diagram, in which the business process nodes corresponding to the business process node diagram and the execution sequence correspond to the business session process in the business system.

16. The device according to any one of claims 13 to 15, characterized in that The original session data collection rule includes a first collection path, and the first collection path is used to indicate a target data source of the original session data collection operation. The data processing rule execution module is used to execute the data processing rule corresponding to the business process node, including: The data processing rule execution module is used to send a business session data collection request to the business system; receive the business session data sent by the business system, and the business session data is stored in the target data source of the business system, and the target data source includes a DB SQL database structured query language data source, a DB binlog database binary log data source, a REST RESTful interface data source, a NoSQL non-relational database data source, a business log source, a business DB database data source, and a file data source. One or any combination of data sources.

17. The device according to claim 16, characterized in that The original session data collection rules also include query index establishment rules. The data processing rule execution module is used to execute the data processing rules corresponding to the business process node, including: The data processing rule execution module is specifically used to convert the business session data into cached business session data, wherein the format of the cached business session data matches the cache database of the tracking system; establish a query index for the cached business session data based on the query index establishment rule of the target data source and the cached business session data; and write the cached business session data and the query index into the cache database.

18. The device according to any one of claims 13 to 17, characterized in that The data processing rule further includes a session start data identification rule corresponding to the first business process node, the first business process node is the start node of the business session process, and the business session data is the start session data of the business session process, and the data processing rule execution module is used to execute the data processing rule corresponding to the business process node based on the business process configuration information, including: The data processing rule execution module is specifically used to create a first business session instance, the starting node of the first business session instance is the first business process node; execute the data processing rule corresponding to the target process node, the target process node starts from the first business process node, and determines the business process node to be executed based on the business process configuration information.

19. The device according to any one of claims 16 to 18, characterized in that The data processing rule further includes a session step data processing rule corresponding to a second business process node among the multiple business process nodes, the session step data processing rule includes a second acquisition path, wherein the second acquisition path includes the first acquisition path, and the data processing rule execution module, used to execute the data processing rule corresponding to the business process node, includes: The data processing rule execution module is specifically used to obtain a processing data set, where the processing data set includes the business session data and one or more of the processing data obtained by executing the data processing rules corresponding to the business process nodes; generate query parameters based on the query rules and the processing data set; and query the storage location indicated by the second acquisition path based on the query parameters to obtain session step data.

20. The device according to claim 17 or 18, characterized in that The data processing rules further include a session step data processing rule corresponding to the second business process node, the session step data processing rule includes a second acquisition path, wherein the second acquisition path includes one or both of the first acquisition path and the cache database, and the data processing rule execution module, used to execute the data processing rule corresponding to the business process node, includes: The data processing rule execution module is specifically used to obtain a processing data set, wherein the processing data set includes the business session data, the cached business session data, and one or more of the processing data obtained by executing the data processing rule corresponding to the business process node; generate a query parameter based on the query rule and the processing data set; and generate a query parameter based on the query parameter in the second acquisition path indication. The session step data is queried from the storage location.

21. The device according to any one of claims 13 to 20, characterized in that The data processing rules further include data checking rules. The data processing rule execution module is used to execute the data processing rules corresponding to the business process node based on the business process configuration information, including: The data processing rule execution module is specifically used to perform data inspection on the processed data obtained by executing the data processing rule corresponding to the business process node based on the data inspection rule; and obtain the data inspection result.

22. The device according to any one of claims 13 to 21, characterized in that The data processing rule further includes a branch judgment rule corresponding to a third business process node, and the third business process node and the plurality of business process nodes have an execution order. The data processing rule execution module is used to execute the data processing rule corresponding to the business process node based on the business process configuration information, including: The data processing rule execution module is specifically used to determine the next executed business process node from the multiple business process nodes based on the branch judgment rule corresponding to the third business process node; and display the target business process containing the business process node.

23. The device according to any one of claims 13 to 22, characterized in that The device also includes: A breakpoint processing module is used to mark the currently processed business process node as a breakpoint if the breakpoint condition is met; repeatedly execute the data processing rule corresponding to the breakpoint in response to meeting the recovery condition until the data processing rule corresponding to the breakpoint is successfully executed or the total time for processing the breakpoint reaches a threshold; if the data processing rule corresponding to the breakpoint is successfully executed, continue to process the next business process node based on the execution order.

24. The device according to claim 14, characterized in that The device also includes: A query module is used to obtain a query request before displaying the tracking data, wherein the query request includes data information of the tracking data, and the data information includes one or more of session information, node information, and session step data information; and obtain the tracking data based on the data information query.

25. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 12.

26. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 12.

27. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Service session data tracking method and device and related equipment

    CN118535411A

  • Visible service flow tracing method and system, service flow processing system

    CN101404696A

  • Business data tracking processing system and method

    CN107301197A

  • Platform message tracking method, system and device and storage medium

    CN114385674A

  • Rule engine method and system

    US20050096959A1

Cited By

  • Intelligent analysis method, system and equipment for performance data of terminal equipment and medium

    CN120880945A

  • Tracking information transmission system and method, storage medium and integrated circuit product

    CN121116765A