Flow chart display method and device
By obtaining user role information and determining the target node and its relationship, the problem of users finding operating nodes quickly in complex flow charts is solved, and the efficiency and convenience of flow chart operations are achieved.
Patent Information
- Application Number
- CN202311745254.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2025-06-20
AI Technical Summary
In the prior art, when displaying flow charts, it is difficult for users to quickly find nodes that need to be operated, and in complex flow charts, displaying all nodes will lead to inconvenience in operation.
By obtaining user role information, the target nodes and their relationships corresponding to the user role are determined. The target nodes include the nodes to be operated and the operating nodes that are dependent, and then display these target nodes and their relationships.
This method enables the user to quickly find the node to be operated and operate with the assistance of the operating node, improving the efficiency and convenience of flowchart operation.
Smart Images

Figure CN120179325A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of front-end display technology, and in particular, to a flowchart display method and device. Background Art
[0002] A flowchart is used to represent the operations to be performed in sequence to complete a business process. Each node in the flowchart represents an operation node, and each operation node is used to complete an operation of the business process. Different operation nodes can be completed by different users.
[0003] In the prior art, different flowcharts are designed for different business processes. When a user logs in, the corresponding flowchart can be selected according to the business to display all the nodes in the flowchart, so that the user can view the complete processing flow of the business.
[0004] However, the above solution has the problem of inconvenient user operation. Summary of the Invention
[0005] Embodiments of the present disclosure provide a flowchart display method and device, which can improve the verification accuracy of an image acquisition device.
[0006] In a first aspect, embodiments of the present disclosure provide a flowchart display method, the method including:
[0007] Obtain user role information;
[0008] If the user role information corresponds to an operation role, determine, from a target flowchart, the target nodes corresponding to the user role information and the relationships between the target nodes, where the target nodes include the to-be-operated nodes corresponding to the operation role and the already-operated nodes on which the to-be-operated nodes depend, and the operation role includes a role for performing node operations;
[0009] Display the target nodes in the target flowchart and the relationships between the target nodes.
[0010] In a second aspect, embodiments of the present disclosure provide a flowchart display device, the method including:
[0011] A role acquisition module, configured to obtain user role information;
[0012] A target node acquisition module, configured to, if the user role information corresponds to an operation role, determine, from a target flowchart, the target nodes corresponding to the user role information and the relationships between the target nodes, where the target nodes include the to-be-operated nodes corresponding to the operation role and the already-operated nodes on which the to-be-operated nodes depend, and the operation role includes a role for performing node operations;
[0013] A flowchart display module for displaying the target nodes in the target flowchart and the relationships between the target nodes.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
[0015] The memory stores computer-executable instructions;
[0016] The at least one processor executes the computer-executable instructions stored in the memory, enabling the electronic device to implement the method described in the first aspect.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, cause a computing device to implement the method described in the first aspect.
[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program for implementing the method described in the first aspect.
[0019] An embodiment of the present disclosure provides a flowchart display method and device. The method includes: 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 the relationships between the target nodes, where the target nodes include to-be-operated nodes corresponding to the operation role and operated nodes on which the to-be-operated nodes depend, and the operation role includes a role for performing node operations; and displaying the target nodes in the target flowchart and the relationships between the target nodes. Since the target nodes are not all the nodes in the target flowchart but the nodes that the operation role is concerned about, it is convenient for the user to quickly find the nodes to be operated and perform operations with the assistance of the dependent operated nodes. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 It is a schematic structural diagram of a flowchart provided by an embodiment of the present disclosure;
[0022] Figure 2 It is a step flowchart of a flowchart display method provided by an embodiment of the present disclosure;
[0023] Figure 3It is a schematic diagram of the display of a target node provided by an embodiment of the present disclosure;
[0024] Figure 4 It is a schematic diagram of the display of a simple flowchart provided by an embodiment of the present disclosure;
[0025] Figure 5 It is a step flowchart of another flowchart display method provided by an embodiment of the present disclosure;
[0026] Figure 6 It is a structural block diagram of a flowchart display device provided by an embodiment of the present disclosure;
[0027] Figure 7 It is a structural block diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
[0029] The embodiments of the present disclosure are used to display a target flowchart to assist a user in managing the target flowchart and performing node operations. Here, the target flowchart is any flowchart to be displayed, and the flowchart is flexibly customized according to business scenarios. The flowchart includes multiple interdependent nodes, and each node is used to perform an operation. The flowchart in the embodiments of the present disclosure is a flowchart executed by multiple people in cooperation. That is to say, all nodes in the flowchart are executed by at least two operators, and different nodes correspond to different operators.
[0030] Figure 1 It is a structural schematic diagram of a flowchart provided by an embodiment of the present disclosure. Refer to Figure 1 As shown, the flowchart includes six nodes A1 to A6. According to the Figure 1 flowchart shown, the operation of node A1 is executed first, and then the operation of node A2 is executed; then, after the operation of node A2 is executed, there are two branch paths B1 and B2, and these two branch paths can be executed in parallel respectively. For branch path B1, the operation corresponding to node A3 is executed first, and then the operation corresponding to node A4 is executed. For branch path B2, the operation corresponding to node A5 is executed first, and then the operation corresponding to node A6 is executed.
[0031] From the above Figure 1As can be seen, a flowchart may include one or more nodes, and there is a sequential order among the nodes in terms of execution time. When a user or manager who executes the nodes logs in, the flowchart needs to be displayed to them.
[0032] In the prior art, when displaying a flowchart, all nodes in the flowchart are usually displayed to the user. Such a display strategy does not pose a major problem for simple flowcharts, but for complex flowcharts, it is not easy for users to quickly find the nodes to be operated on or the nodes they want to view. Therefore, it is not convenient for users to operate.
[0033] To solve the above technical problems, the embodiments of the present disclosure display the flowchart based on user role information, and when the user role information indicates an operation role, display the target nodes. The target nodes include the nodes to be operated corresponding to the operation role and the operated nodes on which the nodes to be operated depend. It can be understood that the target nodes are not all nodes in the target flowchart and the relationships between all nodes, but the nodes that the operation role is concerned about, so that users can quickly find the nodes to be operated and operate with the assistance of the dependent operated nodes.
[0034] The following uses specific embodiments to detail the technical solutions of the embodiments of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The following will describe the embodiments of the present disclosure with reference to the accompanying drawings.
[0035] Figure 2 is a step flowchart of a flowchart display method provided by an embodiment of the present disclosure. Refer to Figure 2 As shown, the flowchart display method includes:
[0036] S201: Obtain user role information.
[0037] Among them, the user role information is used to indicate the user role, and a common representation of the user role information is the user role identifier. When a user logs in to the system, the user role identifier can be determined according to the user identifier, and the user role identifier corresponding to the user identifier is set during user registration.
[0038] In the embodiments of the present disclosure, user roles are divided into two major categories: management roles and operation roles. Among them, the management role is used for global management of the target flowchart, while the operation role is used for operating the corresponding nodes in the target flowchart. In the embodiments of the present disclosure, there may be one or more operation roles, and the nodes that different operation roles can operate on are different.
[0039] Embodiments of the present disclosure can determine the corresponding user role based on user role information, so as to implement different flow chart display strategies based on different user roles. The flow chart display strategy of the embodiments of the present disclosure is set based on the different roles of different user roles. For example, for the management role, in order to facilitate the management role to globally manage the target flow chart, all nodes of the target flow chart and the relationships between all these nodes can be displayed. For another example, for the operation role, in order to facilitate the operation role to quickly operate on the nodes that need to be operated by it, the to-be-operated nodes corresponding to the operation role and the already-operated nodes on which the operation depends can be displayed.
[0040] S202: If the user role information corresponds to the operation role, determine the target nodes corresponding to the user role information from the target flow chart, and the relationships between the target nodes. The target nodes include the to-be-operated nodes corresponding to the operation role and the already-operated nodes on which the to-be-operated nodes depend. The operation role includes the role for performing node operations.
[0041] Among them, the to-be-operated node is the node to be processed by the operation role corresponding to the user role information, and the to-be-operated nodes corresponding to different operation roles are different. When the to-be-operated node is the first node in the target flow chart, there is no already-operated node on which the to-be-operated node depends. When the to-be-operated node is a node after the first node in the target flow chart, then there is an already-operated node on which the to-be-operated node depends.
[0042] It should be noted that the already-operated node here can be the node that has been operated by this operation role, or the node that has been operated by other operation roles. The already-operated nodes can be one or more.
[0043] When determining the target nodes, first, obtain the target flow chart information stored for the target flow chart, where the target flow chart information includes the information of each node in the target flow chart and the relationship information between the nodes. Each node information includes the operation role corresponding to the node and the indication information indicating whether the node has been operated; then, based on the target flow chart information, the to-be-operated nodes and the already-operated nodes on which the to-be-operated nodes depend for the operation role corresponding to the user role information in the target flow chart can be obtained. The to-be-operated node is the node whose operation role in the node information is the same as the operation role corresponding to the user role information, and the indication information is unoperated. The already-operated node is the node that is associated with the to-be-operated node, is located before the to-be-operated node, and the indication information in the node information is operated.
[0044] For example, after determining the corresponding operation role according to the user role information, from Figure 3 the target flow chart shown, it is determined that the nodes that need to be operated by this operation role are A3 and A4, and both nodes A3 and A4 are unoperated nodes. Thus, the earliest node A3 that needs to be operated can be used as the to-be-operated node of this operation role.
[0045] In some embodiments, the node to be operated can be determined by combining the continuity between the unoperated nodes corresponding to the operation role. Specifically, when there are multiple unoperated nodes corresponding to an operation role, if these multiple unoperated nodes are continuous and there are no nodes corresponding to other operation roles in between, then these multiple operation nodes can be used as the nodes to be operated. If these multiple unoperated nodes are not continuous, that is, there are nodes corresponding to other operation roles in between, then the nodes among these multiple unoperated nodes that are before the other operation role can be used as the nodes to be operated. For example, when the unoperated nodes of an operation role C1 are A1 and A3 in sequence, since there is a node A2 of another operation role C2 between these two unoperated nodes A1 and A3, the node to be operated for operation role C1 is A1. Another example, when the unoperated nodes of an operation role C3 are A5 and A6 in sequence, since there are no nodes of other operation roles between these two unoperated nodes A5 and A6, the unoperated nodes A5 and A5 can be used as the nodes to be operated for operation role C3.
[0046] As can be seen from the above process, the embodiments of the present disclosure can use the continuous unoperated nodes corresponding to the same operation role as the nodes to be operated by this operation role. In this way, it is convenient for this operation role to operate multiple nodes at one time, which helps to further improve the operation efficiency of the nodes.
[0047] In practical applications, the node to be operated can be one or more, and the earliest one or more nodes to be operated by the operation role can be displayed.
[0048] S203: Display the target nodes in the target flowchart and the relationships between the target nodes.
[0049] Based on the target nodes determined in S202, the display process of S203 realizes the partial display of the target flowchart. Compared with displaying all the nodes of the target flowchart, the partial display can save display space, and there are fewer nodes displayed. The displayed target nodes include the nodes to be operated by the user, so that it is convenient for the user to quickly find the nodes to be operated. In addition, the user can also operate with the assistance of the aforementioned operated nodes, and can operate faster, improving the operation efficiency.
[0050] It can be understood that the nodes to be operated are usually the last one or more nodes, and the nodes in the front position are the operated nodes.
[0051] Figure 3 is a schematic diagram of the display of a target node provided by the embodiments of the present disclosure, Figure 3 is based on Figure 1 The example shows the display of the target nodes in the target flowchart shown. Refer toFigure 3 As shown, the target flowchart includes nodes A1 to A6. Among them, node A3 and node A4 belong to branch path B1, and node A5 and node A6 belong to branch path B2. Branch path B1 and branch path B2 are two independent and non - interfering branch paths. When the node to be operated by the operation role corresponding to the user role information is A3, the operated nodes on which the to - be - operated node A3 depends are nodes A1 and A2. Thus, when displaying, only nodes A1, A2, and A3 in the target flowchart are displayed, and the remaining nodes A4, A5, and A6 enclosed by the dotted line are not displayed.
[0052] It can be understood that Figure 3 nodes A1 and A2 in
[0053] It can be seen that the content displayed in S203 is determined by S202. When determining the target node in S202, it is not only necessary to judge whether the user role information corresponds to the operation role, but also to further determine whether the target flowchart is a complex flowchart. If the user role information corresponds to the operation role and the target flowchart is a complex flowchart, at this time, the target node corresponding to the operation role is obtained. Otherwise, even if the user role information corresponds to the operation role and the target flowchart is a simple flowchart, all nodes in the target flowchart and the relationships between the nodes can still be displayed.
[0054] Specifically, the above logic can be implemented through the following process: If the user role information corresponds to the operation role and the target flowchart meets the preset conditions, then determine the target node corresponding to the user role information from the target flowchart to display the target node and its relationships. If the user role information corresponds to a role other than the operation role, and / or the target flowchart does not meet the above - mentioned preset conditions, then determine all nodes from the target flowchart to display all nodes and their relationships.
[0055] It can be seen that the above - mentioned preset conditions are used to judge whether the target flowchart is a complex flowchart. When the target flowchart meets the preset conditions, it is determined that the target flowchart is a complex flowchart. When the target flowchart does not meet the preset conditions, it is determined that the target flowchart is not a complex flowchart.
[0056] Among them, the preset conditions include at least one of the following: the number of branch paths existing in the target flowchart is greater than or equal to the first threshold, the number of nodes included in the target flowchart is greater than or equal to the second threshold, and the length of the branch path included in the target flowchart is greater than or equal to the third threshold.
[0057] As can be seen from the above process, the embodiments of the present disclosure can determine whether the target flowchart is a complex flowchart from three dimensions: the number of branch paths, the number of nodes, and the length of the branch paths. In this way, the flexible display strategy can be implemented by combining the user role information and whether the target flowchart is a complex flowchart.
[0058] Based on the above preset conditions, the target flowchart that does not include branch paths can be regarded as a simple flowchart to display all nodes of the target flowchart and the relationships between them. Figure 4 It is a schematic diagram showing the display of a simple flowchart provided by the embodiments of the present disclosure. Refer to Figure 4 As shown, the target flowchart includes nodes A1 to A4, and the target flowchart does not include branch paths, that is, the number of branch paths is 0. Therefore, the target flowchart can be regarded as a simple flowchart to display all nodes A1 to A4 of the target flowchart and the relationships between them when any user role logs in.
[0059] In an extreme case, there is only one node in the target flowchart. Therefore, when displaying the target flowchart, that is, displaying the node. At this time, all the detailed information of the node can be directly displayed, and there is no concept of a flowchart.
[0060] When displaying the above target node, in order to further facilitate the user to quickly and accurately find the node to be operated, the node to be operated and the operated node can be marked differently. Specifically, the node to be operated and the operated node can be marked differently by means of color, size, auxiliary marks, etc., so that the node to be operated is more prominent than the operated node. For example, the operated node can be enlarged and displayed, or displayed in a prominent color, or marked by a thick line, etc.
[0061] Refer to Figure 3 As shown, the node to be operated A3 is highlighted by a larger size, while the operated nodes A1 and A2 are displayed in a smaller size, so that the user can quickly find the node to be operated A3 from the Figure 3 display result shown.
[0062] In some embodiments, role prompt information can also be displayed around the node to be operated to prompt the user role information corresponding to the node. For example, the role prompt information can be the avatar, name, etc. of the operating role. Refer to Figure 3 As shown, the role prompt information is displayed in the form of an image next to the node to be operated A3 to prompt the user role corresponding to the image to operate the node to be operated.
[0063] In some embodiments, for the operation role, the target nodes are defaultly displayed through the above S202 and S203, but it can be switched to the display mode of all nodes based on user operations. Specifically, first, receive the display switching operation triggered by the operation role, and in response to this display switching operation, switch the display between the target nodes and all nodes in the target flowchart. In this way, multiple display modes can be provided to the operation role, enriching the display modes of the target flowchart.
[0064] Among them, the display switching operation can be any operation on the display interface. For example, a click operation on an operation control in the display interface, or a swipe operation on the display interface, or a press operation on a physical key of the electronic device. The user can continuously perform the display switching operation to continuously and repeatedly switch between the target nodes and all nodes in the target flowchart. For example, when the user performs a display switching operation once, switching from the target nodes to all nodes is equivalent to expanding the target flowchart; when the user performs the second display switching operation, switching from all nodes to the target nodes is equivalent to collapsing the target flowchart. In this way, the display is continuously and repeatedly switched.
[0065] It can be seen from the foregoing description that S202 and S203 are used to display the target nodes corresponding to the operation role and the relationships between them when the user role information corresponds to the operation role. And when the user role information corresponds to the management role, all nodes in the target flowchart and the relationships between all nodes are displayed, that is, the entire target flowchart is displayed. Refer to Figure 1 As shown, when the user role information corresponds to the management role, in order to facilitate the management role to globally manage the target flowchart, all nodes A1 to A6 in the target flowchart and the relationships between A1 to A6 can be displayed.
[0066] To improve the display effect of the target flowchart, when displaying the target nodes or all nodes in the target flowchart, the operation role information corresponding to the node can be displayed around each node. The operation role information is displayed in at least one of the following ways: image, text. All nodes displayed here can be all nodes displayed when the foregoing operation role performs the display switching operation, or all nodes displayed for the management role, or all nodes displayed for a simple flowchart. The way to display the operation role information here can refer to Figure 3 the display effect for the to-be-operated node A3 shown in Figure 3 Different from this, the operation role information is displayed for each node here.
[0067] Furthermore, when displaying all nodes of the target flowchart, the operated nodes and unoperated nodes can also be marked therein. This can facilitate the management role to better grasp the progress of the target flowchart for decision-making and management.
[0068] In some other embodiments, in order to further improve the display effect of the target flow chart, when all nodes of the target flow chart are displayed, the processing stage to which each node belongs may also be displayed in the target flow chart. The target flow chart is divided into at least one processing stage, and each processing stage includes at least one node. As Figure 3 shown, branch path B1 and branch path B2 are two processing stages of the target flow chart. In addition, there is also a processing stage B3. Among them, 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.
[0069] Through the annotation of the processing stage, the embodiments of the present disclosure can assist the management role to better manage the target flow chart, and can also assist the operation role to analyze the processing stage to which the operations they perform belong.
[0070] In some optional embodiments, 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 operation roles corresponding to the operated nodes included in the processing stage, the operation roles corresponding to the unoperated nodes included in the processing stage, the proportion of the number of unoperated nodes included in the processing stage, and the proportion of the number of operated nodes included in the processing stage.
[0071] In addition, the first unoperated node and the corresponding operation role in each processing stage may also be marked to facilitate the management role to notify the operation role to perform operations on the corresponding nodes.
[0072] To facilitate the management role to notify the operation role, a notification control may also be displayed. After the management role operates on the notification control, the corresponding operation role can be notified to perform operations. Optionally, after operating on the notification control, the unoperated nodes may be displayed so that the management personnel can select nodes from them to notify the corresponding operation role. Of course, a function of selecting all at once may also be provided so that the management personnel can notify the operation roles corresponding to all unoperated nodes at one time.
[0073] In summary, the embodiments of the present disclosure can flexibly display the target flow chart in combination with the user role information and the complexity of the target flow chart. When the user role information corresponds to the operation role, the target flow chart is displayed according to the complexity of the target flow chart. As much as possible, when the complexity of the target flow chart is low, all nodes are displayed, and when the complexity of the target flow chart is high, some target nodes are displayed to facilitate the operation role to perform operations. When the user role information corresponds to the management role, all nodes of the target flow chart are displayed, which can facilitate the management role to manage from a global perspective.
[0074] In addition, during the process of displaying the target flowchart, the nodes to be operated and the nodes that have been operated can be distinguished and displayed, and the user role information corresponding to each node and the processing stage to which it belongs can be prompted. This helps to further improve the display effect of the target flowchart.
[0075] Figure 5 It is a step flowchart of another flowchart display method provided by an embodiment of the present disclosure. Referring to Figure 5 as shown, the above flowchart display method may include:
[0076] S301: Obtain user role information.
[0077] After executing S301, execute S302 to S305, or execute S306 to display the target flowchart under two types of user role information.
[0078] S302: If the user role information corresponds to an operation role and the target flowchart meets the preset conditions, determine the target nodes corresponding to the user role information and the relationships between the target nodes from the target flowchart.
[0079] Among them, the target nodes include the nodes to be operated corresponding to the operation role and the nodes that have been operated on which the nodes to be operated depend. The operation role includes the role for performing node operations. The preset conditions include at least one of the following: the number of branch paths existing in the target flowchart is greater than or equal to the first threshold, the number of nodes included in the target flowchart is greater than or equal to the second threshold, and the length of the branch paths included in the target flowchart is greater than or equal to the third threshold.
[0080] S303: Display the target nodes and the relationships between the target nodes, and distinguish and mark the nodes to be operated and the nodes that have been operated.
[0081] S304: Receive a display switching operation triggered by the operation role.
[0082] S305: In response to the display switching operation, switch and display between the target nodes and all the nodes in the target flowchart.
[0083] S306: If the user role information corresponds to a management role, display all the nodes and the relationships between all the nodes in the target flowchart.
[0084] After executing S302 to S305, or executing S306, both S307 and S308 are executed.
[0085] S307: When displaying the target nodes or all the nodes in the target flowchart, display the operation role information corresponding to each node around the node. The operation role information is displayed in at least one of the following ways: image, text.
[0086] S308: When displaying all nodes of the target flowchart, display the processing stage to which each node belongs in the target flowchart. The target flowchart is divided into at least one processing stage, and each processing stage includes at least one node.
[0087] It should be noted that Figure 5 the steps shown above can be flexibly adjusted in sequence on an independent basis. In addition, the flowchart display method can be described with reference to the flowchart display method shown above Figure 2 and will not be elaborated here.
[0088] Corresponding to the flowchart display method in the above embodiment Figure 6 is a structural block diagram of a flowchart display device provided by an embodiment of the present disclosure. A hardware abstraction layer is provided in the image acquisition device, and the hardware abstraction layer includes a user driver and a kernel driver. For the sake of convenience of description, only the parts related to the embodiment of the present disclosure are shown. Referring to Figure 6 the above, the flowchart display device 400 includes:
[0089] A role acquisition module 401, configured to acquire user role information.
[0090] A target node acquisition module 402, configured to, if the user role information corresponds to an operation role, determine, from the target flowchart, the target nodes corresponding to the user role information and the relationships between the target nodes. The target nodes include the to-be-operated nodes corresponding to the operation role and the already-operated nodes on which the to-be-operated nodes depend. The operation role includes a role for performing node operations.
[0091] A flowchart display module 403, configured to display the target nodes in the target flowchart and the relationships between the target nodes.
[0092] Optionally, the target node acquisition module 402 is further configured to:
[0093] If the user role information corresponds to the operation role and the target flowchart meets a preset condition, determine the target nodes 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.
[0094] Optionally, the flowchart display module 403 is further configured to:
[0095] When displaying the target nodes, differentially mark the to-be-operated nodes and the already-operated nodes.
[0096] Optionally, the apparatus further includes:
[0097] A switching operation receiving module, configured to receive a display switching operation triggered by the operation role.
[0098] A switching display module, configured to, in response to the display switching operation, perform switching display between the target node and all nodes in the target flowchart.
[0099] Optionally, the apparatus further includes:
[0100] A global display module, configured to, if the user role information corresponds to a management role, display all nodes in the target flowchart and the relationships between all nodes.
[0101] Optionally, the apparatus further includes:
[0102] An operation role prompt module, configured to, when displaying the target node or all nodes in the target flowchart, display the operation role information corresponding to each node around the node, and the operation role information is displayed in at least one of the following ways: image, text.
[0103] Optionally, the apparatus further includes:
[0104] A processing stage annotation module, configured to, when displaying all nodes in the target flowchart, display the processing stage to which each node belongs in the target flowchart, the target flowchart is divided into at least one processing stage, and each processing stage includes at least one node.
[0105] The flowchart display apparatus provided in this embodiment can be used to execute the technical solution of the foregoing flowchart display method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0106] Figure 7 It is a structural 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.
[0107] Among them, the memory 602 stores computer execution instructions.
[0108] At least one processor 601 executes the computer execution instructions stored in the memory 602, so that the electronic device 600 implements the foregoing flowchart display method.
[0109] 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 apparatuses and forward it to the processor 601, and the transmitter 604 is configured to send information to other devices or apparatuses.
[0110] In the first example of the first aspect, embodiments of the present disclosure provide a flowchart display method, the method comprising:
[0111] Obtaining user role information;
[0112] 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, where the target nodes include to-be-operated nodes corresponding to the operation role and operated nodes on which the to-be-operated nodes depend, and the operation role includes a role for performing node operations;
[0113] Displaying the target nodes in the target flowchart and relationships between the target nodes.
[0114] Based on the first example of the first aspect, in the second example of the first aspect, the determining, from a target flowchart, target nodes corresponding to the user role information when the user role information corresponds to an operation role includes:
[0115] If the user role information corresponds to the operation role and the target flowchart meets a preset condition, determining, from the target flowchart, the target nodes corresponding to the user role information, where 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.
[0116] Based on the first example of the first aspect, in the third example of the first aspect, the displaying the target nodes in the target flowchart includes:
[0117] When displaying the target nodes, differentially marking the to-be-operated nodes and the operated nodes.
[0118] Based on the first example of the first aspect, in the fourth example of the first aspect, the method further comprises:
[0119] Receiving a display switching operation triggered by the operation role;
[0120] In response to the display switching operation, performing switching display between the target nodes and all nodes in the target flowchart.
[0121] Based on the first example of the first aspect, in the fifth example of the first aspect, the method further includes:
[0122] If the user role information corresponds to a management role, display all the nodes in the target flowchart and the relationships between all the nodes.
[0123] Based on the first to fifth examples of the first aspect, in the sixth example of the first aspect, the method further includes:
[0124] When displaying the target node or all the nodes in the target flowchart, display the operation role information corresponding to each node around the node, and the operation role information is displayed in at least one of the following ways: image, text.
[0125] Based on the first to fifth examples of the first aspect, in the seventh example of the first aspect, the method further includes:
[0126] When displaying all the nodes of the target flowchart, display the processing stage to which each node belongs in the target flowchart, the target flowchart is divided into at least one of the processing stages, and each processing stage includes at least one of the nodes.
[0127] In the first example of the second aspect, a flowchart display device is provided, and the device includes:
[0128] A role acquisition module, configured to acquire user role information;
[0129] A target node acquisition module, configured to, if the user role information corresponds to an operation role, determine the target nodes corresponding to the user role information and the relationships between the target nodes from the target flowchart, the target nodes include the nodes to be operated corresponding to the operation role and the nodes that have been operated on which the nodes to be operated depend, and the operation role includes a role for performing node operations;
[0130] A flowchart display module, configured to display the target nodes in the target flowchart and the relationships between the target nodes.
[0131] Based on the first example of the second aspect, in the second example of the second aspect, the target node acquisition module is further configured to:
[0132] If the user role information corresponds to the operation role and the target flowchart meets the preset conditions, then determine the target node corresponding to the user role information from the target flowchart. The preset conditions include 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.
[0133] 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:
[0134] When displaying the target node, differentially mark the node to be operated and the node that has been operated.
[0135] Based on the first example of the second aspect, in the fourth example of the second aspect, the apparatus further includes:
[0136] A switching operation receiving module, configured to receive a display switching operation triggered by the operation role;
[0137] A switching display module, configured to, in response to the display switching operation, perform switching display between the target node and all nodes in the target flowchart.
[0138] Based on the first example of the second aspect, in the fifth example of the second aspect, the apparatus further includes:
[0139] A global display module, configured to display all nodes in the target flowchart and the relationships between all nodes if the user role information corresponds to the management role.
[0140] Based on the first to fifth examples of the second aspect, in the sixth example of the second aspect, the apparatus further includes:
[0141] An operation role prompt module, configured to, when displaying the target node or all nodes in the target flowchart, display the operation role information corresponding to each node around the node. The operation role information is displayed in at least one of the following ways: image, text.
[0142] Based on the first to fifth examples of the second aspect, in the seventh example of the second aspect, the apparatus further includes:
[0143] A processing stage annotation module, configured to, when displaying all nodes of the target flowchart, display the processing stage to which each node belongs in the target flowchart. The target flowchart is divided into at least one processing stage, and each processing stage includes at least one node.
[0144] In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, including: at least one processor and a memory.
[0145] The memory stores computer-executable instructions.
[0146] The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method shown in any flowchart of the first aspect.
[0147] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a computing device is enabled to implement the method shown in any flowchart of the first aspect.
[0148] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program is provided, and the computer program is used to implement the method shown in any flowchart of the first aspect.
[0149] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, a technical solution formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0150] In addition, although the operations are depicted in a specific order, this should not be construed as requiring that the operations be performed in the specific order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0151] Although the subject matter has been described in language specific to structural features and / or method logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A flowchart display method, characterized in that, The method includes: 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 the relationships between the target nodes, where the target nodes include to-be-operated nodes corresponding to the operation role and operated nodes upon which the to-be-operated nodes depend, and the operation role includes a role for performing node operations; Displaying the target nodes in the target flowchart and the relationships between the target nodes.
2. The method according to claim 1, characterized in that, The step of, if the user role information corresponds to an operation role, determining, from a target flowchart, target nodes corresponding to the user role information includes: If the user role information corresponds to the operation role and the target flowchart meets a preset condition, determining, from the target flowchart, the target nodes corresponding to the user role information, where 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.
3. The method according to claim 1, characterized in that, The step of displaying the target nodes in the target flowchart includes: When displaying the target nodes, differentially marking the to-be-operated nodes and the operated nodes.
4. The method according to claim 1, characterized in that, The method further includes: Receiving a display switching operation triggered by the operation role; In response to the display switching operation, performing a switching display between the target nodes and all nodes in the target flowchart.
5. The method according to claim 1, characterized in that, The method further includes: If the user role information corresponds to a management role, displaying all nodes in the target flowchart and the relationships between all nodes.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: When displaying the target nodes or all nodes in the target flowchart, displaying, around each node, operation role information corresponding to the node, where 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, characterized in that, The method further includes: When displaying all nodes in the target flowchart, displaying, in the target flowchart, the processing stage to which each node belongs, where the target flowchart is divided into at least one processing stage, and each processing stage includes at least one node.
8. A flowchart display device, characterized in that, The apparatus includes: A role acquisition module, configured to obtain user role information; A target node acquisition module, configured to, if the user role information corresponds to an operation role, determine, from a target flowchart, target nodes corresponding to the user role information and the relationships between the target nodes, where the target nodes include to-be-operated nodes corresponding to the operation role and operated nodes upon which the to-be-operated nodes depend, and the operation role includes a role for performing node operations; A flowchart display module, configured to display the target nodes in the target flowchart and the relationships between the target nodes.
9. An electronic device, characterized in that, Including: 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, so that the electronic device implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the computing device implements the method according to any one of claims 1 to 7.
11. A computer program, characterized in that, The computer program is used to implement the method according to any one of claims 1 to 7.
Citation Information
Cited By
Flow chart display method and device
WO2025136222A1
