Business logic analysis methods, apparatus, computer equipment, and storage media

By acquiring and sorting resource interaction information in the K8s business processing process and identifying differences in interaction content, the problem of long processing time and low accuracy in the analysis of K8s business processing logic in existing technologies is solved, and efficient and accurate business logic analysis is achieved.

CN117574221BActive Publication Date: 2026-11-17INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311464924.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-06
Publication Date
2026-11-17
Estimated Expiration
2043-11-06

AI Technical Summary

Technical Problem

Existing technologies lack intuitive observation methods when analyzing Kubernetes business processing logic, resulting in time-consuming analysis processes, low accuracy, reliance on human experience, waste of resources, and discrepancies in analysis results.

Method used

By acquiring resource interaction information from the business processing process, the information is divided into multiple interaction files. The interaction content is identified and sorted, and the differences between adjacent interaction content are identified. Based on the differences, the target processing logic of the business processing process is identified.

Benefits of technology

It improved the comprehensiveness of resource interaction information acquisition and the refinement of analysis, enhanced analysis efficiency and accuracy, and ensured the comprehensiveness and accuracy of business processing logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117574221B_ABST
    Figure CN117574221B_ABST
Patent Text Reader

Abstract

This application relates to a business logic analysis method, apparatus, computer device, and storage medium. This application relates to the field of artificial intelligence technology. The method includes: acquiring resource interaction information of a business processing procedure, and dividing the resource interaction information into multiple interaction file information; identifying the interaction content corresponding to each interaction file information, and sorting the interaction content according to the order of their positions in the resource interaction information to obtain an interaction content sequence; based on the interaction content sequence, identifying the content difference information between two adjacent interaction contents, and based on the content difference information, identifying the target processing logic of the business processing procedure. This method can improve the accuracy of analyzing business processing logic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a business logic analysis method, apparatus, computer device, and storage medium. Background Technology

[0002] When analyzing the business logic of Kubernetes (application software), there is often a lack of intuitive observation methods. Often, it's done by using `kubectl get` to retrieve objects and check their states, thus lacking an overall analysis of the change logic. Alternatively, directly analyzing the code logic is time-consuming, unintuitive, and difficult. Therefore, how to analyze Kubernetes business logic is a current research focus.

[0003] Traditional processing logic analysis involves staff acquiring business code and manually viewing resources, then analyzing Kubernetes business processing logic based on their experience. However, this method consumes a lot of human and time resources, and because each staff member has different experience, the processing logic obtained from the analysis also varies, resulting in low accuracy of the analyzed processing logic. Summary of the Invention

[0004] Therefore, it is necessary to provide a business logic analysis method, apparatus, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problems.

[0005] Firstly, this application provides a business logic analysis method. The method includes:

[0006] Obtain resource interaction information during business processing, and divide the resource interaction information into multiple interaction file information;

[0007] Identify the interactive content corresponding to each interactive file information, and based on each interactive content, sort them according to the order of their positions in the resource interactive information to obtain an interactive content sequence;

[0008] Based on the sequence of interactive content, the content difference information between two adjacent interactive contents is identified, and based on each of the content difference information, the target processing logic of the business processing process is identified.

[0009] Optionally, dividing the resource interaction information into multiple interaction file information includes:

[0010] Identify the byte stream corresponding to the resource interaction information, and divide the byte stream into multiple byte segments according to the segmentation information in the byte stream;

[0011] Each byte segment is filled into the file template to obtain the interactive file information corresponding to each byte segment.

[0012] Optionally, identifying the content difference information between two adjacent interactive content items based on the interactive content sequence includes:

[0013] For each pair of adjacent interactive content, the difference information between the byte segments corresponding to the two interactive content is identified to obtain the difference byte information corresponding to each interactive content;

[0014] Identify the resource interaction information corresponding to each of the aforementioned difference byte information, and the resource interaction type corresponding to each of the aforementioned difference byte information;

[0015] Based on the resource interaction information described above, the resource interaction differences between the two interactive contents are identified, and based on the resource interaction types described above, the interaction type differences between the two interactive contents are identified.

[0016] The differences in resource interaction and the differences in interaction type are used as content difference information between two adjacent interactive contents.

[0017] Optionally, identifying the target processing logic of the business processing procedure based on the content difference information includes:

[0018] According to the order of the sequence of interactive content, the resource interaction differences of each adjacent interactive content and the interaction type differences of each adjacent interactive content are sorted to obtain the resource interaction difference distribution information and the resource interaction type difference distribution information.

[0019] Based on the resource interaction difference distribution information, identify the resource change information of the business processing process, and based on the resource interaction type difference distribution information, identify the resource type adjustment strategy of the business processing process.

[0020] Based on the resource change information of the business processing process and the resource type adjustment strategy of the business processing process, the target processing logic of the business processing process is determined.

[0021] Optionally, identifying resource change information in the business processing process based on the resource interaction difference distribution information includes:

[0022] Identify the resource change cycle and the resource change range of the resource interaction difference distribution information;

[0023] Identify the trend information of the differences in resource interactions during the resource change cycle, and use the trend information and the range of resource changes as the resource change information of the business processing process.

[0024] Optionally, identifying the resource type adjustment strategy for the business processing based on the resource interaction type difference distribution information includes:

[0025] Identify the number of each resource interaction type in the resource interaction type difference distribution information, and identify the change strategy of each resource interaction type;

[0026] The resource interaction types are sorted in descending order of the number of each type to obtain a sequence of attention for each resource interaction type. The change strategy for each resource interaction type and the sequence of attention are then used as the resource type adjustment strategy for the business processing.

[0027] Optionally, determining the target processing logic of the business process based on the resource change information of the business processing process and the resource type adjustment strategy of the business processing process includes:

[0028] Based on the changing trend information of the differences in the resource interactions and the range of resource changes, the resource change logic of each resource interaction information is identified.

[0029] Based on the change strategies of each resource interaction type and the attention sequence, the resource type change logic of each resource interaction information is identified;

[0030] Based on the resource change logic and the resource type change logic, the target processing logic of the business process is determined through business logic analysis strategies.

[0031] Secondly, this application also provides a business logic analysis apparatus. The apparatus includes:

[0032] The acquisition module is used to acquire resource interaction information during the business processing and divide the resource interaction information into multiple interaction file information.

[0033] The sorting module is used to identify the interactive content corresponding to each interactive file information, and sort the interactive content according to the order of the position information of each interactive content in the resource interactive information to obtain the interactive content sequence.

[0034] The identification module is used to identify the content difference information between two adjacent interactive contents based on the interactive content sequence, and to identify the target processing logic of the business processing process based on each of the content difference information.

[0035] Optionally, the acquisition module is specifically used for:

[0036] Identify the byte stream corresponding to the resource interaction information, and divide the byte stream into multiple byte segments according to the segmentation information in the byte stream;

[0037] Each byte segment is filled into the file template to obtain the interactive file information corresponding to each byte segment.

[0038] Optionally, the identification module is specifically used for:

[0039] For each pair of adjacent interactive content, the difference information between the byte segments corresponding to the two interactive content is identified to obtain the difference byte information corresponding to each interactive content;

[0040] Identify the resource interaction information corresponding to each of the aforementioned difference byte information, and the resource interaction type corresponding to each of the aforementioned difference byte information;

[0041] Based on the resource interaction information described above, the resource interaction differences between the two interactive contents are identified, and based on the resource interaction types described above, the interaction type differences between the two interactive contents are identified.

[0042] The differences in resource interaction and the differences in interaction type are used as content difference information between two adjacent interactive contents.

[0043] Optionally, the identification module is specifically used for:

[0044] According to the order of the sequence of interactive content, the resource interaction differences of each adjacent interactive content and the interaction type differences of each adjacent interactive content are sorted to obtain the resource interaction difference distribution information and the resource interaction type difference distribution information.

[0045] Based on the resource interaction difference distribution information, identify the resource change information of the business processing process, and based on the resource interaction type difference distribution information, identify the resource type adjustment strategy of the business processing process.

[0046] Based on the resource change information of the business processing process and the resource type adjustment strategy of the business processing process, the target processing logic of the business processing process is determined.

[0047] Optionally, the identification module is specifically used for:

[0048] Identify the resource change cycle and the resource change range of the resource interaction difference distribution information;

[0049] Identify the trend information of the differences in resource interactions during the resource change cycle, and use the trend information and the range of resource changes as the resource change information of the business processing process.

[0050] Optionally, the identification module is specifically used for:

[0051] Identify the number of each resource interaction type in the resource interaction type difference distribution information, and identify the change strategy of each resource interaction type;

[0052] The resource interaction types are sorted in descending order of the number of each type to obtain a sequence of attention for each resource interaction type. The change strategy for each resource interaction type and the sequence of attention are then used as the resource type adjustment strategy for the business processing.

[0053] Optionally, the identification module is specifically used for:

[0054] Based on the changing trend information of the differences in the resource interactions and the range of resource changes, the resource change logic of each resource interaction information is identified.

[0055] Based on the change strategies of each resource interaction type and the attention sequence, the resource type change logic of each resource interaction information is identified;

[0056] Based on the resource change logic and the resource type change logic, the target processing logic of the business process is determined through business logic analysis strategies.

[0057] Thirdly, this application provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any one of the first aspects.

[0058] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0059] Fifthly, this application provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0060] The aforementioned business logic analysis method, apparatus, computer equipment, storage medium, and computer program product acquire resource interaction information of the business processing process and divide the resource interaction information into multiple interaction file information; identify the interaction content corresponding to each interaction file information, and sort the interaction content according to the order of the position information of each interaction content in the resource interaction information to obtain an interaction content sequence; based on the interaction content sequence, identify the content difference information of two adjacent interaction content, and based on the content difference information, identify the target processing logic of the business processing process. By acquiring resource interaction information of the business processing process in real time, the omission of resource interaction information during manual acquisition is avoided, improving the comprehensiveness of the acquired resource interaction information. Then, by dividing the resource interaction information into multiple interaction file information and identifying the interaction content corresponding to each interaction file information, the granularity of the analysis of resource interaction information is improved. Furthermore, by sorting each interactive content and identifying the content differences between adjacent interactive content, the comprehensiveness of the resource interaction logic analysis is improved. Analyzing the content differences between adjacent interactive content avoids the low efficiency of analyzing large amounts of resource interaction content based on manual experience. This ensures the accuracy of analyzing the content differences between adjacent interactive content while improving efficiency. Finally, based on the aforementioned content difference information, the target processing logic of the business process is identified. This allows for further analysis of the business process logic based on resource change logic relationships, improving both the efficiency and accuracy of the business process analysis. Attached Figure Description

[0061] Figure 1 This is a flowchart illustrating a business logic analysis method in one embodiment;

[0062] Figure 2 This is a flowchart illustrating a business logic analysis example in one embodiment;

[0063] Figure 3 This is a structural block diagram of a business logic analysis device in one embodiment;

[0064] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0066] The business logic analysis method provided in this application is mainly applied to the analysis of Kubernetes business processing logic in application environments. This method can be applied to terminals, servers, and systems including both terminals and servers, and is implemented through interaction between the terminal and server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, etc. The terminal acquires resource interaction information during the business processing in real time by listening, avoiding omissions in manual acquisition and improving the comprehensiveness of the acquired information. Then, by dividing the resource interaction information into multiple interaction file information and identifying the interaction content corresponding to each file, the granularity of the resource interaction information analysis is improved. Furthermore, by sorting each interaction content and identifying the content differences between adjacent interaction content, the comprehensiveness of the resource interaction logic analysis is improved. Analyzing the content differences between adjacent interaction content avoids the low efficiency of manually analyzing large amounts of resource interaction content, ensuring the accuracy of analyzing the content differences between adjacent interaction content while improving the efficiency. Finally, based on the differences in the content, the target processing logic of the business process is identified, thereby further analyzing the processing logic of the business process based on the logical relationship of resource changes. This not only improves the efficiency of analyzing the business processing logic, but also comprehensively improves the accuracy of analyzing the business processing logic.

[0067] In one embodiment, such as Figure 1 As shown, a business logic analysis method is provided. Taking the application of this method to a terminal as an example, the method includes the following steps:

[0068] Step S101: Obtain resource interaction information of the business processing process and divide the resource interaction information into multiple interaction file information.

[0069] In this embodiment, the terminal responds to the user's resource monitoring operation by acquiring resource interaction information during the business processing in real time based on the Kubernetes event push mechanism. This resource interaction information consists of the resource data input by the user into Kubernetes and the processing results corresponding to that resource data returned by Kubernetes to the user. This resource interaction information is represented as a resource data byte stream. The resource data includes, but is not limited to, all preset Kubernetes resources and user-defined resources. Then, the terminal divides this resource interaction information into multiple byte segments corresponding to interactive file information, according to the byte stream corresponding to the resource interaction information. The specific division process will be explained in detail later.

[0070] Step S102: Identify the interactive content corresponding to each interactive file information, and sort the interactive content according to the order of their positions in the resource interactive information to obtain the interactive content sequence.

[0071] In this embodiment, the terminal identifies the interactive content within each interactive file based on that interactive file information. This interactive content refers to the byte content within the interactive file information. Then, the terminal sorts the order of each interactive content's position within the resource interactive information to obtain an interactive content sequence.

[0072] Step S103: Based on the sequence of interactive content, identify the content difference information between two adjacent interactive contents, and based on the content difference information, identify the target processing logic of the business processing process.

[0073] In this embodiment, the terminal identifies content difference information between two adjacent interactive content items based on the sequence of interactive content, and identifies the target processing logic of the business processing process based on each content difference information. The method for identifying content difference information may include, but is not limited to, comparing adjacent interactive content item by item using BeyondCompare (a file comparison program). This content difference information is used to characterize the deviation between two interactive content items. The specific process of identifying the target processing logic will be described in detail later.

[0074] Based on the above scheme, resource interaction information during business processing is acquired through real-time monitoring, avoiding omissions during manual acquisition and improving the comprehensiveness of the acquired information. Then, by dividing the resource interaction information into multiple interaction files and identifying the interaction content corresponding to each file, the granularity of the analysis is improved. Furthermore, by sorting each interaction content and identifying the content differences between adjacent interactions, the comprehensiveness of the resource interaction logic analysis is enhanced. Analyzing the content differences between adjacent interactions avoids the low efficiency of manually analyzing large amounts of resource interaction content, ensuring both accuracy and efficiency. Finally, based on the identified content differences, the target processing logic of the business process is identified, allowing for further analysis of the business processing logic based on resource change relationships. This not only improves the efficiency of business processing logic analysis but also comprehensively enhances its accuracy.

[0075] Optionally, the resource interaction information is divided into multiple interaction file information, including: identifying the byte stream corresponding to the resource interaction information, and dividing the byte stream into multiple byte segments according to the segmentation information in the byte stream; filling each byte segment into a file template to obtain the interaction file information corresponding to each byte segment.

[0076] In this embodiment, the terminal identifies the byte stream corresponding to the resource interaction information and divides the byte stream into multiple byte segments according to the segmentation information in the byte stream. Then, the terminal fills each byte segment into a file template to obtain the interactive file information corresponding to each byte segment.

[0077] The specific terminal uses a line of content containing only the "---" symbol as a delimiter. Each new delimiter indicates the start of a new event, at which point the file number is incremented by 1, and the new event content is output to a new file, thus obtaining the interactive file information corresponding to each byte segment. For example, n.yaml.

[0078] Based on the above scheme, multiple interactive file information is obtained by dividing the byte stream, which improves the granularity of the analysis of resource interaction information.

[0079] Optionally, based on the sequence of interactive content, identify the content difference information between two adjacent interactive contents, including: for each pair of adjacent interactive contents, identify the difference information between the corresponding byte segments of the two interactive contents to obtain the difference byte information corresponding to each interactive content; identify the resource interaction information corresponding to each difference byte information and the resource interaction type corresponding to each difference byte information; based on each resource interaction information, identify the resource interaction difference between the two interactive contents, and based on each resource interaction type, identify the interaction type difference between the two interactive contents; and use the resource interaction difference and the interaction type difference as the content difference information between two adjacent interactive contents.

[0080] In this embodiment, for every two adjacent interactive content pieces, the terminal identifies the difference information between the byte segments corresponding to the two interactive content pieces, obtaining the difference byte information corresponding to each interactive content piece. Then, the terminal identifies the resource interaction information corresponding to each difference byte information piece, and the resource interaction type corresponding to each difference byte information piece. The resource interaction information is used to characterize the changes in the number of resource interactions, data volume, and other numerical values. The resource interaction type is used to characterize the resource interaction method and the interaction type corresponding to the resource interaction strategy. Then, based on each resource interaction information piece, the terminal calculates the difference in the number of resource interactions between each two interactive content pieces, and the difference in the data volume between each two interactive content pieces, and uses these differences as the resource interaction difference between each two interactive content pieces. Next, based on each resource interaction type, the terminal identifies the deviation information between the interaction types of two interactive content pieces, obtaining the interaction type difference between each two interactive content pieces. This deviation information is a code value indicating whether the two interaction types are different. When the two interaction types are the same, the code value corresponding to the interaction type difference is 0; when the two interaction types are different, the code value corresponding to the interaction type difference is 1. Finally, the terminal uses the differences in resource interaction and interaction type as content difference information between two adjacent interactive contents.

[0081] Based on the above scheme, by identifying differences in resource interaction and differences in interaction type, the content difference information of two adjacent interactive contents can be determined, thereby improving the precision of content difference information identification.

[0082] Optionally, based on the content difference information, the target processing logic of the business process is identified, including: sorting the resource interaction differences and interaction type differences of each adjacent interactive content according to the order of the interactive content sequence to obtain resource interaction difference distribution information and resource interaction type difference distribution information; identifying resource change information of the business process based on the resource interaction difference distribution information, and identifying resource type adjustment strategies of the business process based on the resource interaction type difference distribution information; and determining the target processing logic of the business process based on the resource change information and resource type adjustment strategies of the business process.

[0083] In this embodiment, the terminal, following the sequence of interactive content, analyzes the resource interaction differences of each adjacent interactive content to obtain resource interaction difference distribution information for all interactive content. Then, the terminal sorts the interaction type differences of each adjacent interactive content to obtain resource interaction type difference distribution information for all interactive content. Next, based on the resource interaction difference distribution information, the terminal identifies resource change information in the business processing process and, based on the resource interaction type difference distribution information, identifies the resource type adjustment strategy for the business processing process. The specific identification process will be described in detail later. Finally, based on the resource change information and the resource type adjustment strategy for the business processing process, the terminal determines the target processing logic for the business processing process.

[0084] Based on the above solution, by analyzing the logical relationships of resource changes, the processing logic of the business process is further analyzed, which not only improves the efficiency of analyzing the business processing logic, but also comprehensively improves the accuracy of analyzing the business processing logic.

[0085] Optionally, based on the resource interaction difference distribution information, resource change information in the business processing process is identified, including: identifying the resource change cycle and the resource change range of the resource interaction difference distribution information; identifying the change trend information of each resource interaction difference in the resource change cycle, and using the change trend information and the resource change range as the resource change information in the business processing process.

[0086] In this embodiment, the terminal identifies the resource change cycle and the resource change range of the resource interaction difference distribution information. Then, the terminal identifies the change trend information of each resource interaction difference in the resource change cycle, and uses the change trend information and the resource change range as the resource change information in the business processing process.

[0087] Based on the above scheme, by identifying resource change cycles and analyzing resource change trend information, the accuracy of logical analysis of resource interaction logic is improved.

[0088] Optionally, based on the resource interaction type difference distribution information, the resource type adjustment strategy for the business process is identified, including: identifying the number of each resource interaction type in the resource interaction type difference distribution information, and identifying the change strategy for each resource interaction type; sorting each resource interaction type in descending order of the number of each resource interaction type to obtain the attention sequence for each resource interaction type, and using the change strategy for each resource interaction type and the attention sequence as the resource type adjustment strategy for the business process.

[0089] In this embodiment, the terminal identifies the number of each resource interaction type in the resource interaction type difference distribution information and identifies the change strategy for each resource interaction type. Then, the terminal sorts the resource interaction types in descending order of the number of each resource interaction type to obtain the attention sequence for each resource interaction type. The change strategy for each resource interaction type and the attention sequence are used as the resource type adjustment strategy in the business processing process. The attention sequence is the order of attention to each resource interaction type during the business processing.

[0090] Based on the above scheme, by sorting the resource interaction types, the attention sequence for each resource interaction type during the business processing is identified, and then the accuracy of the terminal's analysis of the interaction logic of resource interaction types is improved through the change strategy of each resource interaction type.

[0091] Optionally, based on resource change information in the business processing process and resource type adjustment strategies in the business processing process, the target processing logic of the business processing process is determined, including: identifying the resource change logic of each resource interaction information based on the changing trend information of the differences between each resource interaction and the scope of resource changes; identifying the resource type change logic of each resource interaction information based on the change strategies of each resource interaction type and the attention sequence; and determining the target processing logic of the business processing process through business logic analysis strategies based on the resource change logic and the resource type change logic.

[0092] In this embodiment, the terminal identifies the resource change logic of each resource interaction information based on the trend information of the differences in resource changes and the range of resource changes. Then, based on the change strategy of each resource interaction type and the attention sequence, the terminal identifies the resource type change logic of each resource interaction information. Finally, based on the resource change logic and the resource type change logic, the terminal determines the target processing logic of the business process through a business logic analysis strategy. The business logic analysis strategy is a business logic analysis strategy obtained by summarizing a large amount of expert experience, experimental data information, and work experience.

[0093] Based on the above solution, further analysis of the business processing logic based on the logical relationship of resource changes not only improves the efficiency of analyzing the business processing logic, but also comprehensively improves the accuracy of analyzing the business processing logic.

[0094] This application also provides a business logic analysis example, such as Figure 2 As shown, the specific processing procedure includes the following steps:

[0095] Step S201: Obtain resource interaction information of the business processing process.

[0096] Step S202: Identify the byte stream corresponding to the resource interaction information, and divide the byte stream into multiple byte segments according to the segmentation information in the byte stream.

[0097] Step S203: Fill each byte segment into the file template to obtain the interactive file information corresponding to each byte segment.

[0098] Step S204: Identify the interactive content corresponding to each interactive file information, and sort the interactive content according to the order of their positions in the resource interactive information to obtain the interactive content sequence.

[0099] Step S205: For every two adjacent interactive contents, identify the difference information between the byte segments corresponding to the two interactive contents to obtain the difference byte information corresponding to each interactive content.

[0100] Step S206: Identify the resource interaction information corresponding to each difference byte information and the resource interaction type corresponding to each difference byte information.

[0101] Step S207: Based on the interaction information of each resource, identify the resource interaction differences between two interactive contents, and based on the interaction type of each resource, identify the interaction type differences between two interactive contents.

[0102] Step S208: The differences in resource interaction and the differences in interaction type are used as content difference information between two adjacent interactive contents.

[0103] Step S209: According to the order of the interactive content sequence, sort the resource interaction differences of each adjacent interactive content and the interaction type differences of each adjacent interactive content to obtain the resource interaction difference distribution information and the resource interaction type difference distribution information.

[0104] Step S210: Identify the resource change cycle and the resource change range of the resource interaction difference distribution information.

[0105] Step S211: Identify the trend information of the differences in resource interaction during the resource change cycle, and use the trend information and the range of resource changes as the resource change information in the business processing process.

[0106] Step S212: Identify the number of each resource interaction type in the resource interaction type difference distribution information, and identify the change strategy for each resource interaction type.

[0107] Step S213: Sort the resource interaction types in descending order of the number of each resource interaction type to obtain the attention sequence of each resource interaction type, and use the change strategy of each resource interaction type and the attention sequence as the resource type adjustment strategy of the business processing.

[0108] Step S214: Based on the changing trend information of the differences in resource interactions and the range of resource changes, identify the resource change logic of each resource interaction information.

[0109] Step S215: Based on the change strategies of each resource interaction type and the attention sequence, identify the resource type change logic of each resource interaction information.

[0110] Step S216: Based on the resource change logic and the resource type change logic, determine the target processing logic of the business process through the business logic analysis strategy.

[0111] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0112] Based on the same inventive concept, this application also provides a business logic analysis apparatus for implementing the business logic analysis method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more business logic analysis apparatus embodiments provided below can be found in the limitations of the business logic analysis method described above, and will not be repeated here.

[0113] In one embodiment, such as Figure 3 As shown, a business logic analysis device is provided, including: an acquisition module 310, a sorting module 320, and an identification module 330, wherein:

[0114] The acquisition module 310 is used to acquire resource interaction information in the business processing process and divide the resource interaction information into multiple interaction file information.

[0115] The sorting module 320 is used to identify the interactive content corresponding to each interactive file information, and sort the interactive content according to the order of the position information of each interactive content in the resource interactive information to obtain an interactive content sequence.

[0116] The identification module 330 is used to identify the content difference information between two adjacent interactive contents based on the interactive content sequence, and to identify the target processing logic of the business processing process based on each of the content difference information.

[0117] Optionally, the acquisition module 310 is specifically used for:

[0118] Identify the byte stream corresponding to the resource interaction information, and divide the byte stream into multiple byte segments according to the segmentation information in the byte stream;

[0119] Each byte segment is filled into the file template to obtain the interactive file information corresponding to each byte segment.

[0120] Optionally, the identification module 330 is specifically used for:

[0121] For each pair of adjacent interactive content, the difference information between the byte segments corresponding to the two interactive content is identified to obtain the difference byte information corresponding to each interactive content;

[0122] Identify the resource interaction information corresponding to each of the aforementioned difference byte information, and the resource interaction type corresponding to each of the aforementioned difference byte information;

[0123] Based on the resource interaction information described above, the resource interaction differences between the two interactive contents are identified, and based on the resource interaction types described above, the interaction type differences between the two interactive contents are identified.

[0124] The differences in resource interaction and the differences in interaction type are used as content difference information between two adjacent interactive contents.

[0125] Optionally, the identification module 330 is specifically used for:

[0126] According to the order of the sequence of interactive content, the resource interaction differences of each adjacent interactive content and the interaction type differences of each adjacent interactive content are sorted to obtain the resource interaction difference distribution information and the resource interaction type difference distribution information.

[0127] Based on the resource interaction difference distribution information, identify the resource change information of the business processing process, and based on the resource interaction type difference distribution information, identify the resource type adjustment strategy of the business processing process.

[0128] Based on the resource change information of the business processing process and the resource type adjustment strategy of the business processing process, the target processing logic of the business processing process is determined.

[0129] Optionally, the identification module 330 is specifically used for:

[0130] Identify the resource change cycle and the resource change range of the resource interaction difference distribution information;

[0131] Identify the trend information of the differences in resource interactions during the resource change cycle, and use the trend information and the range of resource changes as the resource change information of the business processing process.

[0132] Optionally, the identification module 330 is specifically used for:

[0133] Identify the number of each resource interaction type in the resource interaction type difference distribution information, and identify the change strategy of each resource interaction type;

[0134] The resource interaction types are sorted in descending order of the number of each type to obtain a sequence of attention for each resource interaction type. The change strategy for each resource interaction type and the sequence of attention are then used as the resource type adjustment strategy for the business processing.

[0135] Optionally, the identification module 330 is specifically used for:

[0136] Based on the changing trend information of the differences in the resource interactions and the range of resource changes, the resource change logic of each resource interaction information is identified.

[0137] Based on the change strategies of each resource interaction type and the attention sequence, the resource type change logic of each resource interaction information is identified;

[0138] Based on the resource change logic and the resource type change logic, the target processing logic of the business process is determined through business logic analysis strategies.

[0139] Each module in the aforementioned business logic analysis device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0140] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a business logic analysis method. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0141] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in any one of the first aspects.

[0143] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0144] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0146] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0147] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0148] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A business logic analysis method, characterized in that, The method includes: Obtain resource interaction information during business processing, and divide the resource interaction information into multiple interaction file information; Identify the interactive content corresponding to each interactive file information, and based on each interactive content, sort them according to the order of their positions in the resource interactive information to obtain an interactive content sequence; Based on the sequence of interactive content, identify the content difference information between two adjacent interactive contents, and based on each of the content difference information, identify the target processing logic of the business processing process; The process of identifying the target processing logic of the business process based on the content difference information includes: sorting the resource interaction differences and interaction type differences of each adjacent interactive content according to the order of the interactive content sequence to obtain resource interaction difference distribution information and resource interaction type difference distribution information; identifying resource change information of the business process based on the resource interaction difference distribution information, and identifying resource type adjustment strategy of the business process based on the resource interaction type difference distribution information; and determining the target processing logic of the business process based on the resource change information and the resource type adjustment strategy of the business process.

2. The method according to claim 1, characterized in that, The step of dividing the resource interaction information into multiple interaction file information includes: Identify the byte stream corresponding to the resource interaction information, and divide the byte stream into multiple byte segments according to the segmentation information in the byte stream; Each byte segment is filled into the file template to obtain the interactive file information corresponding to each byte segment.

3. The method according to claim 2, characterized in that, The step of identifying content difference information between two adjacent interactive contents based on the interactive content sequence includes: For each pair of adjacent interactive content, the difference information between the byte segments corresponding to the two interactive content is identified to obtain the difference byte information corresponding to each interactive content; Identify the resource interaction information corresponding to each of the aforementioned difference byte information, and the resource interaction type corresponding to each of the aforementioned difference byte information; Based on the resource interaction information described above, the resource interaction differences between the two interactive contents are identified, and based on the resource interaction types described above, the interaction type differences between the two interactive contents are identified. The differences in resource interaction and the differences in interaction type are used as content difference information between two adjacent interactive contents.

4. The method according to claim 1, characterized in that, The step of identifying resource change information in the business processing process based on the resource interaction difference distribution information includes: Identify the resource change cycle and the resource change range of the resource interaction difference distribution information; Identify the trend information of the differences in resource interactions during the resource change cycle, and use the trend information and the range of resource changes as the resource change information of the business processing process.

5. The method according to claim 4, characterized in that, The step of identifying the resource type adjustment strategy for the business processing based on the resource interaction type difference distribution information includes: Identify the number of each resource interaction type in the resource interaction type difference distribution information, and identify the change strategy of each resource interaction type; The resource interaction types are sorted in descending order of the number of each type to obtain a sequence of attention for each resource interaction type. The change strategy for each resource interaction type and the sequence of attention are then used as the resource type adjustment strategy for the business processing.

6. The method according to claim 5, characterized in that, The determination of the target processing logic for the business process based on resource change information and resource type adjustment strategies of the business process includes: Based on the changing trend information of the differences in the resource interactions and the range of resource changes, the resource change logic of each resource interaction information is identified. Based on the change strategies of each resource interaction type and the attention sequence, the resource type change logic of each resource interaction information is identified; Based on the resource change logic and the resource type change logic, the target processing logic of the business process is determined through business logic analysis strategies.

7. A business logic analysis device, characterized in that, The device includes: The acquisition module is used to acquire resource interaction information during the business processing and divide the resource interaction information into multiple interaction file information. The sorting module is used to identify the interactive content corresponding to each interactive file information, and sort the interactive content according to the order of the position information of each interactive content in the resource interactive information to obtain the interactive content sequence. The identification module is used to identify the content difference information between two adjacent interactive contents based on the interactive content sequence, and to identify the target processing logic of the business processing process based on each of the content difference information. Specifically, the identification module is used to: sort the resource interaction differences and interaction type differences of each adjacent interactive content according to the order of the interactive content sequence, to obtain resource interaction difference distribution information and resource interaction type difference distribution information; identify resource change information of the business processing process based on the resource interaction difference distribution information, and identify resource type adjustment strategy of the business processing process based on the resource interaction type difference distribution information; and determine the target processing logic of the business processing process based on the resource change information and the resource type adjustment strategy of the business processing process.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and apparatus for user identification in computer traffic

    US20060268875A1

  • Work analysis device and recording medium recording work analysis program

    US20080229296A1