Service execution track tree generation method and device, computer equipment and storage medium
By generating a business execution trajectory tree, the problems of trajectory data visibility and comprehensiveness in the prior art are solved, and accurate positioning and accurate display in multi-layer nested and parallel execution scenarios are achieved.
Patent Information
- Application Number
- CN202510489952.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-08-08
AI Technical Summary
When generating execution trajectory data, existing business process management systems have problems such as poor visibility or incomplete trajectory data.
By generating a business execution trajectory tree, including log data query, data filtering, key-value mapping analysis and trajectory tree generation, we ensure the comprehensiveness and visibility of trajectory data.
It improves the visibility and comprehensiveness of trajectory data, ensures that each business execution process branch can be accurately positioned in multi-layer nested and parallel execution scenarios, avoids node duplication, and improves the accuracy of the business execution trajectory tree.
Smart Images

Figure CN120448413A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, apparatus, computer device, and storage medium for generating a business execution trajectory tree. Background Art
[0002] In recent years, business process management engines based on the BPMN standard (Business Process Management Initiative) have emerged. They provide comprehensive business process management capabilities, including process modeling, orchestration, execution, monitoring, and optimization, to better meet the changing needs of enterprises. During the execution of a business process, the execution status of each link can be recorded, generating execution trajectory data.
[0003] However, the current method of generating execution trajectory data has problems such as poor visibility or incomplete trajectory data. Summary of the Invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for generating a business execution trajectory tree that can improve the visibility and comprehensiveness of trajectory data in order to address the above technical problems.
[0005] In a first aspect, a method for generating a service execution trajectory tree is provided, the method comprising:
[0006] In response to receiving a trajectory query request, querying and processing the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request; the business flow log includes a business execution process branch tree and node log data of each business execution process node; wherein the business execution process node is a node in the business execution process branch tree;
[0007] After filtering the log data of each node, the target node log data of the corresponding business execution process node is obtained, and a target node log set is generated based on the log data of each target node;
[0008] After performing a branch structure flattening analysis based on the business execution process branch tree, a first key-value mapping of each business execution process branch node is obtained. The current canvas configuration tree is obtained, and after performing a node information analysis based on the current canvas configuration tree, a second key-value mapping of the child nodes of each parallel gateway node is obtained. The business execution process branch node is a business execution process node where a node branch appears in the business execution process branch tree.
[0009] Update the corresponding target node log data according to each first key-value mapping, remove the target node log data corresponding to each second key-value mapping from the target node log set, and generate a business execution trajectory tree according to the target node log set and the current canvas configuration tree.
[0010] In one of the embodiments, in response to receiving a trajectory query request, query processing is performed in log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request, including: determining a trajectory query time according to the trajectory query request; in response to the trajectory query time belonging to a preset query time interval, query processing is performed in log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request; in response to the trajectory query time not belonging to the query time interval, feedback is given that the trajectory query request exceeds the query time interval.
[0011] In one of the embodiments, in response to the trajectory query time belonging to a preset query time interval, query processing is performed in the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request, including: in response to the trajectory query time belonging to the query time interval, parsing the trajectory query request to obtain a business execution process identity identification number, a business execution process serial number, variable attribute values and variable restriction conditions; query processing is performed in the log data according to the business execution process identity identification number, the business execution process serial number and the trajectory query time to obtain a query result; the query result includes a business flow log or empty.
[0012] In one embodiment, after filtering the log data of each node, the target node log data of the corresponding business execution process node is obtained, and a target node log set is generated based on the log data of each target node, including: filtering the log data of each node according to the variable attribute value and the variable restriction condition to obtain the corresponding target node log data.
[0013] In one embodiment, after performing a branch structure flattening analysis on the business execution process branch tree, a first key-value mapping of each business execution process branch node is obtained, including: traversing the business execution process branch tree based on a priority search algorithm to obtain each business execution process branch node; performing a node information query on the business execution process branch tree according to each business execution process branch node to obtain each first key-value mapping; the first key-value mapping is used to represent the parent node information of the corresponding business execution process branch node and the child node information of the corresponding business execution process branch node.
[0014] In one embodiment, after performing node information analysis based on the current canvas configuration tree, a second key-value mapping of the child nodes of each parallel gateway node is obtained, including: traversing the current canvas configuration tree to obtain each parallel gateway node and the child nodes of each parallel gateway node; performing node information query in the current canvas configuration tree based on the child nodes of each parallel gateway node to obtain each second key-value mapping; the second key-value mapping is used to represent the parent node information of the child nodes of the corresponding parallel gateway node and the child node information of the child nodes of the corresponding parallel gateway node.
[0015] In one embodiment, the method further comprises:
[0016] Performing node information query on each parallel gateway node in the current canvas configuration tree to obtain a third key-value mapping of each parallel gateway node; the third key-value mapping is used to represent the parent node information of the corresponding parallel gateway node and the child node information of the corresponding parallel gateway node;
[0017] The third key-value mapping of each parallel gateway node is added to the configuration information of the corresponding business execution trace node in the business execution trace tree.
[0018] In a second aspect, a device for generating a business execution trajectory tree is provided. The device includes a log query module, a data screening module, a key-value mapping analysis module, and a trajectory tree generation module.
[0019] The log query module is configured to, in response to receiving a trajectory query request, perform query processing in the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request; the business flow log includes a business execution process branch tree and node log data of each business execution process node; wherein the business execution process node is a node in the business execution process branch tree;
[0020] A data screening module is used to screen the log data of each node to obtain the target node log data of the corresponding business execution process node, and generate a target node log set based on the log data of each target node;
[0021] The key-value mapping analysis module is used to obtain a first key-value mapping of each business execution process branch node after performing a branch structure flattening analysis based on the business execution process branch tree, obtain the current canvas configuration tree, and obtain a second key-value mapping of the child nodes of each parallel gateway node after performing a node information analysis based on the current canvas configuration tree; the business execution process branch node is the business execution process node where a node branch appears in the business execution process branch tree;
[0022] The trajectory tree generation module is used to update the corresponding target node log data according to each first key-value mapping, remove the target node log data corresponding to each second key-value mapping from the target node log set, and generate a business execution trajectory tree according to the target node log set and the current canvas configuration tree.
[0023] In a third aspect, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any method in the above method embodiments are implemented.
[0024] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.
[0025] The above-mentioned business execution trajectory tree generation method, device, computer equipment and storage medium, in response to receiving a trajectory query request, perform query processing in the log data according to the trajectory query request, and obtain the business flow log corresponding to the trajectory query request; the business flow log includes the business execution process branch tree and the node log data of each business execution process node; wherein the business execution process node is a node in the business execution process branch tree; then, after data screening of each node log data, the target node log data of the corresponding business execution process node is obtained, and a target node log set is generated according to the log data of each target node; then, after performing branch structure flattening analysis according to the business execution process branch tree, the first key-value mapping of each business execution process branch node is obtained, the current canvas configuration tree is obtained, and the node information analysis according to the current canvas configuration tree is obtained to obtain the second key-value mapping of the child nodes of each parallel gateway node; the business execution process is divided into The branch node is the business execution process node where the node branch appears in the business execution process branch tree; finally, the corresponding target node log data is updated according to each first key-value mapping, the target node log data corresponding to each second key-value mapping is removed from the target node log set, and the business execution trajectory tree is generated according to the target node log set and the current canvas configuration tree, which comprehensively captures the business execution trajectory-related data, improves the visibility of the trajectory data, and facilitates subsequent rapid search and association, ensuring that each business execution process branch can be accurately located in multi-layer nesting and parallel execution scenarios, and facilitating the correct identification of branch child nodes of the parallel gateway. By removing the target node log data corresponding to each second key-value mapping from the target node log set, it is ensured that the node is only displayed once in the correct branch, avoiding the problem of node duplication in the business execution trajectory tree, and correctly displaying the execution status of each branch in the business execution trajectory tree, thereby improving the accuracy of the business execution trajectory tree. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 An application environment diagram of a method for generating a business execution trajectory tree in one embodiment;
[0027] Figure 2 Schematic diagram of a process for generating a service execution trajectory tree in one embodiment;
[0028] Figure 3 A schematic diagram of a process for, in one embodiment, performing query processing in log data according to the trajectory query request in response to receiving a trajectory query request to obtain a business flow log corresponding to the trajectory query request;
[0029] Figure 4A schematic diagram of a process for performing query processing in log data according to a trajectory query request to obtain a business flow log corresponding to the trajectory query request in response to a trajectory query time falling within a preset query time interval in one embodiment;
[0030] Figure 5 A schematic diagram of a process for obtaining a first key-value mapping of each business execution process branch node after performing a branch structure flattening analysis based on a business execution process branch tree in one embodiment;
[0031] Figure 6 A schematic diagram of a process for obtaining a second key-value mapping of child nodes of each parallel gateway node after performing node information analysis according to the current canvas configuration tree in one embodiment;
[0032] Figure 7 It is a structural block diagram of a device for generating a service execution trajectory tree in one embodiment;
[0033] Figure 8 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0035] To facilitate understanding of the present application, the present application will be described more fully below with reference to the accompanying drawings. The accompanying drawings provide embodiments of the present application. However, the present application may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to make the disclosure of the present application more thorough and comprehensive.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.
[0037] It will be understood that the terms "first," "second," etc., used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor without departing from the scope of this application. The first resistor and the second resistor are both resistors, but they are not the same resistor.
[0038] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if there is transmission of electrical signals or data between the connected circuits, modules, units, etc.
[0039] When used herein, the singular forms "a", "an", and "the" may also include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
[0040] The business execution trajectory tree generation method provided in this application can be applied to Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. Terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablet computers, and portable wearable devices, and server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0041] In one embodiment, Figure 2 As shown, a method for generating a business execution trajectory tree is provided, and the method is applied to Figure 1 The server 104 in the example is used for explanation, including the following steps 201 to 204.
[0042] Step 201 : In response to receiving a trajectory query request, query processing is performed in log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request.
[0043] The business flow log includes the business execution process branch tree and node log data for each business execution process node; a business execution process node is a node in the business execution process branch tree. Specifically, in response to receiving a trajectory query request, server 104 performs query processing in the log data based on the trajectory query request to obtain the business flow log corresponding to the trajectory query request.
[0044] In a specific example, the business execution process nodes may include, but are not limited to, marketing promotion execution process nodes, customer acquisition execution process nodes, risk control execution process nodes, and product service execution process nodes. The above are only specific examples. In actual applications, they are flexibly set according to user needs and are not limited here.
[0045] In one embodiment, Figure 3As shown, in response to receiving a trajectory query request, query processing is performed in the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request, including steps 301 to 303.
[0046] Step 301, determining a trajectory query time according to a trajectory query request;
[0047] Step 302: In response to the trajectory query time falling within a preset query time interval, query processing is performed in the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request;
[0048] Step 303 : In response to the fact that the trajectory query time does not fall within the query time interval, a feedback is given that the trajectory query request exceeds the query time interval.
[0049] Specifically, the server 104 determines the trajectory query time according to the trajectory query request; then, in response to the trajectory query time falling within the preset query time interval, the server 104 performs query processing in the log data according to the trajectory query request to obtain the business flow log corresponding to the trajectory query request; then, in response to the trajectory query time not falling within the query time interval, the server 104 feeds back that the trajectory query request exceeds the query time interval, thereby improving the efficiency of obtaining the data required for the business execution trajectory tree, and also improving the efficiency and accuracy of generating the business execution trajectory tree.
[0050] In one embodiment, Figure 4 As shown, in response to the trajectory query time belonging to the preset query time interval, query processing is performed in the log data according to the trajectory query request to obtain the business flow log corresponding to the trajectory query request, including step 401 and step 402.
[0051] Step 401: In response to the trajectory query time falling within the query time interval, the trajectory query request is parsed to obtain the business execution process identification number, business execution process serial number, variable attribute values, and variable restriction conditions;
[0052] Step 402 , query the log data according to the business execution process identification number, the business execution process serial number and the trace query time to obtain a query result; the query result includes a business serial log or empty.
[0053] The query result includes a business flow log or nothing. Specifically, in response to the trajectory query time falling within the query time interval, server 104 parses the trajectory query request to obtain the business execution process identification number, business execution process serial number, variable attribute values, and variable restriction conditions; then, based on the business execution process identification number, business execution process serial number, and trajectory query time, it performs a query in the log data to obtain the query result, thereby improving the efficiency and convenience of obtaining the business flow log.
[0054] In a specific example, in response to the trajectory query time belonging to the preset query time interval, query processing is performed in the log data according to the trajectory query request, and the business flow log corresponding to the trajectory query request is obtained, which also includes: in response to the query result being empty, feeding back an empty business execution trajectory tree; in response to the query result being a business flow log, determining the business execution process branch tree according to the business flow log, and determining the node log data of each business execution process node according to the business execution process branch tree. The above is only a specific example. In actual application, it is flexibly set according to user needs and is not limited here.
[0055] In this embodiment, in response to the trajectory query time belonging to the query time interval, the trajectory query request is parsed and processed to obtain the business execution process identity identification number, business execution process serial number, variable attribute values and variable restriction conditions; then, query processing is performed in the log data based on the business execution process identity identification number, business execution process serial number and trajectory query time to obtain the query result, thereby improving the efficiency and convenience of obtaining the business serial log.
[0056] In this embodiment, a trajectory query time is determined based on a trajectory query request. Then, in response to the trajectory query time falling within a preset query time interval, query processing is performed in the log data based on the trajectory query request to obtain a business flow log corresponding to the trajectory query request. Then, in response to the trajectory query time not falling within the query time interval, a feedback is given that the trajectory query request exceeds the query time interval. This improves the efficiency of obtaining data required for the business execution trajectory tree, and also improves the efficiency and accuracy of generating the business execution trajectory tree.
[0057] Step 202 : After filtering the log data of each node, target node log data of the corresponding business execution process node is obtained, and a target node log set is generated according to the log data of each target node.
[0058] Specifically, the server 104 filters the log data of each node to obtain the target node log data of the corresponding business execution process node, and generates a target node log set according to the log data of each target node.
[0059] In one embodiment, after filtering the log data of each node, target node log data of the corresponding business execution process node is obtained, and a target node log set is generated according to the log data of each target node, including:
[0060] The log data of each node is filtered according to the variable attribute value and variable restriction conditions to obtain the corresponding target node log data.
[0061] Specifically, the server 104 filters the log data of each node according to the variable attribute value and variable restriction conditions to obtain the target node log data of the corresponding business execution process node, thereby improving the processing efficiency of the business execution trajectory tree related data, reducing the amount of data required in the business execution trajectory tree generation process, and thus improving the business execution trajectory tree generation efficiency.
[0062] In this embodiment, the log data of each node is screened according to the variable attribute value and the variable restriction condition to obtain the target node log data of the corresponding business execution process node, thereby improving the processing efficiency of the business execution trajectory tree related data, reducing the amount of data required in the business execution trajectory tree generation process, and improving the business execution trajectory tree generation efficiency.
[0063] Step 203: After performing a branch structure flattening analysis on the business execution process branch tree, a first key-value mapping of each business execution process branch node is obtained, the current canvas configuration tree is obtained, and after performing a node information analysis on the current canvas configuration tree, a second key-value mapping of the child nodes of each parallel gateway node is obtained.
[0064] The business execution process branch node is a business execution process node where a node branch appears in the business execution process branch tree. Specifically, server 104 performs a branch structure flattening analysis based on the business execution process branch tree to obtain a first key-value mapping for each business execution process branch node, obtains the current canvas configuration tree, and performs a node information analysis based on the current canvas configuration tree to obtain a second key-value mapping for the child nodes of each parallel gateway node. This facilitates subsequent rapid search and association, ensures that each business execution process branch can be accurately located in multi-layer nesting and parallel execution scenarios, facilitates correct identification of the branch child nodes of the parallel gateway, and accurately displays the execution status of each branch in the business execution trajectory tree.
[0065] In one embodiment, Figure 5 As shown, after performing branch structure flattening analysis on the business execution process branch tree, a first key-value mapping of each business execution process branch node is obtained, including step 501 and step 502.
[0066] Step 501: Based on the priority search algorithm, the business execution process branch tree is traversed to obtain each business execution process branch node;
[0067] Step 502 : Query node information in the business execution process branch tree according to each business execution process branch node to obtain each first key-value mapping.
[0068] Among them, the first key-value mapping is used to represent the parent node information of the corresponding business execution process branch node and the child node information of the corresponding business execution process branch node; specifically, the server 104 traverses the business execution process branch tree based on the priority search algorithm to obtain each business execution process branch node; then, according to each business execution process branch node, the node information query is performed in the business execution process branch tree to obtain each first key-value mapping, which is convenient for subsequent rapid search and association, ensuring that each business execution process branch can be accurately located in the scenario of multi-layer nesting and parallel execution.
[0069] In this embodiment, based on the priority search algorithm, the business execution process branch tree is traversed to obtain each business execution process branch node; then, node information is queried in the business execution process branch tree according to each business execution process branch node to obtain each first key-value mapping, which facilitates subsequent rapid search and association, ensuring that each business execution process branch can be accurately located in scenarios of multi-layer nesting and parallel execution.
[0070] In one embodiment, Figure 6 As shown, after analyzing the node information according to the current canvas configuration tree, the second key-value mapping of the child nodes of each parallel gateway node is obtained, including step 601 and step 602.
[0071] Step 601: traverse the current canvas configuration tree to obtain each parallel gateway node and its child nodes;
[0072] Step 602 : Query node information in the current canvas configuration tree according to the child nodes of each parallel gateway node to obtain each second key-value mapping.
[0073] The second key-value mapping is used to represent the parent node information of the corresponding parallel gateway node's child node and the child node information of the corresponding parallel gateway node's child node. Specifically, server 104 traverses the current canvas configuration tree to obtain each parallel gateway node and its child nodes. Then, based on the child nodes of each parallel gateway node, server 104 performs a node information query in the current canvas configuration tree to obtain each second key-value mapping. This facilitates accurate identification of the parallel gateway's branch child nodes and accurately displays the execution status of each branch in the business execution trajectory tree.
[0074] In this embodiment, the current canvas configuration tree is traversed to obtain each parallel gateway node and the child nodes of each parallel gateway node; then, node information is queried in the current canvas configuration tree based on the child nodes of each parallel gateway node to obtain each second key-value mapping, which facilitates the correct identification of the branch child nodes of the parallel gateway and correctly displays the execution status of each branch in the business execution trajectory tree.
[0075] Step 204 : update the corresponding target node log data according to each first key-value mapping, remove the target node log data corresponding to each second key-value mapping from the target node log set, and generate a business execution trajectory tree according to the target node log set and the current canvas configuration tree.
[0076] Specifically, the server 104 updates the corresponding target node log data according to each first key-value mapping, removes the target node log data corresponding to each second key-value mapping from the target node log set, generates a business execution trajectory tree according to the target node log set and the current canvas configuration tree, comprehensively captures business execution trajectory-related data, improves the visibility of trajectory data, facilitates subsequent rapid search and association, ensures that each business execution process branch can be accurately located in multi-layer nesting and parallel execution scenarios, and facilitates the correct identification of branch child nodes of parallel gateways. By removing the target node log data corresponding to each second key-value mapping from the target node log set, it ensures that the node is only displayed once in the correct branch, avoiding the problem of node duplication in the business execution trajectory tree, and correctly displays the execution status of each branch in the business execution trajectory tree, thereby improving the accuracy of the business execution trajectory tree.
[0077] In a specific example, the node information of the corresponding business execution trajectory node in the business execution trajectory tree is used to record the execution time, execution personnel and execution status of the corresponding business execution task node. The above is only a specific example. In actual application, it is flexibly set according to user needs and is not limited here.
[0078] Based on this, the above-mentioned business execution trajectory tree generation method, in response to receiving a trajectory query request, performs query processing in the log data according to the trajectory query request, and obtains the business flow log corresponding to the trajectory query request; the business flow log includes the business execution process branch tree and the node log data of each business execution process node; wherein, the business execution process node is the node in the business execution process branch tree; then, after data screening of each node log data, the target node log data of the corresponding business execution process node is obtained, and a target node log set is generated according to the log data of each target node; then, after performing branch structure flattening analysis on the business execution process branch tree, the first key-value mapping of each business execution process branch node is obtained, the current canvas configuration tree is obtained, and the node information analysis on the current canvas configuration tree is performed to obtain the second key-value mapping of the child nodes of each parallel gateway node; the business execution process branch node is in A business execution process node of a node branch appears in the business execution process branch tree; finally, the corresponding target node log data is updated according to each first key-value mapping, the target node log data corresponding to each second key-value mapping is removed from the target node log set, and a business execution trajectory tree is generated according to the target node log set and the current canvas configuration tree, which comprehensively captures the business execution trajectory-related data, improves the visibility of the trajectory data, and facilitates subsequent rapid search and association, ensuring that each business execution process branch can be accurately located in multi-layer nesting and parallel execution scenarios, and facilitating the correct identification of branch child nodes of parallel gateways. By removing the target node log data corresponding to each second key-value mapping from the target node log set, it is ensured that the node is only displayed once in the correct branch, avoiding the problem of node duplication in the business execution trajectory tree, and correctly displaying the execution status of each branch in the business execution trajectory tree, thereby improving the accuracy of the business execution trajectory tree.
[0079] In one embodiment, the method further comprises:
[0080] Perform node information query on each parallel gateway node in the current canvas configuration tree to obtain a third key-value mapping of each parallel gateway node;
[0081] The third key-value mapping of each parallel gateway node is added to the configuration information of the corresponding business execution process node in the business execution track tree.
[0082] Among them, the third key-value mapping is used to represent the parent node information of the corresponding parallel gateway node and the child node information of the corresponding parallel gateway node; specifically, the server 104 performs node information query based on each parallel gateway node in the current canvas configuration tree to obtain the third key-value mapping of each parallel gateway node; then, the third key-value mapping of each parallel gateway node is added to the configuration information of the corresponding business execution process node in the business execution trajectory tree, thereby improving the data comprehensiveness of the business execution trajectory tree.
[0083] In this embodiment, node information is queried in the current canvas configuration tree based on each parallel gateway node to obtain the third key-value mapping of each parallel gateway node; then, the third key-value mapping of each parallel gateway node is added to the configuration information of the corresponding business execution trajectory node in the business execution trajectory tree, thereby improving the data comprehensiveness of the business execution trajectory tree.
[0084] In a specific example, the method further includes:
[0085] Calculate the execution time of each business execution trajectory node in the business execution trajectory tree according to the business execution trajectory tree;
[0086] The node information of each business execution trajectory node in the business execution trajectory tree is updated according to the execution time of each business execution trajectory node. The above is only a specific example. In actual application, it can be flexibly set according to user needs and is not limited here.
[0087] It should be understood that although Figure 2-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 2-6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0088] Second, as Figure 7 As shown, a device for generating a business execution trajectory tree is provided, which includes a log query module 710 , a data screening module 720 , a key-value mapping analysis module 730 and a trajectory tree generation module 740 .
[0089] Among them, the log query module 710 is used to respond to the received trajectory query request, perform query processing in the log data according to the trajectory query request, and obtain the business flow log corresponding to the trajectory query request; the business flow log includes the business execution process branch tree and the node log data of each business execution process node; wherein the business execution process node is the node in the business execution process branch tree; the data screening module 720 is used to obtain the target node log data of the corresponding business execution process node after data screening of each node log data, and generate a target node log set according to the log data of each target node; the key-value mapping analysis module 730 is used to obtain the target node log data of the corresponding business execution process node according to the business execution process branch tree; After performing a branch structure flattening analysis on the process branch tree, the first key-value mapping of each business execution process branch node is obtained, the current canvas configuration tree is obtained, and the second key-value mapping of the child nodes of each parallel gateway node is obtained after performing a node information analysis based on the current canvas configuration tree; the business execution process branch node is the business execution process node where the node branch appears in the business execution process branch tree; the trajectory tree generation module 740 is used to update the corresponding target node log data according to each first key-value mapping, remove the target node log data corresponding to each second key-value mapping from the target node log set, and generate a business execution trajectory tree according to the target node log set and the current canvas configuration tree.
[0090] In one embodiment, the log query module 710 includes a log query unit.
[0091] Among them, the log query unit is used to determine the trajectory query time according to the trajectory query request; the log query unit is used to respond to the trajectory query time falling within the preset query time interval, perform query processing in the log data according to the trajectory query request, and obtain the business flow log corresponding to the trajectory query request; the log query unit is used to respond to the trajectory query time not falling within the query time interval, and feedback that the trajectory query request exceeds the query time interval.
[0092] In one embodiment, the log query unit is configured to include a log query device.
[0093] Among them, the log query device is used to respond to the trajectory query time belonging to the query time interval, parse and process the trajectory query request, and obtain the business execution process identity identification number, business execution process serial number, variable attribute value and variable restriction condition; the log query device is used to perform query processing in the log data according to the business execution process identity identification number, business execution process serial number and trajectory query time to obtain the query result; the query result includes the business serial log or empty.
[0094] In one embodiment, the data screening module 720 includes a data screening unit.
[0095] The data screening unit is used to screen the log data of each node according to the variable attribute value and the variable restriction condition to obtain the corresponding target node log data.
[0096] In one embodiment, the key-value mapping analysis module 730 includes a first key-value mapping analysis unit.
[0097] Among them, the first key-value mapping analysis unit is used to traverse the business execution process branch tree based on the priority search algorithm to obtain each business execution process branch node; the first key-value mapping analysis unit is used to query the node information in the business execution process branch tree according to each business execution process branch node to obtain each first key-value mapping; the first key-value mapping is used to represent the parent node information of the corresponding business execution process branch node and the child node information of the corresponding business execution process branch node.
[0098] In one embodiment, the key-value mapping analysis module 730 includes a second key-value mapping analysis unit.
[0099] Among them, the second key-value mapping analysis unit is used to traverse the current canvas configuration tree to obtain each parallel gateway node and the child node of each parallel gateway node; the second key-value mapping analysis unit is used to perform node information query in the current canvas configuration tree according to the child node of each parallel gateway node to obtain each second key-value mapping; the second key-value mapping is used to represent the parent node information of the corresponding parallel gateway node's child node and the child node information of the corresponding parallel gateway node's child node.
[0100] In one embodiment, the device further includes a configuration information adding module.
[0101] Among them, the configuration information adding module is used to query the node information of each parallel gateway node in the current canvas configuration tree to obtain the third key-value mapping of each parallel gateway node; the third key-value mapping is used to represent the parent node information of the corresponding parallel gateway node and the child node information of the corresponding parallel gateway node; the configuration information adding module is used to add the third key-value mapping of each parallel gateway node to the configuration information of the corresponding business execution track node in the business execution track tree.
[0102] The specific limitations of the service execution trajectory tree generation device can be found in the limitations of the service execution trajectory tree generation method described above and will not be repeated here. The various modules in the above-mentioned service execution trajectory tree generation device can be implemented in whole or in part through software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of the above-mentioned modules.
[0103] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store business flow logs. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for generating a business execution trajectory tree is implemented.
[0104] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0105] In a third aspect, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any method in the above method embodiments are implemented.
[0106] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.
[0107] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchl ink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0108] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0109] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A method for generating a business execution trajectory tree, the method comprising: In response to receiving a trajectory query request, querying and processing the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request; the business flow log includes a business execution process branch tree and node log data of each business execution process node; wherein the business execution process node is a node in the business execution process branch tree; After filtering the log data of each node, the target node log data of the corresponding business execution process node is obtained, and a target node log set is generated according to the log data of each target node; After performing a branch structure flattening analysis on the business execution process branch tree, a first key-value mapping of each business execution process branch node is obtained; the current canvas configuration tree is obtained; and after performing a node information analysis on the current canvas configuration tree, a second key-value mapping of the child nodes of each parallel gateway node is obtained; the business execution process branch node is the business execution process node where a node branch appears in the business execution process branch tree; Update the corresponding target node log data according to each first key-value mapping, remove the target node log data corresponding to each second key-value mapping from the target node log set, and generate a business execution trajectory tree according to the target node log set and the current canvas configuration tree.
2. The method according to claim 1, characterized in that In response to receiving the trajectory query request, performing query processing in the log data according to the trajectory query request to obtain the business flow log corresponding to the trajectory query request includes: Determining a trajectory query time according to the trajectory query request; In response to the trajectory query time belonging to the preset query time interval, query processing is performed in the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request; In response to the track query time not belonging to the query time interval, feeding back that the track query request exceeds the query time interval.
3. The method according to claim 2, characterized in that In response to the trajectory query time belonging to a preset query time interval, querying and processing the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request includes: In response to the trajectory query time falling within the query time interval, parsing the trajectory query request to obtain a business execution process identification number, a business execution process serial number, a variable attribute value, and a variable restriction condition; According to the business execution process identification number, the business execution process serial number and the track query time, query processing is performed in the log data to obtain a query result; the query result includes the business serial log or empty.
4. The method according to claim 3, characterized in that The step of filtering the log data of each node to obtain the target node log data of the corresponding business execution process node, and generating a target node log set according to the target node log data, includes: Data screening is performed on each of the node log data according to the variable attribute value and the variable restriction condition to obtain the corresponding target node log data.
5. The method according to claim 1, wherein The first key-value mapping of each business execution process branch node obtained after performing branch structure flattening analysis according to the business execution process branch tree includes: Based on the priority search algorithm, the business execution process branch tree is traversed to obtain each business execution process branch node; Node information query is performed on the business execution process branch tree according to each business execution process branch node to obtain each first key-value mapping; the first key-value mapping is used to represent the parent node information of the corresponding business execution process branch node and the child node information of the corresponding business execution process branch node.
6. The method according to claim 1, characterized in that The second key-value mapping of the child nodes of each parallel gateway node is obtained after analyzing the node information according to the current canvas configuration tree, including: Traversing the current canvas configuration tree to obtain each of the parallel gateway nodes and child nodes of each of the parallel gateway nodes; A node information query is performed on the current canvas configuration tree according to the child nodes of each parallel gateway node to obtain each second key-value mapping; the second key-value mapping is used to represent the parent node information of the corresponding child node of the parallel gateway node and the child node information of the corresponding child node of the parallel gateway node.
7. The method according to claim 6, characterized in that The method further comprises: Performing a node information query on each parallel gateway node in the current canvas configuration tree to obtain a third key-value mapping of each parallel gateway node; the third key-value mapping is used to represent the parent node information of the corresponding parallel gateway node and the child node information of the corresponding parallel gateway node; The third key-value mapping of each parallel gateway node is added to the configuration information of the corresponding business execution track node in the business execution track tree.
8. A device for generating a business execution trajectory tree, characterized in that: The device comprises: a log query module, configured to, in response to receiving a trajectory query request, perform query processing in the log data according to the trajectory query request to obtain a business flow log corresponding to the trajectory query request; the business flow log includes a business execution process branch tree and node log data of each business execution process node; wherein the business execution process node is a node in the business execution process branch tree; A data screening module is used to screen the log data of each node to obtain the target node log data of the corresponding business execution process node, and generate a target node log set according to the log data of each target node; A key-value mapping analysis module is configured to obtain a first key-value mapping of each business execution process branch node after performing a branch structure flattening analysis based on the business execution process branch tree, obtain a current canvas configuration tree, and obtain a second key-value mapping of the child nodes of each parallel gateway node after performing a node information analysis based on the current canvas configuration tree; the business execution process branch node is the business execution process node where a node branch appears in the business execution process branch tree; A trajectory tree generation module is used to update the corresponding target node log data according to each first key-value mapping, remove the target node log data corresponding to each second key-value mapping from the target node log set, and generate a business execution trajectory tree according to the target node log set and the current canvas configuration tree.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.