A method, system, device and storage medium for troubleshooting workflow exceptions
Patent Information
- Application Number
- CN202211517901.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2042-11-30
AI Technical Summary
在工作流系统中企业的业务流转经常会遇到分支流转错误、审批人分配错误等异常,需要由系统管理员进行人工排查和干预,人工排查步骤往往比较复杂,虽然业内部分系统已经提供了流程跟踪工具和可视化的展示流程轨迹图,但是流程跟踪工具只展示了流程经过的节点以及任务分配的对象,缺少分支条件计算依据和审批人计算过程,排查人员不能快速定位问题原因
[0014]本发明具有以下有益技术效果:将工作流异常情况进行结构化描述,通过可视化的跟踪工具还原工作流引擎执行过程,提高工作流程异常的排查效率,快速定位问题。
Smart Images

Figure CN115860649B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer applications, and more specifically, to a method, system, device, and storage medium for troubleshooting workflow anomalies. Background Technology
[0002] Workflow systems are computer software systems that support the efficient execution and monitoring of business processes. In workflow systems, business processes often encounter anomalies such as branch flow errors and incorrect approver assignments, requiring manual investigation and intervention by system administrators. Manual investigation is often complex. Although some systems in the industry provide process tracking tools and visual process trajectory diagrams, these tools only display the nodes the process has passed through and the objects to which tasks are assigned, lacking the basis for branch condition calculations and the approver calculation process. This prevents investigators from quickly locating the root cause of the problem. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a method, system, computer device, and computer-readable storage medium for troubleshooting workflow anomalies. This invention provides a structured description of workflow anomalies and uses a visual tracking tool to reconstruct the workflow engine execution process, thereby improving the efficiency of troubleshooting workflow anomalies and quickly locating problems.
[0004] To achieve the above objectives, one aspect of the present invention provides a method for troubleshooting workflow anomalies, comprising the following steps: providing a structured description of the abnormal situation of workflow operation to generate an anomaly report containing a process instance serial number; obtaining the workflow execution trajectory and flow log based on the process instance serial number; matching the workflow execution trajectory and flow log with the anomaly report, and locating the anomaly based on the matching result.
[0005] In some implementations, obtaining the workflow execution trajectory and flow log based on the process instance serial number includes: calling the relevant interfaces of the process engine based on the process instance serial number to obtain workflow definition data and workflow running data, and generating a visual process tracking interface to display the workflow execution trajectory and flow log.
[0006] In some implementations, the step of providing a structured description of workflow anomalies to generate an anomaly report containing a process instance serial number includes setting content in the anomaly report that includes the workflow's fault type, fault location, expected outcome, current status of the problem, and a link to a visual process tracking interface.
[0007] In some implementations, the method further includes: when an activity node is selected in the process trajectory diagram, obtaining a list of approver expressions and approver filtering rules based on the activity definition ID; obtaining the referenced variable values one by one based on the approver expressions; calling the approver calculation interface to calculate one by one and return a list of candidate users; calling the approver filtering rule calculation interface to exclude users who do not meet the conditions and marking the reasons.
[0008] In another aspect, this invention provides a system for troubleshooting workflow anomalies, comprising: a generation module configured to provide a structured description of workflow anomalies to generate an anomaly report containing a process instance serial number; an acquisition module configured to acquire the workflow execution trajectory and flow log based on the process instance serial number; and an execution module configured to match the workflow execution trajectory and flow log with the anomaly report, and locate the anomaly based on the matching result.
[0009] In some implementations, the acquisition module is configured to: call the relevant interfaces of the process engine based on the process instance serial number to obtain workflow definition data and workflow execution data, and generate a visual process tracking interface to display the workflow execution trajectory and flow log.
[0010] In some implementations, the generation module is configured to: set content in the anomaly report including the fault type of the workflow, the fault location, the expected effect, the current status of the problem, and a link to a visual workflow tracking interface.
[0011] In some implementations, the system further includes a calling module configured to: when an activity node is selected in the process trajectory diagram, obtain a list of approver expressions and approver filtering rules based on the activity definition ID; obtain the referenced variable values one by one based on the approver expressions; call the approver calculation interface to calculate one by one and return a list of candidate users; and call the approver filtering rule calculation interface to exclude users who do not meet the conditions and mark the reasons.
[0012] In another aspect of the present invention, a computer device is provided, comprising: at least one processor; and a memory storing computer instructions executable on the processor, the instructions, when executed by the processor, implementing the steps of the method described above.
[0013] In another aspect, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method steps.
[0014] The present invention has the following beneficial technical effects: it provides a structured description of workflow anomalies, and uses a visual tracking tool to reconstruct the workflow engine execution process, thereby improving the efficiency of troubleshooting workflow anomalies and quickly locating problems. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.
[0016] Figure 1 A schematic diagram illustrating an embodiment of the method for troubleshooting workflow anomalies provided by the present invention;
[0017] Figure 2 A schematic diagram of an embodiment of the system for troubleshooting workflow anomalies provided by the present invention;
[0018] Figure 3 A schematic diagram of the hardware structure of an embodiment of the computer device for troubleshooting workflow anomalies provided by the present invention;
[0019] Figure 4 This is a schematic diagram of an embodiment of a computer storage medium for troubleshooting workflow anomalies provided by the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.
[0021] It should be noted that all uses of "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities or parameters with the same name but different names. It is clear that "first" and "second" are only for the convenience of expression and should not be construed as limiting the embodiments of the present invention. Subsequent embodiments will not explain this in detail.
[0022] In a first aspect, an embodiment of a method for troubleshooting workflow anomalies is proposed. Figure 1 The diagram shown is an embodiment of the method for troubleshooting workflow anomalies provided by the present invention. Figure 1 As shown, the embodiments of the present invention include the following steps:
[0023] S1. Describe the abnormal situations in workflow operation in a structured way to generate an exception report containing the process instance serial number.
[0024] S2. Obtain the workflow execution trajectory and workflow log based on the process instance serial number; and
[0025] S3. Match the workflow execution trajectory and flow log with the anomaly report, and locate the anomaly based on the matching result.
[0026] The system provides a structured description of any abnormal situations encountered during workflow execution, generating an exception report containing the workflow instance serial number, which is then sent to the workflow administrator. The workflow instance serial number is a unique identifier for the workflow. When the system or workflow participants detect an abnormality in workflow operation, the system automatically or manually generates an exception report and sends it to the workflow administrator.
[0027] In some implementations, the structured description of workflow anomalies to generate an anomaly report containing a process instance serial number includes: setting content in the anomaly report that includes the workflow's fault type, fault location, expected outcome, current status of the problem, and a link to a visual workflow tracking interface. Fault types can be categorized as branch flow errors, approver assignment errors, and other faults.
[0028] In some implementations, obtaining the workflow execution trajectory and flow log based on the process instance serial number includes: calling the relevant interfaces of the process engine based on the process instance serial number to obtain workflow definition data and workflow running data, and generating a visual process tracking interface to display the workflow execution trajectory and flow log.
[0029] Different background colors or diagram lines are used to represent executed, running, and unreached workflow nodes and branches. Based on the fault location in the anomaly report and its match with the flowchart, the matching workflow elements (branch lines or active nodes) are highlighted. Selecting a branch line retrieves the branch condition expression, reference variable value, and branch condition calculation result based on the branch line ID.
[0030] In some implementations, the method further includes: when an activity node is selected in the process trajectory diagram, obtaining a list of approver expressions and approver filtering rules based on the activity definition ID; obtaining the referenced variable values one by one based on the approver expressions; calling the approver calculation interface to calculate one by one and return a list of candidate users; calling the approver filtering rule calculation interface to exclude users who do not meet the conditions and marking the reasons.
[0031] This invention provides a structured description of workflow anomalies, generating an anomaly report containing the workflow instance serial number, which is then sent to the workflow administrator. Based on the workflow instance serial number, a graphical and visual workflow tracking interface displays the workflow execution trajectory and flow logs, reconstructing the calculation process for branch conditions and approver ranges. This invention provides a structured description of workflow anomalies and uses a visual tracking tool to reconstruct the workflow engine execution process, improving the efficiency of troubleshooting workflow anomalies and quickly locating problems.
[0032] It should be noted that the steps in each embodiment of the above-mentioned method for troubleshooting workflow anomalies can be interchanged, substituted, added, or deleted. Therefore, these reasonable permutations and combinations of the method for troubleshooting workflow anomalies should also fall within the protection scope of this invention, and the protection scope of this invention should not be limited to the embodiments.
[0033] Based on the above objectives, a second aspect of this invention proposes a system for troubleshooting workflow anomalies. For example... Figure 2 As shown, system 200 includes the following modules: a generation module, configured to provide a structured description of abnormal situations in workflow operation to generate an exception report containing a process instance serial number; an acquisition module, configured to acquire the workflow execution trajectory and flow log based on the process instance serial number; and an execution module, configured to match the workflow execution trajectory and flow log with the exception report, and locate the exception based on the matching result.
[0034] In some implementations, the acquisition module is configured to: call the relevant interfaces of the process engine based on the process instance serial number to obtain workflow definition data and workflow execution data, and generate a visual process tracking interface to display the workflow execution trajectory and flow log.
[0035] In some implementations, the generation module is configured to: set content in the anomaly report including the fault type of the workflow, the fault location, the expected effect, the current status of the problem, and a link to a visual workflow tracking interface.
[0036] In some implementations, the system further includes a calling module configured to: when an activity node is selected in the process trajectory diagram, obtain a list of approver expressions and approver filtering rules based on the activity definition ID; obtain the referenced variable values one by one based on the approver expressions; call the approver calculation interface to calculate one by one and return a list of candidate users; and call the approver filtering rule calculation interface to exclude users who do not meet the conditions and mark the reasons.
[0037] Based on the above objectives, a third aspect of the present invention provides a computer device, comprising: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executed by the processor to perform the following steps: S1, providing a structured description of abnormal situations in workflow operation to generate an anomaly report containing a process instance serial number; S2, obtaining a workflow execution trajectory and flow log based on the process instance serial number; and S3, matching the workflow execution trajectory and flow log with the anomaly report, and locating the anomaly based on the matching result.
[0038] In some implementations, obtaining the workflow execution trajectory and flow log based on the process instance serial number includes: calling the relevant interfaces of the process engine based on the process instance serial number to obtain workflow definition data and workflow running data, and generating a visual process tracking interface to display the workflow execution trajectory and flow log.
[0039] In some implementations, the step of providing a structured description of workflow anomalies to generate an anomaly report containing a process instance serial number includes setting content in the anomaly report that includes the workflow's fault type, fault location, expected outcome, current status of the problem, and a link to a visual process tracking interface.
[0040] In some implementations, the steps further include: when an activity node is selected in the process flow diagram, obtaining a list of approver expressions and approver filtering rules based on the activity definition ID; obtaining the referenced variable values one by one based on the approver expressions; calling the approver calculation interface to calculate one by one and return a list of candidate users; calling the approver filtering rule calculation interface to exclude users who do not meet the conditions and marking the reasons.
[0041] like Figure 3 The diagram shown is a hardware structure schematic of an embodiment of the computer device for troubleshooting workflow anomalies provided by the present invention.
[0042] For example Figure 3 Taking the device shown as an example, the device includes a processor 301 and a memory 302.
[0043] Processor 301 and memory 302 can be connected via a bus or other means. Figure 3 Taking the example of a connection between China and Israel via a bus.
[0044] The memory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the method for troubleshooting workflow anomalies in this embodiment. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 302, thereby implementing the method for troubleshooting workflow anomalies.
[0045] Memory 302 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of methods for troubleshooting workflow anomalies. Furthermore, memory 302 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 302 may optionally include memory remotely located relative to processor 301, and these remote memories can be connected to the local module via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0046] One or more methods for troubleshooting workflow anomalies are stored in memory 302. When executed by processor 301, the method for troubleshooting workflow anomalies in any of the above method embodiments is executed.
[0047] Any embodiment of the computer device that performs the above-described method for troubleshooting workflow anomalies can achieve the same or similar effects as any of the aforementioned method embodiments.
[0048] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs a method for troubleshooting workflow anomalies.
[0049] like Figure 4 The diagram shown is a schematic representation of an embodiment of the computer storage medium for troubleshooting workflow anomalies provided by the present invention. Figure 4 Taking the computer storage medium shown as an example, the computer-readable storage medium 401 stores a computer program 402 that, when executed by a processor, performs the above method.
[0050] Finally, it should be noted that those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program for troubleshooting workflow anomalies can be stored in a computer-readable storage medium. When executed, the program can include the processes of the embodiments of the above methods. The storage medium for the program can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc. The above computer program embodiments can achieve the same or similar effects as any of the corresponding foregoing method embodiments.
[0051] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.
[0052] It should be understood that, as used herein, the singular form “a” is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, “and / or” refers to any and all possible combinations of one or more of the associated listed items.
[0053] The embodiment numbers disclosed in the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0054] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0055] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.
Claims
1. A method for troubleshooting workflow anomalies, characterized in that, Includes the following steps: Structured descriptions of workflow operation anomalies are generated to produce anomaly reports that include process instance serial numbers. Obtain the workflow execution trajectory and flow log based on the process instance serial number; The workflow execution trajectory and flow log are matched with the anomaly report, and the anomaly is located based on the matching results; The step of obtaining the workflow execution trajectory and flow log based on the process instance serial number includes: Based on the process instance serial number, call the relevant interfaces of the process engine to obtain workflow definition data and workflow execution data, and generate a visual process tracking interface to display the workflow execution trajectory and flow log; The process of providing a structured description of workflow anomalies to generate an anomaly report containing the process instance serial number includes: The anomaly report should include information such as the fault type, fault location, expected outcome, current status of the problem, and a link to a visual process tracking interface. Specifically, based on the fault location in the anomaly report and the matching flowchart, the matching process element is highlighted; when a branch line is selected, the branch condition expression, reference variable value, and branch condition calculation result are obtained based on the branch line ID. In the process flow diagram, when an activity node is selected, the list of approver expressions and approver filtering rules are obtained based on the activity definition ID; Retrieve the referenced variable values one by one based on the approver's expression; Call the approver calculation interface to calculate and return a list of candidate users one by one; Call the approver filtering rule calculation interface to exclude users who do not meet the conditions and mark the reasons.
2. A system for troubleshooting workflow anomalies, characterized in that, include: The generation module is configured to provide a structured description of any abnormal situations that occur during workflow execution in order to generate an exception report that includes the process instance serial number. The generation module is configured to: set the content in the anomaly report, including the fault type of the workflow, the fault location, the expected effect, the current status of the problem, and a link to the visual workflow tracking interface; The acquisition module is configured to acquire the workflow execution trajectory and flow log based on the process instance serial number; the acquisition module is configured to: call the relevant interfaces of the process engine based on the process instance serial number to acquire workflow definition data and workflow running data, and generate a visual process tracking interface to display the workflow execution trajectory and flow log; The execution module is configured to match the workflow execution trajectory and flow log with the anomaly report, and locate the anomaly based on the matching result; Specifically, based on the fault location in the anomaly report and the matching flowchart, the matching process element is highlighted; when a branch line is selected, the branch condition expression, reference variable value, and branch condition calculation result are obtained based on the branch line ID. Calling the module, configured for: In the process flow diagram, when an activity node is selected, the list of approver expressions and approver filtering rules are obtained based on the activity definition ID; Retrieve the referenced variable values one by one based on the approver's expression; Call the approver calculation interface to calculate and return a list of candidate users one by one; Call the approver filtering rule calculation interface to exclude users who do not meet the conditions and mark the reasons.
3. A computer device, characterized in that, include: At least one processor; as well as A memory storing computer instructions executable on the processor, which, when executed by the processor, implement the steps of the method of claim 1.
4. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method of claim 1.
Citation Information
Patent Citations
Workflow exception handing method and system
CN102043682A
Method and device for analyzing workflow execution path
CN107783879A
Business abnormal node positioning method and device, computer equipment and storage medium
CN109800098A
Visual debugging method and device for workflow designer
CN112015656A
Flow exception processing method based on trigger operation record and storage medium
CN114296983A
