Multi-process-node processing method and apparatus, and device and storage medium
By creating a collection of nodes instead of multiple process nodes, the display of complex flow charts is simplified, the user's experience problem when dealing with a large number of process nodes is solved, and the flow chart viewing and editing efficiency is improved.
Patent Information
- Application Number
- PCT/CN2024/095043
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-15
- Filing Date
- 2024-05-24
- Publication Date
- 2024-12-19
AI Technical Summary
In complex business flow charts, users need to process a large number of process nodes, resulting in poor user experience during viewing and editing, making it difficult to directly understand the representation of the flow chart.
By creating a node set and displaying it instead of multiple selected process nodes, the number of nodes directly displayed in the flow chart is reduced, and the display method of grouped node sets and subprocess node sets is provided to improve user viewing and editing efficiency.
It simplifies the display content of the flowchart, improves the efficiency of users to view and edit flowcharts in the aPaaS platform, and reduces the operational complexity of users on the process editing page.
Smart Images

Figure CN2024095043_19122024_PF_FP_ABST
Abstract
Description
A multi-process node processing method, device, equipment and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202310715115.8 filed on June 15, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] The present application relates to a method, apparatus, device and storage medium for processing multiple process nodes. Background Art
[0003] In some scenarios, users create business flowcharts and use them to manage their business. For example, a user might use the application development services provided by an Application Platform as a Service (aPaaS) platform. Within the aPaaS platform, users can create a flowchart for managing application development and then use it as a guide to develop their application.
[0004] A flowchart includes process nodes and the execution order between process nodes. The process nodes can correspond to business processing steps, and the execution order between process nodes can reflect the processing process between business processing steps.
[0005] Flowcharts for more complex businesses may include numerous process nodes. When users view or edit a flowchart, the edit page displays a large number of these nodes. This makes it difficult for users to directly understand the process represented by the flowchart, resulting in a poor user experience.
[0006] Summary of the Invention
[0007] In view of this, the present application provides a method, apparatus, device and storage medium for processing multiple process nodes, which can create a node set, reduce the process nodes displayed in the flowchart, and facilitate user viewing and editing.
[0008] Based on this, the technical solutions provided by this application are as follows:
[0009] In a first aspect, the present application provides a method for processing multiple process nodes, the method comprising: displaying a first process editing page, the first process editing page being used to display and edit a first flowchart, the first flowchart comprising process nodes; in response to obtaining a multi-node processing request for a plurality of selected nodes, creating a node set comprising the plurality of selected nodes; stopping displaying the plurality of selected nodes in the first flowchart, and displaying the node set, the node set being used to replace the plurality of selected nodes.
[0010] In a possible implementation, the multi-node processing request includes a multi-node grouping request, and the node set is a grouped node set.
[0011] In a possible implementation, the displaying the node set includes: displaying an editing area of the grouped node set, where the editing area is used to receive editable content of the grouped node set.
[0012] In a possible implementation manner, the editable content includes identification information of the group node set.
[0013] In a possible implementation, before creating the node set including the multiple selected nodes, the method further includes: determining whether the multiple selected nodes meet a preset grouping condition.
[0014] In one possible implementation, the multi-node processing request includes creating a sub-process request, the node set is a sub-process node set, and the creation includes a node set of the multiple selected nodes, including: creating a second flowchart of the sub-process node set based on the multiple selected nodes; displaying a second process editing page, the second process editing page is used to display and edit the second flowchart.
[0015] In a possible implementation, before creating the second flowchart of the sub-process node set based on the multiple selected nodes, the method further includes: determining whether the multiple selected nodes meet a preset sub-process creation condition.
[0016] In a possible implementation, the method further includes: establishing a calling relationship between the sub-process node set and the second flowchart, wherein the calling relationship is used to trigger a call and execute the second flowchart when the sub-process node set is executed.
[0017] In a possible implementation, the node display area of the sub-process node set includes identification information of the second flowchart.
[0018] In second aspect, the present application provides a processing device for multiple process nodes, the device comprising: a first display unit for displaying a first process editing page, the first process editing page being used to display and edit a first flowchart, the first flowchart comprising process nodes; a creation unit for creating a node set comprising the multiple selected nodes in response to obtaining a multi-node processing request for the multiple selected nodes; a second display unit for stopping displaying the multiple selected nodes in the first flowchart and displaying the node set, the node set being used to replace the multiple selected nodes.
[0019] In a possible implementation, the multi-node processing request includes a multi-node grouping request, and the node set is a grouped node set.
[0020] In a possible implementation, the second display unit, used to display the node set, includes: the second display unit, used to display an editing area of the grouped node set, where the editing area is used to receive editable content of the grouped node set.
[0021] In a possible implementation manner, the editable content includes identification information of the group node set.
[0022] In a possible implementation manner, the apparatus further includes: a first determining unit, configured to determine whether the plurality of selected nodes meet a preset grouping condition.
[0023] In one possible implementation, the multi-node processing request includes a sub-process creation request, the node set is a sub-process node set, and the creation unit is used to create a node set including the multiple selected nodes, including: the creation unit is used to create a second flowchart of the sub-process node set based on the multiple selected nodes; display a second process editing page, the second process editing page is used to display and edit the second flowchart.
[0024] In a possible implementation, the apparatus further includes: a second determining unit configured to determine whether the plurality of selected nodes meet a preset sub-process creation condition.
[0025] In a possible implementation, the device further includes: an establishing unit for establishing a calling relationship between the sub-process node set and the second flowchart, wherein the calling relationship is used to trigger a call and execute the second flowchart when the sub-process node set is executed.
[0026] In a possible implementation, the node display area of the sub-process node set includes identification information of the second flowchart.
[0027] In a third aspect, the present application provides an electronic device, comprising:
[0028] one or more processors;
[0029] a storage device having one or more programs stored thereon,
[0030] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the methods described in the first aspect.
[0031] In a fourth aspect, the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, any one of the methods described in the first aspect is implemented.
[0032] In a fifth aspect, the present application provides a computer program product, which, when running on a device, enables the device to execute the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] FIG1 is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application;
[0034] FIG2 is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application;
[0035] FIG3 is a flow chart of a method for processing multiple process nodes provided in an embodiment of the present application;
[0036] FIG4 is a schematic diagram of an operation panel provided in an embodiment of the present application;
[0037] FIG5 is a schematic diagram of a display method of a node set provided in an embodiment of the present application;
[0038] FIG6 is a schematic diagram of a display method of a grouped node set provided in an embodiment of the present application;
[0039] FIG7 is a schematic diagram of another display method of a grouped node set provided in an embodiment of the present application;
[0040] FIG8 is a schematic diagram of another display method of a grouped node set provided in an embodiment of the present application;
[0041] FIG9 is a schematic diagram of a display method of a sub-process node set provided in an embodiment of the present application;
[0042] FIG10 is a schematic diagram of a second process editing page provided in an embodiment of the present application;
[0043] FIG11 is a schematic diagram of a second flow chart for completing editing provided in an embodiment of the present application;
[0044] FIG12 is a schematic structural diagram of a processing device for multiple process nodes provided in an embodiment of the present application;
[0045] FIG13 is a schematic diagram of the basic structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to facilitate understanding and explanation of the technical solutions provided by the embodiments of the present application, the background technology of the present application will be described below.
[0047] The aPaaS platform features low-code or zero-code development. It provides users with elements and modules for developing applications. Users can edit elements or modules through simple drag-and-drop operations to develop applications. To more clearly visualize the application development process, users can edit flowcharts related to their application development within the aPaaS platform and use these flowcharts as a reference for application development. For more complex application development processes, the corresponding flowcharts include numerous process nodes. Users need to view a large number of process nodes to understand the overall process represented by the flowchart. In some cases, due to the limited display area on the process editing page, it is necessary to adjust the display scale of the process editing page to a slightly larger value to clearly see each process node. This results in fewer process nodes being displayed within the display area of the process editing page, making it impossible to display all the process nodes included in the flowchart. Users need to frequently adjust the display area of the process editing page to view the entire flowchart and understand the process represented by the flowchart. This makes viewing flowcharts cumbersome and creates a poor user experience.
[0048] Based on this, an embodiment of the present application provides a method, apparatus, device and storage medium for processing multiple process nodes. The method first displays a first process editing page for displaying and editing a first flowchart. The user can use the first process editing page to view the first flowchart and edit the first flowchart. In response to obtaining a multi-node processing request for multiple selected nodes triggered by the user, a node set including multiple selected nodes is created. In the first flowchart, a node set is used to replace the multiple selected nodes for display, that is, the multiple selected nodes are stopped from being displayed, and the node set is displayed. Using a node set instead of displaying multiple selected nodes can reduce the number of process nodes that need to be directly displayed in the first flowchart. This makes it easy for users to streamline the process nodes displayed in the first flowchart, facilitates users to view the first flowchart, and improves the efficiency of users viewing and editing the first flowchart.
[0049] To facilitate understanding of a multi-process node processing method provided in an embodiment of the present application, the following description of a multi-process node processing method provided in an embodiment of the present application is provided in conjunction with the accompanying drawings, and is provided in conjunction with the scenario examples shown in Figures 1 and 2. Referring to Figures 1 and 2, which are schematic diagrams of exemplary application scenarios provided in an embodiment of the present application.
[0050] The client of the aPaaS platform displays a first process editing page for displaying and editing a first process diagram to the user. The first process diagram includes process nodes and the execution order between the process nodes.
[0051] As an example, referring to FIG1 , a user uses the left mouse button to select multiple selected nodes in the first flowchart displayed on the first process editing page. For example, referring to FIG1 , the user selects process node 2 and process node 3. After the user selects multiple selected nodes, a multi-node processing request for the multiple selected nodes is automatically triggered. The client creates a node set in response to obtaining the multi-node processing request. The node set includes multiple selected nodes, namely process node 2 and process node 3. Referring to FIG2 , the client stops displaying the multiple selected nodes in the first process editing page of the first flowchart and displays the node set. The multiple process nodes that originally needed to be displayed in the first flowchart are streamlined into a node set, reducing the number of process nodes directly displayed in the first flowchart. This can reduce the number of process nodes that the user views or edits in the first process editing page, making it easier for the user to view or edit the first flowchart, and further facilitating the user to edit and view flowcharts in the aPaaS platform, thereby improving the efficiency of developing applications.
[0052] Those skilled in the art will appreciate that the schematic diagrams shown in Figures 1 and 2 are merely examples of how the embodiments of the present application may be implemented, and the scope of application of the embodiments of the present application is not limited in any way by this framework.
[0053] In order to facilitate understanding of the technical solution provided by the embodiment of the present application, the processing method of multiple process nodes provided by the embodiment of the present application is described below with reference to the accompanying drawings.
[0054] Referring to FIG. 3 , which is a flow chart of a method for processing multiple process nodes provided in an embodiment of the present application, as shown in FIG. 3 , the method may include S301 - S303 :
[0055] S301: Displaying a first process editing page.
[0056] The first process editing page is used to display the first flowchart in the editing state. Users can view and edit the first flowchart in the first process editing page. The first flowchart includes multiple process nodes and the execution order between the multiple process nodes. The process nodes correspond to the steps that need to be executed for the business represented by the first flowchart. Users usually need to edit the process nodes, for example, edit the information of the business corresponding to the process node, edit the trigger conditions of the process node, edit the format of the output data of the process node, and other editable content of the process node.
[0057] The first process editing page can be a page displayed in a browser, or a page displayed in an application. The embodiments of the present application do not limit this. In addition, the embodiments of the present application do not limit the triggering method for displaying the first process editing page. As an example, a user can trigger the display of the first process editing page by clicking a control that creates the first process editing page. As another example, a user can trigger the display of the first process editing page by clicking an editing control when viewing the first flowchart and edit the first flowchart.
[0058] S302: In response to obtaining a multi-node processing request for a plurality of selected nodes, creating a node set including the plurality of selected nodes.
[0059] The user selects multiple process nodes as selected nodes on the process operation page. The embodiments of the present application do not limit the method by which the user selects process nodes. As an example, the user can use an operation control, such as a mouse cursor, to select multiple process nodes as selected nodes. As another example, the user can use a shortcut key to select multiple process nodes as selected nodes.
[0060] After the user selects multiple selected nodes, a multi-node processing request for the multiple selected nodes is triggered.
[0061] In one possible implementation, after a user completes selecting a process node, a multi-node processing request for the multiple selected nodes is automatically triggered. For example, the user presses and holds the left mouse button to establish a selection area. The process nodes within the selection area are the selected nodes. After the user releases the left mouse button, the process node selection is confirmed to be complete, and a multi-node processing request for the multiple selected nodes is automatically triggered. For another example, while the user is selecting multiple process nodes, if the interval between operations exceeds a time threshold, the process node selection is confirmed to be complete, and a multi-node processing request for the multiple selected nodes is automatically triggered.
[0062] In another possible implementation, after completing the selection of multiple process nodes, the user uses the operating cursor or triggers a keyboard shortcut to trigger the multi-node processing control displayed on the first process editing page, triggering a multi-node processing request for multiple process nodes.
[0063] As an example, the control bar of the first process editing page includes a multi-node processing control. After selecting multiple process nodes, the user can click the multi-node processing control in the control bar of the first process editing page to trigger a multi-node processing request for the multiple process nodes.
[0064] As another example, in response to determining that a user has completed selection of multiple process nodes, an operation panel for the multiple selected nodes is displayed. The operation panel includes a multi-node processing control. The operation panel can be displayed near the node display area of the multiple selected nodes. The multi-node processing control included in the operation panel is used to trigger a multi-node processing request. The user can use an operation control, such as a mouse cursor, or a shortcut key to trigger the multi-node processing control included in the operation panel.
[0065] A multi-node processing request is used to trigger the creation of a node set including multiple selected nodes. The embodiments of the present application do not limit the type of node set. As an example, the node set is a group node set. Multiple selected nodes belonging to the same group node set belong to the same group. As another example, the node set is a sub-process node set. Multiple selected nodes belonging to the same sub-process node set belong to a sub-process.
[0066] When a node set has multiple types, the content of the multi-node processing request corresponds to the node set to be created. For example, if the multi-node processing request includes a multi-node grouping request, the node set created in response to the multi-node processing request is a grouping node set. For another example, if the multi-node processing request includes a create sub-process request, the node set created in response to the multi-node processing request is a sub-process node set.
[0067] Taking the above-mentioned use of the multi-node processing control included in the operation panel to trigger a multi-node processing request as an example, the multi-node processing control included in the operation panel corresponds to the type of node set. For example, the node set can be a grouping node set, or a sub-process node set. Correspondingly, the operation panel includes two different multi-node processing controls, namely a grouping control and a create sub-process control. Referring to Figure 4, this figure is a schematic diagram of an operation panel provided in an embodiment of the present application. The operation panel includes a grouping control for "Group" and a create sub-process control for "Generate Sub-Process". The grouping control is used to trigger a multi-node processing request including a multi-node grouping request. The create sub-process control is used to trigger a multi-node processing request including a create sub-process request. In some possible implementations, the operation panel also includes other editing controls for unified editing of multiple selected nodes. For example, referring to Figure 4, the operation panel also includes "Copy", "Cut" and "Delete".
[0068] S303: Stop displaying the multiple selected nodes in the first flow chart and display the node set.
[0069] After the node set is created, the display of the plurality of selected nodes in the first flow chart stops, and the node set is used to replace the selected nodes for display.
[0070] The execution order of the node set in the first flowchart is the same as the execution order of the multiple selected nodes as a whole in the first flowchart. Taking the first flowchart shown in Figure 4 above as an example, see Figure 5, which is a schematic diagram of a display method of a node set provided in an embodiment of the present application. The created node set includes two selected nodes, "Submit to Warehouse" and "Get Records". The node set is connected to the "Fill in Form" before the execution order of "Submit to Warehouse", and is connected to the two process nodes after the execution order of "Get Records". In the first flowchart, a node set is used to replace multiple selected nodes for display, thereby reducing the number of process nodes that need to be directly displayed in the first flowchart. For different types of node sets, the way of creating a node set and the way of displaying a node set may be different. As some examples, the embodiments of the present application respectively introduce the creation process of a grouped node set and the possible display methods, the creation process of a sub-process node set and the possible display methods. Please see below for details.
[0071] Based on the above S301-S303, it can be seen that a node set including multiple selected nodes can be displayed in place of the multiple selected nodes, reducing the number of process nodes that need to be directly displayed in the first flowchart. This allows users to streamline the process nodes displayed in the first flowchart, making it easier for users to view the first flowchart and improving the efficiency of users viewing and editing the first flowchart. In the application scenario of the aPaaS platform, users can easily edit and view flowcharts on the aPaaS platform, improving the efficiency of application development.
[0072] The following describes the creation process and display method of a node set by taking a node set that is a group node set and a node set that is a sub-process node set as examples.
[0073] The first type: the node set is a grouped node set.
[0074] It should be noted that, in some possible implementations, before creating a grouping node set including multiple selected nodes, it is first determined that the multiple selected nodes meet the preset grouping conditions. That is, it is necessary to first determine that the multiple selected nodes can be divided into one group. The preset grouping condition is a pre-set condition for confirming that the selected nodes can be grouped. The embodiment of the present application does not limit the specific content included in the preset grouping condition. As an example, the preset grouping condition is that the process node is a pre-configured node that can be grouped. As another example, the preset grouping condition is that the selected nodes are adjacent in the execution order, and all the selected nodes belong to the same process branch. Alternatively, the preset grouping condition is that the selected nodes are adjacent in the execution order, and the multiple selected nodes include all process nodes belonging to the same branch body. The branch body includes multiple process branches that start branching from the same process node and end at the same process node.
[0075] Taking the flowchart displayed on the first process edit page shown in Figures 1 and 2 as an example, process nodes 1, 2, and 3 belong to a single process branch. Process nodes 4 and 6 belong to a single process branch. Process nodes 5 and 7 belong to a single process branch. Process nodes 4, 5, 6, and 7 belong to a single branch.
[0076] When selecting a process node, the user can select adjacent process nodes belonging to the same process group, for example, select process node 4 and process node 6. The user can also select multiple process nodes that are adjacent in the execution order and include all process nodes belonging to the same branch body, for example, the user selects process node 3, process node 4, process node 5, process node 6 and process node 7. Among them, process node 4, process node 5, process node 6 and process node 7 are all process nodes belonging to the same branch body. If the user selects process node 3 and process node 4, two process nodes that do not belong to the same process branch, the preset grouping condition is not met. If the user selects process node 4, process node 5 and process node 6, the multiple selected process nodes do not include all process nodes belonging to the same branch body, and the preset grouping condition is not met. The use of preset grouping conditions can prevent users from selecting selected nodes that cannot create grouping nodes, thereby ensuring that grouping nodes can be created normally.
[0077] The established group node set includes multiple selected nodes belonging to the same group. The node display area of the group node set includes content related to the group. This allows users to identify the group node set based on the content related to the group. As an example, the node display area of the group node set includes a "group" identifier. For example, the "group" identifier can be a pre-defined icon that identifies the group node set. In another example, the "group" identifier can be a pre-defined label. As another example, the node display area of the group node set includes a display state toggle control. The display state toggle control is used to switch the group node set between an expanded display state and a collapsed display state. In the expanded display state, information about the group node set and information about the multiple selected nodes included in the group node set are displayed in the node display area of the group node set. Displaying information about the multiple selected nodes in the group node set requires a smaller display area, making it easier for users to view more process nodes. In the expanded display state, users can view information about the multiple selected nodes included in the group node set, making it easier for users to edit the multiple selected nodes included in the group node set. In the collapsed display state, the node display area of the group node set displays information about the group node set. Thus, in the collapsed display state, the number of process nodes that need to be directly displayed in the first flowchart is reduced, making it easier for users to view and edit the first flowchart. For details about the expanded display state and collapsed display state of the grouped node set, please refer to the following description.
[0078] The embodiment of the present application does not limit the manner of displaying the grouping node set in the first flow chart. As some examples, the embodiment of the present application provides specific implementations of displaying the grouping node.
[0079] In a possible implementation, the grouped node set is displayed in an edit state.
[0080] The editing area of the grouped node set is displayed in the node display area of the grouped node set. The editing area is used to receive the editable content of the grouped node set. In the first flowchart displayed on the first process editing page, the editing area of the created grouped node set is displayed. Based on the displayed editing area of the grouped node set, the user can directly edit the editable content of the grouped node set. As an example, the editable content includes identification information of the grouped node set. The identification information is, for example, the number of the grouped node set, or the name of the grouped node set. For example, see Figure 6, which is a schematic diagram of a display method of a grouped node set provided in an embodiment of the present application. The editing area includes a name edit box. The name edit box is used to enter the name of the grouped node set. The user can edit the name of the created grouped node set using the name edit box.
[0081] In addition to the editing state, the group node collection also has two different display states, namely the expanded display state and the collapsed display state.
[0082] In another possible implementation, the grouped node set is displayed in an expanded display state. In the expanded display state, the node display area of the grouped node set displays the information of the grouped node set and the information of the selected nodes. In the case where the first flowchart includes multiple grouped node sets, the user can distinguish different grouped node sets based on the information of the grouped node sets. The information of the selected nodes is used to determine and distinguish the selected nodes. Based on the information of the selected nodes, the user can determine the selected nodes included in the grouped node set and distinguish different selected nodes. The area required to display the information of multiple selected nodes included in the grouped node set is smaller than the area required to directly display the multiple selected nodes, which makes it easier for users to view more process nodes.
[0083] See FIG. 7 , which is a schematic diagram of another display method for a grouped node set provided in an embodiment of the present application.
[0084] As an example, the information of the grouped node set includes an icon of the grouped node set and identification information of the grouped node set. Among them, the icon of the grouped node set can be a pre-set icon for representing the grouped node set. The identification information of the grouped node set can be determined based on a pre-set identification information template of the grouped node set. For example, the identification information template is "Group x". Among them, "x" is a positive integer, which is used to represent the xth grouped node set created in the first flowchart. As shown in Figure 7, the identification information of the grouped node set is "Group 1", indicating that the grouped node set is the first grouped node set created in the first flowchart.
[0085] The information about the selected nodes includes, for example, the node names of the selected nodes and the execution order of the selected nodes. As shown in FIG7 , the selected nodes are displayed in a collapsed state. In this collapsed state, the node name of the process node is displayed in the node display area. In other possible implementations, in this collapsed state, the node display area of the selected node also displays an introduction to the selected node.
[0086] In addition, the node display area of the grouped node set also includes a first display state switching control. As shown in FIG7 , the first display state switching control is used to switch the display state of the grouped node set from an expanded display state to a collapsed display state.
[0087] It should be noted that, in some cases, the user can trigger the selected node to be displayed in an expanded display state. The selected node of the non-node set displays an editing area in the expanded display state. In this way, the user can edit the selected node of the non-node set. As shown in Figure 7, the node display area of the grouped node set also includes a second display state switching control. The second display state switching control is used to switch the display state of all selected nodes included in the grouped node set from a collapsed display state to an expanded display state. The user triggers the second display state switching control to enable each selected node to be displayed in an expanded display state, which is convenient for the user to edit the selected node.
[0088] In another possible implementation, the grouped node set is displayed in a collapsed state. In this collapsed state, the node display area of the grouped node set displays only information about the grouped node set. A user can identify the grouped node set based on the information about the grouped node set. Furthermore, if the first flowchart includes multiple grouped node sets, the user can distinguish between different grouped node sets based on the information about the grouped node sets.
[0089] See FIG8 , which is a schematic diagram of another display method for a grouped node set provided in an embodiment of the present application.
[0090] As an example, the information of the grouped node set includes an icon of the grouped node set and identification information of the grouped node set, that is, "Group 1". The icon of the grouped node set can be a pre-set icon for representing the grouped node set. The identification information of the grouped node set can be determined based on a pre-set identification information template of the grouped node set.
[0091] In addition, a third display state switching control is also included in the node display area of the grouped node set. As shown in FIG8 , the third display state switching control is used to switch the display state of the grouped node set from the collapsed display state to the expanded display state.
[0092] It should be noted that when a grouped node set is in an expanded or collapsed display state, the user can trigger the grouped node set to be displayed in an edit state. As an example, the user can double-click the node display area of the grouped node set to trigger the edit state of the grouped node set, thereby displaying the edit area of the grouped node set. As an example, the node display area of the grouped node set displays the identification information of the grouped node set. The user can double-click the identification information of the grouped node set to trigger the display of the edit area of the grouped node set.
[0093] The second type: the node set is a sub-process node set.
[0094] The sub-process node set is a node set including multiple process nodes constituting the sub-process. The multiple selected nodes belong to the multiple process nodes constituting the sub-process.
[0095] The embodiment of the present application does not limit the display method of the sub-process node set in the first flowchart. In one possible implementation method, the node display area of the sub-process node set includes the identification information of the second flowchart. Based on the identification information of the second flowchart, the user can determine the second flowchart that the sub-process node set can call. See Figure 9, which is a schematic diagram of a display method of a sub-process node set provided by an embodiment of the present application. "Sub-process A" is the identification information of the second flowchart, that is, the identification information of the sub-process constructed by the sub-process node set.
[0096] It should be noted that in some possible implementations, before creating a sub-process node set including multiple selected nodes, it is determined that the multiple selected nodes meet preset sub-process creation conditions. In other words, it is necessary to first determine that the multiple selected nodes can create a sub-process node set. The preset sub-process creation conditions are pre-set conditions used to confirm that the selected nodes can create a sub-process node set. The embodiments of the present application do not limit the specific content of the preset sub-process creation conditions. As an example, the preset sub-process creation condition is that the process node is a node pre-configured to be capable of creating a sub-process. As another example, the preset sub-process creation condition is that the node is not used to create a sub-process. This can avoid the problem of the same process node corresponding to different flow charts, resulting in confusion in the flow chart call when executing the flow chart. As another example, the preset sub-process creation condition is that the execution order of the multiple selected nodes is continuous. This can avoid the situation where the execution order of the process nodes is confused when executing the flow chart. It should be noted that in some implementations, the selected node selected by the user to create the sub-process node set can be a process node included in the grouping node set. That is, the user can first select multiple selected nodes to create a group node set including these multiple selected nodes. Further, the user can select some or all of the multiple process nodes included in the group node set as selected nodes to create a sub-process node set.
[0097] In one possible implementation, an embodiment of the present application provides a specific implementation of creating a node set including multiple selected nodes, including:
[0098] A second flowchart of a sub-process node set is created based on the plurality of selected nodes, and a second process editing page for displaying and editing the second flowchart is displayed.
[0099] The second flow chart is a flow chart corresponding to the sub-process node set, and includes the process nodes belonging to the sub-process node set and the execution order between the process nodes.
[0100] In addition to the selected nodes, the second flowchart may also include other flowchart nodes. A second flowchart editing page is displayed for displaying and editing the second flowchart. The second flowchart editing page is displayed independently of the first flowchart editing page. The user can view and edit the second flowchart in the second flowchart editing page and add other flowchart nodes.
[0101] In some possible implementations, the second flowchart displayed in the second process editing page retains the execution order between multiple selected nodes. Taking the first process editing page shown in Figure 4 as an example, after the user triggers the sub-process control of "Generate Sub-Process", a second flowchart of a sub-process node set including two selected nodes "Submit to Warehouse" and "Get Records" is created, and the second process editing page is displayed. The display layer of the second process editing page is above the display layer of the first process editing page. See Figure 10, which is a schematic diagram of a second process editing page provided in an embodiment of the present application. The second flowchart displayed on the second process editing page includes two selected nodes, "Submit to Warehouse" and "Get Records", and the execution order between the two selected nodes, "Submit to Warehouse" and "Get Records".
[0102] In addition to multiple selected nodes, the created second flowchart also includes a template node and a connection relationship between the template node and the selected nodes. As an example, the template node can be one or more of the start node and the end node. As shown in Figure 10, the second flowchart includes a start node of "Call Trigger" and an end node of "End". Among them, "Call Trigger" is connected to "Submit to Warehouse". "Submit to Warehouse" is connected to "Get Records". "Get Records" is connected to "End". It means that "Call Trigger" is executed first, then "Submit to Warehouse", then "Get Records", and finally "End". As another example, the template node includes an unedited process node. The process node is connected to the selected node with the last execution order among multiple selected nodes. The node display area of the unedited process node displays an editing area so that the user can directly edit the process node. The user can also adjust the execution order of the unedited process node in the second flowchart to edit the second flowchart.
[0103] It should be noted that, in the process of editing the second flowchart, the user can insert a new process node between the execution order of the selected nodes, or insert a new process node after the execution order of the selected nodes, or insert a new process node before the execution order of the selected nodes, and this application does not limit this. The specific order of the multiple selected nodes in the execution order of the second flowchart can be changed. However, the order of execution of the multiple selected nodes is consistent with the order of execution of the multiple selected nodes in the first flowchart. Taking the second flowchart shown in Figure 10 as an example, the user can insert a new process node between "Submit to Warehouse" and "Get Records", or insert a new process node after "Get Records", or insert a new process node before "Submit to Warehouse". However, the order of execution of "Submit to Warehouse" is before the order of execution of "Get Records". As an example, see Figure 11, which is a schematic diagram of a second flowchart that has been edited provided in an embodiment of the present application. In the edited second flowchart, add new nodes between the "Submit to Warehouse" and "Get Records" process nodes, namely the "Confirm Submission Success" and "Submission Failure Repeat Submission" process nodes. Add a new node between the "Get Records" and "End" process nodes, namely the "Confirm Record Completeness" process node.
[0104] In some possible implementations, after creating the second flowchart, a calling relationship between the sub-process node set and the second flowchart is established. The calling relationship between the sub-process node set and the second flowchart can be established using a sub-process trigger. When the first flowchart is subsequently executed, when the sub-process node set is executed in the execution order, the second flowchart is called based on the scheduling relationship between the sub-process node set and the second flowchart. In this way, the number of process nodes directly displayed in the first flowchart can be reduced, and the flowchart can be reused by other flowcharts, making it easier for users to edit flowcharts.
[0105] Additionally, users can view the created second flowchart on the process management page. The process management page displays information about each created flowchart. This information includes, for example, the flowchart's name, creation time, and its purpose. The process management page also includes edit and view controls for each flowchart. Users can trigger the view control to view the flowchart. Alternatively, users can trigger the edit control to display the process edit page, where they can view and edit the flowchart.
[0106] Based on the multi-process node processing method provided in the above method embodiment, the embodiment of the present application also provides a multi-process node processing device, which will be described below in conjunction with the accompanying drawings.
[0107] See Figure 12, which is a schematic diagram of the structure of a multi-process node processing device provided in an embodiment of the present application. As shown in Figure 12, the multi-process node processing device includes:
[0108] A first display unit 1201 is configured to display a first process editing page, where the first process editing page is configured to display and edit a first flow chart, where the first flow chart includes flow nodes.
[0109] A creating unit 1202 is configured to create a node set including the multiple selected nodes in response to obtaining a multi-node processing request for the multiple selected nodes;
[0110] The second display unit 1203 is configured to stop displaying the multiple selected nodes in the first flow chart and display the node set, where the node set is used to replace the multiple selected nodes.
[0111] In a possible implementation, the multi-node processing request includes a multi-node grouping request, and the node set is a grouped node set.
[0112] In a possible implementation, the second display unit 1203 is configured to display the node set, including:
[0113] The second display unit 1203 is used to display an editing area of the grouped node set, where the editing area is used to receive editable content of the grouped node set.
[0114] In a possible implementation manner, the editable content includes identification information of the group node set.
[0115] In a possible implementation, the apparatus further includes:
[0116] The first determining unit is configured to determine whether a plurality of the selected nodes meet a preset grouping condition.
[0117] In a possible implementation, the multi-node processing request includes a sub-process creation request, the node set is a sub-process node set, and the creating unit 1202 is configured to create a node set including the multiple selected nodes, including:
[0118] The creating unit 1202 is configured to create a second flowchart of the sub-process node set based on the multiple selected nodes; and display a second process editing page, where the second process editing page is used to display and edit the second flowchart.
[0119] In a possible implementation, the apparatus further includes:
[0120] The second determining unit is configured to determine whether the plurality of selected nodes meet a preset sub-process creation condition.
[0121] In a possible implementation, the apparatus further includes:
[0122] An establishing unit is used to establish a calling relationship between the sub-process node set and the second flowchart, wherein the calling relationship is used to trigger a call and execute the second flowchart when the sub-process node set is executed.
[0123] In a possible implementation, the node display area of the sub-process node set includes identification information of the second flowchart.
[0124] Based on the multi-process node processing method provided in the above method embodiment, the present application also provides an electronic device, including: one or more processors; a storage device on which one or more programs are stored, when the one or more programs are executed by the one or more processors, the one or more processors implement the multi-process node processing method as described in any of the above embodiments.
[0125] Reference is now made to FIG13 , which shows a schematic diagram of the structure of an electronic device 1300 suitable for implementing an embodiment of the present application. The terminal device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable Android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs (televisions), desktop computers, and the like. The electronic device shown in FIG13 is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0126] As shown in FIG13 , the electronic device 1300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage device 1308 into a random access memory (RAM) 1303. Various programs and data required for the operation of the electronic device 1300 are also stored in the RAM 1303. The processing device 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.
[0127] Typically, the following devices may be connected to the I / O interface 1305: an input device 1306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1309. The communication device 1309 may allow the electronic device 1300 to communicate with other devices wirelessly or by wire to exchange data. Although FIG13 illustrates the electronic device 1300 with various devices, it should be understood that not all of the illustrated devices are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0128] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1309, or installed from the storage device 1308, or installed from the ROM 1302. When the computer program is executed by the processing device 1301, the above-mentioned functions defined in the method of the embodiment of the present application are performed.
[0129] The electronic device provided in the embodiment of the present application and the multi-process node processing method provided in the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0130] Based on the method for processing multiple process nodes provided in the above method embodiment, an embodiment of the present application provides a computer storage medium on which a computer program is stored, wherein when the program is executed by a processor, the method for processing multiple process nodes as described in any of the above embodiments is implemented.
[0131] It should be noted that the computer-readable medium mentioned above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0132] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0133] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0134] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the multi-process node processing method.
[0135] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0136] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0137] The units involved in the embodiments described in this application may be implemented by software or hardware. In some cases, the name of a unit / module does not constitute a limitation of the unit itself. For example, a voice data acquisition module may also be described as a "data acquisition module."
[0138] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0139] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0140] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.
[0141] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0142] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0143] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing multiple process nodes, comprising: Displaying a first process editing page, where the first process editing page is used to display and edit a first flow chart, where the first flow chart includes flow nodes; In response to obtaining a multi-node processing request for a plurality of selected nodes, creating a node set including the plurality of selected nodes; In the first flow chart, the plurality of selected nodes are stopped from being displayed, and the node set is displayed, and the node set is used to replace the plurality of selected nodes.
2. The method according to claim 1, wherein: The multi-node processing request includes a multi-node grouping request, and the node set is a grouped node set.
3. The method according to claim 2, wherein: The displaying of the node set includes: An editing area of the grouped node set is displayed, where the editing area is used to receive editable content of the grouped node set.
4. The method according to claim 3, wherein: The editable content includes identification information of the group node set.
5. The method according to any one of claims 2 to 4, wherein: Before creating the node set including the plurality of selected nodes, the method further includes: It is determined that a plurality of the selected nodes meet a preset grouping condition.
6. The method according to any one of claims 1 to 5, wherein: The multi-node processing request includes a request to create a sub-process, the node set is a sub-process node set, and the creation includes a node set of the multiple selected nodes, including: Creating a second flow chart of the sub-process node set based on the multiple selected nodes; A second process editing page is displayed, where the second process editing page is used to display and edit the second flow chart.
7. The method according to claim 6, wherein: Before creating the second flow chart of the sub-process node set based on the multiple selected nodes, the method further includes: It is determined that the plurality of selected nodes meet a preset sub-flow creation condition.
8. The method according to claim 6 or 7, further comprising: Establish a calling relationship between the sub-process node set and the second flow chart, the calling relationship Used to trigger the call and execute the second flow chart when the sub-process node set is executed.
9. The method according to any one of claims 6 to 8, wherein: The node display area of the sub-process node set includes identification information of the second flowchart.
10. A processing device for multiple process nodes, comprising: A first display unit is configured to display a first process editing page, wherein the first process editing page is used to display and edit a first flow chart, wherein the first flow chart includes flow nodes; a creating unit configured to, in response to obtaining a multi-node processing request for a plurality of selected nodes, create a node set including the plurality of selected nodes; The second display unit is configured to stop displaying the multiple selected nodes in the first flow chart and display the node set, where the node set is used to replace the multiple selected nodes.
11. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.
12. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Flow diagram generating method and device
CN103577164A
Flexible and convenient flow chart building method
CN106648608A
Automatic process editing method and device, electronic equipment and storage medium
CN115509503A
Displaying partial graphs by expanding and collapsing nodes
US5515487A
