Process query system and method

By introducing the query interface module, language conversion module and query optimization module into the process query system, the problem of low process query efficiency in the existing technology is solved, and efficient optimization of process query and rapid data filtering are achieved.

CN115203229BActive Publication Date: 2025-09-19BEIJING XUANXING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210528411.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-16
Publication Date
2025-09-19
Estimated Expiration
2042-05-16

Smart Images

  • Figure CN115203229B_ABST
    Figure CN115203229B_ABST
Patent Text Reader

Abstract

The present invention discloses a process query system and method, belonging to the field of process query technology. The present invention provides a query interface module, a language conversion module, and a query optimization module in the process query system; the query interface module is used to receive process query conditions input by a user, and classify the languages ​​according to the process query conditions to generate different types of process query languages; the language conversion module is used to parse the different types of process query languages, and perform corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages; the query optimization module is used to optimize the converted process query languages ​​and the process query conditions, and can perform queries based on the optimized processes, thereby improving the efficiency of process queries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of process query technology, and in particular to a process query system and method. Background Art

[0002] Existing process query systems are primarily based on general SQL databases (Structured Query Language server databases) and their derivatives, which are not suitable for process query or optimization. Process query solutions implemented using programming are cumbersome and have low usability, resulting in low efficiency when performing process queries. Summary of the Invention

[0003] The main purpose of the present invention is to provide a process query system and method, aiming to solve the technical problem of low efficiency of process query in the prior art.

[0004] To achieve the above object, the present invention provides a process query system, which includes: a query interface module, a language conversion module and a query optimization module;

[0005] The query interface module is used to receive process query conditions input by the user, and perform language classification according to the process query conditions to generate different types of process query languages;

[0006] The language conversion module is used to parse different types of process query languages ​​and perform corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages;

[0007] The query optimization module is used to optimize the converted process query language and the process query conditions.

[0008] Optionally, the language conversion module includes: a language interpreter;

[0009] The language interpreter is used to receive different types of process query languages ​​and perform corresponding language conversion on different types of process query languages;

[0010] The language interpreter is further configured to convert the time process query language logic into the language interception logic of the time dimension when the process query language is the time process query language, so as to complete the language conversion of the time process query.

[0011] Optionally, the language interpreter is also used to obtain the case identification and case time information when the process query language is a case process query, and generate a time-sorted step sequence and timestamp sequence based on the case identification and the case time information to complete the language conversion of the case process query.

[0012] Optionally, the language interpreter is further configured to generate corresponding algorithm logic according to the process query condition;

[0013] The language interpreter is also used to determine whether the step sequence matches the corresponding node when the process query condition is a node query, and when the step sequence matches the node, obtain the step sequence that matches the node to complete the language conversion of the node query.

[0014] Optionally, the language interpreter is also used to search whether there is an associated fragment node in the step sequence when the process query condition is a fragment node query, and when there is an associated fragment node in the step sequence, intercept the step sequence associated with the fragment node to complete the language conversion of the fragment node query.

[0015] Optionally, the language interpreter is further configured to generate a query code associating the step sequence with time when the process query condition is a time-consuming query, so as to perform a time-consuming query according to the query code, thereby completing the language conversion of the time-consuming query;

[0016] The language interpreter is further configured to match the step sequence with the path when the process query condition is a path query, so as to complete the language conversion of the path query.

[0017] Optionally, the language interpreter is further configured to, when the process query condition is a side query, determine a side query type, and perform language conversion on the side query according to the side query type and the step sequence.

[0018] Optionally, the query optimization module is further configured to obtain a time range when the process query condition is a time process query, and advance the query of the time range;

[0019] The query optimization module is further configured to advance the query condition of the associated log when the process query condition is a log query, and process the log data;

[0020] The query optimization module is further configured to merge multiple case queries when the process query condition is a multiple case query;

[0021] The query optimization module is further configured to advance the query language corresponding to the fragment node query or the query language corresponding to the time-consuming query when the process query condition is a fragment node query or a time-consuming query.

[0022] Optionally, the query interface module is further configured to receive process query fields input by a user, and combine the process query fields through logical operators to obtain process query conditions.

[0023] In addition, to achieve the above-mentioned purpose, the present invention also proposes a process query method, which is applied to the process query system described above. The process query system includes: a query interface module, a language conversion module, and a query optimization module. The method includes:

[0024] The query interface module receives the process query conditions input by the user, and performs language classification according to the process query conditions to generate different types of process query languages;

[0025] The language conversion module parses different types of process query languages, and performs corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages;

[0026] The query optimization module optimizes the converted process query language and the process query conditions.

[0027] The present invention provides a query interface module, a language conversion module and a query optimization module in a process query system; the query interface module is used to receive process query conditions input by a user, and classify the languages ​​according to the process query conditions to generate different types of process query languages; the language conversion module is used to parse different types of process query languages, and perform corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages; the query optimization module is used to optimize the converted process query languages ​​and the process query conditions, and can perform queries according to the optimized process, thereby improving the efficiency of process queries. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a structural block diagram of the first embodiment of the process query system of the present invention;

[0029] Figure 2 This is a structural block diagram of a second embodiment of the process query system of the present invention;

[0030] Figure 3 This is a flowchart of the first embodiment of the process query method of the present invention.

[0031] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments.

[0032] Description of Figure Numbers:

[0033] Label name Label name 1 Query interface module 20 Language Interpreter 2 Language conversion module 3 Query optimization module DETAILED DESCRIPTION

[0034] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0035] Reference Figure 1 , Figure 1 This is a structural block diagram of the first embodiment of the process query system of the present invention.

[0036] In this embodiment, the process query system includes: a query interface module 1, a language conversion module 2 and a query optimization module 3; the query interface module 1 is used to receive process query conditions input by a user, and perform language classification according to the process query conditions to generate different types of process query languages; the language conversion module 2 is used to parse different types of process query languages, and perform corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages; the query optimization module 3 is used to optimize the converted process query language and the process query conditions.

[0037] It should be understood that the query interface module 1 is used to receive process query conditions input by the user. The process query conditions are process query conditions obtained by the user by combining logical operators. Logical operators include AND, OR, NOT, etc. This embodiment does not limit this.

[0038] In a specific implementation, the query interface module 1 is further configured to receive process query fields input by the user and combine them using logical operators to generate process query conditions. Users enter query fields through the defined query interface module 1, and various queries are combined using logical operators to generate corresponding process query conditions. After receiving the process query conditions, the query interface module 1 classifies the process query conditions into different language classes, generating different types of process query languages.

[0039] It should be noted that the language conversion module 2 is used to parse different types of process query languages, and perform corresponding language conversion on each process query language based on the parsing results to obtain a plurality of converted process query languages. The language conversion module 2 includes a language interpreter, which obtains different types of query languages ​​and inputs them into the corresponding query language interpreter for language parsing and conversion to obtain a plurality of converted process query languages.

[0040] It can be understood that the query optimization module 3 is used to optimize the converted process query language and process query conditions to obtain the optimized process query language and optimized process query conditions. The query of the time range in the process query language can be advanced, or the query conditions based on the log level can be placed in front, which can quickly filter out unnecessary log data, achieve the optimization result of the process query, and improve the efficiency of the process query.

[0041] Specifically, the query optimization module 3 is further configured to obtain the corresponding time range when the process query condition is a time process query and advance the query condition for the time range. Since the process mining underlying the process query system is based on time design, the time range query can be advanced. The query optimization module 3 is also configured to advance the query condition for the associated log when the process query condition is a log query, and to process the log data to prioritize the query condition based on the log level, thereby quickly filtering out unnecessary log data.

[0042] The query optimization module 3 is also used to merge the multiple case queries when the process query condition is a multiple case query; the query optimization module 3 is also used to advance the query language corresponding to the fragment node query or the query language corresponding to the time-consuming query when the process query condition is a fragment node query or a time-consuming query.

[0043] It should be understood that the query optimization module 3 is also configured to merge multiple case queries when the process query condition is a multiple-case query. For example, if two query conditions are required, Case A and Case B, then Case A and Case B can be merged into a single case query to improve the efficiency of the case query. The query optimization module 3 is also configured to pre-select the query language corresponding to the fragment node query or the query language corresponding to the time-consuming query when the process query condition is a fragment node query or a time-consuming query to ensure the correctness of the selection.

[0044] The present invention provides a query interface module, a language conversion module and a query optimization module in a process query system; the query interface module is used to receive process query conditions input by a user, and classify the languages ​​according to the process query conditions to generate different types of process query languages; the language conversion module is used to parse different types of process query languages, and perform corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages; the query optimization module is used to optimize the converted process query languages ​​and the process query conditions, and can perform queries according to the optimized process, thereby improving the efficiency of process queries.

[0045] Reference Figure 2 , Figure 2 This is a structural block diagram of the second embodiment of the process query system of the present invention.

[0046] In this embodiment, the language conversion module 2 includes: a language interpreter 20; the language interpreter 20 is used to receive different types of process query languages ​​and perform corresponding language conversion on different types of process query languages; the language interpreter 20 is also used to convert the time process query language logic into the language interception logic of the time dimension when the process query language is a time process query language, so as to complete the language conversion of the time process query.

[0047] It should be understood that the query language interpreter 20 is used to receive the different types of process query languages ​​categorized by the query interface module 1 and perform language conversions accordingly. For relevant query types, conversion is performed based on the interface provided by the underlying process mining system. When the process query language is a time-based query language, the language interpreter 20 is also used to convert the time-based query language logic into a language interception logic for the time dimension, thereby completing the language conversion of the time-based query.

[0048] The language interpreter 20 is further configured to, when the process query language is a case process query, obtain a case identifier and case time information, and generate a time-ordered step sequence and a timestamp sequence based on the case identifier and the case time information to complete the language conversion of the case process query. The language interpreter 20 is further configured to generate corresponding algorithm logic based on the process query conditions; the language interpreter 20 is further configured to, when the process query condition is a node query, determine whether the step sequence matches the corresponding node, and if the step sequence matches the node, obtain a step sequence that matches the node to complete the language conversion of the node query.

[0049] It should be noted that when the process query language is a case process query, the case ID and case time information can be obtained. Based on the case ID and case time information, a time-ordered sequence of steps and a timestamp sequence are generated. The corresponding algorithm logic is then generated based on the process query conditions.

[0050] The language interpreter 20 is also used to determine whether there is a matching node in the step sequence sorted by time when the process query condition is a node query. The node query includes a start node query or an end node query. The matching nodes include the start node and the end node. When there is a matching node in the step sequence sorted by time, the step sequence matching the start node or the end node is obtained, and the language conversion of the node query is completed according to this step sequence.

[0051] The language interpreter 20 is also used to find out whether there is an associated fragment node in the step sequence when the process query condition is a fragment node query, and when the step sequence has an associated fragment node, intercept the step sequence associated with the fragment node to complete the language conversion of the fragment node query.

[0052] It should be understood that when the process query condition is a fragment node query, it is possible to find out whether there is an associated fragment node in the current step sequence. The fragment node includes a start node and an end node. When the step sequence has an associated start node or end node, the step sequence associated with the fragment node is intercepted, and the language conversion of the fragment node query is completed through the intercepted associated step sequence.

[0053] The language interpreter 20 is also used to generate a query code that associates the step sequence with time when the process query condition is a time-consuming query, so as to perform a time-consuming query based on the query code, thereby completing the language conversion of the time-consuming query; the language interpreter 20 is also used to match the step sequence with the path when the process query condition is a path query, thereby completing the language conversion of the path query.

[0054] In a specific implementation, when the process query condition is a time-consuming query, the language interpreter 20 generates a query code that associates the step sequence with time, and performs a time-consuming query based on the generated query code to complete the language conversion of the time-consuming query. When the process query is a path query, the language interpreter 20 is used to match the step sequence with the path, and when the step sequence matches the path, obtain the step sequence that matches the path to complete the language conversion of the path query.

[0055] Furthermore, the language interpreter 20 is further configured to, when the process query condition is an edge query, determine the edge query type and perform language conversion on the edge query based on the edge query type and the step sequence. Edge query types include direct edge query, non-connected edge query, arbitrary edge query, and not-in-arbitrary-edge query. The language interpreter 20 can determine the edge query type and perform language conversion on the edge query based on the edge query type and the step sequence. When the edge query type is a direct edge query, it can determine whether the step sequence contains two adjacent steps. If so, the language conversion is performed on the edge query based on the two adjacent steps in the step sequence. When the edge query type is a non-connected edge query, it can determine whether the step sequence contains two non-adjacent steps. If so, the language conversion is performed on the edge query based on the two non-adjacent steps. When the edge query type is an arbitrary edge query, it can determine whether the step sequence contains two steps. If so, the language conversion is performed on the edge query based on the two steps. When the edge query type is not in any edge query, it is determined whether the step sequence does not contain two steps. If the step sequence does not contain two steps, the edge query is converted to a different language. Different query language interpreters 20 can be quickly entered according to different query categories to achieve language conversion.

[0056] This embodiment provides: a language interpreter in the language conversion module; the language interpreter is used to receive different types of process query languages ​​and perform corresponding language conversion on different types of process query languages; the language interpreter is also used to convert the time process query language logic into the language interception logic of the time dimension when the process query language is a time process query language, so as to complete the language conversion of the time process query. The language conversion can be quickly performed according to the type of process query language, thereby improving the efficiency of the process query.

[0057] The embodiment of the present invention provides a process query method, referring to Figure 3 , Figure 3 This is a flowchart of the first embodiment of the process query method of the present invention.

[0058] In this embodiment, the process query method includes the following steps:

[0059] Step S10: The query interface module receives the process query conditions input by the user, and performs language classification according to the process query conditions to generate different types of process query languages.

[0060] It should be understood that the query interface module is used to receive process query conditions input by the user. The process query conditions are process query conditions obtained by the user by combining logical operators. Logical operators include AND OR NOT, etc., which are not limited in this embodiment.

[0061] In specific implementations, the query interface module is also used to receive process query fields input by the user and combine them using logical operators to generate process query conditions. Users enter query fields through the defined query interface module and combine various queries using logical operators to generate corresponding process query conditions. After receiving the process query conditions, the query interface module classifies the process query conditions into different language categories, generating different types of process query languages.

[0062] Step S20: the language conversion module parses different types of process query languages, and performs corresponding language conversion on each process query language according to the parsing result to obtain a plurality of converted process query languages.

[0063] It should be noted that the language conversion module is used to parse different types of process query languages, and perform corresponding language conversion on each process query language based on the parsing results to obtain a variety of converted process query languages. The language conversion module includes a language interpreter. By obtaining different types of query languages, the modules are input into the corresponding query language interpreters for language parsing and conversion to obtain a variety of converted process query languages.

[0064] Step S30: The query optimization module optimizes the converted process query language and the process query conditions.

[0065] It can be understood that the query optimization module is used to optimize the converted process query language and process query conditions to obtain the optimized process query language and optimized process query conditions. The query of the time range in the process query language can be advanced, or the query conditions based on the log level can be placed in front, which can quickly filter out unnecessary log data, achieve the optimization result of the process query, and improve the efficiency of the process query.

[0066] Specifically, the query optimization module is also used to obtain the corresponding time range when the process query condition is a time process query, and to advance the query condition for the time range. Since the process mining underlying the process query system is based on time design, the time range query can be advanced. The query optimization module is also used to advance the query condition for the associated log when the process query condition is a log query, and to process the log data to put the relevant query condition based on the log level in the front, which can quickly filter out unnecessary log data.

[0067] The query optimization module is further used to merge the multiple case queries when the process query condition is a multiple case query; the query optimization module is further used to advance the query language corresponding to the fragment node query or the query language corresponding to the time-consuming query when the process query condition is a fragment node query or a time-consuming query.

[0068] It should be understood that the query optimization module is also used to merge multiple case queries when the process query conditions are multiple case queries. For example, if two query conditions are required, Case A and Case B, then Case A and Case B can be merged into a single case query to improve the efficiency of case queries. The query optimization module is also used to pre-select the query language corresponding to the fragment node query or the query language corresponding to the time-consuming query when the process query conditions are fragment node or time-consuming queries to ensure the correctness of the selection.

[0069] This embodiment provides a query interface module, a language conversion module, and a query optimization module in a process query system; the query interface module is used to receive process query conditions input by a user, and classify the languages ​​according to the process query conditions to generate different types of process query languages; the language conversion module is used to parse different types of process query languages, and perform corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages; the query optimization module is used to optimize the converted process query languages ​​and the process query conditions, and can perform queries based on the optimized process, thereby improving the efficiency of process queries.

[0070] It should be understood that the above is only an example and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any limitation on this.

[0071] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of it according to actual needs to achieve the purpose of the embodiment scheme, and no limitation is made here.

[0072] In addition, for technical details not fully described in this embodiment, please refer to the process query method provided in any embodiment of the present invention, and will not be repeated here.

[0073] In addition, it should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0074] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0075] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0076] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A process query system, characterized in that: The process query system includes: a query interface module, a language conversion module and a query optimization module; The query interface module is used to receive process query conditions input by the user, and perform language classification according to the process query conditions to generate different types of process query languages; The language conversion module is used to parse different types of process query languages ​​and perform corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages; The query optimization module is used to optimize the converted process query language and the process query conditions; The language conversion module includes: a language interpreter; The language interpreter is used to receive different types of process query languages ​​and perform corresponding language conversion on different types of process query languages; The language interpreter is further configured to convert the time process query language logic into the language interception logic of the time dimension when the process query language is the time process query language, so as to complete the language conversion of the time process query; The language interpreter is also used to obtain the case identification and case time information when the process query language is a case process query, and generate a time-sorted step sequence and a timestamp sequence based on the case identification and the case time information to complete the language conversion of the case process query.

2. The process query system according to claim 1, characterized in that: The language interpreter is further used to generate corresponding algorithm logic according to the process query conditions; The language interpreter is also used to determine whether the step sequence matches the corresponding node when the process query condition is a node query, and when the step sequence matches the node, obtain the step sequence that matches the node to complete the language conversion of the node query.

3. The process query system according to claim 2, characterized in that: The language interpreter is also used to find out whether there is an associated fragment node in the step sequence when the process query condition is a fragment node query, and when the step sequence has an associated fragment node, intercept the step sequence associated with the fragment node to complete the language conversion of the fragment node query.

4. The process query system according to claim 2, characterized in that: The language interpreter is further configured to generate a query code associated with the step sequence and time when the process query condition is a time-consuming query, so as to perform a time-consuming query according to the query code, thereby completing the language conversion of the time-consuming query; The language interpreter is further configured to match the step sequence with the path when the process query condition is a path query, so as to complete the language conversion of the path query.

5. The process query system according to claim 4, characterized in that: The language interpreter is further configured to determine a side query type when the process query condition is a side query, and perform language conversion on the side query according to the side query type and the step sequence.

6. The process query system according to claim 1, characterized in that: The query optimization module is further configured to obtain a time range when the process query condition is a time process query, and advance the query of the time range; The query optimization module is further configured to advance the query condition of the associated log when the process query condition is a log query, and process the log data; The query optimization module is further configured to merge multiple case queries when the process query condition is a multiple case query; The query optimization module is further configured to advance the query language corresponding to the fragment node query or the query language corresponding to the time-consuming query when the process query condition is a fragment node query or a time-consuming query.

7. The process query system according to any one of claims 1 to 6, characterized in that: The query interface module is further configured to receive process query fields input by a user, and combine the process query fields through logical operators to obtain process query conditions.

8. A process query method, characterized in that: The process query method is applied to the process query system described in any one of claims 1 to 7, wherein the process query system comprises: a query interface module, a language conversion module, and a query optimization module, and the method comprises: The query interface module receives the process query conditions input by the user, and performs language classification according to the process query conditions to generate different types of process query languages; The language conversion module parses different types of process query languages, and performs corresponding language conversion on each process query language according to the parsing results to obtain multiple converted process query languages; The query optimization module optimizes the converted process query language and the process query conditions.

Citation Information

Patent Citations

  • User query method and device, electronic equipment and computer readable storage medium

    CN113553340A