Method and device for generating system flow chart

By monitoring and intercepting the node information of the business code, the system flow chart is automatically generated, which solves the problem of the system flow chart and the function being out of synchronization, improves efficiency and accuracy, and the generated flow chart is objective and accurate.

CN119002993APending Publication Date: 2024-11-22BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310554115.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-17
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing system flowchart is not synchronized with the system functions, resulting in the need to manually comb the source code to update the flowchart, which consumes a lot of time and has subjective deviations, resulting in the generated flowchart not objective and accurate enough.

Method used

By monitoring the running business code, intercepting node information based on pre-configured interception definitions, it is converted into structured process data, and automatically generates a system flow chart to avoid users manually combing the source code.

Benefits of technology

It saves users' time costs, improves work efficiency, and generates flow charts with high objectivity and accuracy, making it easier to learn and understand system business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002993A_ABST
    Figure CN119002993A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for generating a system flow chart, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: monitoring a current process node of a running service code; intercepting the service code according to a pre-configured interception definition to obtain node information corresponding to the current process node; converting the acquired node information into structured process data under the condition that the node information of all the process nodes corresponding to the service code is determined to be acquired; and the system flow chart is generated according to the flow data, so that a user can acquire the flow node information of the target business through interception, restore the business logic of the system according to the intercepted node information and generate the flow chart, thereby saving the time cost of the user and improving the working efficiency.
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 generating a system flow chart. Background Art

[0002] System flowcharts can be used to represent the functions and business logic of application systems. Therefore, when new developers or maintenance personnel take over application systems, system flowcharts can serve as an auxiliary tool for them to understand or become familiar with system functions and business. However, with the continuous development of business, system functions have undergone iterations, but for various reasons, system flowcharts have not been updated synchronously, resulting in the phenomenon that the current system flowchart is out of sync with system functions.

[0003] At this point, the relevant personnel need to start by analyzing the source code of the system, and then manually draw the corresponding flowchart of the current system based on the business logic combed from the source code. This requires the relevant personnel to spend a lot of time, resulting in low work efficiency; in addition, the business logic obtained by manually combing the source code will have subjective bias, making the generated system flowchart not objective and low in accuracy. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for generating a system flowchart, which includes: in order to intercept the process node information of the target business, monitoring the current process node of the running business code; pre-configuring an interception definition, and intercepting the business code according to the pre-configured interception definition to obtain the node information corresponding to the current process node; when it is determined that the node information of all process nodes corresponding to the business code has been obtained, converting the obtained node information into structured process data; then automatically generating a system flowchart according to the process data, without the need for the user to comb the source code and then manually draw the flowchart according to the combing results, thereby saving the user's time cost and improving work efficiency; and the automatically generated flowchart also has high objectivity and accuracy, which is convenient for users to objectively and accurately learn and understand the system business.

[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for generating a system flow chart is provided.

[0006] A method for generating a system flowchart according to an embodiment of the present invention includes: monitoring the current process node of the running business code; intercepting the business code according to a pre-configured interception definition to obtain node information corresponding to the current process node; when the node information of all process nodes corresponding to the business code is obtained, converting the obtained node information into structured process data; generating a system flowchart according to the process data.

[0007] Optionally, the node information includes an interception time identifier and a node level identifier, and the step of converting the acquired node information into structured process data includes: determining the cascade relationship between process nodes corresponding to the node information based on the interception time identifier and the node level identifier of the acquired node information; and converting the node information into structured process data based on the cascade relationship between the process nodes.

[0008] Optionally, the cascade relationship between the process nodes corresponding to the node information is determined based on the interception time identifier and the node level identifier of the acquired node information, including: determining the hierarchical relationship between multiple node information according to the node level identifier; determining the arrangement positions corresponding to multiple node information corresponding to the same hierarchical relationship according to the interception time identifier; and determining the cascade relationship according to the hierarchical relationship and the arrangement position.

[0009] Optionally, the interception definition includes a process end identifier, and the method further includes: judging whether the node information includes the process end identifier based on the acquired node information; if so, determining that the node information of all process nodes has been acquired, and stopping acquiring the node information.

[0010] Optionally, the interception definition also includes a preset maximum interception duration, and the method also includes: when the process end identifier is not included in the node information, determining whether the difference between the interception start time and the time of intercepting the last node information is greater than the preset maximum interception duration; if so, stop acquiring new node information, and use the acquired node information as the node information of all process nodes.

[0011] Optionally, generating a system flowchart based on the process data includes: comparing the process data with data in a database to determine whether the comparison results are consistent; if so, discarding the process data; if not, generating the system flowchart based on the process data; and / or storing the process data in a database.

[0012] Optionally, generating a system flowchart based on the process data includes: generating an interface based on the structured process data to receive operation instructions for the process data through the interface; processing the process data according to the operation instructions, and generating the system flowchart based on the processed process data.

[0013] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for generating a system flow chart is provided.

[0014] A device for generating a system flowchart according to an embodiment of the present invention includes: a monitoring module: used to monitor the current process node of the running business code; an interception module: used to intercept the business code according to a pre-configured interception definition to obtain the node information corresponding to the current process node; a processing module: used to convert the obtained node information into structured process data when the node information of all process nodes corresponding to the business code is obtained; a generation module: used to generate a system flowchart according to the process data.

[0015] To achieve the above objective, according to another aspect of an embodiment of the present invention, a server is provided.

[0016] A server according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for generating a system flowchart according to an embodiment of the present invention.

[0017] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.

[0018] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, a method for generating a system flow chart according to an embodiment of the present invention is implemented.

[0019] An embodiment of the above invention has the following advantages or beneficial effects: in order to intercept the process node information of the target business, the current process node of the running business code is monitored; the interception definition is pre-configured, and the business code is intercepted according to the pre-configured interception definition to obtain the node information corresponding to the current process node; when it is determined that the node information of all process nodes corresponding to the business code has been obtained, the obtained node information is converted into structured process data; then a system flowchart is automatically generated according to the process data, without the need for the user to comb the source code and then manually draw the flowchart according to the combing results, thereby saving the user's time cost and improving work efficiency; and the automatically generated flowchart also has high objectivity and accuracy, which is convenient for users to objectively and accurately learn and understand the system business.

[0020] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0022] Figure 1is a schematic diagram of main steps of a method for generating a system flow chart according to an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of an interface corresponding to structured process data according to an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a system flow chart provided according to an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of main steps of a method for generating a system flow chart according to an embodiment of the present invention;

[0026] Figure 5 is a schematic diagram of main modules of an apparatus for generating a system flow chart according to an embodiment of the present invention;

[0027] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0028] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0030] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.

[0031] Figure 1 It is a schematic diagram of main steps of a method for generating a system flow chart according to an embodiment of the present invention.

[0032] like Figure 1 As shown, the method for generating a system flow chart according to an embodiment of the present invention mainly includes the following steps:

[0033] Step S101: monitor the current process node of the running business code.

[0034] For application systems, the role of system flowcharts is to represent the functions and business logic of application systems. They contain several nodes, where flowcharts can represent the entire method logic and nodes can represent the steps in the method. There is a definite cascade relationship between nodes. For example, the level to which a node belongs is determined by the depth of the method call, and the time sequence of nodes is determined by the order of execution of steps in the same level. Therefore, the level of nodes and the time sequence of nodes determine the cascade relationship between nodes.

[0035] After the application system has gone through multiple iterations, if the current system flowchart is out of sync with the application system function, the business code of the application system can be intercepted by introducing an interception tool, and the node information corresponding to the business process can be generated according to the intercepted business code. The Agent interception plug-in can be connected to the application system, and the interception definition can be configured in the server. The process identifier can be configured in the interception definition to determine which process to intercept. For example, when intercepting the order process of the order business module of the e-commerce system, the process identifier is configured as XD, and the process input parameters can also be configured. For example, in the order business module of the e-commerce system, the weight of the ordered product is configured as 35 kilograms, where the weight of the ordered product is one of the input parameters of the order business module. Then start the application system to run the system's business code, and intercept the business code of the application system according to the interception definition through the Agent interception plug-in.

[0036] After the application system is started, the interception system that performs the interception operation monitors the current process node of the business code being executed. When the process corresponding to the current process node, such as the order process, is consistent with the process identifier configured in the interception definition, such as the process corresponding to XD, the business code of the current order process is intercepted according to the interception definition, and the corresponding node information of the order process is generated according to the intercepted business code.

[0037] Step S102: intercepting the business code according to the pre-configured interception definition to obtain the node information corresponding to the current process node.

[0038] Since the business code of the application system is constantly updated, in order to synchronize the generated system flowchart with the business logic of the current application system, the interception definition needs to be continuously updated. In addition, depending on the interception requirements, the interception definition can be updated by changing the interception entry, such as updating the interception definition from intercepting the order process XD to the coupon discount calculation process YZD. The interception definition can also be updated by changing the input parameters configured in the interception definition at the same interception entry, such as changing the weight of the ordered product from 25 kg to 35 kg. For the continuously updated interception definition, the interception system can periodically obtain new interception definitions to meet the interception requirements, or it can first receive the notification message of the interception definition update, and then obtain the new interception definition.

[0039] After obtaining the new interception definition, compare it with the current interception definition. If the comparison results are inconsistent, update the current interception definition and perform interception operations according to the new interception definition; if the comparison results are consistent, still perform interception operations according to the current interception definition to obtain the node information corresponding to the current process.

[0040] When multiple processes are intercepted at the same time, the node information corresponding to different processes is sent out through the message middleware in the form of asynchronous tasks.

[0041] Since the node information corresponding to the intercepted multiple processes is sent asynchronously, in order to determine which process the node information corresponds to, the receiving party can also configure the process identifier in the node information, such as configuring the identifier XD in the node information corresponding to the order process, and determining that the process corresponding to the node information is the order process according to the process identifier XD. In the received node information, the node information with the same process identifier XD is determined as the node information of the order process corresponding to the process identifier XD.

[0042] Step S103: when the node information of all process nodes corresponding to the business code is obtained, the obtained node information is converted into structured process data.

[0043] After receiving the intercepted node information, it is necessary to determine whether the node information of all nodes corresponding to the current process has been obtained. If so, stop obtaining the node information and convert the received node information into structured process data; if not, continue to receive the node information.

[0044] In one embodiment of the present invention, when the interception definition includes a process end identifier, the method further includes: judging whether the node information includes the process end identifier based on the acquired node information; if so, determining that the node information of all process nodes has been acquired, and stopping acquiring the node information.

[0045] In order to determine whether the node information of all nodes corresponding to the current process has been fully acquired, the process end identifier can be configured in the node information, such as configuring the process end identifier XDJS in the node information corresponding to the order process. When the process end identifier is configured in the interception definition, such as XDJS, the process end identifier of the received node information is matched with the process end identifier in the interception definition. If the received node information contains node information containing the process end identifier XDJS, the match is successful, so it is considered that the node information of all process nodes of the currently executed business process has been acquired; if the match is unsuccessful, it is considered that the node information of all process nodes of the currently executed business process has not been acquired.

[0046] In one embodiment of the present invention, when the interception definition also includes a preset maximum interception duration, the method also includes: when the process end identifier is not included in the node information, determining whether the difference between the interception start time and the time of intercepting the last node information is greater than the preset maximum interception duration; if so, stop acquiring new node information, and use the acquired node information as the node information of all process nodes.

[0047] In the case that the received node information fails to match the process end identifier in the interception definition, it can also be determined whether to stop obtaining the node information based on the difference between the interception start time and the time when the last node information was intercepted, that is, the interception duration. Specifically, the maximum interception duration is pre-set in the interception definition, such as 30 seconds. If the difference between the interception start time and the time when the last node information was intercepted, that is, the interception duration exceeds 30 seconds, the node information is automatically stopped from being obtained, and the currently obtained node information is used as the node information corresponding to all process nodes of the currently executed business process. Therefore, it can be understood that the acquisition of node information can be stopped if any of the following conditions is met: the received node information successfully matches the process end identifier; or the interception duration exceeds the preset maximum duration.

[0048] In one embodiment of the present invention, the node information includes an interception time identifier and a node level identifier, and the step of converting the acquired node information into structured process data includes: determining the cascade relationship between process nodes corresponding to the node information based on the interception time identifier and the node level identifier of the acquired node information; and converting the node information into structured process data based on the cascade relationship between the process nodes.

[0049] In order to determine the structural relationship between nodes corresponding to the node information with the same process identifier, the time node identifier and the node level identifier can also be configured in the node information. The time when the node is generated can be determined according to the time node identifier, and the level to which the node belongs can be determined according to the node level identifier. Finally, according to the time when the node is generated and the level to which it belongs, the node information is converted into structured process data, and the results of the structured process data are displayed through the interface, such as Figure 2 shown.

[0050] In one embodiment of the present invention, the cascade relationship between the process nodes corresponding to the node information is determined based on the interception time identifier and the node level identifier of the acquired node information, including: determining the hierarchical relationship between multiple node information according to the node level identifier; determining the arrangement positions corresponding to multiple node information corresponding to the same hierarchical relationship according to the interception time identifier; and determining the cascade relationship according to the hierarchical relationship and the arrangement position.

[0051] For the received node information with the same process identifier, such as XD, the node information is divided into different levels according to the node level identifier, such as Figure 2 The level identifiers A, B and C shown in the figure are then arranged in chronological order according to the interception time identifier, such as Figure 2 In level B, according to the time identifiers of the time interception, such as 1 and 2, the arrangement order of node B1 and node B2 can be determined, and the cascade relationship between nodes corresponding to all node information can be determined in the same way. According to the determined cascade relationship between nodes, the node information is converted into structured process data. It can be understood that the identifiers in all embodiments of the present invention are examples, which can be replaced by other understandable combinations of letters and / or numbers, and any other understandable representation methods.

[0052] Step S104: Generate a system flow chart according to the process data.

[0053] In one embodiment of the present invention, generating a system flowchart based on the process data includes: comparing the process data with the data in a database to determine whether the comparison results are consistent; if so, discarding the process data; if not, generating the system flowchart based on the process data; and / or storing the process data in a database.

[0054] In order to prevent the generation of duplicate flowcharts, the process data is compared with the process data saved in the database before the flowchart is generated. If the process data currently obtained through interception is the same as the process data already in the database, the process data currently obtained through interception will be abandoned; if they are not the same, the process data currently obtained through interception can be saved in the database, and a system flowchart can be generated based on the process data currently obtained through interception.

[0055] In one embodiment of the present invention, generating a system flowchart based on the process data includes: generating an interface based on the structured process data to receive operation instructions for the process data through the interface; processing the process data according to the operation instructions, and generating the system flowchart based on the processed process data.

[0056] According to the structured process data generation interface, the process data in the interface are grouped and displayed according to the process entry. For the same process entry, corresponding to different input parameters, the process data corresponding to multiple processes may be intercepted. For example, in the order business module of the e-commerce system, the weights of the ordered goods as process input parameters are 20 kg, 25 kg, 35 kg, 70 kg and 150 kg respectively. According to the order business logic: the goods weight is less than 30 kg free of shipping, more than 30 kg and less than 100 kg will be charged an additional shipping fee of 10 yuan, more than 100 kg and less than 200 kg will be charged an additional shipping fee of 30 yuan, and the process data corresponding to the three order processes are generated. In the interface, you can click to view the generated process data, you can hide unnecessary process nodes, you can annotate the process nodes with Chinese descriptions, and for process data generated due to abnormal code execution that is obviously inconsistent with the normal business logic, you can delete the obviously abnormal process data. Finally, based on the edited process data that conforms to the normal business logic, a system flowchart is generated, such as Figure 3 As shown, the generated system flowchart is set as the default flow, which is the final generated system flowchart, which represents the latest version of the flow corresponding to the current application system business.

[0057] Figure 4 It is a schematic diagram of main steps of a method for generating a system flow chart according to an embodiment of the present invention.

[0058] The following still takes the ordering business module of the e-commerce system as an example to describe in detail the method for generating a system flow chart provided by the embodiment of the present invention. Figure 4 As shown, the method may include the following steps:

[0059] Step S401: monitor the current process node of the running business code.

[0060] After the application system is started, the interception system that performs the interception operation monitors the current process node of the business code being executed. When the process corresponding to the current process node, such as the order process, is consistent with the process identifier configured in the interception definition, such as the process corresponding to XD, the business code of the current order process in the interception definition is intercepted.

[0061] Step S402: According to the interception definition, intercept the business code to obtain corresponding node information.

[0062] According to the new interception definition obtained, the currently executed business code is intercepted by the introduced Agent interception plug-in, and the business process, such as the order process, and the corresponding node information are generated according to the intercepted business code.

[0063] Step S403: Determine whether the node information includes the process end identifier, if yes, execute step S405; if no, execute step S404.

[0064] When the interception definition configures a process end identifier, such as XDJS, the received node information is matched with the process end identifier in the interception definition, such as XDJS. If the match is successful, it is considered that the node information of all process nodes of the currently executed business process has been obtained; if the match is unsuccessful, it is considered that the node information of all process nodes of the currently executed business process has not been obtained.

[0065] Step S404: Determine whether the difference between the interception start time and the time of intercepting the last node information is greater than the preset maximum interception duration. If yes, execute step S405; if not, execute step S402.

[0066] When the received node information and the process end identifier in the interception definition, such as XDJS, fail to match, it is also possible to determine whether to stop obtaining node information based on the interception duration, as follows: pre-set the maximum interception duration in the interception definition, such as 30 seconds. If the interception duration exceeds 30 seconds, the acquisition of node information is automatically stopped, and the currently obtained node information is used as the node information corresponding to all process nodes of the currently executed business process.

[0067] Step S405: Determine the cascade relationship between the process nodes corresponding to the node information, and convert the node information into structured process data according to the cascade relationship.

[0068] For the received node information with the same process ID, the node information is divided into different levels according to the node level ID, and then the node information in each level is arranged in chronological order according to the interception time ID, thereby determining the cascade relationship between the nodes corresponding to the node information. According to the determined cascade relationship between the nodes, the node information is converted into structured process data.

[0069] Step S406: Compare the process data with the data in the database to determine whether the comparison results are consistent. If yes, execute step S407; if not, execute step S408.

[0070] In order to prevent the generation of duplicate flow charts, the flow data is compared with the flow data stored in the database before the flow chart is generated to determine whether the current flow data obtained through interception is the same as the flow data already in the database.

[0071] Step S407: Abandon saving the process data currently intercepted.

[0072] If the process data currently obtained through interception is the same as the process data already in the database, the process data currently obtained through interception is abandoned from being saved.

[0073] Step S408: Save the process data currently intercepted into the database.

[0074] If the process data currently obtained through interception is different from the process data already in the database, the process data currently obtained through interception is saved in the database.

[0075] Step S409: Generate an interface according to the structured process data, so as to receive operation instructions for the process data through the interface.

[0076] According to the structured process data generation interface, the process data in the interface are displayed in groups according to the process entry. Since the process data corresponding to multiple processes may be intercepted for different input parameters for the same process entry, there will be multiple different process data under the same process entry group. Users can edit the process data in this interface.

[0077] Step S410: Generate the system flow chart.

[0078] Generate a system flowchart based on the edited process data that conforms to normal business logic, and set the generated system flowchart as the default process. The default process is the final generated system flowchart, which represents the latest version of the process corresponding to the current application system business.

[0079] It can be seen that by introducing the Agent interception plug-in, according to the pre-configured interception definition, the business code of the application system can be automatically intercepted. According to the node information of the intercepted business process, the cascade relationship between the nodes is determined through the interception time identifier and the node level identifier contained in the node information. According to the cascade relationship, the intercepted node information is converted into structured process data, and an interface for users to view and edit is generated based on the structured process data. After the user edits the structured process data displayed on the interface, the final system flowchart is generated, thereby realizing the synchronization of the system flowchart with the business functions and business logic of the current application system.

[0080] It can be seen from the method for generating a system flowchart according to an embodiment of the present invention that, in order to intercept the process node information of the target business, the current process node of the running business code is monitored; an interception definition is pre-configured, and the business code is intercepted according to the pre-configured interception definition to obtain the node information corresponding to the current process node; when it is determined that the node information of all process nodes corresponding to the business code has been obtained, the obtained node information is converted into structured process data; then a system flowchart is automatically generated according to the process data, without the need for the user to comb the source code and then manually draw the flowchart according to the combing results, thereby saving the user's time cost and improving work efficiency; and the automatically generated flowchart also has high objectivity and accuracy, which is convenient for users to objectively and accurately learn and understand the system business.

[0081] Figure 5 It is a schematic diagram of main modules of an apparatus for generating a system flow chart according to an embodiment of the present invention.

[0082] like Figure 5 As shown, the device 500 for generating a system flow chart according to an embodiment of the present invention includes:

[0083] Monitoring module 501, used to monitor the current process node of the running business code;

[0084] An interception module 502, configured to intercept the business code according to a pre-configured interception definition to obtain node information corresponding to the current process node;

[0085] The processing module 503 is used to convert the acquired node information into structured process data when the node information of all process nodes corresponding to the business code is acquired;

[0086] The generating module 504 is used to generate a system flow chart according to the process data.

[0087] In one embodiment of the present invention, when the node information includes an interception time identifier and a node level identifier, the processing module 503 is used to determine the cascade relationship between the process nodes corresponding to the node information based on the interception time identifier and the node level identifier obtained from the node information; and convert the node information into structured process data based on the cascade relationship between the process nodes.

[0088] In one embodiment of the present invention, in the case of the interception time identifier and the node level identifier of the node information obtained, the processing module 503 is used to determine the hierarchical relationship between the multiple node information according to the node level identifier; determine the arrangement positions corresponding to the multiple node information corresponding to the same hierarchical relationship according to the interception time identifier; and determine the cascade relationship according to the hierarchical relationship and the arrangement position.

[0089] In one embodiment of the present invention, when the interception definition includes a process end identifier, the processing module 503 is used to determine whether the node information includes the process end identifier based on the acquired node information; if so, it is determined that the node information of all process nodes has been acquired, and the acquisition of node information is stopped.

[0090] In one embodiment of the present invention, when the interception definition also includes a preset maximum interception duration, the processing module 503 is used to determine whether the difference between the interception start time and the time of intercepting the last node information is greater than the preset maximum interception duration when the process end identifier is not included in the node information; if so, stop acquiring new node information and use the acquired node information as the node information of all process nodes.

[0091] In one embodiment of the present invention, the generation module 504 is used to compare the process data with the data in the database to determine whether the comparison results are consistent; if so, discard the process data; if not, generate the system flow chart based on the process data; and / or store the process data in the database.

[0092] In one embodiment of the present invention, the generation module 504 is used to generate an interface based on the structured process data to receive operation instructions for the process data through the interface; process the process data according to the operation instructions, and generate the system flow chart based on the processed process data.

[0093] It can be seen from the device for generating a system flowchart according to an embodiment of the present invention that, in order to intercept the process node information of the target business, the current process node of the running business code is monitored; an interception definition is pre-configured, and the business code is intercepted according to the pre-configured interception definition to obtain the node information corresponding to the current process node; when it is determined that the node information of all process nodes corresponding to the business code has been obtained, the obtained node information is converted into structured process data; then a system flowchart is automatically generated according to the process data, without the need for the user to comb the source code and then manually draw the flowchart according to the combing results, thereby saving the user's time cost and improving work efficiency; and the automatically generated flowchart also has high objectivity and accuracy, which is convenient for users to objectively and accurately learn and understand the system business.

[0094] Figure 6 An exemplary system architecture 600 is shown to which the method for generating a system flowchart or the apparatus for generating a system flowchart according to the embodiments of the present invention can be applied.

[0095] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0096] Users can use terminal devices 601, 602, 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, 603, such as web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0097] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting the display of the system flowchart, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0098] The server 605 may be a server that provides various services, such as a background management server that intercepts and processes requests initiated by users using the terminal devices 601, 602, and 603. The background management server may analyze and process data such as process node information of the process corresponding to the intercepted request, and automatically generate a system flowchart based on it, and then display the system flowchart through the terminal device.

[0099] It should be noted that the method for generating a system flowchart provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the device for generating a system flowchart is generally arranged in the server 605 .

[0100] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0101] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0102] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0103] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0104] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0105] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0106] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0107] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a monitoring module, an interception module, a processing module, and a generation module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the generation module may also be described as a "module for generating a system flow chart according to the process data."

[0108] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in order to intercept the process node information of the target business, monitoring the current process node of the running business code; pre-configuring the interception definition, and intercepting the business code according to the pre-configured interception definition to obtain the node information corresponding to the current process node; when it is determined that the node information of all process nodes corresponding to the business code has been obtained, converting the obtained node information into structured process data; and generating a system flowchart based on the process data.

[0109] According to the technical solution of the embodiment of the present invention, in order to intercept the process node information of the target business, the current process node of the running business code is monitored; the interception definition is pre-configured, and the business code is intercepted according to the pre-configured interception definition to obtain the node information corresponding to the current process node; when it is determined that the node information of all process nodes corresponding to the business code has been obtained, the obtained node information is converted into structured process data; then, a system flowchart is automatically generated according to the process data, without the need for the user to comb the source code and then manually draw the flowchart according to the combing results, thereby saving the user's time cost and improving work efficiency; and the automatically generated flowchart also has high objectivity and accuracy, which is convenient for users to objectively and accurately learn and understand the system business.

[0110] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for generating a system flow chart, characterized in that: include: Monitor the current process node of the running business code; According to a pre-configured interception definition, intercept the business code to obtain node information corresponding to the current process node; When the node information of all process nodes corresponding to the business code is obtained, the obtained node information is converted into structured process data; A system flow chart is generated according to the process data.

2. The method according to claim 1, characterized in that The node information includes an interception time identifier and a node level identifier, and the step of converting the acquired node information into structured process data includes: Determine the cascade relationship between the process nodes corresponding to the node information according to the interception time identifier and the node level identifier of the acquired node information; According to the cascade relationship between the process nodes, the node information is converted into structured process data.

3. The claim according to claim 2, characterized in that: Determining the cascade relationship between the process nodes corresponding to the node information according to the interception time identifier and the node level identifier of the acquired node information includes: Determining a hierarchical relationship between a plurality of the node information according to the node hierarchical identifier; Determine, according to the interception time identifier, the arrangement positions corresponding to the plurality of node information corresponding to the same hierarchical relationship; The cascade relationship is determined according to the hierarchical relationship and the arrangement position.

4. The method according to claim 1, characterized in that The interception definition includes a process end identifier, and the method further includes: According to the acquired node information, determining whether the node information includes the process end identifier; If yes, it is determined that the node information of all the process nodes has been acquired, and the acquisition of the node information is stopped.

5. The method according to claim 1, characterized in that The interception definition also includes a preset maximum interception duration, and the method further includes: In the case where the node information does not include the process end identifier, determining whether the difference between the interception start time and the time of intercepting the last node information is greater than the preset maximum interception duration; If yes, stop acquiring new node information, and use the acquired node information as the node information of all process nodes.

6. The method according to claim 1, characterized in that The method comprises at least one of the following: Compare the process data with the data in the database to determine whether the comparison results are consistent; if yes, discard the process data; if no, generate the system flow chart according to the process data; The process data is stored in a database.

7. The method according to claim 1, characterized in that The generating of a system flow chart according to the process data comprises: generating an interface according to the structured process data, so as to receive an operation instruction for the process data through the interface; The process data is processed according to the operation instruction, and the system flow chart is generated according to the processed process data.

8. A device for generating a system flow chart, characterized in that: include: The monitoring module is used to monitor the current process node of the running business code; An interception module, used to intercept the business code according to a pre-configured interception definition to obtain node information corresponding to the current process node; A processing module, configured to convert the acquired node information into structured process data when the node information of all process nodes corresponding to the business code is acquired; A generating module is used to generate a system flow chart according to the process data.

9. A server, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Method for automatically generating corresponding model based on data analysis

    CN119202616A