Flow chart display method and device
By obtaining user role information, determining and displaying the flowchart nodes and their relationships corresponding to the operation role, the problem of low user operation efficiency in complex flowcharts is solved, and more efficient node operation and flowchart display are achieved.
Patent Information
- Application Number
- PCT/SG2024/050793
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-18
- Filing Date
- 2024-12-13
- Publication Date
- 2025-10-02
AI Technical Summary
In the prior art, the display method of complex flow charts does not make it easy for users to quickly find and operate related nodes, resulting in low user operation efficiency.
By obtaining user role information, the nodes to be operated corresponding to the operating role and their dependent operated nodes are determined, and only these nodes and their relationships are displayed. The nodes to be operated and operated nodes are marked separately, and a node switching operation is provided to switch the display of all nodes. Flexible display is performed based on the complexity of the flowchart.
It improves the user's operating efficiency in complex flowcharts, makes it easier for users to quickly find and operate related nodes, and improves the display effect and user experience of flowcharts.
Smart Images

Figure SG2024050793_02102025_PF_FP_ABST
Abstract
Description
[0001] Flowchart Display Method and Device This application claims priority to Chinese Patent Application No. 202311745254.1, filed on December 18, 2023. The disclosure of the aforementioned Chinese patent application is hereby incorporated by reference in its entirety as a part of this application. Technical Field: Embodiments of the present disclosure relate to a flowchart display method and device. Background: A flowchart is used to represent the operations required to complete a business process. Each node in a flowchart represents an operation node, and each operation node is used to complete an operation in the business process. Different operation nodes can be performed by different users. Different flowcharts are designed for different business processes. When a user logs in, they can select the corresponding flowchart based on the business to display all nodes in the flowchart, allowing the user to view the complete processing flow of the business. However, the above solution has the problem of inconvenient user operation. SUMMARY: Embodiments of the present disclosure provide a flowchart display method and device that can improve the verification accuracy of image acquisition devices. In a first aspect, embodiments of the present disclosure provide a flowchart display method, comprising: obtaining user role information; if the user role information corresponds to an operating role, determining target nodes corresponding to the user role information from a target flowchart, as well as relationships between the target nodes, wherein the target nodes include nodes to be operated corresponding to the operating role and already operated nodes on which the target nodes depend, and the operating role includes a role for performing node operations; and displaying the target nodes and relationships between the target nodes in the target flowchart. In a second aspect, embodiments of the present disclosure provide a flowchart display device, comprising: a role acquisition module for obtaining user role information; a target node acquisition module for determining target nodes corresponding to the user role information from a target flowchart, as well as relationships between the target nodes, wherein the target nodes include nodes to be operated corresponding to the operating role and already operated nodes on which the target nodes depend, and the operating role includes a role for performing node operations; and a flowchart display module for displaying the target nodes and relationships between the target nodes in the target flowchart. In a third aspect, embodiments of the present disclosure provide an electronic device, comprising: at least one processor and a memory; the memory storing computer-executable instructions; and the at least one processor executing the computer-executable instructions stored in the memory, causing the electronic device to implement the method described in the first aspect. In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions. When the processor executes the computer-executable instructions, the computing device implements the method described in the first aspect.In a fifth aspect, embodiments of the present disclosure provide a computer program for implementing the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below represent some embodiments of the present disclosure. Those skilled in the art can derive other drawings based on these drawings without inventive effort. FIG1 is a schematic diagram of the structure of a flowchart provided by an embodiment of the present disclosure; FIG2 is a flowchart of the steps of a flowchart display method provided by an embodiment of the present disclosure; FIG3 is a schematic diagram of displaying a target node provided by an embodiment of the present disclosure; FIG4 is a schematic diagram of displaying a simple flowchart provided by an embodiment of the present disclosure; FIG5 is a flowchart of the steps of another flowchart display method provided by an embodiment of the present disclosure; FIG6 is a block diagram of the structure of a flowchart display device provided by an embodiment of the present disclosure; and FIG7 is a block diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION To further clarify the objectives, technical solutions, and advantages of the embodiments of the present disclosure, the technical solutions of the embodiments of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without inventive effort shall fall within the scope of protection of the present disclosure. The embodiments of the present disclosure are used to display a target flowchart to assist users in managing the target flowchart and performing node operations. The target flowchart here is any flowchart to be displayed, and the flowchart is flexibly customized according to the business scenario. The flowchart includes multiple interdependent nodes, each of which performs an operation. The flowchart of the embodiment of the present disclosure is executed collaboratively by multiple people. That is, all nodes in the flowchart are executed by at least two operators, with different nodes corresponding to different operators. Figure 1 is a schematic diagram of the structure of a flowchart provided by an embodiment of the present disclosure. As shown in Figure 1, the flowchart includes six nodes A1 to A6. According to the flowchart shown in Figure 1, the operation of node A1 is executed first, followed by the operation of node A2. Then, after the operation of node A2 is executed, two branch paths, B1 and B2, exist. These two branch paths can be executed in parallel. For branch path B1, the operation corresponding to node A3 is executed first, followed by the operation corresponding to node A4.For branch path B2, the operation corresponding to node A5 is executed first, followed by the operation corresponding to node A6. As can be seen from Figure 1 above, a flowchart may include one or more nodes, and the nodes have a sequential execution time. When the user or administrator who is executing a node logs in, the flowchart needs to be displayed to them. For example, when displaying a flowchart, all nodes are typically displayed to the user. This display strategy does not present a major problem for simple flowcharts, but for complex flowcharts, it is difficult for users to quickly find the node they want to operate or view. Therefore, it is inconvenient for users to operate. To address the above technical issues, the embodiment of the present disclosure displays the flowchart based on user role information. When the user role information indicates that the user is an operating role, the target node is displayed. The target node includes the node to be operated corresponding to the operating role and the operated nodes that the node to be operated depends on. It is understandable that the target node is not all nodes in the target flowchart and the relationships between all nodes, but rather the nodes that the operating role is interested in. This allows users to quickly find the node to be operated and perform the operation with the help of the dependent operated nodes. The following detailed description uses specific embodiments to explain the technical solutions of the embodiments of the present disclosure and how they solve the aforementioned technical problems. The following specific embodiments may be combined with one another, and identical or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure are described below with reference to the accompanying drawings. Figure 2 is a flowchart of the steps of a flowchart display method provided by an embodiment of the present disclosure. Referring to Figure 2, the flowchart display method includes:
[0002] S201: Obtaining user role information. User role information indicates the user role, and a common representation of user role information is a user role identifier. When a user logs into the system, the user role identifier can be determined based on the user identifier. The user role identifier corresponding to the user identifier is set during user registration. In the disclosed embodiment, user roles are divided into two categories: management roles and operation roles. Management roles are used to globally manage the target flowchart, while operation roles are used to operate corresponding nodes in the target flowchart. In the disclosed embodiment, there can be one or more operation roles, and different operation roles can operate on different nodes. The disclosed embodiment can determine the corresponding user role based on the user role information to implement different flowchart display strategies based on different user roles. The flowchart display strategies of the disclosed embodiment are set based on the different roles. For example, for management roles, to facilitate global management of the target flowchart, all nodes of the target flowchart and the relationships between these nodes can be displayed. For another example, for operation roles, to facilitate quick operation of the nodes they need to operate, the nodes to be operated corresponding to the operation role and the operated nodes that are dependent on the operation can be displayed.
[0003] S202: If the user role information corresponds to an operating role, the target node corresponding to the user role information and the relationship between the target nodes are determined from the target flowchart. The target nodes include the node to be operated corresponding to the operating role and the operated nodes that the node to be operated depends on. The operating role includes the role used to perform the node operation. The node to be operated is the node to be processed by the operating role corresponding to the user role information. Different operating roles correspond to different nodes to be operated. When the node to be operated is the first node in the target flowchart, the node to be operated has no dependent operated nodes. However, when the node to be operated is a node after the first node in the target flowchart, the node to be operated has dependent operated nodes. It should be noted that the operated node here can be a node already operated by the operating role or by other operating roles. There can be one or more operated nodes. When determining the target node, the target flowchart information stored for the target flowchart is first obtained. This information includes information about each node in the target flowchart and information about the relationships between nodes. Each node information includes the corresponding operating role and information indicating whether the node has been operated. Then, based on the target flowchart information, the target flowchart information can be used to obtain the nodes to be operated and the dependent operated nodes for the operating role corresponding to the user role information. A node to be operated is one in which the operating role in the node information is the same as the operating role corresponding to the user role information, and the node information indicates that it has not been operated. An operated node is one that is associated with the target flowchart, is located before the target flowchart, and the node information indicates that it has been operated. For example, after determining the corresponding operating role based on the user role information, the target flowchart shown in FIG3 determines that the nodes to be operated by the operating role are A3 and A4, and both nodes A3 and A4 are unoperated nodes. Therefore, node A3, which requires the earliest operation, can be used as the target flowchart node for the operating role. In some embodiments, the target flowchart node can be determined based on the continuity between the unoperated nodes corresponding to the operating role. Specifically, when an operating role corresponds to multiple unoperated nodes, if these unoperated nodes are continuous and there are no nodes corresponding to other operating roles in between, then all of these operating nodes can be used as nodes to be operated. If these unoperated nodes are not continuous, that is, there are nodes corresponding to other operating roles in between, then the node before the other operating role among these unoperated nodes can be used as the node to be operated.For example, if the unoperated nodes of an operator C1 are A1 and A3, since there is a node A2 of another operator C2 between these two unoperated nodes A1 and A3, the node to be operated for operator C1 is A1. For another example, if the unoperated nodes of an operator C3 are A5 and A6, since there are no nodes of other operator C2 between these two unoperated nodes A5 and A6, the unoperated nodes A5 and A5 can be used as the nodes to be operated for operator C3. As can be seen from the above process, the embodiments of the present disclosure can use consecutive unoperated nodes corresponding to the same operator as the nodes to be operated for that operator. This facilitates the operator to operate multiple nodes at once, further improving node operation efficiency. In actual applications, there can be one or more nodes to be operated, and the earliest one or more nodes to be operated by the operator can be displayed. S203: Display the target nodes in the target flow chart and the relationships between the target nodes. Based on the target nodes determined in S202, the display process in S203 achieves a partial display of the target flow chart. Compared to displaying all nodes in the target flowchart, partial display can save display space and display fewer nodes. The displayed target nodes include the user's pending nodes, making it easier for the user to quickly find the pending nodes. Furthermore, the user can also use the previously operated nodes as a guide for operations, which can speed up operations and improve operational efficiency. It should be understood that the pending nodes are typically the last one or more nodes, while the nodes closer to the front are the operated nodes. Figure 3 is a schematic diagram of a target node display according to an embodiment of the present disclosure. Figure 3 is an example of displaying target nodes based on the target flowchart shown in Figure 1. As shown in Figure 3, the target flowchart includes nodes A1 to A6. Nodes A3 and A4 belong to branch path B1, and nodes A5 and A6 belong to branch path B2. Branch paths B1 and B2 are two independent branch paths that do not affect each other. If the pending node for the operating role corresponding to the user role information is A3, the operated nodes on which the pending node A3 depends are nodes A1 and A2. Thus, only nodes A1, A2, and A3 in the target flow chart are displayed, and the remaining nodes A4, A5, and A6 enclosed by dashed circles are not displayed. It is understandable that nodes A1 and A2 in FIG3 may be nodes operated by other user roles.As can be seen, the content displayed in S203 is determined by S202. When determining the target node, S202 not only needs to determine whether the user role information corresponds to an operating role, but also whether the target flowchart is a complex flowchart. If the user role information corresponds to an operating role and the target flowchart is a complex flowchart, the target node corresponding to the operating role is obtained. Otherwise, even if the user role information corresponds to an operating role and the target flowchart is a simple flowchart, all nodes in the target flowchart and the relationships between them can still be displayed. Specifically, the above logic can be implemented through the following process: If the user role information corresponds to an operating role and the target flowchart meets the preset conditions, the target node corresponding to the user role information is determined from the target flowchart and the target node and its relationships are displayed. If the user role information corresponds to a role other than an operating role and / or the target flowchart does not meet the preset conditions, all nodes in the target flowchart are determined and the relationships between them are displayed. As can be seen, the above-mentioned preset conditions are used to determine whether the target flowchart is a complex flowchart. If the target flowchart meets the preset conditions, the target flowchart is determined to be complex. If the target flowchart does not meet the preset conditions, the target flowchart is determined to be non-complex. The preset conditions include at least one of the following: the number of branch paths in the target flowchart is greater than or equal to a first threshold, the number of nodes in the target flowchart is greater than or equal to a second threshold, or the length of the branch paths in the target flowchart is greater than or equal to a third threshold. As can be seen from the above process, embodiments of the present disclosure can determine whether a target flowchart is complex based on three dimensions: the number of branch paths, the number of nodes, and the length of the branch paths. In this way, user role information and whether the target flowchart is complex can be combined to implement flexible display strategies. Based on the above-mentioned preset conditions, a target flowchart without branch paths can be treated as a simple flowchart, displaying all nodes and the relationships between them. Figure 4 is a schematic diagram of displaying a simple flowchart provided by embodiments of the present disclosure. As shown in FIG4 , the target flowchart includes nodes A1 through A4 and has no branch paths, meaning the number of branch paths is zero. Therefore, the target flowchart can be treated as a simple flowchart, displaying all nodes A1 through A4 and the relationships between them when any user role logs in. In an extreme case, the target flowchart contains only one node; therefore, when the target flowchart is displayed, that node is also displayed. In this case, all detailed information about the node can be directly displayed, without the concept of a flowchart.When displaying the target nodes, to further facilitate users in quickly and accurately locating the nodes to be operated, nodes to be operated on and already operated nodes can be distinguished by marking them. Specifically, nodes to be operated on and already operated nodes can be distinguished by color, size, auxiliary markings, etc., making the nodes to be operated on more prominent than already operated nodes. For example, already operated nodes can be displayed enlarged, displayed in a striking color, or marked with a bold line. As shown in FIG3 , node A3 to be operated on is highlighted at a larger size, while already operated nodes A1 and A2 are displayed at a smaller size, allowing users to quickly locate node A3 to be operated on from the display shown in FIG3 . In some embodiments, role prompt information can also be displayed around the node to be operated on to indicate the user role information corresponding to the node. For example, the role prompt information can be an avatar or name of the operating role. As shown in FIG3 , the role prompt information is displayed as an image next to node A3 to prompt the user role corresponding to the image to operate the node to be operated on. In some implementations, the operator role defaults to displaying the target node through S202 and S203 above, but can switch to displaying all nodes based on user operations. Specifically, a display switching operation triggered by the operator role is first received. In response to the display switching operation, the display switches between the target node and all nodes in the target flowchart. This allows the operator role to be provided with multiple display modes, enriching the display of the target flowchart. The display switching operation can be any operation on the display interface, such as clicking an operating control on the display interface, sliding on the display interface, or pressing a physical button on an electronic device. The user can continuously perform display switching operations to repeatedly switch between the target node and all nodes in the target flowchart. For example, when the user performs a display switching operation once, switching from the target node to all nodes is equivalent to expanding the target flowchart; when the user performs a second display switching operation, switching from all nodes to the target node is equivalent to collapsing the target flowchart. This display switching continues repeatedly. As can be seen from the foregoing description, S202 and S203 are used to display the target nodes corresponding to the operating role and the relationships between them when the user role information corresponds to the operating role. When the user role information corresponds to the management role, all nodes in the target flowchart and the relationships between them are displayed, that is, the entire target flowchart is displayed.As shown in Figure 1 , when the user role information corresponds to a management role, all nodes A1 to A6 in the target flowchart, as well as the relationships between them, can be displayed to facilitate the management role's global management of the target flowchart. To enhance the display quality of the target flowchart, when displaying the target node or all nodes in the target flowchart, the corresponding operating role information can be displayed around each node. The operating role information can be displayed in at least one of the following ways: an image or text. The all nodes displayed here can be all nodes displayed when the operating role performs the display switching operation, all nodes displayed for the management role, or all nodes displayed for a simple flowchart. The method for displaying the operating role information here can refer to the display effect for the pending node A3 in Figure 3 . Unlike Figure 3 , the operating role information is displayed for each node here. Furthermore, when displaying all nodes in the target flowchart, the nodes that have been operated on and those that have not been operated on can be marked. This allows the management role to better understand the progress of the target flowchart and facilitate decision-making and management. In other embodiments, to further enhance the display quality of the target flowchart, the processing stage to which each node belongs can be displayed when displaying all nodes in the target flowchart. The target flowchart is divided into at least one processing stage, each of which includes at least one node. As shown in Figure 3, branch paths B1 and B2 serve as two processing stages of the target flowchart. In addition, there is a processing stage B3. Nodes A1 and A2 belong to processing stage B3, nodes A3 and A4 belong to processing stage B1, and nodes A5 and A6 belong to processing stage B2. By labeling processing stages, the disclosed embodiments can help management roles better manage the target flowchart and assist operators in analyzing the processing stage to which their operations belong. In some optional implementations, processing stage information may also be displayed for each processing stage. The processing stage information includes at least one of the following: the number of nodes included in the processing stage, the number of unoperated nodes included in the processing stage, the number of operated nodes included in the processing stage, the operator roles corresponding to the operated nodes included in the processing stage, the operator roles corresponding to the unoperated nodes included in the processing stage, the percentage of unoperated nodes included in the processing stage, and the percentage of operated nodes included in the processing stage. Furthermore, the unoperated node that requires the first operation in each processing stage and the corresponding operator role may be marked to facilitate the management role in notifying the operator role to perform operations on the corresponding node.To facilitate notifications from the management role to the operating role, a notification control can be displayed. When the management role operates the notification control, the corresponding operating role can be notified to perform an operation. Optionally, after operating the notification control, unoperated nodes can be displayed, allowing the management role to select nodes to notify the corresponding operating role. Of course, a one-click select-all function can also be provided, allowing the management role to notify the operating roles corresponding to all unoperated nodes at once. In summary, the disclosed embodiments can flexibly display the target flowchart based on user role information and the complexity of the target flowchart. When the user role information corresponds to the operating role, the target flowchart is displayed based on its complexity. Whenever possible, all nodes are displayed when the target flowchart has low complexity, while only a portion of the target nodes are displayed when the target flowchart has high complexity, to facilitate operation by the operating role. When the user role information corresponds to the management role, all nodes of the target flowchart are displayed, facilitating global management by the management role. Furthermore, when displaying the target flowchart, nodes to be operated on and nodes already operated on can be distinguished, and the corresponding user role information and processing stage of each node are displayed. This helps to further improve the display effect of the target flowchart. FIG5 is a flowchart of the steps of another flowchart display method provided by an embodiment of the present disclosure. Referring to FIG5, the flowchart display method may include:
[0004] S301: Obtain user role information. After executing S301, execute S302 to S305, or execute S306 to display the target flowchart under two types of user role information.
[0005] S302: If the user role information corresponds to an operating role and the target flowchart meets preset conditions, target nodes corresponding to the user role information and the relationships between the target nodes are determined from the target flowchart. The target nodes include the to-be-operated nodes corresponding to the operating role and the operated nodes on which the to-be-operated nodes depend. The operating role includes the role used to perform node operations. The preset conditions include at least one of the following: the number of branch paths in the target flowchart is greater than or equal to a first threshold, the number of nodes in the target flowchart is greater than or equal to a second threshold, or the length of the branch paths in the target flowchart is greater than or equal to a third threshold.
[0006] S303: Display the target nodes and the relationships between the target nodes, and distinguish between the nodes to be operated and the nodes that have been operated.
[0007] S304: Receive a display switching operation triggered by an operating role.
[0008] S305: In response to the display switching operation, switching display is performed between the target node and all nodes in the target flowchart.
[0009] S306: If the user role information corresponds to the management role, all nodes in the target flow chart and the relationship between all nodes are displayed. After executing S302 to S305, or after executing S306, execute S307 and S308.
[0010] S307: When displaying the target node or all nodes in the target flow chart, the operation role information corresponding to the node is displayed around each node, and the operation role information is displayed in at least one of the following ways: image, text.
[0011] S308: When displaying all nodes in the target flowchart, the processing stage to which each node belongs is displayed in the target flowchart. The target flowchart is divided into at least one processing stage, and each processing stage includes at least one node. It should be noted that the steps shown in FIG. 5 can be flexibly adjusted in sequence independently of each other. Furthermore, the flowchart display method described above can refer to the flowchart display method described in FIG. 2 , and will not be further elaborated here. Corresponding to the flowchart display method described in the above embodiment, FIG. 6 is a block diagram of a flowchart display device provided in an embodiment of the present disclosure. The image acquisition device is provided with a hardware abstraction layer, which includes a user driver and a kernel driver. For ease of illustration, only the portions relevant to the embodiment of the present disclosure are shown. Referring to FIG. 6 , the flowchart display device 400 includes a role acquisition module 401 for acquiring user role information. The target node acquisition module 402 is configured to, if the user role information corresponds to an operating role, determine the target node corresponding to the user role information and the relationship between the target nodes from the target flowchart. The target node includes the node to be operated corresponding to the operating role and the operated nodes on which the node to be operated depends. The operating role includes the role used to perform the node operation. The flowchart display module 403 is configured to display the target node and the relationship between the target nodes in the target flowchart. Optionally, the target node acquisition module 402 is further configured to, if the user role information corresponds to the operating role and the target flowchart meets a preset condition, determine the target node corresponding to the user role information from the target flowchart. The preset condition includes at least one of the following: the number of branch paths in the target flowchart is greater than or equal to a first threshold, the number of nodes in the target flowchart is greater than or equal to a second threshold, or the length of the branch paths in the target flowchart is greater than or equal to a third threshold. Optionally, the flowchart display module 403 is further configured to, when displaying the target nodes, distinguish between the node to be operated and the operated node. Optionally, the apparatus further includes: a switching operation receiving module configured to receive a display switching operation triggered by the operating role; a switching display module configured to switch the display between the target node and all nodes in the target flowchart in response to the display switching operation. Optionally, the apparatus further includes: a global display module configured to display all nodes and the relationships between all nodes in the target flowchart if the user role information corresponds to a management role.Optionally, the apparatus further includes: an operation role prompt module, configured to display operation role information corresponding to the target node or all nodes in the target flowchart around each node when displaying the target node or all nodes in the target flowchart. The operation role information is displayed in at least one of the following ways: an image or text. Optionally, the apparatus further includes: a processing stage annotation module, configured to display the processing stage to which each node belongs in the target flowchart when displaying all nodes in the target flowchart. The target flowchart is divided into at least one processing stage, and each processing stage includes at least one node. The flowchart display device provided in this embodiment can be used to implement the technical solution of the flowchart display method embodiment described above. Its implementation principles and technical effects are similar and will not be further described in this embodiment. Figure 7 is a block diagram of an electronic device provided in an embodiment of the present disclosure. The electronic device 600 includes a memory 602 and at least one processor 601. The memory 602 stores computer-executable instructions. The at least one processor 601 executes the computer-executable instructions stored in the memory 602, causing the electronic device 600 to implement the flowchart display method described above. In addition, the electronic device may further include a receiver 603 and a transmitter 604. The receiver 603 is configured to receive information from other devices or equipment and forward it to the processor 601, and the transmitter 604 is configured to transmit the information to the other devices or equipment. In a first example of the first aspect, an embodiment of the present disclosure provides a flowchart display method, the method comprising: obtaining user role information; if the user role information corresponds to an operation role, determining, from a target flowchart, target nodes corresponding to the user role information, and relationships between the target nodes, the target nodes including to-be-operated nodes corresponding to the operation role and operated nodes on which the to-be-operated nodes depend, the operation role including a role for performing node operations; and displaying the target nodes and the relationships between the target nodes in the target flowchart. Based on the first example of the first aspect, in the second example of the first aspect, if the user role information corresponds to the operation role, determining the target node corresponding to the user role information from the target flowchart includes: if the user role information corresponds to the operation role and the target flowchart meets a preset condition, determining the target node corresponding to the user role information from the target flowchart, the preset condition includes at least one of the following: the number of branch paths existing in the target flowchart is greater than or equal to a first threshold, the number of nodes included in the target flowchart is greater than or equal to a second threshold, and the length of the branch paths included in the target flowchart is greater than or equal to a third threshold.Based on the first example of the first aspect, in a third example of the first aspect, displaying the target node in the target flowchart includes: when displaying the target node, distinguishing between the node to be operated and the node that has been operated. Based on the first example of the first aspect, in a fourth example of the first aspect, the method further includes: receiving a display switching operation triggered by the operation role; and in response to the display switching operation, switching the display between the target node and all nodes in the target flowchart. Based on the first example of the first aspect, in a fifth example of the first aspect, the method further includes: if the user role information corresponds to a management role, displaying all nodes and the relationships between all nodes in the target flowchart. Based on the first to fifth examples of the first aspect, in a sixth example of the first aspect, the method further includes: when displaying the target node or all nodes in the target flowchart, displaying the operation role information corresponding to the node around each node, wherein the operation role information is displayed in at least one of the following ways: an image or text. Based on the first to fifth examples of the first aspect, in the seventh example of the first aspect, the method further includes: when displaying all nodes of the target flowchart, displaying the processing stage to which each node belongs in the target flowchart, wherein the target flowchart is divided into at least one processing stage, and each processing stage includes at least one node. In the first example of the second aspect, a flowchart display device is provided, comprising: a role acquisition module for acquiring user role information; a target node acquisition module for determining, if the user role information corresponds to an operating role, the target node corresponding to the user role information from the target flowchart, and the relationship between the target nodes, wherein the target node includes the to-be-operated node corresponding to the operating role and the operated nodes on which the to-be-operated node depends, and the operating role includes the role used to perform node operations; and a flowchart display module for displaying the target nodes in the target flowchart and the relationship between the target nodes. Based on the first example of the second aspect, in the second example of the second aspect, the target node acquisition module is further used to: if the user role information corresponds to the operation role and the target flowchart satisfies a preset condition, then determine the target node corresponding to the user role information from the target flowchart, and the preset condition includes at least one of the following: the number of branch paths existing in the target flowchart is greater than or equal to a first threshold, the number of nodes included in the target flowchart is greater than or equal to a second threshold, and the length of the branch paths included in the target flowchart is greater than or equal to a third threshold.Based on the first example of the second aspect, in the third example of the second aspect, the flowchart display module is further configured to: when displaying the target node, distinguish between the node to be operated and the node already operated. Based on the first example of the second aspect, in the fourth example of the second aspect, the apparatus further includes: a switching operation receiving module configured to receive a display switching operation triggered by the operating role; and a switching display module configured to switch the display between the target node and all nodes in the target flowchart in response to the display switching operation. Based on the first example of the second aspect, in the fifth example of the second aspect, the apparatus further includes: a global display module configured to display all nodes and the relationships between all nodes in the target flowchart if the user role information corresponds to a management role. Based on the first to fifth examples of the second aspect, in the sixth example of the second aspect, the apparatus further includes: an operating role prompting module configured to display operating role information corresponding to the target node or all nodes in the target flowchart around each node when displaying the target node or all nodes. The operating role information is displayed in at least one of the following ways: an image or text. Based on the first to fifth examples of the second aspect, in the seventh example of the second aspect, the apparatus further includes: a processing stage annotation module, configured to display the processing stage to which each node belongs in the target flowchart when displaying all nodes of the target flowchart, wherein the target flowchart is divided into at least one processing stage, and each processing stage includes at least one node. In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory. The memory stores computer-executable instructions. The at least one processor executes the computer-executable instructions stored in the memory, causing the electronic device to implement any flowchart display method of the first aspect. In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the computing device implements any flowchart display method of the first aspect. In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program is provided, wherein the computer program is configured to implement any flowchart display method of the first aspect. The above description merely illustrates the technical principles employed in the embodiments of the present disclosure. Those skilled in the art should understand that the scope of disclosure involved in this disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned disclosure concept.For example, the above features may be interchangeable with (but not limited to) technical features with similar functions disclosed in this disclosure to form a technical solution. Furthermore, while the various operations are depicted in a specific order, this should not be construed as requiring that these operations be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while the above discussion includes several specific implementation details, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable subcombination. Although the present disclosure has been described using language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely example forms of implementing the claims.
Claims
Claims 1. A flowchart display method, comprising: Get user role information; If the user role information corresponds to an operating role, determining the target nodes corresponding to the user role information and the relationships between the target nodes from the target flow graph, wherein the target nodes include the to-be-operated nodes corresponding to the operating role and the operated nodes that the to-be-operated nodes depend on, and the operating role includes the role used to perform node operations; The target nodes in the target flow graph and the relationships between the target nodes are displayed.
2. The method according to claim 1, wherein: If the user role information corresponds to the operation role, determining the target node corresponding to the user role information from the target flowchart includes: if the user role information corresponds to the operation role and the target flowchart meets a preset condition, determining the target node corresponding to the user role information from the target flowchart, the preset condition including at least one of the following: the number of branch paths existing in the target flowchart is greater than or equal to a first threshold, the number of nodes included in the target flowchart is greater than or equal to a second threshold, and the length of the branch paths included in the target flowchart is greater than or equal to a third threshold.
3. The method according to claim 1 or 2, wherein: The displaying the target node in the target flow chart includes: when displaying the target node, distinguishing between the node to be operated and the node that has been operated.
4. The method according to any one of claims 1 to 3, further comprising: receiving a display switching operation triggered by the operating role; In response to the display switching operation, display is switched between the target node and all nodes in the target flowchart.
5. The method according to any one of claims 1 to 4, further comprising: If the user role information corresponds to a management role, all nodes in the target flow chart and the relationships between all nodes are displayed.
6. The method according to any one of claims 1 to 5, further comprising: When displaying the target node or all nodes in the target flow chart, the operation role information corresponding to each node is displayed around the node, and the operation role information is displayed in at least one of the following ways: image, text.
7. The method according to any one of claims 1 to 5, further comprising: When all nodes of the target flowchart are displayed, the processing stage to which each node belongs is displayed in the target flowchart. The target flowchart is divided into at least one processing stage, and each processing stage includes at least one node.
8. A flow chart display device, comprising: A role acquisition module is configured to acquire user role information; a target node acquisition module configured to, if the user role information corresponds to an operating role, determine, from a target flow chart, a target node corresponding to the user role information and relationships between the target nodes, wherein the target node includes a to-be-operated node corresponding to the operating role and operated nodes on which the to-be-operated node depends; and the operating role includes a role for performing node operations; A flowchart display module is configured to display the target nodes in the target flowchart and the relationships between the target nodes.
9. An electronic device comprising at least one processor and a memory, wherein: The memory is configured to store computer-executable instructions; the at least one processor is configured to execute the computer-executable instructions stored in the memory, so that the electronic device implements the flowchart display method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions, wherein: When the processor executes the computer-executable instructions, the computing device implements the flowchart display method according to any one of claims 1 to 7.
11. A computer program, configured to implement the method according to any one of claims 1 to 7.