System function flow visualization method and device

By receiving operation events, extracting attribute information and generating execution flow charts, the problem that developers have difficulty understanding the execution process of system functions is solved, and the developer's familiarity efficiency and secondary development capabilities of system functions are improved.

CN118939246APending Publication Date: 2024-11-12BEIJING GRIDSUM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310537867.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing technology is difficult to help developers understand the execution process of system functions intuitively, comprehensively and accurately, resulting in developers being familiar with system functions in low efficiency and shallowly familiarity, which is not conducive to the secondary development of system functions.

Method used

By receiving operation events for the target function in the preset page, a data acquisition request is generated, attribute information of the target function is extracted, and an execution flow chart is generated for visual display.

Benefits of technology

Enable developers to intuitively, comprehensively and accurately understand the execution process of system functions, improve developers' familiarity with system functions, and promote secondary development of system functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939246A_ABST
    Figure CN118939246A_ABST
Patent Text Reader

Abstract

The invention discloses a system function process visualization method and device, relates to the technical field of computers, and mainly aims to help developers to intuitively, comprehensively and accurately know the execution process of system functions, improve the familiarity efficiency and degree of the developers to the system functions and improve the development efficiency. Therefore, a developer can conveniently carry out subsequent secondary development on system functions. According to the main technical scheme, the method comprises the steps that an operation event for a target function in a preset page is received, and a data acquisition request corresponding to the target function is generated; according to the data acquisition request, attribute information corresponding to the target function is extracted from a database, and the attribute information is used for representing related information recorded and stored in the database when the target function is dynamically agented; and generating an execution flow chart of the target function based on the attribute information, and visually displaying the execution flow chart in the preset page. The method is used for visual display of the system function process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for visualizing system function flow. Background Art

[0002] In an actual business system, a system function needs to go through multiple steps to be completed, in which each step executes a part of the system function, and each step can jump according to the execution logic. When all steps are completed, the system function is completed. That is, multiple implementation classes, method instances, etc. must be deployed in a system function module to achieve normal use of the system function.

[0003] At present, in order to help developers understand the execution process of a certain system function, the existing technology generally directly calls the deployment code of the system function so that developers can view and organize the implementation classes, method instances, etc. However, the deployment code corresponding to a system function is huge. The above method is not only time-consuming and labor-intensive, but also developers cannot intuitively, comprehensively and accurately understand the execution process of the system function, which leads to low efficiency and shallow familiarity of developers with the system functions, which is not conducive to the subsequent secondary development of the system functions by developers. Summary of the invention

[0004] In view of the above problems, the present invention provides a system function process visualization method and device, the main purpose of which is to help developers intuitively, comprehensively and accurately understand the execution process of system functions, improve the efficiency and familiarity of developers with system functions, so as to facilitate the subsequent secondary development of system functions by developers.

[0005] In order to solve the above technical problems, the present invention proposes the following solutions:

[0006] In a first aspect, the present invention provides a method for visualizing a system function flow, the method comprising:

[0007] Receive an operation event on a target function in a preset page, and generate a data acquisition request corresponding to the target function;

[0008] Extracting attribute information corresponding to the target function in a database according to the data acquisition request, wherein the attribute information is used to characterize relevant information recorded and stored in the database when dynamically proxying the target function;

[0009] An execution flowchart of the target function is generated based on the attribute information, and the execution flowchart is visually displayed in the preset page.

[0010] In a second aspect, the present invention provides a system function flow visualization device, the device comprising:

[0011] A first generating unit, configured to receive an operation event on a target function in a preset page, and generate a data acquisition request corresponding to the target function;

[0012] an extracting unit, configured to extract attribute information corresponding to the target function from a database according to the data acquisition request obtained by the first generating unit, wherein the attribute information is used to characterize relevant information recorded and stored in the database when dynamically proxying the target function;

[0013] The first processing unit is used to generate an execution flowchart of the target function based on the attribute information obtained by the extraction unit, and to visually display the execution flowchart in the preset page.

[0014] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the system function flow visualization method of the first aspect mentioned above.

[0015] In order to achieve the above-mentioned purpose, according to the fourth aspect of the present invention, an electronic device is provided, which includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the system function flow visualization method of the first aspect above.

[0016] By means of the above technical scheme, a method and device for visualizing a system function flow provided by the present invention is that when it is necessary to visualize the system function flow, the operation event for the target function in the preset page is first received, and a data acquisition request corresponding to the target function is generated, and then the attribute information corresponding to the target function is extracted from the database according to the data acquisition request, wherein the attribute information is used to characterize the relevant information recorded and stored in the database when the target function is dynamically proxy-ed, and finally the execution flow chart of the target function is generated based on the attribute information, and the execution flow chart is visualized in the preset page. Through the technical scheme provided by the present invention, the corresponding attribute information can be extracted from the database according to the data acquisition request corresponding to the target function generated by the operation event, that is, the relevant information recorded and stored in the database when the target function is dynamically proxy-ed, and the execution flow chart of the target function generated based on the attribute information is visualized in the preset page, so that the developers can intuitively, comprehensively and accurately understand the execution flow of the system function, effectively improve the efficiency and familiarity of the developers with the system function, and thus facilitate the subsequent secondary development of the system function by the developers.

[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0019] Figure 1 A flow chart of a method for visualizing a system function flow provided by an embodiment of the present invention is shown;

[0020] Figure 2 Another method for visualizing system function flow provided by an embodiment of the present invention is shown in the flowchart;

[0021] Figure 3 A block diagram showing a composition of a system function flow visualization device provided by an embodiment of the present invention;

[0022] Figure 4 A block diagram showing another system function flow visualization device provided by an embodiment of the present invention;

[0023] Figure 5 A schematic diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0024] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0025] At present, in order to help developers understand the execution process of a certain system function, the prior art generally directly calls the deployment code of the system function so that developers can view and organize the implementation classes, method instances, etc. However, the deployment code corresponding to a system function is huge. The above method is not only time-consuming and laborious, but also developers cannot intuitively, comprehensively and accurately understand the execution process of the system function, which leads to low efficiency and shallow familiarity of developers with the system function, which is not conducive to the subsequent secondary development of the system function by developers. The present invention extracts the attribute information corresponding to the target function in the database through a data acquisition request, that is, the relevant information recorded and stored in the database when the target function is dynamically proxied, and visualizes the execution flow chart of the target function generated based on the attribute information in the preset page, so that developers can intuitively, comprehensively and accurately understand the execution process of the system function, effectively improve the efficiency and familiarity of developers with the system function, and thus facilitate the subsequent secondary development of the system function by developers.

[0026] To this end, the embodiment of the present invention provides a system function flow visualization method, which can help developers intuitively, comprehensively and accurately understand the execution process of system functions, improve the efficiency and familiarity of developers with system functions, and facilitate the subsequent secondary development of system functions by developers. The specific execution steps are as follows: Figure 1 As shown, including:

[0027] 101. Receive an operation event on a target function in a preset page, and generate a data acquisition request corresponding to the target function.

[0028] It should be noted that, in this embodiment, the target function is based on one of the many system functions in the business system, and the preset page can be a click operation page with multiple function names based on the system functions as parameter items, or it can be an input operation page with a blank input box corresponding to the function name of the system function, and the preset page can be written in html, element-ui, vue, etc., and this embodiment does not limit this. Correspondingly, operation events include but are not limited to click operations, output operations, etc., and a data acquisition request for the target function can be generated based on the operation event and sent to the server to execute the subsequent step 102.

[0029] 102. Extract attribute information corresponding to the target function from the database according to the data acquisition request.

[0030] Among them, the attribute information is used to characterize the relevant information recorded and stored in the database when the target function is dynamically proxied. It should be noted that in this embodiment, the attribute information includes but is not limited to the function name, the full path of the implementation class and method instance, the document annotation information, and the calling relationship between classes. Since the attribute information can only be fully obtained when the target function is fully executed, the dynamic proxy method can be used to record the relevant information generated during its execution and use it as the attribute information. Specifically, the target function can be dynamically proxied in advance when the system page triggers the target function for the first time, and the relevant information generated by the dynamic proxy process (i.e., attribute information) can be recorded and stored in the database. It can also be dynamically proxied every time the system page triggers the target function, and the database is updated in real time based on the relevant information (i.e., attribute information) generated by the dynamic proxy process, that is, the relevant information generated by the dynamic proxy process of the target function originally recorded in the database (i.e., historical attribute information) is updated. This embodiment does not limit this, and it only needs to ensure that it can be accurately found and extracted in the database based on the data acquisition request, so as to facilitate the execution of the subsequent step 103.

[0031] 103. Generate an execution flowchart of the target function based on the attribute information, and visualize the execution flowchart in the preset page.

[0032] It should be noted that, in this embodiment, since the aforementioned steps have obtained the attribute information of the target function, namely, the function name of the target function, the full path of the implementation class and method instance, the document annotation information, and the inter-class calling relationship, etc., a corresponding execution flowchart can be generated based on the attribute information. Specifically, a display template can be pre-set, and the display template includes multiple process nodes. The function name, the full path of the implementation class and method instance, and the document annotation information are used as the configuration information of each process node to supplement the configuration information of each process node. The flow relationship between each process node is supplemented based on the inter-class calling relationship, so as to generate an execution flowchart of the target function, and visualize the execution flowchart in the preset page. The specific display method can be a full-screen display or a pre-set designated area for display. This embodiment does not limit this. It only needs to ensure that the execution flowchart can be fully displayed in the preset page, so as to facilitate developers to intuitively, comprehensively and accurately understand the execution process of system functions, and effectively improve the efficiency and familiarity of developers with system functions.

[0033] Based on the above Figure 1It can be seen from the implementation method that the system function flow visualization method provided by the present invention is that when the system function flow needs to be visualized, the operation event of the target function in the preset page is first received, and a data acquisition request corresponding to the target function is generated, and then the attribute information corresponding to the target function is extracted from the database according to the data acquisition request, wherein the attribute information is used to characterize the relevant information recorded and stored in the database when the target function is dynamically proxy, and finally the execution flow chart of the target function is generated based on the attribute information, and the execution flow chart is visualized in the preset page. Through the technical solution provided by the present invention, it is possible to extract the corresponding attribute information in the database according to the data acquisition request corresponding to the target function, that is, the relevant information recorded and stored in the database when the target function is dynamically proxy, and visualize the execution flow chart of the target function generated based on the attribute information in the preset page, so that developers can intuitively, comprehensively and accurately understand the execution process of the system function, effectively improve the efficiency and familiarity of developers with the system function, and thus facilitate the subsequent secondary development of the system function by developers.

[0034] Further, the preferred embodiment of the present invention is in the above Figure 1 Based on this, a detailed description of the process of visualizing the system function flow is given. The specific steps are as follows Figure 2 As shown, including:

[0035] 201. When a target function is triggered on a system page, a data collection request corresponding to the target function is generated.

[0036] It should be noted that in this step, the system page is a business system operation page that integrates multiple system functions. However, in order for the subsequent step 205 to accurately obtain the attribute information of the target function in the server database, when the target function is triggered on the system page, a data collection request corresponding to the target function can be generated, that is, a request for collecting the execution data corresponding to the target function, so as to execute the subsequent step 202.

[0037] 202. Dynamically proxy the target function based on the data collection request, and record the relevant information generated when dynamically proxying the target function.

[0038] It should be noted that in this step, dynamic proxy is a technology that creates a proxy object of a target function during the execution of the target function, and performs functional enhancement on the implementation class and method instance in the target function, that is, dynamically intercepts the implementation class and method instance in the target function during the execution, and performs functional operations before and after intercepting the implementation class and method instance. Therefore, the relevant information generated when the target function is dynamically proxied can be recorded, that is, the attribute information of the complete execution process such as the function name, the full path of the implementation class and method instance, the document annotation information, and the calling relationship between classes, so as to ensure the accuracy of the subsequent execution flowchart.

[0039] 203. Use the relevant information as attribute information of the target function, and store the attribute information of the target function in a database.

[0040] It should be noted that in the step, since the attribute information including the function name, the full path of the implementation class and method instance, the document comment information and the calling relationship between classes has been determined in the previous steps, the relevant information can be used as the attribute information of the target function, and the attribute information of the target function can be stored in the database, wherein the database can be pre-set in the server to be dedicated to storing the attribute information of different system functions.

[0041] Furthermore, since the target function is triggered once by the system page, the attribute information of the target function is obtained once, and although the attribute information of the target function may be modified in actual applications, in order to adapt to the modification of the attribute information of the target function and avoid repeated storage of the same attribute information of the same target function in the database to ensure the accuracy of the attribute information, specifically, before storing the attribute information of the target function in the database, the method also includes: determining whether there is historical attribute information of the target function in the database; if not, storing the attribute information of the target function in the database; if so, updating the historical attribute information of the target function based on overwriting the attribute information of the target function. Among them, the specific process of determining whether there is historical attribute information of the target function in the database can be compared and determined based on the function name in the attribute information, etc., or a mapping relationship between the attribute information and the target function can be generated after the first storage, and the judgment is made based on whether there is a mapping relationship. This embodiment does not limit this.

[0042] 204. Receive an operation event on a target function in a preset page, and generate a data acquisition request corresponding to the target function.

[0043] This step is combined with the description of step 101 in the above method, and the same contents are not repeated here.

[0044] 205. Extract attribute information corresponding to the target function from the database according to the data acquisition request.

[0045] This step is combined with the description of step 102 in the above method, and the same contents are not repeated here.

[0046] 206. Obtain a display template for a specified area in a preset page.

[0047] The display template includes multiple process nodes. It should be noted that in this step, the designated area is an area in the preset page dedicated to displaying the target function execution process, and the display template is a visual template pre-configured in the designated area for displaying the target function execution process, wherein the process nodes in the display template can be set in the form of element blocks, that is, one process node corresponds to one element block.

[0048] 207. Supplement the configuration information required by the process nodes and the flow relationship between the process nodes according to the attribute information to obtain a configured display template.

[0049] It should be noted that in this step, the configuration information required for the process node at least includes the node name, node annotation, node path, etc., and the node name, node annotation, node path, etc. all have corresponding supplementary positions, that is, different supplementary areas are divided in the element block, and the flow relationship between each process node can be indicated by the connecting line. Since the attribute information includes the function name, the full path of the implementation class and method instance, the document annotation information, and the inter-class call relationship, the configuration information required for the process node and the flow relationship between each process node can be supplemented based on the attribute information to obtain a configured display template. Specifically, the configuration information required for the process node and the flow relationship between each process node are supplemented based on the attribute information to obtain a configured display template, including: supplementing the configuration information required for the process node based on the full path of the implementation class and method instance and the document annotation information to obtain a filled process node; drawing the flow relationship of each filled process node according to the inter-class call relationship to obtain a configured display template. In the above manner, the configured display template can correspond to the target function execution process so as to execute the subsequent step 208.

[0050] 208. Generate an execution flowchart of the target function based on the configured display template, and display the execution flowchart in a designated area.

[0051] It should be noted that in this step, since the configured display template corresponds to the target function execution process, the execution flow chart of the target function can be generated based on the configured display template. Specifically, a closed rectangular area that can completely contain the configured display template can be formed according to the farthest horizontal point or vertical point of each process node and configuration information in the display template, and the closed rectangular area is used as the boundary of the execution flow chart, so as to intercept the configured display template within the boundary as the execution flow chart of the target function, and display the execution flow chart in the specified area. Since the size of the specified area is fixed, in order to ensure that the specified area can fully display the execution flow chart, specifically, the image size corresponding to the execution flow chart and the area size corresponding to the specified area can be obtained respectively; the execution flow chart is scaled proportionally based on the comparison result of the image size and the area size; the scaled execution flow chart is completely displayed in the specified area. That is, when the execution flow chart is small, it is enlarged to a certain extent, and when the execution flow chart is large, it is reduced to a certain extent, so that it is completely displayed in the specified area, so that developers can view it, and help developers to understand the execution process of the system function more intuitively, comprehensively and accurately.

[0052] Furthermore, as a response to the above Figure 1-2 The implementation of the method embodiment shown in the figure, the embodiment of the present invention provides a system function process visualization device, which is used to help developers intuitively, comprehensively and accurately understand the execution process of system functions, improve the efficiency and familiarity of developers with system functions, and facilitate the subsequent secondary development of system functions by developers. The embodiment of the device corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Specifically, Figure 3 As shown, the device comprises:

[0053] The first generating unit 31 is used to receive an operation event on a target function in a preset page, and generate a data acquisition request corresponding to the target function;

[0054] An extracting unit 32 is used to extract attribute information corresponding to the target function in the database according to the data acquisition request obtained by the first generating unit 31, wherein the attribute information is used to characterize the relevant information recorded and stored in the database when dynamically proxying the target function;

[0055] The first processing unit 33 is used to generate an execution flowchart of the target function based on the attribute information obtained by the extraction unit 32, and visually display the execution flowchart in the preset page.

[0056] Further, such as Figure 4 As shown, the device also includes:

[0057] A second generating unit 34 is used to generate a data collection request corresponding to the target function when the target function is triggered on the system page before the first generating unit 31;

[0058] The second processing unit 35 is used to dynamically proxy the target function based on the data collection request obtained by the second generating unit 34, and record the relevant information generated when the target function is dynamically proxyed;

[0059] The storage unit 36 ​​is used to use the relevant information obtained by the second processing unit 36 ​​as the attribute information of the target function, and store the attribute information of the target function in the database.

[0060] Further, such as Figure 4 As shown, the device also includes:

[0061] A judging unit 37, used for judging whether the historical attribute information of the target function exists in the database before the storage unit;

[0062] The storage unit 36 ​​is specifically used for:

[0063] If the judging unit judges that the historical attribute information of the target function does not exist in the database, the attribute information of the target function is stored in the database;

[0064] The updating unit 38 is configured to update the historical attribute information of the target function by overwriting the attribute information of the target function if the judging unit determines that the historical attribute information of the target function exists in the database.

[0065] Further, such as Figure 4 As shown, the first processing unit 33 includes:

[0066] An acquisition module 331 is used to acquire a display template of a specified area in a preset page, wherein the display template includes a plurality of process nodes;

[0067] A configuration module 332, used to supplement the configuration information required by the process nodes and the flow relationship between the process nodes obtained by the acquisition module 331 according to the attribute information, so as to obtain a configured display template;

[0068] The processing module 333 is used to generate an execution flowchart of the target function based on the configured display template obtained by the configuration module 332, and display the execution flowchart in the designated area.

[0069] Further, such as Figure 4 As shown, the attribute information includes the function name, the full path of the implementation class and method instance, document comment information, and the calling relationship between classes.

[0070] Further, such as Figure 4 As shown, the configuration module 332 is specifically used to:

[0071] Supplement the configuration information required by the process node based on the full path and document annotation information of the implementation class and method instance to obtain a filled process node;

[0072] The flow relationship of each of the filled process nodes is drawn according to the inter-class calling relationship to obtain the configured display template.

[0073] Further, such as Figure 4 As shown, the processing module 333 is specifically used for:

[0074] Respectively obtaining an image size corresponding to the execution flowchart and an area size corresponding to the designated area;

[0075] Proportionally scaling the execution flow chart based on a comparison result between the image size and the region size;

[0076] The scaled execution flowchart is completely displayed in the designated area.

[0077] Furthermore, an embodiment of the present invention also provides an electronic device, the electronic device includes a processor and a memory, the first generating unit 31, the extracting unit 32 and the first processing unit 33 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The processor includes a kernel, and the kernel calls the corresponding program unit from the memory.

[0078] The kernel can be set to one or more. By adjusting the kernel parameters, it helps developers to intuitively, comprehensively and accurately understand the execution process of system functions, improve the efficiency and familiarity of developers with system functions, and facilitate the subsequent secondary development of system functions by developers.

[0079] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the system function flow visualization method is implemented.

[0080] An embodiment of the present invention provides a processor, which is used to run a program, wherein the system function flow visualization method is executed when the program is running.

[0081] The embodiment of the present invention provides a device 40, such as Figure 5As shown, the device 40 includes at least one processor 401, at least one memory 402 connected to the processor 401, and a bus 403; wherein the processor 401 and the memory 402 communicate with each other through the bus 403; the processor 401 is used to call the program instructions in the memory 402 to execute the above-mentioned system function flow visualization method. The device in this article can be a server, PC, PAD, mobile phone, etc.

[0082] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: receiving an operation event on a target function in a preset page, and generating a data acquisition request corresponding to the target function; extracting attribute information corresponding to the target function in a database according to the data acquisition request, wherein the attribute information is used to characterize the relevant information recorded and stored in the database when dynamically proxying the target function; generating an execution flowchart of the target function based on the attribute information, and visually displaying the execution flowchart in the preset page.

[0083] Before receiving an operation event on a target function and generating a data acquisition request corresponding to the target function, the method also includes: generating a data collection request corresponding to the target function when the target function is triggered on a system page; dynamically proxying the target function based on the data collection request, and recording relevant information generated when dynamically proxying the target function; using the relevant information as attribute information of the target function, and storing the attribute information of the target function in the database.

[0084] Before storing the attribute information of the target function in the database, the method also includes: determining whether there is historical attribute information of the target function in the database; if not, storing the attribute information of the target function in the database; if so, updating the historical attribute information of the target function based on overwriting the attribute information of the target function.

[0085] The method of generating an execution flowchart of the target function based on the attribute information and visually displaying the execution flowchart in the preset page includes: obtaining a display template for a specified area in the preset page, wherein the display template includes multiple process nodes; supplementing the configuration information required for the process nodes and the flow relationship between the process nodes according to the attribute information to obtain a configured display template; generating an execution flowchart of the target function based on the configured display template, and displaying the execution flowchart in the specified area.

[0086] The attribute information includes the function name, the full path of the implementation class and method instance, document comment information, and the calling relationship between classes.

[0087] The method of supplementing the configuration information required for the process nodes and the flow relationship between each of the process nodes according to the attribute information to obtain a configured display template includes: supplementing the configuration information required for the process nodes based on the full path and document annotation information of the implementation class and method instance to obtain a filled process node; and drawing the flow relationship of each of the filled process nodes according to the inter-class calling relationship to obtain the configured display template.

[0088] Displaying the execution flowchart in the designated area includes: respectively acquiring an image size corresponding to the execution flowchart and an area size corresponding to the designated area; scaling the execution flowchart proportionally based on a comparison result between the image size and the area size; and completely displaying the scaled execution flowchart in the designated area.

[0089] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0090] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.

[0091] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0094] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0095] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for visualizing system function flow, characterized in that: The method comprises: Receive an operation event on a target function in a preset page, and generate a data acquisition request corresponding to the target function; Extracting attribute information corresponding to the target function in a database according to the data acquisition request, wherein the attribute information is used to characterize relevant information recorded and stored in the database when dynamically proxying the target function; An execution flowchart of the target function is generated based on the attribute information, and the execution flowchart is visually displayed in the preset page.

2. The method according to claim 1, characterized in that Before receiving the operation event on the target function and generating the data acquisition request corresponding to the target function, the method further includes: When the target function is triggered on the system page, a data collection request corresponding to the target function is generated; Dynamically proxying the target function based on the data collection request, and recording relevant information generated when dynamically proxying the target function; The relevant information is used as the attribute information of the target function, and the attribute information of the target function is stored in the database.

3. The method according to claim 2, characterized in that Before storing the attribute information of the target function in the database, the method further includes: Determining whether there is historical attribute information of the target function in the database; If not, storing the attribute information of the target function in the database; If so, the historical attribute information of the target function is updated based on overwriting the attribute information of the target function.

4. The method according to claim 1, characterized in that The generating an execution flowchart of the target function based on the attribute information, and visually displaying the execution flowchart in the preset page, includes: Obtaining a display template for a specified area in a preset page, wherein the display template includes a plurality of process nodes; Supplement the configuration information required by the process nodes and the flow relationship between the process nodes according to the attribute information to obtain a configured display template; An execution flowchart of the target function is generated based on the configured display template, and the execution flowchart is displayed in the designated area.

5. The method according to any one of claims 1 to 4, characterized in that The attribute information includes the function name, the full path of the implementation class and method instance, document comment information, and the calling relationship between classes.

6. The method according to claim 5, characterized in that The step of supplementing the configuration information required by the process nodes and the flow relationship between the process nodes according to the attribute information to obtain a configured display template includes: Supplement the configuration information required by the process node based on the full path and document annotation information of the implementation class and method instance to obtain a filled process node; The flow relationship of each of the filled process nodes is drawn according to the inter-class calling relationship to obtain the configured display template.

7. The method according to claim 4, characterized in that The displaying the execution flowchart in the designated area includes: Respectively obtaining an image size corresponding to the execution flowchart and an area size corresponding to the designated area; Proportionally scaling the execution flow chart based on a comparison result between the image size and the region size; The scaled execution flowchart is completely displayed in the designated area.

8. A system function flow visualization device, characterized in that: The device comprises: A first generating unit, configured to receive an operation event on a target function in a preset page, and generate a data acquisition request corresponding to the target function; an extracting unit, configured to extract attribute information corresponding to the target function from a database according to the data acquisition request obtained by the first generating unit, wherein the attribute information is used to characterize relevant information recorded and stored in the database when dynamically proxying the target function; The first processing unit is used to generate an execution flowchart of the target function based on the attribute information obtained by the extraction unit, and to visually display the execution flowchart in the preset page.

9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the system function flow visualization method according to any one of claims 1 to 7.

10. An electronic device, comprising at least one processor, and at least one memory and bus connected to the processor; wherein: The processor and the memory communicate with each other via the bus; The processor is used to call the program instructions in the memory to execute the system function flow visualization method as described in any one of claims 1 to 7.