Business process arrangement method, device, electronic device and storage medium

By dynamically configuring business processes and using process configuration files and adaptation information, the problem of low flexibility in business process orchestration in the existing technology is solved, and higher adaptability and efficiency are achieved.

CN115061895BActive Publication Date: 2025-04-01CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210756049.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-04-01
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The existing systems use hard codes when orchestrating business processes, resulting in the process execution logic being unable to be adjusted, lack of configuration and visual operations, low flexibility, and difficult to deal with business changes.

Method used

By obtaining the process configuration file, the initial business process is built, and the current process node status is detected during operation. When the abnormal status instruction is triggered, the adaptation information of the current process node is determined, and the business process is dynamically configured based on this to generate a new business process.

Benefits of technology

It improves the flexibility of business process orchestration, ensures that business processes are more in line with business needs, supports dynamic adjustment and optimization, and improves the adaptability and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115061895B_ABST
    Figure CN115061895B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of big data technology, and provides a business process orchestration method, device, electronic device and storage medium, the method comprising: obtaining a process configuration file; constructing a first business process based on the process configuration file; running the first business process, and when it is detected that the abnormal state instruction of the current process node is triggered, determining the adaptation information of the current process node in response to the abnormal state instruction; dynamically configuring the first business process based on the adaptation information of the current process node to obtain a second business process. When the present invention dynamically configures the first business process through the adaptation information of the current process node, the flexibility of business process orchestration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and in particular to a business process orchestration method, device, electronic device and storage medium. Background Art

[0002] As the business volume increases, business processes become more and more complex. When receiving a business process orchestration request, the existing system process orchestration uses hard coding to orchestrate the business process.

[0003] However, business processes that use hard-coded orchestration cannot adjust the execution logic of the process and do not support configurable and visual operations. When the business process changes later, the business process needs to be re-orchestrated, resulting in low flexibility in business process orchestration.

[0004] Therefore, it is necessary to propose a method that can flexibly orchestrate business processes. Summary of the invention

[0005] In view of the above, it is necessary to propose a business process orchestration method, device, electronic device and storage medium, which improves the flexibility of business process orchestration when dynamically configuring the first business process through the adaptation information of the current process node.

[0006] A first aspect of the present invention provides a business process orchestration method, the method comprising:

[0007] In response to the received process orchestration request, obtaining a process configuration file;

[0008] Building a first business process based on the process configuration file;

[0009] Running the first business process and detecting the running status of the current process node during the running process;

[0010] When it is detected that the abnormal state instruction of the current process node is triggered, determining the adaptation information of the current process node in response to the abnormal state instruction;

[0011] The first business process is dynamically configured based on the adaptation information of the current process node to obtain a second business process.

[0012] Optionally, the determining the adaptation information of the current process node in response to the abnormal state instruction includes:

[0013] In response to the abnormal state instruction, acquiring abnormal information;

[0014] Inputting the abnormal information into a pre-trained abnormal classification model to obtain the abnormal category of the abnormal information;

[0015] Adaptation information of the current process node is determined based on the exception category.

[0016] Optionally, the determining the adaptation information of the current process node based on the exception category includes:

[0017] When the abnormal category of the abnormal information is a preset first category, collecting a preset indicator data set based on the abnormal information; and determining the indicator data set as the adaptation information of the current process node;

[0018] When the exception category of the exception information is the preset second category, parsing the exception information, obtaining the failure cause, and determining the failure cause as the adaptation information of the current process node;

[0019] When the exception category of the exception information is the preset third category, the exception information is sent to the client, the target process information reported by the client is received, and the target process information is determined as the adaptation information of the current process node.

[0020] Optionally, dynamically configuring the first business process based on the adaptation information of the current process node to obtain the second business process includes:

[0021] When the adaptation information of the current process node is an indicator data set, multiple sub-process nodes of the current process node are obtained; if the indicator data set meets the flow requirement of any one of the multiple sub-process nodes, the any one sub-process node is determined as a flow process node of the current process node, and the first business process is dynamically configured based on the flow process node to obtain a second business process;

[0022] When the adaptation information of the current process node is a failure reason, dynamically configuring the first business process based on the failure reason to obtain a second business process;

[0023] When the adaptation information of the current process node is target process information, the first business process is dynamically configured based on the target process information to obtain a second business process.

[0024] Optionally, dynamically configuring the first business process based on the failure cause to obtain the second business process includes:

[0025] Pause the running of the current process node, and determine a compensation direction based on the failure cause;

[0026] When the compensation direction is forward compensation, the next process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain a second business process;

[0027] When the compensation direction is reverse compensation, the previous process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain the second business process.

[0028] Optionally, dynamically configuring the first business process based on the target process information to obtain a second business process includes:

[0029] When the target process information is to change the current process node, the current process node in the first business process is changed based on the target process information to obtain a second business process;

[0030] When the target process information is to insert a new process node, obtaining the process node to be inserted and the position information of the process node to be inserted in the first business process, and inserting the process node to be inserted into the first business process according to the position information to obtain a second business process;

[0031] When the target process information is to delete the current process node, the current process node is deleted from the first business process diagram to obtain a second business process.

[0032] Optionally, before determining the adaptation information of the current process node in response to the abnormal state instruction, the method further includes:

[0033] Get multiple exception categories and historical exception information corresponding to each exception category;

[0034] Extract multiple exception fields for each exception category;

[0035] Using the multiple abnormal fields as sample data sets;

[0036] Dividing the sample data set into a training set and a test set;

[0037] Inputting multiple abnormal fields and corresponding abnormal categories in the training set into a preset neural network for training to obtain an abnormal classification model;

[0038] Inputting the test set into the anomaly classification model for testing, and calculating the test pass rate;

[0039] If the test pass rate is greater than or equal to the preset pass rate threshold, it is determined that the training of the abnormal classification model is completed; if the test pass rate is less than the preset pass rate threshold, the number of training sets is increased, and the abnormal field extraction and abnormal classification model training are re-performed.

[0040] A second aspect of the present invention provides a business process orchestration device, the device comprising:

[0041] An acquisition module, used to acquire a process configuration file in response to a received process orchestration request;

[0042] A construction module, used to construct a first business process based on the process configuration file;

[0043] An operation module, used to run the first business process and detect the operation status of the current process node during the operation;

[0044] a determination module, configured to determine the adaptation information of the current process node in response to the abnormal state instruction when it is detected that the abnormal state instruction of the current process node is triggered;

[0045] A configuration module is used to dynamically configure the first business process based on the adaptation information of the current process node to obtain a second business process.

[0046] A third aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the processor is configured to implement the business process orchestration method when executing a computer program stored in the memory.

[0047] A fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the business process orchestration method is implemented.

[0048] In summary, the business process orchestration method, device, electronic device and storage medium of the present invention can promote the construction of smart cities and be applied to smart buildings, smart security, smart communities, smart life, the Internet of Things and other fields. By constructing a first business process based on the process configuration file, running the first business process, and detecting the running status of the current process node during the running process, running each process node in the first business process, and dynamically configuring the first business process according to the running status, it is ensured that the obtained business process is more in line with business needs, and the flexibility of business process orchestration is improved. When it is detected that the abnormal state instruction of the current process node is triggered, the adaptation information of the current process node is determined in response to the abnormal state instruction, and the first business process is dynamically configured based on the adaptation information of the current process node to obtain a second business process. When the first business process is dynamically configured based on the adaptation information of the current process node, the corresponding flow process node can be determined according to the running status of the current process node of the first business process, and the first business process can be compensated, changed, inserted, and deleted to obtain the second business process, thereby improving the flexibility of business process orchestration. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1This is a flowchart of a business process orchestration method provided in Embodiment 1 of the present invention.

[0050] Figure 2 It is a structural diagram of a business process orchestration device provided in Embodiment 2 of the present invention.

[0051] Figure 3 It is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0052] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0054] Embodiment 1

[0055] Figure 1 This is a flowchart of a business process orchestration method provided in Embodiment 1 of the present invention.

[0056] In this embodiment, the business process orchestration method can be applied to electronic devices. For electronic devices that need to perform business process orchestration, the business process orchestration function provided by the method of the present invention can be directly integrated into the electronic device, or run in the electronic device in the form of a software development kit (SDK).

[0057] The embodiments of the present invention can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0058] The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, as well as machine learning and deep learning.

[0059] like Figure 1As shown, the business process orchestration method specifically includes the following steps. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0060] S11, in response to the received process orchestration request, obtaining a process configuration file.

[0061] In this embodiment, a process refers to a series of process activities performed to achieve a specific goal. A series of process activities will flow to the next process activity in the execution order of the process until the specific goal is achieved.

[0062] In this embodiment, the client may send a process orchestration request to the electronic device. When the electronic device receives the process orchestration request, it obtains a process configuration file in response to the process orchestration request, wherein the process configuration file includes business process information.

[0063] S12: construct a first business process based on the process configuration file.

[0064] In this embodiment, the first business process refers to an initial business process arranged according to a process configuration file, wherein each process node of the first business process contains process configuration information. For example, for a shopping process, the corresponding first business process is: ABC / D / EF.

[0065] In an optional embodiment, constructing the first business process based on the process configuration file includes:

[0066] extracting a plurality of key fields from the process configuration file;

[0067] Perform entity recognition on the multiple key fields respectively to obtain multiple entities;

[0068] Identify the project type corresponding to the process configuration file;

[0069] Based on the process sorting rules corresponding to the project type, identify the process node number corresponding to each entity and the positional relationship between each entity and other entities;

[0070] A first business process is drawn based on the process node number corresponding to each entity and the positional relationship between each entity and other entities.

[0071] In this embodiment, the node name of the process node is obtained by identifying the entities in the multiple key fields.

[0072] In this embodiment, different project types correspond to different process sorting rules. By determining the project type of the process configuration file, the corresponding process sorting rule is obtained, wherein the process sorting rule is pre-set based on the node name of the process node.

[0073] In this embodiment, in the process of constructing the first business process according to the process configuration file, entity recognition is performed on multiple key fields in the process configuration file to ensure the accuracy of the obtained process node name. At the same time, the corresponding process sorting rules are determined according to the project type of the process configuration file, and the first business process is drawn according to the corresponding process sorting rules, which is more targeted and improves the accuracy of the drawn first business process.

[0074] S13, running the first business process, and detecting the running status of the current process node during the running process.

[0075] In this embodiment, the first business process is an initial business process orchestrated based on the process configuration file, which may not meet the needs of the business process. It is necessary to run each process node in the first business process and dynamically configure the first business process according to the running status to ensure that the obtained business process is more in line with business needs and improve the flexibility of business process orchestration.

[0076] Furthermore, the method further comprises:

[0077] When it is detected that the running state of the current process node is immediate execution, identifying the process configuration information of the current process node;

[0078] The current process node is run according to the execution mode in the process configuration information.

[0079] Specifically, the execution mode includes synchronous execution and asynchronous execution.

[0080] In this embodiment, since asynchronous execution improves system throughput, different execution modes are configured according to the running status of each process node, which can improve the orchestration efficiency of the business process.

[0081] S14, when it is detected that the abnormal state instruction of the current process node is triggered, determining the adaptation information of the current process node in response to the abnormal state instruction.

[0082] In this embodiment, when an abnormality is detected in the current process node in the first business process during operation of the first business process, adaptation information of the current process node is determined. Specifically, the adaptation information refers to information determined based on the abnormal state of the current process node.

[0083] In an optional embodiment, determining the adaptation information of the current process node in response to the abnormal state instruction includes:

[0084] In response to the abnormal state instruction, acquiring abnormal information;

[0085] Inputting the abnormal information into a pre-trained abnormal classification model to obtain the abnormal category of the abnormal information;

[0086] Adaptation information of the current process node is determined based on the exception category.

[0087] In this embodiment, an abnormality classification model may be pre-trained, and when abnormal information is obtained, the abnormal information is input into the pre-trained abnormality classification model to obtain the abnormality category of the abnormal information.

[0088] Specifically, the training process of the abnormal classification model includes:

[0089] Get multiple exception categories and historical exception information corresponding to each exception category;

[0090] Extract multiple exception fields for each exception category;

[0091] Using the multiple abnormal fields as sample data sets;

[0092] Dividing the sample data set into a training set and a test set;

[0093] Inputting multiple abnormal fields and corresponding abnormal categories in the training set into a preset neural network for training to obtain an abnormal classification model;

[0094] Inputting the test set into the anomaly classification model for testing, and calculating the test pass rate;

[0095] If the test pass rate is greater than or equal to the preset pass rate threshold, it is determined that the training of the abnormal classification model is completed; if the test pass rate is less than the preset pass rate threshold, the number of training sets is increased, and the abnormal field extraction and abnormal classification model training are re-performed.

[0096] In this embodiment, an abnormal category can be preset, and the abnormal category is used to indicate the category to which the abnormal information belongs. The abnormal category may include, but is not limited to, a preset first category, a preset second category, and a preset third category. The historical abnormal information of the preset category is obtained, a plurality of abnormal fields are extracted, and then the abnormal classification model is trained according to the extracted plurality of abnormal fields and the corresponding abnormal categories. Subsequently, only the abnormal information needs to be obtained, and the abnormal fields of the abnormal information are extracted, and the abnormal category to which the abnormal information belongs can be identified through the abnormal classification model, with high accuracy.

[0097] Further, the determining the adaptation information of the current process node based on the exception category includes:

[0098] When the abnormal category of the abnormal information is a preset first category, collecting a preset indicator data set based on the abnormal information; and determining the indicator data set as the adaptation information of the current process node;

[0099] When the exception category of the exception information is the preset second category, parsing the exception information, obtaining the failure cause, and determining the failure cause as the adaptation information of the current process node;

[0100] When the exception category of the exception information is the preset third category, the exception information is sent to the client, the target process information reported by the client is received, and the target process information is determined as the adaptation information of the current process node.

[0101] In this embodiment, the preset first category refers to a flow process node for which the current process node cannot be determined, and the corresponding flow process node is determined by collecting a preset indicator data set according to the abnormal information.

[0102] For example, when running the shopping process ABC / D / EF, when running to node B, the flow node of node B cannot be determined, and a pre-set indicator data set is collected based on the abnormal information of the operation of node B, such as the current network status; the current traffic status; the current response time.

[0103] In this embodiment, the preset second category refers to the failure of the current process node to run;

[0104] In this embodiment, the preset third category refers to the need for the client to re-arrange the first business process.

[0105] In this embodiment, by determining the exception category to which the exception information belongs and determining corresponding adaptation information based on different exception categories, the first business process can be subsequently configured in a targeted manner according to different adaptation information, thereby improving the accuracy of the obtained second business process.

[0106] S15, dynamically configuring the first business process based on the adaptation information of the current process node to obtain a second business process.

[0107] In this embodiment, the second business process refers to the process dynamically configured after running each process node in the first business process.

[0108] In an optional embodiment, dynamically configuring the first business process based on the adaptation information of the current process node to obtain the second business process includes:

[0109] When the adaptation information of the current process node is an indicator data set, multiple sub-process nodes of the current process node are obtained; if the indicator data set meets the flow requirement of any one of the multiple sub-process nodes, the any one sub-process node is determined as a flow process node of the current process node, and the first business process is dynamically configured based on the flow process node to obtain a second business process;

[0110] When the adaptation information of the current process node is a failure reason, dynamically configuring the first business process based on the failure reason to obtain a second business process;

[0111] When the adaptation information of the current process node is target process information, the first business process is dynamically configured based on the target process information to obtain a second business process.

[0112] Further, dynamically configuring the first business process based on the failure cause to obtain the second business process includes:

[0113] Pause the running of the current process node, and determine a compensation direction based on the failure cause;

[0114] When the compensation direction is forward compensation, the next process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain a second business process;

[0115] When the compensation direction is reverse compensation, the previous process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain the second business process.

[0116] In this embodiment, when the current process node fails to run, the failed current process node and the failure reason corresponding to the current process node are recorded in the cache or database, and the current node process is suspended, the first business process is compensated, and the first business process continues to run according to the compensation direction to complete the unfinished process, thereby completing the entire business process orchestration, ensuring that a complete second business process is obtained, and improving the flexibility of the second business process orchestration.

[0117] Further, dynamically configuring the first business process based on the target process information to obtain the second business process includes:

[0118] When the target process information is to change the current process node, the current process node in the first business process is changed based on the target process information to obtain a second business process;

[0119] When the target process information is to insert a new process node, obtaining the process node to be inserted and the position information of the process node to be inserted in the first business process, and inserting the process node to be inserted into the first business process according to the position information to obtain a second business process;

[0120] When the target process information is to delete the current process node, the current process node is deleted from the first business process diagram to obtain a second business process.

[0121] In this embodiment, when the first business process is dynamically configured based on the adaptation information of the current process node, the corresponding flow process node can be determined according to the running status of the current process node of the first business process. At the same time, the first business process can be compensated, changed, inserted, and deleted to obtain the second business process, thereby improving the flexibility of business process orchestration.

[0122] In other optional embodiments, the method further includes:

[0123] The second business process is displayed on the client interface according to a preset display method.

[0124] In this embodiment, the display method can be set in advance according to business needs, for example, the entire second business process can be displayed, or a part of the second business process can be displayed, or the second business process can be displayed in a preset text format, wherein the preset text format can display the second business process in PDF format, picture format or Visio format.

[0125] In this embodiment, by displaying the second business process on the client interface in a preset display manner, the user of the client can be assisted to quickly optimize the second business process.

[0126] In summary, the business process orchestration method described in this embodiment constructs a first business process based on the process configuration file, runs the first business process, detects the running status of the current process node during the running process, runs each process node in the first business process, and dynamically configures the first business process according to the running status, so as to ensure that the obtained business process is more in line with business needs, thereby improving the flexibility of business process orchestration. When it is detected that the abnormal state instruction of the current process node is triggered, the adaptation information of the current process node is determined in response to the abnormal state instruction, and the first business process is dynamically configured based on the adaptation information of the current process node to obtain the second business process. When the first business process is dynamically configured based on the adaptation information of the current process node, the corresponding flow process node can be determined according to the running status of the current process node of the first business process, and the first business process can be compensated, changed, inserted, and deleted to obtain the second business process, thereby improving the flexibility of business process orchestration.

[0127] Embodiment 2

[0128] Figure 2 It is a structural diagram of a business process orchestration device provided in Embodiment 2 of the present invention.

[0129] In some embodiments, the business process orchestration device 20 may include multiple functional modules composed of program code segments. The program code of each program segment in the business process orchestration device 20 may be stored in the memory of the electronic device and executed by the at least one processor to execute (see Figure 1 Description) Business process orchestration capabilities.

[0130] In this embodiment, the business process orchestration device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: an acquisition module 201, a construction module 202, an operation module 203, a determination module 204, a configuration module 205 and a display module 206. The module referred to in the present invention refers to a series of computer-readable instruction segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0131] The acquisition module 201 is used to acquire a process configuration file in response to a received process scheduling request.

[0132] In this embodiment, a process refers to a series of process activities performed to achieve a specific goal. A series of process activities will flow to the next process activity in the execution order of the process until the specific goal is achieved.

[0133] In this embodiment, the client may send a process orchestration request to the electronic device. When the electronic device receives the process orchestration request, it obtains a process configuration file in response to the process orchestration request, wherein the process configuration file includes business process information.

[0134] The construction module 202 is used to construct a first business process based on the process configuration file.

[0135] In this embodiment, the first business process refers to an initial business process arranged according to a process configuration file, wherein each process node of the first business process contains process configuration information. For example, for a shopping process, the corresponding first business process is: ABC / D / EF.

[0136] In an optional embodiment, the construction module 202 constructs the first business process based on the process configuration file, including:

[0137] extracting a plurality of key fields from the process configuration file;

[0138] Perform entity recognition on the multiple key fields respectively to obtain multiple entities;

[0139] Identify the project type corresponding to the process configuration file;

[0140] Based on the process sorting rules corresponding to the project type, identify the process node number corresponding to each entity and the positional relationship between each entity and other entities;

[0141] A first business process is drawn based on the process node number corresponding to each entity and the positional relationship between each entity and other entities.

[0142] In this embodiment, the node name of the process node is obtained by identifying the entities in the multiple key fields.

[0143] In this embodiment, different project types correspond to different process sorting rules. By determining the project type of the process configuration file, the corresponding process sorting rule is obtained, wherein the process sorting rule is pre-set based on the node name of the process node.

[0144] In this embodiment, in the process of constructing the first business process according to the process configuration file, entity recognition is performed on multiple key fields in the process configuration file to ensure the accuracy of the obtained process node name. At the same time, the corresponding process sorting rules are determined according to the project type of the process configuration file, and the first business process is drawn according to the corresponding process sorting rules, which is more targeted and improves the accuracy of the drawn first business process.

[0145] The running module 203 is used to run the first business process and detect the running status of the current process node during the running process.

[0146] In this embodiment, the first business process is an initial business process orchestrated based on the process configuration file, which may not meet the needs of the business process. It is necessary to run each process node in the first business process and dynamically configure the first business process according to the running status to ensure that the obtained business process is more in line with business needs and improve the flexibility of business process orchestration.

[0147] Furthermore, when it is detected that the running state of the current process node is immediate execution, the process configuration information of the current process node is identified; and the current process node is run according to the execution mode in the process configuration information.

[0148] Specifically, the execution mode includes synchronous execution and asynchronous execution.

[0149] In this embodiment, since asynchronous execution improves system throughput, different execution modes are configured according to the running status of each process node, which can improve the orchestration efficiency of the business process.

[0150] The determination module 204 is configured to determine the adaptation information of the current process node in response to the abnormal state instruction when it is detected that the abnormal state instruction of the current process node is triggered.

[0151] In this embodiment, when an abnormality is detected in the current process node in the first business process during operation of the first business process, adaptation information of the current process node is determined. Specifically, the adaptation information refers to information determined based on the abnormal state of the current process node.

[0152] In an optional embodiment, the determination module 204 determines the adaptation information of the current process node in response to the abnormal state instruction, including:

[0153] In response to the abnormal state instruction, acquiring abnormal information;

[0154] Inputting the abnormal information into a pre-trained abnormal classification model to obtain the abnormal category of the abnormal information;

[0155] Adaptation information of the current process node is determined based on the exception category.

[0156] In this embodiment, an abnormality classification model may be pre-trained, and when abnormal information is obtained, the abnormal information is input into the pre-trained abnormality classification model to obtain the abnormality category of the abnormal information.

[0157] Specifically, the training process of the abnormal classification model includes:

[0158] Get multiple exception categories and historical exception information corresponding to each exception category;

[0159] Extract multiple exception fields for each exception category;

[0160] Using the multiple abnormal fields as sample data sets;

[0161] Dividing the sample data set into a training set and a test set;

[0162] Inputting multiple abnormal fields and corresponding abnormal categories in the training set into a preset neural network for training to obtain an abnormal classification model;

[0163] Inputting the test set into the anomaly classification model for testing, and calculating the test pass rate;

[0164] If the test pass rate is greater than or equal to the preset pass rate threshold, it is determined that the training of the abnormal classification model is completed; if the test pass rate is less than the preset pass rate threshold, the number of training sets is increased, and the abnormal field extraction and abnormal classification model training are re-performed.

[0165] In this embodiment, an abnormal category can be preset, and the abnormal category is used to indicate the category to which the abnormal information belongs. The abnormal category may include, but is not limited to, a preset first category, a preset second category, and a preset third category. The historical abnormal information of the preset category is obtained, a plurality of abnormal fields are extracted, and then the abnormal classification model is trained according to the extracted plurality of abnormal fields and the corresponding abnormal categories. Subsequently, only the abnormal information needs to be obtained, and the abnormal fields of the abnormal information are extracted, and the abnormal category to which the abnormal information belongs can be identified through the abnormal classification model, with high accuracy.

[0166] Furthermore, the determination module 204 determines the adaptation information of the current process node based on the exception category, including:

[0167] When the abnormal category of the abnormal information is a preset first category, collecting a preset indicator data set based on the abnormal information; and determining the indicator data set as the adaptation information of the current process node;

[0168] When the exception category of the exception information is the preset second category, parsing the exception information, obtaining the failure cause, and determining the failure cause as the adaptation information of the current process node;

[0169] When the exception category of the exception information is the preset third category, the exception information is sent to the client, the target process information reported by the client is received, and the target process information is determined as the adaptation information of the current process node.

[0170] In this embodiment, the preset first category refers to a flow process node for which the current process node cannot be determined, and the corresponding flow process node is determined by collecting a preset indicator data set according to the abnormal information.

[0171] For example, when running the shopping process ABC / D / EF, when running to node B, the flow node of node B cannot be determined, and a pre-set indicator data set is collected based on the abnormal information of the operation of node B, such as the current network status; the current traffic status; the current response time.

[0172] In this embodiment, the preset second category refers to the failure of the current process node to run;

[0173] In this embodiment, the preset third category refers to the need for the client to re-arrange the first business process.

[0174] In this embodiment, by determining the exception category to which the exception information belongs and determining corresponding adaptation information based on different exception categories, the first business process can be subsequently configured in a targeted manner according to different adaptation information, thereby improving the accuracy of the obtained second business process.

[0175] The configuration module 205 is used to dynamically configure the first business process based on the adaptation information of the current process node to obtain a second business process.

[0176] In this embodiment, the second business process refers to the process dynamically configured after running each process node in the first business process.

[0177] In an optional embodiment, the configuration module 205 dynamically configures the first business process based on the adaptation information of the current process node to obtain the second business process including:

[0178] When the adaptation information of the current process node is an indicator data set, multiple sub-process nodes of the current process node are obtained; if the indicator data set meets the flow requirement of any one of the multiple sub-process nodes, the any one sub-process node is determined as a flow process node of the current process node, and the first business process is dynamically configured based on the flow process node to obtain a second business process;

[0179] When the adaptation information of the current process node is a failure reason, dynamically configuring the first business process based on the failure reason to obtain a second business process;

[0180] When the adaptation information of the current process node is target process information, the first business process is dynamically configured based on the target process information to obtain a second business process.

[0181] Further, dynamically configuring the first business process based on the failure cause to obtain the second business process includes:

[0182] Pause the running of the current process node, and determine a compensation direction based on the failure cause;

[0183] When the compensation direction is forward compensation, the next process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain a second business process;

[0184] When the compensation direction is reverse compensation, the previous process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain the second business process.

[0185] In this embodiment, when the current process node fails to run, the failed current process node and the failure reason corresponding to the current process node are recorded in the cache or database, and the current node process is suspended, the first business process is compensated, and the first business process continues to run according to the compensation direction to complete the unfinished process, thereby completing the entire business process orchestration, ensuring that a complete second business process is obtained, and improving the flexibility of the second business process orchestration.

[0186] Further, dynamically configuring the first business process based on the target process information to obtain the second business process includes:

[0187] When the target process information is to change the current process node, the current process node in the first business process is changed based on the target process information to obtain a second business process;

[0188] When the target process information is to insert a new process node, obtaining the process node to be inserted and the position information of the process node to be inserted in the first business process, and inserting the process node to be inserted into the first business process according to the position information to obtain a second business process;

[0189] When the target process information is to delete the current process node, the current process node is deleted from the first business process diagram to obtain a second business process.

[0190] In this embodiment, when the first business process is dynamically configured based on the adaptation information of the current process node, the corresponding flow process node can be determined according to the running status of the current process node of the first business process. At the same time, the first business process can be compensated, changed, inserted, and deleted to obtain the second business process, thereby improving the flexibility of business process orchestration.

[0191] In other optional embodiments, the display module 206 is used to display the second business process on the client interface according to a preset display method.

[0192] In this embodiment, the display method can be set in advance according to business needs, for example, the entire second business process can be displayed, or a part of the second business process can be displayed, or the second business process can be displayed in a preset text format, wherein the preset text format can display the second business process in PDF format, picture format or Visio format.

[0193] In this embodiment, by displaying the second business process on the client interface in a preset display manner, the user of the client can be assisted to quickly optimize the second business process.

[0194] In summary, the business process orchestration device described in this embodiment constructs a first business process based on the process configuration file, runs the first business process, detects the running status of the current process node during the running process, runs each process node in the first business process, and dynamically configures the first business process according to the running status, so as to ensure that the obtained business process is more in line with business needs, thereby improving the flexibility of business process orchestration. When it is detected that the abnormal state instruction of the current process node is triggered, the adaptation information of the current process node is determined in response to the abnormal state instruction, and the first business process is dynamically configured based on the adaptation information of the current process node to obtain the second business process. When the first business process is dynamically configured based on the adaptation information of the current process node, the corresponding flow process node can be determined according to the running status of the current process node of the first business process, and the first business process can be compensated, changed, inserted, and deleted to obtain the second business process, thereby improving the flexibility of business process orchestration.

[0195] Embodiment 3

[0196] See also Figure 3 FIG. 2 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. In a preferred embodiment of the present invention, the electronic device 3 includes a memory 31 , at least one processor 32 , at least one communication bus 33 and a transceiver 34 .

[0197] Those skilled in the art should understand that Figure 3 The structure of the electronic device shown does not constitute a limitation of the embodiments of the present invention, and may be a bus structure or a star structure. The electronic device 3 may also include more or less other hardware or software than shown in the figure, or a different component arrangement.

[0198] In some embodiments, the electronic device 3 is an electronic device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The electronic device 3 may also include client devices, which include but are not limited to any electronic product that can interact with a client through a keyboard, mouse, remote control, touchpad, or voice-controlled device, such as a personal computer, tablet computer, smart phone, digital camera, etc.

[0199] It should be noted that the electronic device 3 is only an example, and other existing or future electronic products that are suitable for the present invention should also be included in the protection scope of the present invention and included here by reference.

[0200] In some embodiments, the memory 31 is used to store program codes and various data, such as the business process orchestration device 20 installed in the electronic device 3, and to achieve high-speed and automatic access to programs or data during the operation of the electronic device 3. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0201] In some embodiments, the at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The at least one processor 32 is the control core (Control Unit) of the electronic device 3, and uses various interfaces and lines to connect various components of the entire electronic device 3, and executes various functions and processes data of the electronic device 3 by running or executing programs or modules stored in the memory 31, and calling data stored in the memory 31.

[0202] In some embodiments, the at least one communication bus 33 is configured to implement connection and communication between the memory 31 and the at least one processor 32, etc.

[0203] Although not shown, the electronic device 3 may also include a power source (such as a battery) for supplying power to each component. Optionally, the power source may be logically connected to the at least one processor 32 through a power management device, so that the power management device can manage charging, discharging, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0204] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0205] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, electronic device, or network device, etc.) or a processor to execute a part of the method described in each embodiment of the present invention.

[0206] In a further embodiment, in combination Figure 2 The at least one processor 32 can execute the operating device of the electronic device 3 and various installed application programs (such as the business process orchestration device 20), program codes, etc., for example, the above-mentioned modules.

[0207] The memory 31 stores program codes, and the at least one processor 32 can call the program codes stored in the memory 31 to execute related functions. For example, Figure 2 The modules described in the figure are program codes stored in the memory 31 and are executed by the at least one processor 32, thereby realizing the functions of the modules and achieving the purpose of business process orchestration.

[0208] Exemplarily, the program code may be divided into one or more modules / units, which are stored in the memory 31 and executed by the processor 32 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the program code in the electronic device 3. For example, the program code may be divided into an acquisition module 201, a construction module 202, an operation module 203, a determination module 204, a configuration module 205, and a display module 206.

[0209] In one embodiment of the present invention, the memory 31 stores a plurality of computer-readable instructions, and the plurality of computer-readable instructions are executed by the at least one processor 32 to implement the function of business process orchestration.

[0210] Specifically, the specific implementation method of the at least one processor 32 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0211] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0212] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0213] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0214] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "including" does not exclude other units or, and the singular does not exclude the plural. The multiple units or devices stated in the present invention can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0215] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A business process orchestration method, characterized in that: The method comprises: In response to the received process orchestration request, obtaining a process configuration file; Building a first business process based on the process configuration file; Running the first business process and detecting the running status of the current process node during the running process; When it is detected that the abnormal state instruction of the current process node is triggered, the adaptation information of the current process node is determined in response to the abnormal state instruction, including: in response to the abnormal state instruction, obtaining abnormal information; inputting the abnormal information into a pre-trained abnormal classification model to obtain the abnormal category of the abnormal information; determining the adaptation information of the current process node based on the abnormal category, including: when the abnormal category of the abnormal information is a preset first category, collecting a preset indicator data set based on the abnormal information; determining the indicator data set as the adaptation information of the current process node; when the abnormal category of the abnormal information is a preset second category, parsing the abnormal information, obtaining the failure cause, and determining the failure cause as the adaptation information of the current process node; when the abnormal category of the abnormal information is a preset third category, sending the abnormal information to the client, receiving the target process information reported by the client, and determining the target process information as the adaptation information of the current process node; The first business process is dynamically configured based on the adaptation information of the current process node to obtain a second business process.

2. The business process arrangement method according to claim 1, characterized in that: The dynamically configuring the first business process based on the adaptation information of the current process node to obtain the second business process includes: When the adaptation information of the current process node is an indicator data set, multiple sub-process nodes of the current process node are obtained; if the indicator data set meets the flow requirement of any one of the multiple sub-process nodes, the any one sub-process node is determined as a flow process node of the current process node, and the first business process is dynamically configured based on the flow process node to obtain a second business process; When the adaptation information of the current process node is a failure reason, dynamically configuring the first business process based on the failure reason to obtain a second business process; When the adaptation information of the current process node is target process information, the first business process is dynamically configured based on the target process information to obtain a second business process.

3. The business process arrangement method according to claim 2, characterized in that: The dynamically configuring the first business process based on the failure cause to obtain the second business process includes: Pause the running of the current process node, and determine a compensation direction based on the failure cause; When the compensation direction is forward compensation, the next process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain a second business process; When the compensation direction is reverse compensation, the previous process node of the current process node is determined as the transfer process node of the current process node, and the first business process is dynamically configured based on the transfer process node to obtain the second business process.

4. The business process arrangement method according to claim 2, characterized in that: The dynamically configuring the first business process based on the target process information to obtain the second business process includes: When the target process information is to change the current process node, the current process node in the first business process is changed based on the target process information to obtain a second business process; When the target process information is to insert a new process node, obtaining the process node to be inserted and the position information of the process node to be inserted in the first business process, and inserting the process node to be inserted into the first business process according to the position information to obtain a second business process; When the target process information is to delete the current process node, the current process node is deleted from the first business process diagram to obtain a second business process.

5. The business process arrangement method according to claim 4, characterized in that: Before determining the adaptation information of the current process node in response to the abnormal state instruction, the method further includes: Get multiple exception categories and historical exception information corresponding to each exception category; Extract multiple exception fields for each exception category; Using the multiple abnormal fields as sample data sets; Dividing the sample data set into a training set and a test set; Inputting multiple abnormal fields and corresponding abnormal categories in the training set into a preset neural network for training to obtain an abnormal classification model; Inputting the test set into the anomaly classification model for testing, and calculating the test pass rate; If the test pass rate is greater than or equal to the preset pass rate threshold, it is determined that the training of the abnormal classification model is completed; if the test pass rate is less than the preset pass rate threshold, the number of training sets is increased, and the abnormal field extraction and abnormal classification model training are re-performed.

6. A business process arrangement device, characterized in that: The device is used to implement the business process orchestration method according to any one of claims 1 to 5, and the device includes: An acquisition module, used to acquire a process configuration file in response to a received process orchestration request; A construction module, used to construct a first business process based on the process configuration file; An operation module, used to run the first business process and detect the operation status of the current process node during the operation; a determination module, configured to determine the adaptation information of the current process node in response to the abnormal state instruction when it is detected that the abnormal state instruction of the current process node is triggered; A configuration module is used to dynamically configure the first business process based on the adaptation information of the current process node to obtain a second business process.

7. An electronic device, characterized in that: The electronic device comprises a processor and a memory, and the processor is used to implement the business process orchestration method as claimed in any one of claims 1 to 5 when executing a computer program stored in the memory.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the business process orchestration method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Process configuration method, device and equipment and computer readable storage medium

    CN113077139A

  • Exception handling method, device and equipment for application program and storage medium

    CN113626241A