A log viewing method, device, equipment and readable medium for a process instance

By displaying the association between process templates and run logs in the visual canvas, the problem of poor readability and insufficient intuitiveness of process instance log viewing is solved, and more efficient exception positioning and analysis is achieved.

CN117472988BActive Publication Date: 2024-11-12PENGXI SEMICONDUCTOR TECHNOLOGY (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311459434.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2024-11-12
Estimated Expiration
2043-11-03

AI Technical Summary

Technical Problem

In the prior art, log viewing of process instances is difficult to visually display, resulting in poor readability and difficulty in positioning abnormal locations and causes, especially in complex process templates where there are many nodes and many cycles.

Method used

The process template is associated with the operation log with the operation log by using visual canvas. The operation log is displayed in the process template through preset marks. Different colors and numbers represent the status and number of cycles of the process nodes, improving the readability and intuitiveness of the log.

Benefits of technology

It improves the efficiency of staff processing process logs, simplifies the exception location and analysis process, and enhances the readability and intuitiveness of log data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117472988B_ABST
    Figure CN117472988B_ABST
Patent Text Reader

Abstract

The present application provides a log viewing method, device, equipment and readable medium for a process instance. The method includes: obtaining the design result of a process template in a visual canvas; wherein the process template is composed of process nodes and sequential flows connecting process nodes; executing the process template, generating a process instance, and in the process of generating the process instance, recording according to the pre-set recording information to obtain an operation log; marking and displaying the operation log in the process template in the visual canvas with a preset mark. The present technical solution can display the obtained operation log in a certain manner in the process template in the visual canvas in a certain manner, so that the viewing of the operation log is more intuitive, which can facilitate the staff to locate the abnormal location and analyze the cause of the abnormality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a log viewing method, device, equipment and readable medium for a process instance. Background Art

[0002] In recent years, with the rapid development of science and technology, process orchestration has been widely used. According to the process of business process circulation among multiple members of the organization, process template design can help enterprises to transmit information and improve the level of enterprise automation. A large amount of log data will be generated during the process operation. Viewing the log data can help staff locate the abnormal location and cause of the abnormality during the process operation and obtain abnormal data. For some complex process templates, there are many process nodes and many cycles of each node, resulting in a large amount of log data, which makes it extremely difficult to view the log data and locate the abnormality.

[0003] However, the inventors found that there are at least the following technical problems in the related art:

[0004] First, the logs during operation are displayed in text form, which is difficult to read and difficult to understand the relationship between the operations of different nodes. It is cumbersome and inefficient to sort out. Secondly, when multiple executions such as loops are encountered, all running instances are flattened to display all running conditions, but the displayed content is inconsistent with the original design drawing, which affects the staff experience and is not intuitive enough to view. Summary of the invention

[0005] One purpose of the present application is to provide a log viewing method, device, equipment and readable medium for a process instance, at least to solve the problem of poor readability of log data and lack of intuitive observation. The purpose of the present application is to provide a new log viewing method for a process instance. After obtaining the operation log, the method can display the operation log in a visual canvas in association with the process template, which can improve the readability of the operation log, and can also intuitively view the log data, reducing the complexity of the staff's processing of the process log.

[0006] To achieve the above objectives, some embodiments of the present application provide the following aspects:

[0007] In a first aspect, some embodiments of the present application further provide a method for viewing a log of a process instance, the method comprising:

[0008] Obtaining a design result of a process template in a visualization canvas; wherein the process template is composed of process nodes and sequential flows connecting the process nodes;

[0009] Execute the process template to generate a process instance, and in the process of generating the process instance, record the operation log according to the preset record information;

[0010] The operation log is marked and displayed in the process template in the visualization canvas with a preset mark.

[0011] In a second aspect, some embodiments of the present application further provide a log viewing device for a process instance, the device comprising:

[0012] A process template acquisition module is used to acquire the design result of the process template in the visualization canvas; wherein the process template is composed of process nodes and sequential flows connecting the process nodes;

[0013] A running log recording module is used to execute the process template, generate a process instance, and in the process of generating the process instance, record the running log according to the preset recording information;

[0014] The operation log display module is used to mark and display the operation log in the process template in the visualization canvas with a preset mark.

[0015] In a third aspect, some embodiments of the present application further provide a computer device, the device comprising:

[0016] one or more processors; and

[0017] A memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to execute the log viewing method of the process instance as described above.

[0018] In a fourth aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the log viewing method of the process instance as described above.

[0019] Compared with the prior art, the solution provided in the embodiment of the present application obtains the design result of the process template in the visual canvas; wherein the process template is composed of process nodes and sequential flows connecting the process nodes; the process template is executed to generate a process instance, and in the process of generating the process instance, the operation log is recorded according to the pre-set record information; the operation log is marked and displayed in the process template in the visual canvas with a preset mark. By displaying the obtained operation log in a certain way in the process template in the visual canvas in a certain way, the viewing of the operation log is more intuitive, which can facilitate the staff to locate the abnormal location and analyze the cause of the abnormality. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a flowchart of a log viewing method for a process instance provided in Example 1 of the present application;

[0021] Figure 2 It is a schematic diagram of the design result of the process template in the visualization canvas provided in the first embodiment of the present application;

[0022] Figure 3 It is a schematic diagram of the running log marking effect of the process template in the visual canvas provided in the first embodiment of the present application;

[0023] Figure 4 It is a flow chart of a log viewing method of a process instance provided in Embodiment 2 of the present application;

[0024] Figure 5 This is a schematic diagram of the operation log of the process node provided in Example 2 of the present application;

[0025] Figure 6 It is a schematic diagram of the differentiated display of the running route provided in the second embodiment of the present application;

[0026] Figure 7 It is a flowchart of a log viewing method for a process instance provided in Embodiment 3 of the present application;

[0027] Figure 8 This is a schematic diagram of the operation log of the sequence flow provided in Example 3 of the present application;

[0028] Fig. 9 It is a schematic diagram showing the effect of the cycle process provided by the embodiment of the present application;

[0029] Fig.10 It is a structural diagram of a log viewing device for a process instance provided in Embodiment 4 of the present application;

[0030] Fig.11 It is a structural diagram of the computer device provided in Example 5 of the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] The technical solution provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0033] Embodiment 1

[0034] Figure 1 1 is a flow chart of a log viewing method for a process instance provided in Example 1 of the present application. Figure 1 As shown, the specific steps include: The process includes:

[0035] Step S101, obtaining a design result of a process template in a visualization canvas; wherein the process template is composed of process nodes and sequential flows connecting the process nodes.

[0036] The visualization canvas may be a canvas for displaying the design results of a process template during the process template design process. Figure 2 Schematic diagram of the design result of the process template in the visualization canvas provided in the first embodiment of the present application. Figure 2 As shown, the process template may be composed of process nodes and sequence flows connecting the process nodes. It is understandable that different process nodes may have different names, such as StartEvent_1 and EFFP_1.

[0037] Step S102, executing the process template to generate a process instance, and in the process of generating the process instance, recording according to the preset recording information to obtain a running log.

[0038] In this solution, the process template is executed, that is, the process nodes are executed one by one according to the sequence flow in the process template. A process instance is generated, that is, an instance of completing the processing of a task for the process template of the case number. Specifically, during the execution of the process template, a process instance is generated each time it is triggered, and a node instance is generated each time a process node is executed. Each node instance log is stored.

[0039] In this solution, in the process of generating a process instance, the operation log is obtained by recording according to the preset recording information. Among them, the preset recording information can include each process node: node instance ID, process template ID, process template version ID, process instance ID, main process instance ID, node ID, node name, node type, previous node instance ID, previous node ID, process running start timestamp (accurate to ms), process running end timestamp (accurate to ms), process running time (accurate to ms), node-specific information, running exception information, node start running context and task running status (0: to be scheduled, 1: processing, 2: waiting, 3: completed, -1: failed), etc.

[0040] After the above information is recorded for each process node, the running log of the entire process instance can be recorded.

[0041] Step S103: Mark and display the operation log in the process template in the visualization canvas with a preset mark.

[0042] Among them, the information contained in the operation log is marked and displayed in the process template, so the context information, the previous process node and the next process node do not need to be displayed directly, but the operation status information of the process node, such as successful operation or failed operation, needs to be displayed. In addition, this solution also displays the number of cycles of each process node to record the process node.

[0043] Figure 3 Schematic diagram of the running log marking effect of the process template in the visual canvas provided in the first embodiment of the present application. Figure 3 As shown, a square mark can be displayed in the upper left corner of each process node. The mark can reflect the different running states of the process node through different colors. A number can be displayed in the mark to reflect the number of cycles of the process node in the process instance.

[0044] In this solution, the process template is executed to generate a process instance, and in the process of generating the process instance, the operation log is recorded according to the preset recording information, including:

[0045] Execute the process template to generate a process instance ID of the current execution process;

[0046] Get the number of loops and loop types of each process node in the current execution process;

[0047] If it is the first loop type, a process node instance ID is generated for each loop of the process node, and the process node ID, the process node instance ID and the process instance ID are associated and recorded, and the same upstream process node ID and upstream process node instance ID of each loop of the process node are recorded in each loop;

[0048] If it is the second loop type, a process node instance ID is generated for each loop of the process node, and the process node ID, process node instance ID and the process instance ID are associated and recorded, and the upstream process node ID and upstream process node instance ID triggered by all loops of the process node are recorded outside each loop.

[0049] Among them, the process template is a model of the workflow, which defines the steps, participants, conditions, rules and other elements in the workflow. It is a general description of the workflow and can be instantiated into a specific workflow instance. The process template defines the structure and behavior of the workflow and provides a reusable template so that similar workflows can be used in different scenarios. Execution is the process of processing data once according to the predetermined branch or configured task requirements. Execution can be the concept of a path formed by multiple nodes or the concept of a node.

[0050] A process instance is a specific, executable process created based on a process template. It represents the instantiation of a process template at a specific point in time, and converts an abstract process template into an actual, operational process through instantiation. A process instance contains all relevant information for executing a specific process, including the current process status, participants, activity status, data, and execution path. Each process instance is independent, has independent execution context and data, and can track and control the status during process execution.

[0051] A workflow node can be a specific step or activity in a workflow. Each workflow node represents a task, decision point, or event that needs to be executed by a participant or system. A workflow node can include performing specific operations, waiting for external input, or triggering other related workflow nodes. Together, they form the execution path and logic of the workflow.

[0052] The process node ID is the number of the process node. As long as the node does not change, its process node ID remains unchanged.

[0053] The process node instance ID is the actual content of each execution of the process node. Each time the process node is executed, a process node instance ID is generated.

[0054] In this solution, loops are divided into two categories, one is the first loop type, and the other is the second loop type. For the first loop type, taking process node A and process node B as examples, the upstream node instance of each execution instance of process node B is a certain execution instance of process node A. In this case, the same upstream process node ID and upstream process node instance ID of each loop can be recorded in each loop.

[0055] For the second loop type, taking process node A and process node B as an example, the first execution instance of process node B is a certain execution instance of process node A, and each subsequent loop execution instance of process node B is upstream of the previous loop execution instance of process node B. In this case, the upstream process node ID and upstream process node instance ID triggered by all loops of the process node can be recorded outside each loop.

[0056] This solution provides different recording methods by providing different types of loop operation logs, which can distinguish different types of loops, thereby obtaining different operation logs, and displaying them in different ways based on the logs, so that the staff can see the entire process of the process operation more intuitively.

[0057] In this solution, the operation log is marked and displayed in the process template in the visualization canvas with a preset mark, including:

[0058] The operation log is marked and displayed in the preset position of each process node of the process template in the visualization canvas with a square mark; wherein at least two colors of the square mark are used to display the task running status of the process node; and the number in the square mark is used to display the number of cycles of the process node in the entire process instance.

[0059] The square mark can have different colors to represent different running states. For example, each process node displays its execution status and execution times, and the sequence flow also identifies its execution status. The node status is represented by squares of different colors, such as blue for the end of execution and red for exceptions, so that the execution results are clear at a glance. The number of loops can be displayed directly in the middle of the square mark, or the mouse cursor can be hovered over the square mark to display it.

[0060] Through such a setting, this solution makes the number of cycles and running status of each process node more intuitive, which is convenient for staff to observe. For example, when the running status is failure, it can be displayed in red, so it is easy to find which process node has an abnormal operation, thereby improving the efficiency of staff's log data analysis.

[0061] Embodiment 2

[0062] Figure 4 Schematic diagram of the log viewing method of the process instance provided in the second embodiment of the present application. Figure 4 As shown, the specific steps include:

[0063] Step S401, obtaining the design result of the process template in the visualization canvas; wherein the process template is composed of process nodes and sequence flows connecting the process nodes;

[0064] Step S402, executing the process template to generate a process instance, and in the process of generating the process instance, recording according to the preset recording information to obtain a running log;

[0065] Step S403, marking and displaying the operation log in the process template in the visualization canvas with a preset mark;

[0066] Step S404, in response to the viewing operation of the target process node running log, obtaining the target process node log;

[0067] In this solution, the target process node can be viewed by double-clicking any process node in the process template. After the double-click operation, the target process node log, that is, the running log of the target process node, can be obtained.

[0068] Step S405 , identifying the data content of each data item in the target process node log, and displaying the data content of each data item in a preset format.

[0069] Among them, each data item may include information such as the number of cycles, the start time and end time of the operation, and whether there are any abnormalities in the operation of the node.

[0070] Figure 5 This is a schematic diagram of the operation log of the process node provided in Example 2 of this application. Figure 5 As shown, double-click the process node to enter its operation log. The node log records the node start time, end time, running time, variables, running state, etc. If there is an exception, the exception reason is printed. For process nodes that are executed multiple times, multiple data are recorded in the node operation record. If there is a loop, there is a running record for each loop.

[0071] Based on the above embodiment, this embodiment provides a method for viewing the log data of a target process node. The method is easy to operate and can call up the corresponding interface by double-clicking the process node. The content of the log data is more intuitive and can include status, number of cycles, start time, end time, source node name, running time, and running status, etc. Through such a setting, the log data of the process node can be viewed according to the needs of the staff, avoiding the problem of poor readability when all are displayed in text form.

[0072] In some embodiments of the present application, the preset format also includes a backtracking button for each execution of the target process node;

[0073] Accordingly, after displaying the data content of each data item in a preset format, the method further includes:

[0074] In response to the triggering operation of the backtracking button, according to the process instance of the target process node currently running, the process template in the visualization canvas differentially displays the route of the target process node currently running.

[0075] In combination with the above example, it can be seen that the log data of the displayed target process node also includes an operation column, in which a backtracking button is displayed, that is, after the backtracking button is triggered, the process template in the visualization canvas can display the route of the target process node at that time in a differentiated manner. Among them, the differentiated display method can be to bold the process line, or use other colors for coloring, or use other colors and flashing, etc.

[0076] Figure 6 Schematic diagram of the differentiated display of the running route provided in the second embodiment of the present application. Figure 6 As shown, the running route of the target process node may be bolded, and / or other routes other than the running route may be lightened in color, for example, by setting the transparency to 50%.

[0077] Through such a setting, this solution can display a single line running for the target process node in a differentiated manner in a complex process template, so that the staff can more intuitively determine the specific process running on the line and facilitate the analysis of the operation log.

[0078] Embodiment 3

[0079] Figure 7 Schematic diagram of the log viewing method of the process instance provided in the third embodiment of the present application. Figure 7 As shown, the specific steps include:

[0080] Step S701, obtaining the design result of the process template in the visualization canvas; wherein the process template is composed of process nodes and sequence flows connecting the process nodes;

[0081] Step S702, executing the process template to generate a process instance, and in the process of generating the process instance, recording according to the preset recording information to obtain a running log;

[0082] Step S703, marking and displaying the operation log in the process template in the visualization canvas with a preset mark;

[0083] Step S704, in response to the viewing operation of the target sequence flow running log, obtaining the target sequence flow log according to the process node to which the target sequence flow is attached;

[0084] In this solution, the target sequence flow can be viewed by double-clicking any sequence flow in the process template. After the double-click, the running log of the target sequence flow can be retrieved according to the process node to which the target sequence flow is attached.

[0085] Step S705: identifying the data content of each data item in the target sequential flow log, and displaying the data content of each data item in a preset format.

[0086] Figure 8 This is a schematic diagram of the operation log of the sequence flow provided in Example 3 of this application. Figure 8 As shown, double-click the sequence flow to enter its operation log. The node log records the node start time, operation transition, etc. If there is an exception, the exception reason is printed. For process nodes that are executed multiple times, multiple data are recorded in the node operation record. If there is a loop, there is an operation record for each loop.

[0087] Based on the above embodiments, this embodiment provides a method for viewing the operation log of the sequence flow. This method can provide the staff with the log information of the sequence flow based on the simple operation of the staff, so that the staff can view the operation status of the sequence flow more intuitively.

[0088] In some embodiments of the present application, the preset format also includes a backtracking button for each run of the target sequence flow;

[0089] Accordingly, after displaying the data content of each data item in a preset format, the method further includes:

[0090] In response to the triggering operation of the backtracking button, according to the process instance of the target sequence flow currently running, the process template in the visualization canvas displays the route of the target sequence flow currently running in a differentiated manner.

[0091] In combination with the above example, it can be seen that the log data of the displayed target sequence flow also includes an operation column, in which a backtracking button is displayed, that is, after the backtracking button is triggered, the route of the target sequence flow that is currently running can be displayed differently in the process template in the visualization canvas. The differentiated display method can be to bold the sequence flow process line, or to use other colors for coloring, or to use other colors and flashing, etc.

[0092] Through such a setting, this solution can display a single line running for the target sequence flow in a differentiated manner in a complex process template, so that the staff can more intuitively determine the specific process running by the single line and facilitate the analysis of the operation log.

[0093] Preferred Embodiments

[0094] In order to enable relevant technical personnel to more clearly understand the technical solution of the present application, the present application also provides a preferred embodiment.

[0095] The purpose of the present invention is to facilitate staff to obtain data during the operation of a process instance, including normal and abnormal information, so that when an error occurs during the operation of the process instance or simulation, the context of each node and the flow route of the current execution can be used to identify the cause of the error, optimize the process template design, etc.

[0096] The global execution status (number of executions and status) of each node is displayed in a visual way, and multiple executions are summarized in the node dimension. The display format is the same as the process template design, and the flow status at that time can be reproduced based on a certain execution. The process operation log is refined to each node, and the attributes of each node can be easily compared, so that the staff can obtain the process operation status and log data more completely from the overall and local, static and dynamic dimensions.

[0097] In order to solve the technical problems mentioned in the background technology, the present invention introduces a multi-execution traceable process instance log viewing mode, which is applied to process instance logs. The innovation of the present invention is: logs are summarized in the form of canvas, and the execution times and status are visually displayed; multiple operation logs are summarized and hierarchically displayed by nodes; and the operation path can be traced back from a single execution.

[0098] Summarize the logs in the form of a canvas to visualize the execution times and status:

[0099] The present invention displays logs in the form of a canvas, and simultaneously displays the execution times and execution status, so as to locate the execution error nodes more clearly.

[0100] Summarize multiple run logs by node and display them in layers:

[0101] The present invention can display the logs of multiple node operations in layers, and can view the runtime key information such as the context of each execution.

[0102] Support backtracking from a single execution

[0103] The present invention supports viewing the execution result of a single route from a certain node, and can accurately locate and eliminate interference caused by irrelevant paths.

[0104] S1: Overall process

[0105] S2: Example of steps to obtain process instance logs

[0106] Wherein, in step S1:

[0107] S11: Log data recording;

[0108] During the process template execution, each trigger generates a process instance, and each process node execution generates a node instance. Each node instance log is stored. See the table for detailed storage information.

[0109] Node instance operation log table

[0110] Record data information Node instance ID Process template ID Process template version ID Process instance ID Main process instance ID Node ID Node Name Node Type Previous node instance ID Previous node ID Process running start timestamp (accurate to ms) Process running end timestamp (accurate to ms) Process running time (accurate to ms) Node-specific information Abnormal operation information The node starts running in context Task running status (0: waiting for scheduling, 1: processing, 2: waiting, 3: completed, -1: failed)

[0111] S12: Process instance playback process;

[0112] S1201: Enter process instance playback

[0113] When you click the playback button in the process instance operation, the overall canvas playback information query of the process instance is executed. Through the process instance ID request, the node information list, sequence flow information list, canvas information, etc. are returned.

[0114] The returned node information list includes the process node ID, process node name, and status statistics (the number of completed states, the number of failed states, the number of states to be scheduled, the number of states in progress, and the number of states waiting).

[0115] The sequence flow information list includes the sequence flow ID, the dependent process node ID, and whether it is completed.

[0116] S1202: Check the status and execution times;

[0117] In the playback page, you can view the process node status and execution times as well as the sequence flow status. The status and execution times are marked by returning the node information list and sequence flow information list.

[0118] S1203: View each execution record

[0119] In a single process node or sequence flow, you can view its execution record. There is a record for each execution or loop.

[0120] ①Process Node

[0121] Through the process instance ID and node ID request, the multi-loop instance information, node start timestamp, and sub-instance array information are returned. The sub-instance array information includes the node instance ID, node start timestamp, process running status, and number of loops.

[0122] ② Sequential flow

[0123] Request through the process instance ID and the node ID to which the sequence flow is attached, and return the node instance ID, node start timestamp and running status.

[0124] Fig. 9 Schematic diagram showing the effect of the cycle process provided by the embodiment of the present application. Fig. 9 As shown in the figure, in the log scenario where nodes are displayed multiple times in multiple layers and run multiple times, if the upstream node of a specific process node is executed multiple times, resulting in multiple executions of the selected process node, if the process node itself has multiple instance loops, each run of the process node triggers a loop. If the loop is in parallel state, the node instance of each loop has the same upstream node instance. If it is in serial state, the entire loop of the process node can be connected in series through the previous upstream node instance.

[0125] For example, when process node a is executed for the first time, it triggers the first execution of b. b performs a multi-instance loop, resulting in n execution results. Depending on the loop mode, the upstream nodes corresponding to the multiple node instances of b are different. If the b loop is parallel, the previous node instance ID of each node instance of the loop is the node instance generated by node a; in serial mode, the previous node instance is the node instance of the previous process node b executed in the loop order.

[0126] S1204: Check the details of each operation log;

[0127] In a single process node or sequence flow, view its run log.

[0128] ①Process Node

[0129] Through the process instance ID request, process variable information, additional information, and public logs are returned. The public logs include the node start timestamp, node end timestamp, node running time, source node (previous node) name, process running status, process sequence flow status, host name, error information, and node attribute information.

[0130] ② Sequential flow

[0131] By requesting the process instance ID and the node ID to which the sequence flow is attached, the process variable information, public logs, and expression parsing results are returned. The public logs include the end time of the previous node attached, the name of the source node (previous node), the process running status, the process sequence flow status, the host name, and the error information.

[0132] S1205: Backtracking from a single execution;

[0133] Through the node instance ID request, the process node information list and the sequence flow information list are returned. In this case, the list information ends with the process instance ID, and passes through the previous node instance ID until it has no previous node instance ID. If there is no previous node instance ID, it means that it is the starting node. The upstream node instance ID of each node is found through the previous node instance ID and the previous node ID to complete the search of the entire workflow and realize the backtracking function. For example, there are process nodes a and b, and its sequence flow 1. When the process is backtracked, the previous node instance ID and node ID of b are associated with a, and the node to which sequence flow 1 is attached is a, and backtracking is realized. If there are multiple loops in the process node, when backtracking a certain loop, the node instance ID of the loop is used as the input parameter.

[0134] Wherein, in step S2:

[0135] S21: Process template design;

[0136] Process managers design process templates by defining process nodes such as events, gateways, and activities to model complex business processes.

[0137] S22: Generate process instance;

[0138] After the process template is designed, the process instance is generated by actually or simulated executing the process template. Each run will generate a process instance, and you can view the process instance ID, process name, version number, start time, end time, running time, status, etc.

[0139] S23: View global mode log

[0140] S2301: Enter the playback page through the process instance data row.

[0141] This page is consistent with the design of the process template, including process nodes and sequence flows. Each process node displays its execution status and execution times, and the sequence flow also identifies its execution status. Blocks of different colors represent node status, such as blue for the end of execution and red for exceptions, so that the execution results are clear at a glance.

[0142] S2302: Check the process node log;

[0143] Double-click a process node to enter its operation log. The node log records the node's start time, end time, running time, variables, running transitions, etc. If there is an exception, the cause of the exception is printed. For process nodes that are executed multiple times, multiple data are recorded in the node operation record. If there is a loop, there is a running record for each loop.

[0144] S2303: Check the sequence flow log;

[0145] Double-click the sequential flow line to view its running log, including the start time, running status, etc. If there is any abnormality, print the reason for the abnormality.

[0146] S24: Check the backtrace log;

[0147] S2401: Entering backtracking mode

[0148] Enter the backtracking mode by clicking the backtracking button in the process node run record or sequence flow run record operation. In this mode, you can view the execution status of the path before entering the process node.

[0149] S2402: Check the log;

[0150] In this mode, you can view the logs of process nodes or sequence flows. In this mode, the logs are more detailed and only the logs under this path are displayed, which is more helpful for process managers to view the execution status or troubleshoot abnormal problems.

[0151] S2403: exit the backtracking mode;

[0152] The exit function allows you to return to global mode and view the overall operating status.

[0153] The present invention intuitively and vividly displays the execution results of the process template, which is convenient for process managers to view the operation log and match the log viewing with the process template function. Business personnel can intuitively view the execution results of each process node and sequence flow in the process template design, and the process node operation log is displayed to facilitate querying and locating business abnormal data. It provides the execution record of viewing a single path log, which can accurately locate and eliminate the interference of irrelevant paths, and more accurately locate abnormal data, thereby improving the efficiency of problem location.

[0154] Embodiment 4

[0155] Fig.10 Schematic diagram of the structure of the log viewing device of the process instance provided in the fourth embodiment of the present application. Fig.10 As shown, specifically including the following:

[0156] The process template acquisition module 1010 is used to acquire the design result of the process template in the visualization canvas; wherein the process template is composed of process nodes and sequential flows connecting the process nodes;

[0157] The operation log recording module 1020 is used to execute the process template, generate a process instance, and in the process of generating the process instance, record the operation log according to the preset recording information;

[0158] The operation log display module 1030 is used to mark and display the operation log in the process template in the visualization canvas with a preset mark.

[0159] The log viewing device of the process instance in the embodiment of the present application can be a device, or a component, an integrated circuit, or a chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0160] The log viewing device of the process instance in the embodiment of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0161] The log viewing device for the process instance provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be repeated here.

[0162] Embodiment 5

[0163] In addition, the embodiment of the present application also provides a computer device, Fig.11 Schematic diagram of the structure of the computer device provided in Example 5 of the present application. Fig.11 As shown, the device includes a memory 111 for storing computer-readable instructions and a processor 112 for executing the computer-readable instructions, wherein when the computer-readable instructions are executed by the processor, the processor is triggered to execute the method described.

[0164] The methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the processing unit, the above functions defined in the method of the present application are executed.

[0165] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0166] In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0167] Computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the staff computer, partially on the staff computer, as an independent software package, partially on the staff computer, partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the staff computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0168] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0169] As another aspect, the embodiments of the present application further provide a computer-readable medium, which may be included in the device described in the above embodiments; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions, which may be executed by a processor to implement the steps of the methods and / or technical solutions of the above multiple embodiments of the present application.

[0170] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.

[0171] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0172] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0173] In addition, an embodiment of the present application further provides a computer program, which is stored in a computer device, so that the computer device executes the method for controlling code execution.

[0174] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including related data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0175] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A method for viewing logs of a process instance. It is characterized in that The method comprises: Obtaining a design result of a process template in a visualization canvas; wherein the process template is composed of process nodes and sequential flows connecting the process nodes; Execute the process template to generate a process instance, and in the process of generating the process instance, record the operation log according to the preset record information; Marking and displaying the operation log in the process template in the visualization canvas with a preset mark; Execute the process template to generate a process instance, and in the process of generating the process instance, record the operation log according to the preset record information, including: Execute the process template to generate a process instance ID of the current execution process; Get the number of loops and loop types of each process node in the current execution process; If it is the first loop type, a process node instance ID is generated for each loop of the process node, and the process node ID, the process node instance ID and the process instance ID are associated and recorded, and the same upstream process node ID and upstream process node instance ID of each loop of the process node are recorded in each loop; If it is the second loop type, a process node instance ID is generated for each loop of the process node, and the process node ID, process node instance ID and the process instance ID are associated and recorded, and the upstream process node ID and upstream process node instance ID triggered by all loops of the process node are recorded outside each loop; Among them, for the first loop type, the upstream node instance of each execution instance of process node B is a certain execution instance of process node A; For the second loop type, the first execution instance of process node B is a certain execution instance of process node A, and each subsequent loop execution instance of process node B is upstream of the previous loop execution instance of process node B.

2. The method according to claim 1, It is characterized in that After marking and displaying the operation log in the process template in the visualization canvas with a preset mark, the method further includes: In response to a viewing operation of a target process node running log, obtaining a target process node log; Identify the data content of each data item in the target process node log, and display the data content of each data item in a preset format.

3. The method according to claim 2, It is characterized in that The preset format also includes a backtracking button for each execution of the target process node; Accordingly, after displaying the data content of each data item in a preset format, the method further includes: In response to the triggering operation of the backtracking button, according to the process instance of the target process node currently running, the process template in the visualization canvas differentially displays the route of the target process node currently running.

4. The method according to claim 1, It is characterized in that After marking and displaying the operation log in the process template in the visualization canvas with a preset mark, the method further includes: In response to a viewing operation of a target sequence flow running log, obtaining a target sequence flow log according to a process node to which the target sequence flow is attached; The data content of each data item in the target sequential flow log is identified, and the data content of each data item is displayed according to a preset format.

5. The method according to claim 4, It is characterized in that The preset format also includes a backtracking button for each run of the target sequence flow; Accordingly, after displaying the data content of each data item in a preset format, the method further includes: In response to the triggering operation of the backtracking button, according to the process instance of the target sequence flow currently running, the process template in the visualization canvas displays the route of the target sequence flow currently running in a differentiated manner.

6. The method according to claim 1, It is characterized in that The operation log is marked and displayed in the process template in the visualization canvas with a preset mark, including: The operation log is marked and displayed in the preset position of each process node of the process template in the visualization canvas with a square mark; wherein at least two colors of the square mark are used to display the task running status of the process node; and the number in the square mark is used to display the number of cycles of the process node in the entire process instance.

7. A log viewing device for a process instance, It is characterized in that The device comprises: A process template acquisition module is used to acquire the design result of the process template in the visualization canvas; wherein the process template is composed of process nodes and sequential flows connecting the process nodes; A running log recording module is used to execute the process template, generate a process instance, and in the process of generating the process instance, record the running log according to the preset recording information; An operation log display module, used to mark and display the operation log in the process template in the visual canvas with a preset mark; Execute the process template to generate a process instance, and in the process of generating the process instance, record the operation log according to the preset record information, including: Execute the process template to generate a process instance ID of the current execution process; Get the number of loops and loop types of each process node in the current execution process; If it is the first loop type, a process node instance ID is generated for each loop of the process node, and the process node ID, the process node instance ID and the process instance ID are associated and recorded, and the same upstream process node ID and upstream process node instance ID of each loop of the process node are recorded in each loop; If it is the second loop type, a process node instance ID is generated for each loop of the process node, and the process node ID, process node instance ID and the process instance ID are associated and recorded, and the upstream process node ID and upstream process node instance ID triggered by all loops of the process node are recorded outside each loop; Among them, for the first loop type, the upstream node instance of each execution instance of process node B is a certain execution instance of process node A; For the second loop type, the first execution instance of process node B is a certain execution instance of process node A, and each subsequent loop execution instance of process node B is upstream of the previous loop execution instance of process node B.

8. A computer device, It is characterized in that The device comprises: one or more processors; and A memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to execute the log viewing method for a process instance as described in any one of claims 1 to 6.

9. A computer readable medium, It is characterized in that Computer program instructions are stored thereon, and the computer program instructions can be executed by a processor to implement a log viewing method for a process instance as described in any one of claims 1-6.