# US 2022/0294716 A1 · Early warning method and early warning apparatus for service flow, storage medium, and computer equipment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0294716 A1
- Document ID: US20220294716A1
- Status: Published application
- Kind: A1
- Application number: 17/647,181
- Filed: 2022-01-06
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Changxin Memory Technologies, Inc.
- Applicants: Changxin Memory Technologies, Inc.
- Inventors: Hui ZHANG
- Web page: https://patentgrep.com/patent/US20220294716A1

## CPC

- G06Q 10/0637: Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
- H04L 43/062: related to network traffic
- H04L 43/045: for graphical visualisation of monitoring data
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure relates to an early warning method and apparatus for a service flow, a storage medium, and a computer equipment. The method includes: acquiring database audit data; obtaining at least one related service table associated with each service unit based on the database audit data; obtaining a service flow graph based on the database audit data and the at least one related service table; acquiring an execute statement, and analyzing the execute statement; and if the execute statement has an error, giving an early warning through the service flow graph.

## Claims

### Claim 1

An early warning method for a service flow, comprising:
acquiring database audit data;
obtaining at least one related service table associated with each service unit based on the database audit data;
obtaining a service flow graph based on the database audit data and the at least one related service table;
acquiring an execute statement, and analyzing the execute statement; and
when the execute statement has an error, giving an early warning through the service flow graph.

### Claim 2 (depends on 1)

The early warning method for a service flow according to claim 1, wherein the database audit data comprise an operation trajectory and operation data, and the operation comprises at least one of adding data, deleting data, altering data, or searching data; the acquiring database audit data comprises:
triggering each of the service units in sequence, and executing service operations;
generating the operation trajectory based on a trigger sequence of the service units;
monitoring an operation session of a database in real time; and
analyzing the operation session, and obtaining the operation data.

### Claim 3 (depends on 1)

The early warning method for a service flow according to claim 1, wherein the database audit data comprise an operation trajectory; the acquiring database audit data comprises:
triggering each of the service units in sequence, and executing service operations, to obtain operation data, the service operations comprising at least one of adding data, deleting data, altering data, or searching data; and
generating the operation trajectory including the operation data based on a trigger sequence of the service units and the operation data.

### Claim 4 (depends on 2)

The early warning method for a service flow according to claim 2, wherein the obtaining at least one related service table associated with each service unit based on the database audit data comprises:
extracting service table identifiers included in the operation data, to determine the at least one related service table associated with each of the service units.

### Claim 5 (depends on 4)

The early warning method for a service flow according to claim 4, wherein the obtaining a service flow graph based on the database audit data and the at least one related service table comprises:
creating an initial data dictionary;
entering a service identifier of each of the service units and at least one corresponding service table identifier into the initial data dictionary, to obtain a data dictionary;
establishing a relationship between the service units and the related service tables based on the data dictionary and the related service tables; and
generating the service flow graph according to the operation trajectory and based on the relationship between the service units and the related service tables.

### Claim 6 (depends on 5)

The early warning method for a service flow according to claim 5, wherein the generating the service flow graph according to the operation trajectory and based on the relationship between the service units and the related service tables comprises generating the service flow graph using a minimum spanning tree algorithm.

### Claim 7 (depends on 6)

The early warning method for a service flow according to claim 6, wherein the generating the service flow graph using a minimum spanning tree algorithm comprises:
defining all vertices in the service flow graph as v;
initializing points, u={u1}, the v={v1, v2 . . . vm}, wherein the u1, the v1, the v2 . . . the vm respectively represent different service units; and
based on the relationship between the service units and the related service tables, starting from the u1, searching an edge {u1, 1} with minimum cost, and sequentially merging the v1, the v2 . . . the vm into the u, until a minimum spanning tree has m edges or m+1 vertices, wherein the m is a positive integer.

### Claim 8 (depends on 7)

The early warning method for a service flow according to claim 7, wherein the u1 is a contract, the v1 is an order, the v2 is a delivery, the v3 is a transportation order, the v4 is an invoice, the v5 is a consignment, the v6 is a material inventory, and the v7 is an account receivable.

### Claim 9 (depends on 1)

The early warning method for a service flow according to claim 1, wherein the acquiring an execute statement, and analyzing the execute statement comprises:
acquiring the execute statement;
analyzing the execute statement, to extract at least one service table identifier and data to be executed that are included in the execute statement; and
when the data to be executed do not match at least one related service table corresponding to the at least one service table identifier, determining that the execute statement has an error.

### Claim 10 (depends on 9)

The early warning method for a service flow according to claim 9, wherein the analyzing the execute statement comprises analyzing the execute statement using a database execute plan.

### Claim 11 (depends on 9)

The early warning method for a service flow according to claim 9, further comprising:
recording the at least one service table identifier in the execute statement and error information to an error log; and
the giving an early warning through the service flow graph comprises:
based on the error log, giving an error mark to corresponding service unit in the service flow graph, and/or displaying the error information of the corresponding service unit.

### Claim 12 (depends on 11)

The early warning method for a service flow according to claim 11, further comprising:
determining whether the error of the execute statement has been processed; and
when the error has been processed, clearing the error mark of the corresponding service unit, and/or displaying a processed information.

### Claim 13

An early warning apparatus for a service flow, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when executing the computer program, the processor implements:
acquiring database audit data, and obtaining at least one related service table associated with each service unit based on the database audit data;
obtaining a service flow graph based on the database audit data and the at least one related service table; and
acquiring an execute statement, analyzing the execute statement, and giving an early warning through the service flow graph when the execute statement has an error.

### Claim 14 (depends on 13)

The early warning apparatus for a service flow according to claim 13, wherein when executing the computer program, the processor implements:
acquiring an execute statement; and
analyzing the execute statement, to extract at least one service table identifier and data to be executed that are included in the execute statement, and determining that the execute statement has an error when the data to be executed do not match at least one related service table corresponding to the at least one service table identifier.

### Claim 15 (depends on 1)

A storage medium, storing a computer program therein, wherein when the computer program is executed by a processor, the method according to claim 1 is implemented.
