A problem intelligent location method based on cross-system collaborative scenarios
By using intelligent positioning methods in power grid engineering projects, parsing and analyzing abnormal messages, and automatically locating abnormal collaborative process issues, the problem of low efficiency in data collaboration anomalies in power grid engineering projects is solved, and efficient problem analysis and location are achieved.
Patent Information
- Application Number
- CN202011180837.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-10-29
AI Technical Summary
There are data collaboration anomalies in the information collaboration process of power grid engineering projects, which require manual analysis and positioning problems, resulting in low efficiency and a lack of automated monitoring and positioning technology.
Adopt an intelligent problem location method based on cross-system collaboration scenarios, draw business scenario flow charts, obtain and parse abnormal messages, extract and classify error codes, and combine process links and interactive connections to generate corresponding relationships between error codes and process links. , locate the source of abnormal problems in the collaborative process, and display them visually.
It realizes the automatic and rapid discovery of error links in the collaborative process, improves the efficiency of problem handling, improves the accuracy of problem analysis and positioning, and reduces manual intervention.
Smart Images

Figure CN112256469B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric power technology, and more specifically to a method for intelligently locating problems based on a cross-system collaborative scenario, which is an intelligent monitoring and locating method for abnormal collaborative transmission of account card and material data in engineering projects such as power grid science and technology informatization, technical transformation and repair, and infrastructure. Background Art
[0002] Since the launch of CSGII (Enterprise Information Management System), the power grid industry has supported the normal circulation of power grid system projects through asset systems, financial systems, GIS platforms, marketing systems, and power grid project collaborative processes. However, due to inconsistent business standards, data migration between old and new systems, system design issues, and operational issues, project information and account card material collaboration issues and data quality issues have become prominent. In recent years, some business collaboration and data quality issues have been solved through traditional business collaboration and data quality control methods, but due to the lack of technical means, there are still bottlenecks in the practical application of business collaboration and data quality improvement.
[0003] At present, there are data collaboration anomalies in the information collaboration process of power grid engineering projects. It is necessary to manually obtain the collaboration error messages for analysis. In addition, the link where the message interaction error occurs is most of the time not the root cause of the collaboration process anomaly. It is also necessary to manually obtain the error code from the XML message to further locate the cause of the problem and the problem link. Discovering and locating problems through manual means is inefficient, time-consuming and labor-intensive. There is currently a lack of technical means to monitor and discover these problems. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for intelligently locating problems based on a cross-system collaborative scenario, so as to solve the problem that data collaboration anomalies exist in the information collaboration process of power grid engineering projects, and problems need to be discovered and located by manual means, which is inefficient. The method can automatically and quickly discover the error links in the collaborative process, improve the efficiency of problem handling, and effectively promote the smooth flow of the process.
[0005] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.
[0006] A problem intelligent location method based on a cross-system collaborative scenario includes the following steps:
[0007] S1. Draw a business scenario flowchart, and indicate the links and connection names of collaborative interactions through the flowchart;
[0008] S2. Obtain the abnormal message in XML format, parse and store it in the database, and convert the semi-structured log message into a structured relational data source;
[0009] S3. Analyze the message error information and extract and classify the error code; combine the error code with the process link, interactive connection, and historical problem handling experience, analyze and trace the abnormal link, and generate the corresponding relationship between the error code and the process link and interactive connection;
[0010] S4. The abnormal message is combined with the correspondence between the error code and the process links and interactive connections to locate the source link of the abnormal problem in the collaborative process and visualize the abnormal process links or connections.
[0011] To further optimize the technical solution, step S2 includes the following steps:
[0012] S21. Obtain SOA message file: download the message encapsulated in XML format in a scheduled and full manner through SOA;
[0013] S22, parsing SOA messages: extracting SOA messages of the system interaction interface for storage processing; processing of SOA messages mainly involves inserting the element parent node as the table name, the element as the table field, and the text content as the value of the table field in the XML structure message into the database, and the tables are associated with each other through primary keys and foreign keys, thereby retaining the XML message hierarchical structure;
[0014] S23. Use SQL scripts to establish data anomaly monitoring rules for message content and database table business data, generate SOA-level associated SQL, and discover missing and erroneous collaborative data in the message by automatically executing SQL.
[0015] To further optimize the technical solution, during the SOA processing, if the SOA contains an FTP address, the FTP file needs to be parsed at the same time;
[0016] The processing of FTP files depends on the SOA service message to obtain the FTP file path. The file data is filtered and deduplicated and stored in the database in accordance with the message structure.
[0017] To further optimize the technical solution, in step S2, the semi-structured log message includes semi-structured SOA and FTP log messages; JAXB and XPATH technologies are used to implement content parsing and hierarchical parsing of the semi-structured SOA and FTP log messages.
[0018] To further optimize the technical solution, in step S2, any structure message is stored in the database, multi-level association processing is performed, and key business field information and business data in the database are extracted to facilitate association query.
[0019] To further optimize the technical solution, in step S3, the number in the "control type" in the abnormal message is the error code.
[0020] Due to the adoption of the above technical scheme, the technical progress achieved by the present invention is as follows.
[0021] The present invention is based on the cross-system collaborative flow chart of the power grid engineering project, monitors and analyzes all service messages with interactive exceptions involved in the cross-system collaborative process, obtains the abnormal error codes in the SOA messages, and locates the links or interactive interfaces with collaborative abnormalities in combination with the process interaction nodes and error code analysis, and finally visualizes the abnormal links or connections of the cross-system collaborative process.
[0022] The present invention implements the parse and storage of abnormal message XML, and automatically locates the root link of the collaborative interaction anomaly by associating error codes with the association relationship information of abnormal links / connections, thereby improving the efficiency of problem analysis and the accuracy of problem location. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of the process of the present invention;
[0024] Figure 2 This is a business scenario flow chart of the present invention;
[0025] Figure 3 A visual management diagram for converting the XML message of the present invention into a relational database model;
[0026] Figure 4 This is a diagram showing the collaborative error information of the SOA message of the present invention;
[0027] Figure 5 This is a detailed diagram of an abnormal message of the present invention;
[0028] Figure 6 It is a correlation diagram of the error code of the present invention and the collaborative abnormal link / connection;
[0029] Figure 7 The abnormal links of the present invention are marked in red. DETAILED DESCRIPTION
[0030] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0031] A problem intelligent location method based on cross-system collaborative scenarios, combined with Figures 1 to 7 As shown, the specific steps include:
[0032] S1. Draw a business scenario flowchart, and use the flowchart to indicate the links and connection names of the collaborative interaction. Figure 2 shown.
[0033] S2. Obtain the abnormal message in XML format, parse and store it in the database, and convert the semi-structured log message into a structured relational data source. The visual management diagram of converting XML messages into a relational database model is as follows: Figure 3 shown.
[0034] For messages of any structure, they are stored in the database, multi-level association processing is performed, and key business field information and business data in the database are extracted to facilitate association query.
[0035] Step S2 includes the following specific steps:
[0036] S21. First, obtain the SOA message file: regularly and fully download the message encapsulated in XML format through SOA (information integration platform).
[0037] S22. Secondly, parse the SOA message: extract the SOA message of the system interaction interface for storage processing. If the SOA contains an FTP address, the FTP file needs to be parsed at the same time. The processing of the SOA message is mainly to insert the element parent node as the table name, the element as the table field, and the text content as the value of the table field in the xml structure message into the database. The tables are associated with each other through primary keys and foreign keys, which retains the hierarchical structure of the xml message, facilitates data deduplication, assignment, storage and preservation, and helps the monitoring platform to quickly and effectively select the required business attributes when creating rules. The processing of FTP files depends on the SOA service message to obtain the FTP file path. The file data is filtered, deduplicated, and stored in the database consistent with the message structure.
[0038] S23. Finally, through the SQL script, the message content and database table business data are used to establish data anomaly monitoring rules, generate SOA-level associated SQL, and discover missing and erroneous collaborative data in the message by automatically executing SQL.
[0039] Semi-structured log messages include semi-structured SOA and FTP log messages. The present invention converts semi-structured SOA and FTP log messages into structured relational data sources. JAXB implements mapping between xml elements and Java variables in the form of Java annotations. XPath is a language for finding information in xml documents, which is used to traverse elements and attributes in xml documents and operate in xml documents using path expressions. JAXB and XPATH technology are used to implement content parsing and hierarchical parsing of semi-structured SOA and FTP log messages, meeting the requirements of efficiently converting multi-level and multi-attribute complex message structures into relational data, while providing convenient and fast standard SQL statement queries.
[0040] The present invention parses and stores the messages encapsulated in XML format that are difficult to check and retrieve, while retaining the hierarchical structure of the messages, meeting the requirement of efficiently converting multi-level and multi-attribute complex message structures into relational data, facilitating the establishment of data anomaly monitoring rules for message content and database table business data, generating SOA-level associated SQL, and discovering missing and erroneous collaborative data in messages by automatically executing SQL, thus avoiding manual login to multiple platforms (SOA platform, business system) that results in low troubleshooting efficiency, and solving the problem of only being able to find some problems by searching XML messages one by one.
[0041] Since the hierarchical format of the XML message may be adjusted irregularly according to the business data, the present invention may flexibly adjust the corresponding relational data table according to the latest hierarchical structure during the message conversion process to adapt to the variable and complex XML message format.
[0042] S3. Analyze the message error information through database tools and extract the classified error code. The number in the "Control Type" in the abnormal message is the error code and mapping value. Figure 5 The abnormal message details are shown in the figure. Classify and summarize the causes, analyze the abnormal links and connections. The SOA message collaborative error information display figure is as follows Figure 4 shown.
[0043] Combine the error code with the process links, interactive connections, and historical problem handling experience to analyze and trace the abnormal links, and organize the corresponding relationship between the generated error code and the process links and interactive connections, such as Figure 6 The "Correlation between error codes and collaborative abnormal links / connections" is shown.
[0044] Specifically, the method for generating the correspondence between error codes and process links and interactive connections is as follows: collaborative fault handling personnel manually organize the mapping relationship between error codes and process links and interactive connections based on historical problem verification experience, and import the sorted mapping relationship into a database table. After obtaining the error code, the background monitoring mechanism reads this mapping table to obtain the corresponding abnormal link and connection information.
[0045] Figure 6 In the table, the first and second columns are the UUID and service name of the monitoring message. The corresponding error code is in the header starting from the fourth column, such as 2021, 5069, etc., which are error codes. The value in the column corresponding to the abnormal link / line below the error code is the corresponding error link mark number, such as Figure 6 If the code 2021 appears in the service message of the second line, the corresponding error link is the 1003 connection.
[0046] S4. Combine the abnormal message with the corresponding relationship between the error code and the process link and interactive connection to locate the source link of the abnormal problem in the collaborative process, and display the abnormal process link or connection through visualization tools. Figure 7 As shown, the cross-system collaborative monitoring results of the entire process are visualized, and abnormal links are marked in red.
[0047] For example, the monitoring mechanism obtains Figure 6 The UUID of the service message in the second line is parsed. If the error code 2021 is found in the error message of this service, it means that the error reporting link of this message is in the link or line 1003; by analogy, if the error code of this message is 5069, then if the error reporting link of this service is in the link or line 1008; if the error code of this service is not in this mapping table, then the error reporting link of this message is located in the interaction link of this message itself, that is, 1008. The above method is used to locate the source link of the abnormal problem of the collaborative process.
[0048] The present invention is based on the cross-system collaborative flow chart of the power grid engineering project, monitors and analyzes all service messages with interactive exceptions involved in the cross-system collaborative process, obtains the abnormal error codes in the SOA messages, and locates the links or interactive interfaces with collaborative abnormalities in combination with the process interaction nodes and error code analysis, and finally visualizes the abnormal links or connections of the cross-system collaborative process.
[0049] The problem of abnormal interaction in cross-system collaborative processes has always been to locate the cause and the root link of the problem by manually analyzing the message information in the XML message. The present invention implements the parse storage of abnormal message XML, and automatically locates the root link of the collaborative interaction abnormality by associating the error code and the association relationship information of the abnormal link / connection, thereby improving the efficiency of problem analysis and the accuracy of problem location.
Claims
1. A problem intelligent location method based on cross-system collaborative scenarios, characterized in that: The following steps are involved: S1. Draw a business scenario flowchart, and indicate the links and connection names of collaborative interactions through the flowchart; S2. Obtain the abnormal message in XML format, parse and store it in the database, and convert the semi-structured log message into a structured relational data source; The semi-structured log message includes semi-structured SOA and FTP log messages; Use JAXB and XPATH technologies to implement content parsing and hierarchical parsing of semi-structured SOA and FTP log messages; S21. Obtain SOA message file: download the message encapsulated in XML format in a scheduled and full manner through SOA; S22, parse the SOA message: extract the SOA message of the system interaction interface and process it into the database; the processing of the SOA message is to insert the element parent node as the table name, the element as the table field, and the text content as the value of the table field in the xml structure message into the database, and the tables are associated with each other through primary keys and foreign keys, thereby retaining the hierarchical structure of the xml message; S23. By means of SQL scripts, data anomaly monitoring rules are established for the message content and database table business data, and SOA-level associated SQL is generated. The missing and erroneous collaborative data in the message is discovered by automatically executing SQL; S3. Analyze the message error information and extract and classify the error code; combine the error code with the process link, interactive connection, and historical problem handling experience, analyze and trace the abnormal link, and generate the corresponding relationship between the error code and the process link and interactive connection; S4. The abnormal message is combined with the correspondence between the error code and the process links and interactive connections to locate the source link of the abnormal problem in the collaborative process and visualize the abnormal process links or connections.
2. According to claim 1, a problem intelligent location method based on a cross-system collaborative scenario is characterized in that: During SOA processing, if the SOA contains an FTP address, the FTP file needs to be parsed at the same time; The processing of FTP files depends on the SOA service message to obtain the FTP file path. The file data is filtered and deduplicated and stored in the database in accordance with the message structure.
3. According to claim 1, a problem intelligent location method based on a cross-system collaborative scenario is characterized in that: In step S2, any structure message is stored in the database, multi-level association processing is performed, and key business field information and business data in the database are extracted to facilitate association query.
4. According to claim 1, a problem intelligent location method based on a cross-system collaborative scenario is characterized in that: In step S3, the number in the "control type" in the abnormal message is the error code.
Citation Information
Patent Citations
Coordinated monitoring method for preventing BGP routing hijacking
CN102394794A
Communication protocol adapting method and system
CN102594833A
Database table and XML message mapping processing method and system
CN106021594A
Business flow monitoring system and method for electric power company
CN106960292A
Integration method of digital archives and external system archiving data
CN107341228A
