Process engine for dynamically generating business process based on business context and implementation method

Through a dynamic process engine based on business context, using rule settings, process analysis and dynamic loading modules, the problem of process engines in the existing technology being difficult to adapt to business changes is solved, and more efficient and accurate business process processing and lower maintenance costs.

CN118917650APending Publication Date: 2024-11-08INSPUR SMART SUPPLY CHAIN TECH (SHANDONG) CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411002547.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing process engine adopts a fixed process method, lacks flexibility, is difficult to adapt to business dynamic changes, has high maintenance costs, and insufficient processing efficiency and accuracy.

Method used

Adopt a dynamic process engine based on business context, including rule setting module, process analysis module, process library and dynamic loading module. Key elements are extracted through preset parsing rules, match process templates, and dynamic loading is used to load dynamically using KMP algorithm to initialize process templates. To respond to business needs.

Benefits of technology

Improve the processing efficiency and accuracy of business processes, flexibly adapt to business changes, and reduce process settings and change costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118917650A_ABST
    Figure CN118917650A_ABST
Patent Text Reader

Abstract

The invention discloses a process engine for dynamically generating a business process based on a business context and an implementation method, and relates to the technical field of business process generation, and the process engine comprises a rule setting module which is responsible for presetting an analysis rule; the process analysis module is responsible for extracting and standardizing key elements from the service context according to a preset analysis rule; the process library covers process templates of various business scenes and sets clear application conditions and constraint conditions for each process template; and the dynamic loading module is responsible for obtaining the key elements extracted and standardized by the process analysis module when receiving a service request, matching the key elements with the process template application conditions and constraint conditions in the process library, and then loading and initializing the matched process template. The method is used for dynamically loading and initializing the whole process to be executed according to the context of the current service, the processing efficiency and accuracy of the service process can be improved, and changes of service requirements can be responded more quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of business process generation, and in particular to a process engine for dynamically generating business processes based on business context and an implementation method thereof. Background Art

[0002] A process engine is a software component or system used to manage and automate business processes. It can define, execute, monitor and optimize various workflows, decompose complex business processes into a series of manageable steps and tasks, and circulate and control them according to predetermined rules and logic. The process engine can automate the process, improve work efficiency, reduce human errors, and enhance the controllability and traceability of the process. It can be used in a variety of fields, such as enterprise resource planning (ERP), customer relationship management (CRM), office automation, etc. In short, the process engine is a key tool for digitalizing, automating and optimizing business processes.

[0003] In the existing software development field, process engines usually adopt a fixed process approach, that is, the entire process needs to be pre-set before running. This approach has many limitations, such as lack of flexibility, difficulty in adapting to dynamic changes in business, and high maintenance costs. Summary of the invention

[0004] In view of the needs and shortcomings of current technological development, the present invention provides a process engine and implementation method for dynamically generating business processes based on business context to improve the processing efficiency and accuracy of business processes and respond to changes in business needs more quickly.

[0005] In a first aspect, the present invention provides a process engine for dynamically generating a business process based on a business context. The technical solution adopted to solve the above technical problem is as follows:

[0006] A process engine for dynamically generating business processes based on business context, comprising:

[0007] The rule setting module is responsible for presetting parsing rules;

[0008] The process parsing module is responsible for extracting and standardizing key elements from the business context according to the preset parsing rules;

[0009] The process library covers process templates for various business scenarios and sets clear applicable conditions and constraints for each process template;

[0010] The dynamic loading module is responsible for obtaining the key elements extracted and standardized by the process parsing module when receiving a business request, matching them with the applicable conditions and constraints of the process template in the process library, and then loading and initializing the matched process template.

[0011] Optionally, the process parsing module involved first extracts key elements from the business context according to preset parsing rules, including business type identifier, operation object category and priority identifier, and then uses data cleaning and preprocessing technology to normalize and standardize the extracted key elements to ensure the accuracy and consistency of the data.

[0012] Optionally, the process library involved defines the core logic of steps, conditional judgments and branch directions for each process template in detail;

[0013] The process library involved sets clear applicable conditions and constraints for each process template based on business characteristics, data scale and processing time factors.

[0014] Optionally, when receiving a service request, the dynamically loaded module:

[0015] First, trigger the process parsing module to extract and standardize key elements from the business context according to the preset parsing rules;

[0016] Subsequently, the matching algorithm is run to match the key elements extracted and standardized by the process parsing module with the applicable conditions and constraints of the process template in the process library;

[0017] Finally, based on the matched process template, the dynamic loading technology is used to load it into the running environment and initialize it.

[0018] Preferably, the matching algorithm involved is the KMP algorithm.

[0019] In a second aspect, the present invention provides a method for dynamically generating a business process based on a business context. The technical solution adopted to solve the above technical problem is as follows:

[0020] A method for dynamically generating a business process based on a business context comprises the following steps:

[0021] S1, preset parsing rules;

[0022] S2, extract and standardize key elements from the business context based on preset parsing rules;

[0023] S3. Build a process library that covers process templates for various business scenarios, and set clear applicable conditions and constraints for each process template;

[0024] S4. When a business request is received, the key elements extracted and standardized in step S2 are obtained, matched with the applicable conditions and constraints of the process template in the process library, and then the matched process template is loaded and initialized.

[0025] Optionally, execute step S2, first extract key elements from the business context based on preset parsing rules, the key elements including business type identifier, operation object category and priority identifier, and then use data cleaning and preprocessing technology to normalize and standardize the extracted key elements to ensure the accuracy and consistency of the data.

[0026] Optionally, the process library involved defines the core logic of steps, conditional judgments and branch directions for each process template in detail;

[0027] The process library involved sets clear applicable conditions and constraints for each process template based on business characteristics, data scale and processing time factors.

[0028] Optionally, upon receiving a service request:

[0029] First, the preset parsing rules are triggered to extract and standardize key elements from the business context;

[0030] Subsequently, a matching algorithm is run to match the extracted and standardized key elements with the applicable conditions and constraints of the process templates in the process library;

[0031] Finally, based on the matched process template, the dynamic loading technology is used to load it into the running environment and initialize it.

[0032] Preferably, the matching algorithm involved is the KMP algorithm.

[0033] The process engine and implementation method for dynamically generating a business process based on a business context of the present invention have the following beneficial effects compared with the prior art:

[0034] 1. The present invention is used to dynamically load and initialize the entire process to be executed according to the context of the current business, which can improve the processing efficiency and accuracy of the business process and respond to changes in business needs more quickly;

[0035] 2. The present invention can flexibly adapt to business changes and reduce process setting and change costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Attached Figure 1 is a module connection block diagram of the first embodiment of the present invention;

[0037] Attached Figure 2 It is a method flow chart of embodiment 2 of the present invention. DETAILED DESCRIPTION

[0038] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.

[0039] Embodiment 1:

[0040] Combined with Figure 1 This embodiment proposes a process engine for dynamically generating a business process based on a business context, which includes:

[0041] The rule setting module is responsible for presetting parsing rules;

[0042] The process parsing module is responsible for extracting and normalizing key elements from the business context according to the preset parsing rules. The extracted key elements include business type identification, operation object category and priority identification. The normalization process includes: using data cleaning and preprocessing technology to normalize and standardize the extracted key elements to ensure the accuracy and consistency of the data;

[0043] The process library covers process templates for various business scenarios. For each process template, the core logic of its steps, condition judgments, and branch directions is defined in detail. At the same time, clear applicable conditions and constraints are set for each process template based on business characteristics, data scale, and processing time factors.

[0044] The dynamic loading module is responsible for triggering the process parsing module first when receiving a business request, so that the process parsing module extracts and standardizes key elements from the business context according to the preset parsing rules, and then runs the matching algorithm to match the key elements extracted and standardized by the process parsing module with the applicable conditions and constraints of the process template in the process library. Finally, based on the matched process template, it is loaded into the running environment using dynamic loading technology and initialized.

[0045] The matching algorithm described in this embodiment is specifically the KMP algorithm. The KMP algorithm (Knuth-Morris-PrattAlgorithm) is an efficient string pattern matching algorithm. The core idea of ​​the KMP algorithm is to use known partial matching results to avoid unnecessary comparisons, thereby improving matching efficiency. Specifically, when unmatched characters appear in the main string, the KMP algorithm can move the pattern string to the right by multiple positions, rather than just one position, based on the pre-calculated "partial matching table" (also called the next array or mismatch pointer), thereby reducing invalid comparisons.

[0046] Embodiment 2:

[0047] Combined with Figure 2 This embodiment proposes a method for dynamically generating a business process based on a business context, which includes the following steps:

[0048] S1. Preset parsing rules.

[0049] S2. Extract and standardize key elements from the business context based on preset parsing rules.

[0050] The key elements extracted include business type identification, operation object category and priority identification.

[0051] The process of normalizing key elements includes: using data cleaning and preprocessing techniques to normalize and standardize the extracted key elements to ensure the accuracy and consistency of the data.

[0052] S3. Build a process library that covers process templates for various business scenarios. Define the core logic of steps, conditional judgments, and branch directions for each process template in detail. At the same time, set clear applicable conditions and constraints for each process template based on business characteristics, data scale, and processing time.

[0053] S4. Upon receiving a service request:

[0054] First, the preset parsing rules are triggered to extract and standardize key elements from the business context;

[0055] Subsequently, a matching algorithm is run to match the extracted and standardized key elements with the applicable conditions and constraints of the process templates in the process library;

[0056] Finally, based on the matched process template, the dynamic loading technology is used to load it into the running environment and initialize it.

[0057] The matching algorithm described in this embodiment is specifically the KMP algorithm. The KMP algorithm (Knuth-Morris-PrattAlgorithm) is an efficient string pattern matching algorithm. The core idea of ​​the KMP algorithm is to use known partial matching results to avoid unnecessary comparisons, thereby improving matching efficiency. Specifically, when unmatched characters appear in the main string, the KMP algorithm can move the pattern string to the right by multiple positions, rather than just one position, based on the pre-calculated "partial matching table" (also called the next array or mismatch pointer), thereby reducing invalid comparisons.

[0058] In summary, the process engine and implementation method of the present invention for dynamically generating business processes based on business context are used to dynamically load and initialize the entire process to be executed according to the context of the current business, which can improve the processing efficiency and accuracy of the business process and respond to changes in business needs more quickly.

[0059] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.

Claims

1. A process engine that dynamically generates business processes based on business context, It is characterized in that It includes: The rule setting module is responsible for presetting parsing rules; The process parsing module is responsible for extracting and standardizing key elements from the business context according to the preset parsing rules; The process library covers process templates for various business scenarios and sets clear applicable conditions and constraints for each process template; The dynamic loading module is responsible for obtaining the key elements extracted and standardized by the process parsing module when receiving a business request, matching them with the applicable conditions and constraints of the process template in the process library, and then loading and initializing the matched process template.

2. The process engine for dynamically generating business processes based on business context according to claim 1, It is characterized in that The process analysis module first extracts key elements from the business context according to preset analysis rules, including business type identification, operation object category and priority identification, and then uses data cleaning and preprocessing technology to normalize and standardize the extracted key elements to ensure the accuracy and consistency of the data.

3. The process engine for dynamically generating business processes based on business context according to claim 1, It is characterized in that The process library defines in detail the core logic of steps, conditional judgments and branch directions for each process template; The process library sets clear applicable conditions and constraints for each process template based on business characteristics, data scale, and influencing factors of processing time.

4. The process engine for dynamically generating business processes based on business context according to claim 1, It is characterized in that When the dynamic loading module receives a service request: First, trigger the process parsing module to extract and standardize key elements from the business context according to the preset parsing rules; Subsequently, the matching algorithm is run to match the key elements extracted and standardized by the process parsing module with the applicable conditions and constraints of the process template in the process library; Finally, based on the matched process template, dynamic loading technology is used to load it into the running environment and initialize it.

5. The process engine for dynamically generating business processes based on business context according to claim 4, It is characterized in that The matching algorithm is the KMP algorithm.

6. A method for dynamically generating a business process based on a business context, It is characterized in that It includes the following steps: S1, preset parsing rules; S2, extract and standardize key elements from the business context based on preset parsing rules; S3. Build a process library that covers process templates for various business scenarios, and set clear applicable conditions and constraints for each process template; S4. When a business request is received, the key elements extracted and standardized in step S2 are obtained, matched with the applicable conditions and constraints of the process template in the process library, and then the matched process template is loaded and initialized.

7. The method for implementing the dynamic generation of business processes based on business context according to claim 6, It is characterized in that Execute step S2, first extract key elements from the business context based on preset parsing rules, the key elements include business type identifier, operation object category and priority identifier, and then use data cleaning and preprocessing technology to normalize and standardize the extracted key elements to ensure the accuracy and consistency of the data.

8. The method for implementing the dynamic generation of business processes based on business context according to claim 6, It is characterized in that The process library defines in detail the core logic of steps, conditional judgments and branch directions for each process template; The process library sets clear applicable conditions and constraints for each process template based on business characteristics, data scale, and influencing factors of processing time.

9. The method for implementing the dynamic generation of business processes based on business context according to claim 6, It is characterized in that When receiving a service request: First, the preset parsing rules are triggered to extract and standardize key elements from the business context; Subsequently, a matching algorithm is run to match the extracted and standardized key elements with the applicable conditions and constraints of the process templates in the process library; Finally, based on the matched process template, dynamic loading technology is used to load it into the running environment and initialize it.

10. The method for implementing the dynamic generation of business processes based on business context according to claim 9, It is characterized in that The matching algorithm is the KMP algorithm.

Citation Information

Cited By

  • Process planning and execution system and method oriented to multi-agent collaboration

    CN121168501A

  • A process planning and execution system and method for multi-agent collaboration

    CN121168501B