Methods, apparatus, processors, and electronic devices for generating approval flowcharts
By acquiring and visualizing the components and relationships in the approval process flowchart, the problem of low approval efficiency caused by writing code is solved, enabling the rapid generation and flexible customization of approval process flowcharts, thereby improving the efficiency of the approval process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies generate approval flowcharts by writing code, which results in low approval efficiency and makes it difficult to meet the needs for flexibility and rapid deployment.
By acquiring information on multiple target components and their relationships, and performing visualization and rendering processes, approval flowcharts are generated, avoiding the need for custom coding for each approval flowchart.
It enables the rapid generation of approval flowcharts, improving the efficiency of the approval process and supporting flexible customization and rapid deployment.
Smart Images

Figure CN115268891B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of financial technology, in particular to a generation method and device of an approval flowchart, a processor and an electronic device. BACKGROUND
[0002] Currently, when a user is approving a flow, the user usually adopts a flowchart mode to approve the flow. Therefore, the speed of generating an approval flowchart directly affects the approval efficiency of the flow. Moreover, in the related art, a code-level flow customization mode is adopted to customize the approval flowchart. However, with the increasing flexibility of the user to the flow of the flow transfer function, if the code writing mode is continued to customize the approval flowchart, it is difficult to meet the needs of flexibly customizing the approval flowchart and subsequently quickly putting the approval flowchart online, and thus the approval efficiency of the flow is low.
[0003] Currently, there is no effective solution to the problem that the code writing mode is adopted to generate the approval flowchart in the related art, resulting in low approval efficiency of the flow. SUMMARY
[0004] The main purpose of the present application is to provide a generation method and device of an approval flowchart, a processor and an electronic device, to solve the problem that the code writing mode is adopted to generate the approval flowchart in the related art, resulting in low approval efficiency of the flow.
[0005] In order to achieve the above purpose, according to one aspect of the present application, a generation method of an approval flowchart is provided. The method comprises: acquiring a plurality of target components and a plurality of target relationship information, wherein the plurality of target components are components in a target approval flowchart, and each target relationship information is used to represent the relationship between two target components in the target approval flowchart; performing target processing on the plurality of target components and the plurality of target relationship information to generate the target approval flowchart, wherein the target processing at least includes visualization processing and rendering processing.
[0006] Further, acquiring a plurality of target components and a plurality of target relationship information comprises: acquiring target query information, wherein the target query information is used to query the attribute information of each flow stored before the target approval flowchart is generated; querying the attribute information of each flow according to the target query information to obtain a query result; and obtaining the plurality of target components and the plurality of target relationship information according to the query result.
[0007] Furthermore, after performing target processing on the plurality of target components and the plurality of target relationship information to generate the target approval flowchart, the method further includes: obtaining a target instruction, wherein the target instruction is used to instruct a target object to perform a target operation on the target approval flowchart, the target operation being one of the following: drag operation, zoom operation; responding to the target instruction, performing the target operation on the target approval flowchart to obtain a first approval flowchart.
[0008] Further, after responding to the target instruction and performing the target operation on the target approval flowchart to obtain the first approval flowchart, the method further includes: obtaining target content information in the target approval flowchart and obtaining first content information in the first approval flowchart; determining whether the target content information and the first content information are the same; if the target content information and the first content information are the same, then re-processing the multiple target components and the multiple target relationship information to generate a second approval flowchart; if the target content information and the first content information are not the same, then determining target information, wherein the target information is used to indicate whether to save the multiple first components and multiple first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0009] Furthermore, after responding to the target instruction and performing the target operation on the target approval flowchart to obtain the first approval flowchart, the method further includes: determining target information, wherein the target information is used to indicate whether to save multiple first components and multiple first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0010] Furthermore, after determining the target information, the method further includes: if the target information indicates that the plurality of first components and the plurality of first relationship information should be saved, then the plurality of first components and the plurality of first relationship information should be saved; if the target information indicates that the plurality of first components and the plurality of first relationship information should not be saved, then it is determined whether to re-acquire the target query information and a determination result is obtained; if the determination result is to re-acquire the target query information, then the target query information should be re-acquired and a third approval flowchart is generated; if the determination result is not to re-acquire the target query information, then the target processing is re-performed on the plurality of target components and the plurality of target relationship information to generate a fourth approval flowchart.
[0011] Furthermore, if the judgment result is to re-acquire the target query information, then after re-acquiring the target query information and generating the third approval flowchart, the method further includes: storing the acquired target query information and the re-acquired target query information, and comparing the target approval flowchart and the third approval flowchart.
[0012] To achieve the above objectives, according to another aspect of this application, an apparatus for generating an approval flowchart is provided. The apparatus includes: a first acquisition unit, configured to acquire multiple target components and multiple target relationship information, wherein the multiple target components are components in a target approval flowchart, and each target relationship information is used to represent the relationship between two target components in the target approval flowchart; and a first generation unit, configured to perform target processing on the multiple target components and the multiple target relationship information to generate the target approval flowchart, wherein the target processing includes at least: visualization processing and rendering processing.
[0013] Further, the first acquisition unit includes: a first acquisition module, used to acquire target query information, wherein the target query information is used to query the attribute information of each process stored before generating the target approval flowchart; a first query module, used to query the attribute information of each process based on the target query information to obtain query results; and a first determination module, used to obtain the plurality of target components and the plurality of target relationship information based on the query results.
[0014] Furthermore, the device further includes: a second acquisition unit, configured to acquire a target instruction after performing target processing on the plurality of target components and the plurality of target relationship information to generate the target approval flowchart, wherein the target instruction is used to instruct a target object to perform a target operation on the target approval flowchart, the target operation being one of the following: drag operation, zoom operation; and a first response unit, configured to respond to the target instruction and perform the target operation on the target approval flowchart to obtain a first approval flowchart.
[0015] Furthermore, the apparatus further includes: a third acquisition unit, configured to, after responding to the target instruction and performing the target operation on the target approval flowchart to obtain a first approval flowchart, acquire target content information in the target approval flowchart and acquire first content information in the first approval flowchart; a first judgment unit, configured to judge whether the target content information and the first content information are the same; a second generation unit, configured to, if the target content information and the first content information are the same, re-perform the target processing on the plurality of target components and the plurality of target relationship information to generate a second approval flowchart; and a first determination unit, configured to, if the target content information and the first content information are not the same, determine the target information, wherein the target information is used to indicate whether to save the plurality of first components and the plurality of first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0016] Furthermore, the device further includes: a second determining unit, configured to determine target information after performing the target operation on the target approval flowchart in response to the target instruction to obtain a first approval flowchart, wherein the target information is used to indicate whether to save multiple first components and multiple first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0017] Furthermore, the device further includes: a first storage unit, configured to, after determining the target information, save the plurality of first components and the plurality of first relationship information if the target information indicates that the plurality of first components and the plurality of first relationship information should be saved; a second judgment unit, configured to, if the target information indicates that the plurality of first components and the plurality of first relationship information should not be saved, determine whether to re-acquire the target query information and obtain a judgment result; a fourth acquisition unit, configured to, if the judgment result indicates that the target query information should be re-acquired, re-acquire the target query information and generate a third approval flowchart; and a third generation unit, configured to, if the judgment result indicates that the target query information should not be re-acquired, re-process the plurality of target components and the plurality of target relationship information to generate a fourth approval flowchart.
[0018] Furthermore, the device further includes: a second storage unit, configured to, after the determination result is to re-acquire the target query information, re-acquire the target query information, and generate a third approval flowchart, store the acquired target query information and the re-acquired target query information, and compare the target approval flowchart and the third approval flowchart.
[0019] To achieve the above objectives, according to another aspect of this application, a processor is provided for running a program, wherein the program, when running, executes the approval flowchart generation method described in any of the above claims.
[0020] To achieve the above objectives, according to another aspect of this application, an electronic device is provided, the electronic device including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the approval flowchart generation method described in any of the above.
[0021] This application employs the following steps: obtaining multiple target components and multiple target relationship information, wherein the multiple target components are components in the target approval flowchart, and each target relationship information represents the relationship between two target components in the target approval flowchart; performing target processing on the multiple target components and multiple target relationship information to generate the target approval flowchart, wherein the target processing includes at least visualization processing and rendering processing, solving the problem of low approval efficiency caused by generating approval flowcharts by writing code in related technologies. By obtaining multiple components in the approval flowchart and the relationship between two target components in the approval flowchart, and directly performing visualization processing and rendering processing on the multiple components in the approval flowchart and the relationship between two target components in the approval flowchart, there is no need to customize each approval flowchart by writing code, thereby enabling rapid generation of approval flowcharts and improving the efficiency of the approval process. Attached Figure Description
[0022] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0023] Figure 1 This is a flowchart of the method for generating an approval flowchart according to an embodiment of this application;
[0024] Figure 2 This is a schematic diagram of an optional approval flowchart generation device provided according to an embodiment of this application;
[0025] Figure 3 This is a schematic diagram of the process visualization device in the embodiments of this application;
[0026] Figure 4 This is a schematic diagram of the process analysis device in the embodiments of this application;
[0027] Figure 5 This is a flowchart of an optional approval flowchart generation method provided according to an embodiment of this application;
[0028] Figure 6 This is a schematic diagram of an apparatus for generating an approval flowchart according to an embodiment of this application;
[0029] Figure 7 This is a schematic diagram of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0030] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] It should be noted that all information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent information from the aforementioned user or organization.
[0034] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:
[0035] Components: Represent the hierarchical information of the operation types in the process, including process, decision, start / end, input / output.
[0036] Conditions: Indicate the hierarchical relationship between two components, including parent nodes and child nodes, and the flow relationship from the upper level node to the lower level node.
[0037] Flow: refers to the process between every two controls, including submit, return, pass, and fail.
[0038] Version: After updating each flowchart, the updated flowchart is saved as a new version; otherwise, no new version is created.
[0039] The present invention will now be described in conjunction with preferred implementation steps. Figure 1 This is a flowchart of the method for generating an approval flowchart according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:
[0040] Step S111: Obtain multiple target components and multiple target relationship information, wherein the multiple target components are components in the target approval process diagram, and each target relationship information is used to represent the relationship between two target components in the target approval process diagram.
[0041] For example, identify the multiple components in the approval flowchart that need to be drawn. These components can be circular components representing the start or end of the process, diamond components representing judgments, and rectangular components representing progress, etc. Next, determine the hierarchical relationships between any two of these components, that is, determine the conditional relationships between the two components. For example, the hierarchical relationship between the first circular component and the first rectangular component, or the hierarchical relationship between the first rectangular component and the first diamond component in the approval flowchart.
[0042] Step S112: Perform target processing on multiple target components and multiple target relationship information to generate a target approval flowchart. The target processing includes at least visualization processing and rendering processing.
[0043] For example, the above-mentioned components and their conditional relationships can be visualized and rendered, and an approval flowchart can be generated.
[0044] Through the above steps S111 to S112, by obtaining the relationships between multiple components in the approval flowchart and the two target components in the approval flowchart, and directly visualizing and rendering the relationships between the multiple components in the approval flowchart and the two target components in the approval flowchart, there is no need to customize each approval flowchart by writing code, thereby quickly generating approval flowcharts and improving the efficiency of the approval process.
[0045] Obtaining multiple target components and multiple target relationship information is also crucial for this application. Therefore, in the approval flowchart generation method provided in this application embodiment, the following steps are used to obtain multiple target components and multiple target relationship information: obtaining target query information, wherein the target query information is used to query the attribute information of each process stored before generating the target approval flowchart; querying the attribute information of each process based on the target query information to obtain the query results; and obtaining multiple target components and multiple target relationship information based on the query results.
[0046] For example, a schematic diagram of an optional approval flowchart generation device, such as Figure 2 As shown, the optional approval flowchart generation device includes: a flowchart visualization device 1, a data storage device 2, and a flowchart analysis device 3. The flowchart visualization device 1 is responsible for querying, displaying, and interacting with the flowchart; it also transmits component information, condition information, user information, and version information to the flowchart analysis device 3; it receives component condition relationship mapping information returned by the flowchart analysis device 3 for visualization rendering; and it receives user drag-and-drop and information editing requests, then transmits the request information to the component storage device 2 and the condition storage device 3. The data storage device 2 stores information such as user, version, component, and condition editing requests transmitted by the flowchart visualization device 1. The flowchart analysis device 3 receives query conditions transmitted by the flowchart visualization device 1, queries the existing component and condition data, and then obtains detailed data on component and condition relationships; it also performs information transformation on the detailed data to obtain component condition relationship mapping information, and then returns the relationship mapping information to the flowchart visualization device 1.
[0047] In addition, in this embodiment, a schematic diagram of the process visualization device is shown below. Figure 3 As shown, the process visualization device includes a process query module 11, a flowchart visualization rendering module 12, and a flowchart visualization editing module 13. The process query module 11 receives user-input query conditions (including process name, version information, maintainer, and maintenance time) and transmits the query condition information to the process analysis device 3. A schematic diagram of the process analysis device is shown below. Figure 4 As shown, the process analysis device includes a component condition relationship detail query module 31 and a component condition relationship conversion module 32. The component condition relationship detail query module 31 receives the query conditions transmitted by the relationship process visualization device 1, iteratively queries the existing structured field-level component condition relationship information, and then obtains detailed data on components and condition relationships. The component condition relationship conversion module 32 is responsible for converting the detailed data on components and condition relationships to obtain detailed node information.
[0048] For example, by inputting query conditions (including process name, version information, maintainer, and maintenance time) through the process query module 11, the component condition relationship detail query module 31 iteratively queries the existing structured component condition relationship information to obtain detailed component condition relationship data. For instance, when selecting information for versions 20220101 and 20220102, the obtained detailed component condition relationship data is shown in Table 1.
[0049] Table 1 shows the detailed data of component conditional relationships.
[0050] Process ID Process Name Maintainer Maintenance Time Version Number Status 00001 Process 1 Zhang San 20220102HH:MM:SS 20220102 00002 Process 1 Zhang San 20220101HH:MM:SS 20220101 Delete 00003 Process 2 Li Si 20220101HH:MM:SS 20220101 00004 Process 3 Wang Wu 20220101HH:MM:SS 20220102
[0051] Then, the component condition relationship detail data is transformed by the component condition relationship conversion module 32 to obtain the component condition relationship detail information. The obtained component condition relationship detail information is shown in Table 2.
[0052] Table 2 shows the detailed information on the component conditional relationships obtained.
[0053] Process ID Component Name Component Type Condition Number Version Process 1 Component 1 Start 0 20220101 Process 1 Component 2 Approval 1 1 20220101 Process 1 Component 3 Approval 2 2 20220101 Process 1 Component 4 Approval 3 3 20220101 Process 1 Component 1 Start 0 20220102 Process 1 Component 2 Approval 1 2 20220102 Process 1 Component 3 Approval 2 3 20220102 Process 1 Component 4 Approval 3 1 20220102
[0054] The above method can quickly and accurately obtain information about multiple components in the approval process flowchart and the relationships between two components.
[0055] In order to accurately generate the first approval flowchart, the approval flowchart generation method provided in this application embodiment generates the first approval flowchart in the following manner: after performing target processing on multiple target components and multiple target relationship information to generate a target approval flowchart, a target instruction is obtained, wherein the target instruction is used to instruct the target object to perform a target operation on the target approval flowchart, and the target operation is one of the following: drag operation, zoom operation; in response to the target instruction, the target operation is performed on the target approval flowchart to obtain the first approval flowchart.
[0056] For example, the flowchart visualization rendering module 12 in the process visualization device is responsible for receiving the component condition relationship mapping information and detailed data of component and condition relationships returned by the process analysis device 3, and performing visualization rendering to generate a full process relationship display diagram; the flowchart visualization editing module 13 is responsible for accepting the user's drag-and-drop and information editing requests (including adjustments to position, name, icons, etc.) and transmitting the request information to the data storage device 2. Therefore, the visualization rendering module 12 can be used to visualize and render multiple components and the condition relationships between components, and generate an approval flowchart. After generating the approval flowchart, the user can use the flowchart visualization editing module 13 to perform drag-and-drop, zoom, and other operations on the page where the approval flowchart is generated. Then, after the user performs drag-and-drop, zoom, and other operations on the page where the approval flowchart is generated, a new version of the approval flowchart is generated.
[0057] The above solutions enable businesses to create approval flowcharts online independently, thereby improving their accuracy. Furthermore, once the approval flowcharts are created, they can be quickly deployed online and decoupled from existing program version iteration plans, thus increasing the speed of flowchart generation and ultimately improving approval efficiency.
[0058] Determining whether to save multiple first components and multiple first relationship information in the first approval flowchart is also crucial for this application. Therefore, in the approval flowchart generation method provided in this application embodiment, the following steps are used to determine whether to save multiple first components and multiple first relationship information in the first approval flowchart: After responding to the target instruction, performing the target operation on the target approval flowchart to obtain the first approval flowchart, obtaining the target content information in the target approval flowchart, and obtaining the first content information in the first approval flowchart; determining whether the target content information and the first content information are the same; if the target content information and the first content information are the same, then re-processing the multiple target components and multiple target relationship information to generate the second approval flowchart; if the target content information and the first content information are different, then determining the target information, wherein the target information is used to indicate whether to save multiple first components and multiple first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0059] For example, based on the content of the two generated approval flowcharts, it is determined whether the information in the flowchart has changed after the interaction. If the information in the flowchart has changed, the approval flowchart is re-rendered through the visualization rendering module 12. If the information in the flowchart has not changed, but only the size of the flowchart has changed, it is determined whether to save the flowchart data after the size change.
[0060] In summary, determining whether to save the data of the changed flowcharts facilitates the subsequent tracing of historical versions of the approval flowcharts.
[0061] In order to accurately determine the target information, the method for generating the approval flowchart provided in this application embodiment uses the following method to determine the target information: after responding to the target instruction, performing the target operation on the target approval flowchart to obtain the first approval flowchart, the target information is determined. The target information is used to indicate whether to save multiple first components and multiple first relationship information in the first approval flowchart. Each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0062] For example, after re-visualizing and rendering the approval process flowchart, determine whether to save the changed data.
[0063] The above method allows for quick and convenient saving of the revised approval process flowchart and its updated data.
[0064] How to generate the fourth approval flowchart is also crucial to this application. Therefore, in the method for generating the approval flowchart provided in this application embodiment, the following steps are used to generate the fourth approval flowchart: After determining the target information, if the target information indicates that multiple first components and multiple first relationship information should be saved, then multiple first components and multiple first relationship information should be saved; if the target information indicates that multiple first components and multiple first relationship information should not be saved, then it is determined whether to re-obtain the target query information and obtain the determination result; if the determination result is to re-obtain the target query information, then the target query information should be re-obtained and the third approval flowchart should be generated; if the determination result is not to re-obtain the target query information, then the multiple target components and multiple target relationship information should be re-processed to generate the fourth approval flowchart.
[0065] For example, if it is necessary to save the changed data, the page editing information is passed to the data storage device 2, and the changed data is stored through the data storage device 2; if it is not necessary to save the changed data, it is determined whether the information needs to be queried again; if it is necessary to query again, the user re-enters the query conditions, and then a new version of the approval flowchart is generated based on the multiple components and the conditional relationships between the two components obtained from the re-entered query conditions; if it is not necessary to query again, the multiple components and the conditional relationships between the components are re-visualized and rendered, and finally a new version of the approval flowchart is generated.
[0066] In summary, this system enables the visualization of the entire approval process, allowing users to gain a comprehensive overview of the system's workflow and quickly locate the current approval node. This allows them to understand the preceding and subsequent process information, thereby improving the efficiency of the approval process.
[0067] In order to compare the target approval flowchart and the third approval flowchart, the approval flowchart generation method provided in this application embodiment compares the target approval flowchart and the third approval flowchart in the following way: if the judgment result is to re-obtain the target query information, then re-obtain the target query information and generate the third approval flowchart, store the obtained target query information and the re-obtained target query information, and compare the target approval flowchart and the third approval flowchart.
[0068] For example, after generating a new version of the approval flowchart, the historical query information and the re-acquired query information can be stored through the data storage device 2.
[0069] The above method allows for quick and easy comparison of two different versions of the approval flowchart, thereby improving the accuracy of the generated approval flowchart.
[0070] For example, Figure 5 This is a flowchart of an optional approval flowchart generation method provided in the embodiments of this application, such as... Figure 5 As shown, the optional method for generating an approval flowchart includes the following steps:
[0071] Step 100: The user inputs the query conditions (including process name, version information, maintainer, and maintenance time), and transmits the query condition information to the data storage device 2, which can support comparison of two versions;
[0072] Step 101: Iteratively query the existing structured component condition relationship information to obtain detailed data on component condition association relationships;
[0073] Step 102: Perform information transformation on the component condition relationship details data to obtain component condition association relationship details information;
[0074] Step 103: Return the detailed information on component condition association and the detailed data on component condition relationship to the process visualization device 1, and perform visualization rendering to generate a process approval display diagram;
[0075] Step 104: Users can perform drag-and-drop, zoom, and other operations on the page;
[0076] Step 105: Determine whether the interaction produces changes in graph information. If the interaction produces changes in graph information, perform real-time rendering using step 103. If the interaction does not produce changes in graph information, proceed to step 106.
[0077] Step 106: Determine whether to save the flowchart data after the size change. If the user saves the changed data, proceed to step 108 and pass the page editing information to the data storage device 2; if the user does not save the changed data, proceed to step 107.
[0078] Step 107: Determine whether to perform the query again, and the user can re-enter the query conditions. If the query is performed again, proceed to step 100; otherwise, proceed to step 103.
[0079] Step 108: Save the user page editing information.
[0080] In summary, the approval flowchart generation method provided in this application obtains multiple target components and multiple target relationship information. The target components are components within the target approval flowchart, and each target relationship information represents the relationship between two target components in the target approval flowchart. Target processing is then performed on the multiple target components and multiple target relationship information to generate the target approval flowchart. This target processing includes at least visualization processing and rendering processing. This solves the problem of low approval efficiency caused by using code to generate approval flowcharts in related technologies. By obtaining multiple components in the approval flowchart and the relationship between two target components in the approval flowchart, and directly performing visualization and rendering processing on these components and the relationship between two target components, there is no need to customize each approval flowchart by writing code. This allows for rapid generation of approval flowcharts, thereby improving the efficiency of the approval process.
[0081] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0082] This application also provides an apparatus for generating an approval flowchart. It should be noted that the apparatus for generating an approval flowchart in this application can be used to execute the method for generating approval flowcharts provided in this application. The following describes the apparatus for generating approval flowcharts provided in this application.
[0083] Figure 6 This is a schematic diagram of an apparatus for generating an approval flowchart according to an embodiment of this application. Figure 6 As shown, the device includes a first acquisition unit 601 and a first generation unit 602.
[0084] Specifically, the first acquisition unit 601 is used to acquire multiple target components and multiple target relationship information, wherein the multiple target components are components in the target approval process diagram, and each target relationship information is used to represent the relationship between two target components in the target approval process diagram;
[0085] The first generation unit 602 is used to perform target processing on multiple target components and multiple target relationship information to generate a target approval flowchart, wherein the target processing includes at least: visualization processing and rendering processing.
[0086] In summary, the approval flowchart generation device provided in this application embodiment acquires multiple target components and multiple target relationship information through the first acquisition unit 601. The multiple target components are components in the target approval flowchart, and each target relationship information represents the relationship between two target components in the target approval flowchart. The first generation unit 602 performs target processing on the multiple target components and multiple target relationship information to generate the target approval flowchart. The target processing includes at least visualization processing and rendering processing, solving the problem of low approval efficiency caused by using code to generate approval flowcharts in related technologies. By acquiring multiple components in the approval flowchart and the relationship between two target components in the approval flowchart, and directly performing visualization and rendering processing on the multiple components in the approval flowchart and the relationship between two target components in the approval flowchart, there is no need to customize each approval flowchart by writing code, thereby enabling rapid generation of approval flowcharts and improving the efficiency of the approval process.
[0087] Optionally, in the approval flowchart generation device provided in this application embodiment, the first acquisition unit includes: a first acquisition module, used to acquire target query information, wherein the target query information is used to query the attribute information of each process stored before generating the target approval flowchart; a first query module, used to query the attribute information of each process based on the target query information to obtain query results; and a first determination module, used to obtain multiple target components and multiple target relationship information based on the query results.
[0088] Optionally, in the approval flowchart generation apparatus provided in this application embodiment, the apparatus further includes: a second acquisition unit, configured to acquire a target instruction after performing target processing on multiple target components and multiple target relationship information to generate a target approval flowchart, wherein the target instruction is used to instruct a target object to perform a target operation on the target approval flowchart, and the target operation is one of the following: drag operation, zoom operation; and a first response unit, configured to respond to the target instruction and perform the target operation on the target approval flowchart to obtain a first approval flowchart.
[0089] Optionally, in the approval flowchart generation apparatus provided in this application embodiment, the apparatus further includes: a third acquisition unit, configured to acquire target content information in the target approval flowchart and acquire first content information in the first approval flowchart after performing a target operation on the target approval flowchart in response to a target instruction and obtaining a first approval flowchart; a first judgment unit, configured to judge whether the target content information and the first content information are the same; a second generation unit, configured to reprocess the multiple target components and multiple target relationship information to generate a second approval flowchart if the target content information and the first content information are the same; and a first determination unit, configured to determine the target information if the target content information and the first content information are not the same, wherein the target information is used to indicate whether to save the multiple first components and multiple first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0090] Optionally, in the approval flowchart generation device provided in the embodiments of this application, the device further includes: a second determining unit, used to determine target information after responding to a target instruction, performing a target operation on the target approval flowchart, and obtaining a first approval flowchart, wherein the target information is used to indicate whether to save multiple first components and multiple first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0091] Optionally, in the approval flowchart generation device provided in the embodiments of this application, the device further includes: a first storage unit, configured to, after determining the target information, if the target information indicates that multiple first components and multiple first relationship information should be stored, then store multiple first components and multiple first relationship information; a second judgment unit, configured to, if the target information indicates that multiple first components and multiple first relationship information should not be stored, determine whether to re-acquire target query information and obtain a judgment result; a fourth acquisition unit, configured to, if the judgment result is to re-acquire target query information, re-acquire target query information and generate a third approval flowchart; and a third generation unit, configured to, if the judgment result is not to re-acquire target query information, re-process the multiple target components and multiple target relationship information and generate a fourth approval flowchart.
[0092] Optionally, in the approval flowchart generation device provided in the embodiments of this application, the device further includes: a second storage unit, used to store the acquired target query information and the reacquired target query information after the judgment result is to reacquire the target query information and generate a third approval flowchart, and to compare the target approval flowchart and the third approval flowchart.
[0093] The approval flowchart generation device includes a processor and a memory. The first acquisition unit 601 and the first generation unit 602 are stored in the memory as program units. The processor executes the program units stored in the memory to realize the corresponding functions.
[0094] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and adjusting kernel parameters can improve the efficiency of the approval process.
[0095] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0096] This invention provides a processor for running a program, wherein the program executes the method for generating the approval flowchart during runtime.
[0097] like Figure 7 As shown, an embodiment of the present invention provides an electronic device, the device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: acquiring multiple target components and multiple target relationship information, wherein the multiple target components are components in a target approval flowchart, and each target relationship information is used to represent the relationship between two target components in the target approval flowchart; performing target processing on the multiple target components and the multiple target relationship information to generate the target approval flowchart, wherein the target processing includes at least: visualization processing and rendering processing.
[0098] When the processor executes the program, it also performs the following steps: obtaining multiple target components and multiple target relationship information includes: obtaining target query information, wherein the target query information is used to query the attribute information of each process stored before generating the target approval flowchart; querying the attribute information of each process based on the target query information to obtain query results; and obtaining the multiple target components and the multiple target relationship information based on the query results.
[0099] When the processor executes the program, it also performs the following steps: after performing target processing on the plurality of target components and the plurality of target relationship information to generate the target approval flowchart, the method further includes: obtaining a target instruction, wherein the target instruction is used to instruct the target object to perform a target operation on the target approval flowchart, the target operation being one of the following: drag operation, zoom operation; in response to the target instruction, performing the target operation on the target approval flowchart to obtain a first approval flowchart.
[0100] When the processor executes the program, it also performs the following steps: after responding to the target instruction and performing the target operation on the target approval flowchart to obtain a first approval flowchart, the method further includes: obtaining target content information in the target approval flowchart and obtaining first content information in the first approval flowchart; determining whether the target content information and the first content information are the same; if the target content information and the first content information are the same, then re-performing the target processing on the plurality of target components and the plurality of target relationship information to generate a second approval flowchart; if the target content information and the first content information are not the same, then determining target information, wherein the target information is used to indicate whether to save the plurality of first components and the plurality of first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0101] When the processor executes the program, it also performs the following steps: after responding to the target instruction and performing the target operation on the target approval flowchart to obtain the first approval flowchart, the method further includes: determining target information, wherein the target information is used to indicate whether to save multiple first components and multiple first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0102] When the processor executes the program, it also performs the following steps: After determining the target information, the method further includes: if the target information indicates that the plurality of first components and the plurality of first relationship information should be saved, then the plurality of first components and the plurality of first relationship information should be saved; if the target information indicates that the plurality of first components and the plurality of first relationship information should not be saved, then it is determined whether to re-acquire the target query information and a determination result is obtained; if the determination result is to re-acquire the target query information, then the target query information should be re-acquired and a third approval flowchart should be generated; if the determination result is not to re-acquire the target query information, then the target processing should be performed again on the plurality of target components and the plurality of target relationship information to generate a fourth approval flowchart.
[0103] When the processor executes the program, it also implements the following steps: if the judgment result is to re-acquire the target query information, then re-acquire the target query information and generate a third approval flowchart, the method further includes: storing the acquired target query information and the re-acquired target query information, and comparing the target approval flowchart and the third approval flowchart.
[0104] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0105] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: acquiring multiple target components and multiple target relationship information, wherein the multiple target components are components in a target approval flowchart, and each target relationship information is used to represent the relationship between two target components in the target approval flowchart; performing target processing on the multiple target components and the multiple target relationship information to generate the target approval flowchart, wherein the target processing includes at least: visualization processing and rendering processing.
[0106] When executed on a data processing device, it is also suitable to execute an initialization program with the following method steps: obtaining multiple target components and multiple target relationship information includes: obtaining target query information, wherein the target query information is used to query the attribute information of each process stored before generating the target approval flowchart; querying the attribute information of each process based on the target query information to obtain query results; and obtaining the multiple target components and the multiple target relationship information based on the query results.
[0107] When executed on a data processing device, it is also suitable to execute an initialization program with the following method steps: after performing target processing on the plurality of target components and the plurality of target relationship information to generate the target approval flowchart, the method further includes: obtaining a target instruction, wherein the target instruction is used to instruct a target object to perform a target operation on the target approval flowchart, the target operation being one of the following: drag operation, zoom operation; in response to the target instruction, performing the target operation on the target approval flowchart to obtain a first approval flowchart.
[0108] When executed on a data processing device, the method is also adapted to execute an initialization program with the following steps: after responding to the target instruction and performing the target operation on the target approval flowchart to obtain a first approval flowchart, the method further includes: obtaining target content information in the target approval flowchart and obtaining first content information in the first approval flowchart; determining whether the target content information and the first content information are the same; if the target content information and the first content information are the same, then re-performing the target processing on the plurality of target components and the plurality of target relationship information to generate a second approval flowchart; if the target content information and the first content information are not the same, then determining target information, wherein the target information is used to indicate whether to save the plurality of first components and the plurality of first relationship information in the first approval flowchart, and each first relationship information is used to represent the relationship between two first components in the first approval flowchart.
[0109] When executed on a data processing device, it is also suitable to execute an initialization program with the following method steps: after responding to the target instruction, performing the target operation on the target approval flowchart to obtain a first approval flowchart, the method further includes: determining target information, wherein the target information is used to indicate whether to save multiple first components and multiple first relationship information in the first approval flowchart, each first relationship information being used to represent the relationship between two first components in the first approval flowchart.
[0110] When executed on a data processing device, it is also suitable to execute an initialization program with the following method steps: after determining the target information, the method further includes: if the target information indicates that the plurality of first components and the plurality of first relationship information should be saved, then the plurality of first components and the plurality of first relationship information should be saved; if the target information indicates that the plurality of first components and the plurality of first relationship information should not be saved, then it is determined whether to re-acquire the target query information and a determination result is obtained; if the determination result is to re-acquire the target query information, then the target query information should be re-acquired and a third approval flowchart should be generated; if the determination result is not to re-acquire the target query information, then the target processing should be performed again on the plurality of target components and the plurality of target relationship information to generate a fourth approval flowchart.
[0111] When executed on a data processing device, it is also suitable to execute an initialization program with the following method steps: if the judgment result is to re-acquire the target query information, then re-acquire the target query information and generate a third approval flowchart, the method further includes: storing the acquired target query information and the re-acquired target query information, and comparing the target approval flowchart and the third approval flowchart.
[0112] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0113] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0114] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0115] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0116] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0117] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0118] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0119] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0120] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0121] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method of generating an approval flowchart, characterized by, The method comprises the following steps: obtaining a plurality of target components and a plurality of target relationship information, wherein the plurality of target components are components in a target approval process diagram, and each target relationship information is used to represent a relationship between two target components in the target approval process diagram; performing target processing on the plurality of target components and the plurality of target relationship information to generate the target approval process diagram, wherein the target processing at least comprises visual processing and rendering processing; wherein, after performing target processing on the plurality of target components and the plurality of target relationship information to generate the target approval process diagram, the method further comprises: in response to a target instruction, performing target operation on the target approval process diagram to obtain a first approval process diagram; after performing target operation on the target approval process diagram in response to the target instruction to obtain the first approval process diagram, the method further comprises: obtaining target content information in the target approval process diagram and first content information in the first approval process diagram; determining whether the target content information and the first content information are the same; if the target content information and the first content information are the same, performing the target processing on the plurality of target components and the plurality of target relationship information again to generate a second approval process diagram; if the target content information and the first content information are not the same, determining target information, wherein the target information is used to indicate whether to save a plurality of first components and a plurality of first relationship information in the first approval process diagram, and each first relationship information is used to represent a relationship between two first components in the first approval process diagram; after performing target operation on the target approval process diagram in response to the target instruction to obtain the first approval process diagram, the method further comprises: determining target information, wherein the target information is used to indicate whether to save a plurality of first components and a plurality of first relationship information in the first approval process diagram, and each first relationship information is used to represent a relationship between two first components in the first approval process diagram; after determining the target information, the method further comprises: if the target information indicates to save the plurality of first components and the plurality of first relationship information, saving the plurality of first components and the plurality of first relationship information; if the target information indicates not to save the plurality of first components and the plurality of first relationship information, determining whether to reacquire target query information to obtain a determination result; if the determination result is to reacquire the target query information, reacquiring the target query information and generating a third approval process diagram; if the determination result is not to reacquire the target query information, performing the target processing on the plurality of target components and the plurality of target relationship information again to generate a fourth approval process diagram.
2. The method of claim 1, wherein, The step of obtaining a plurality of target components and a plurality of target relationship information comprises: obtaining target query information, wherein the target query information is used to query attribute information of each process stored before the target approval process diagram is generated; querying the attribute information of each process according to the target query information to obtain a query result; According to the query result, the plurality of target components and the plurality of target relationship information are obtained.
3. The method of claim 2, wherein, After the plurality of target components and the plurality of target relationship information are target processed to generate the target approval process diagram, the method further comprises: obtaining a target instruction, wherein the target instruction is used to instruct a target object to perform a target operation on the target approval process diagram, and the target operation is one of the following: a drag operation, a zoom operation.
4. The method of claim 1, wherein, After the judgment result is that the target query information is reacquired, the target query information is reacquired, and a third approval process diagram is generated, the method further comprises: storing the obtained target query information and the reacquired target query information, and comparing the target approval process diagram and the third approval process diagram.
5. An apparatus for generating an approval flowchart, characterized by comprising: Comprise: a first obtaining unit, configured to obtain a plurality of target components and a plurality of target relationship information, wherein the plurality of target components are components in a target approval process diagram, and each target relationship information is used to represent a relationship between two target components in the target approval process diagram; a first generating unit, configured to target process the plurality of target components and the plurality of target relationship information to generate the target approval process diagram, wherein the target processing at least includes: visual processing and rendering processing; wherein the device further comprises: a third obtaining unit, configured to obtain target content information in the target approval process diagram and first content information in the first approval process diagram after responding to a target instruction and performing a target operation on the target approval process diagram to obtain the first approval process diagram; a first judging unit, configured to judge whether the target content information and the first content information are the same; a second generating unit, configured to re-target process the plurality of target components and the plurality of target relationship information to generate a second approval process diagram if the target content information and the first content information are the same; and a first determining unit, configured to determine target information if the target content information and the first content information are not the same, wherein the target information is used to indicate whether to save a plurality of first components and a plurality of first relationship information in the first approval process diagram, and each first relationship information is used to represent a relationship between two first components in the first approval process diagram; The device further comprises: a second determining unit, configured to determine target information after responding to a target instruction and performing a target operation on the target approval process diagram to obtain the first approval process diagram, wherein the target information is used to indicate whether to save a plurality of first components and a plurality of first relationship information in the first approval process diagram, and each first relationship information is used to represent a relationship between two first components in the first approval process diagram; The device further comprises a first saving unit, configured to save the plurality of first components and the plurality of first relationship information if the target information indicates to save the plurality of first components and the plurality of first relationship information after the target information is determined; a second judging unit, configured to judge whether to reacquire the target query information if the target information indicates not to save the plurality of first components and the plurality of first relationship information, and obtain a judging result; a fourth acquiring unit, configured to reacquire the target query information and generate a third approval process chart if the judging result is to reacquire the target query information; and a third generating unit, configured to reprocess the plurality of target components and the plurality of target relationship information and generate a fourth approval process chart if the judging result is not to reacquire the target query information.
6. A processor, comprising: The processor is configured to run a program, and the program performs the method for generating the approval process chart in any one of claims 1 to 4 when the program is run.
7. An electronic device, comprising: The device comprises one or more processors and a memory, and the memory is configured to store one or more programs, and the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for generating the approval process chart in any one of claims 1 to 4.
Citation Information
Patent Citations
Software development platform based on visualization
CN112527250A
System and method for dynamically deploying workflow based on micro-service mode
CN112529545A