Workflow processing method, device, equipment and storage medium based on business process

Through the workflow processing method based on business process, business workflows are generated and updated, and the problems of high development difficulty and low business processing efficiency in small and medium-sized systems are solved, and efficient resource utilization and simplification of framework structure are achieved.

CN116523457BActive Publication Date: 2024-12-17广东公信智能会议股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310365250.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-12-17
Estimated Expiration
2043-04-06

AI Technical Summary

Technical Problem

The development of workflows in small and medium-sized systems is difficult, the business processing efficiency is low, and the resource waste is severe. The existing workflow framework based on BPMN technology is complex, and the built-in multiple database tables leads to inefficiency.

Method used

Using a workflow processing method based on business processes, the business workflow is generated by obtaining business process information and process identification, and initializing it when the application starts events, the workflow is updated online using the hot repair framework to avoid database searches and simplify the framework structure.

Benefits of technology

It reduces development difficulty, improves business processing efficiency, avoids resource waste, simplifies the framework structure, and realizes rapid call and online modification of business workflows.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116523457B_ABST
    Figure CN116523457B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a workflow processing method, device, equipment and storage medium based on business processes, the method comprising: obtaining multiple business process information and process identifiers, wherein the process identifier corresponds to the business process information; when an application startup event is monitored, generating a corresponding business workflow according to a preset process creation strategy and each of the business process information; in the case of receiving content modification information, updating the business workflow according to the content modification information based on a preset hot fix framework; receiving a business application, wherein the business application carries a target process identifier; in response to the business application, determining a target business workflow in each of the business workflows according to the target process identifier, and processing the business application according to the target business workflow. The embodiment of the present application can reduce development difficulty, improve business processing efficiency and avoid waste of resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of business processing technology, and in particular to a workflow processing method, device, equipment and storage medium based on business processes. Background Art

[0002] At present, the application field of workflow technology is very wide, involving finance, education, science and technology, logistics and security. In systems in various fields, workflow frameworks based on BPMN technology are usually used to process workflows. Workflow frameworks based on BPMN technology support the processing of complex workflows; however, the workflows involved in small and medium-sized systems are usually relatively simple. If a workflow framework based on BPMN technology is used, the framework structure is complex, the workflow modification process is complex, and the development difficulty is high. In addition, the workflow framework based on BPMN technology has multiple database tables built in, and each workflow call process needs to search the database, resulting in low business processing efficiency and waste of resources. Therefore, a lightweight workflow framework is urgently needed. Summary of the invention

[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0004] The embodiments of the present application provide a workflow processing method, apparatus, device and storage medium based on business processes, which can reduce development difficulty, improve business processing efficiency and avoid waste of resources.

[0005] To achieve the above-mentioned objectives, the first aspect of an embodiment of the present application proposes a workflow processing method based on business processes, including: obtaining multiple business process information and process identifiers, wherein the process identifier corresponds to the business process information; when an application startup event is monitored, generating a corresponding business workflow according to a preset process creation strategy and each of the business process information; when receiving content modification information, updating the business workflow according to the content modification information based on a preset hot fix framework; receiving a business application, wherein the business application carries a target process identifier; in response to the business application, determining a target business workflow in each of the business workflows according to the target process identifier, and processing the business application according to the target business workflow.

[0006] In some embodiments, the business process information includes several task contents and the execution order of each of the task contents; generating a corresponding business workflow based on a preset process creation strategy and each of the business process information includes: for any of the business process information, based on a preset process creation strategy, generating corresponding process nodes according to each of the task contents, and establishing a process relationship between each of the process nodes according to the execution order; for any of the business process information, determining the corresponding business workflow based on each of the process nodes and the process relationship.

[0007] In some embodiments, the process nodes include running nodes, judgment nodes and signal nodes, and the process creation strategy is configured in a preset QLExpress rule engine; the process creation strategy based on the preset process creates corresponding process nodes according to each of the task contents, including: judging the task type of each of the task contents according to the QLExpress rule engine and each of the task contents, wherein the task type includes running task type, judgment task type and signal task type; when the task type of the task content is running task type, generating the running node according to the QLExpress rule engine and the task content; when the task type of the task content is judging task type, generating the judging node according to the QLExpress rule engine and the task content, and setting the judgment condition of the judging node; when the task type of the task content is signal task type, generating the signal node according to the QLExpress rule engine and the task content, and setting the trigger condition of the signal node.

[0008] In some embodiments, after the step of obtaining multiple business process information and process identifiers, it also includes: for any of the business process information, generating a process string of the business process information according to each of the task contents and the execution order; generating a configuration file according to the process string and the process identifier, wherein the configuration file is an extensible markup language file, and the configuration file is used to generate the business workflow.

[0009] In some embodiments, the hot fix framework includes a Groovy code editor; when receiving content modification information, based on a preset hot fix framework, updating the business workflow according to the content modification information includes: based on a preset hot fix framework, receiving content modification information from the Groovy code editor, wherein the content modification information includes process modification information; when determining that the content modification information is the process modification information, updating the process relationship according to the process modification information.

[0010] In some embodiments, the content modification information also includes source code modification information; after the step of updating the process relationship according to the process modification information when it is determined that the content modification information is the process modification information, it also includes: when it is determined that the content modification information is the source code modification information, updating the process node according to the source code modification information, wherein the source code of the process node is written in the JAVA programming language.

[0011] In some embodiments, when an application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and each of the business process information, including: monitoring an application startup event of a preset SpringBoot framework; when the application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and each of the business process information.

[0012] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes a workflow processing device based on business processes, including: an acquisition unit, used to acquire multiple business process information and process identifiers, wherein the process identifier corresponds to the business process information; a link generation unit, used to generate a corresponding business workflow according to a preset process creation strategy and each of the business process information when an application startup event is monitored; a link update unit, used to update the business workflow according to the content modification information based on a preset hot repair framework when content modification information is received; a receiving unit, used to receive a business application, wherein the business application carries a target process identifier; a processing unit, used to respond to the business application, determine a target business workflow in each of the business workflows according to the target process identifier, and process the business application according to the target business workflow.

[0013] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the business process-based workflow processing method described in the first aspect when executing the computer program.

[0014] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, it implements the business process-based workflow processing method described in the first aspect above.

[0015] The present application proposes a workflow processing method, device, equipment and storage medium based on business processes. The embodiments of the present application include: obtaining multiple business process information and process identifiers, wherein the process identifier corresponds to the business process information; when an application startup event is monitored, generating a corresponding business workflow according to a preset process creation strategy and each of the business process information; when receiving content modification information, updating the business workflow according to the content modification information based on a preset hot repair framework; receiving a business application, wherein the business application carries a target process identifier; in response to the business application, determining a target business workflow in each of the business workflows according to the target process identifier, and processing the business application according to the target business workflow. According to the solution provided in the embodiment of the present application, by monitoring the application startup event, the process creation strategy and business process information are used to complete the initialization operation and generate a business workflow corresponding to the business process information. In the operation stage, based on the business request, the target process identifier carried by the business application is called to determine the target business workflow. Since the business workflow can be stored in the memory, there is no need to search the database, which enables fast calling of the business workflow, improves business processing efficiency, avoids waste of resources, and does not require configuration of multiple database tables. The framework structure is simple and the development difficulty is low. In addition, the business workflow can be modified online through the hot repair framework. The modification process is simple, which can further reduce the development difficulty and improve business processing efficiency.

[0016] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0018] Figure 1 This is a flowchart of a workflow processing method based on a business process provided by an embodiment of the present application;

[0019] Figure 2 is a flowchart of a method for determining a business workflow provided by another embodiment of the present application;

[0020] Figure 3 is a flowchart of a method for generating a process node provided by another embodiment of the present application;

[0021] Figure 4is a flowchart of a method for generating a business workflow provided by another embodiment of the present application;

[0022] Figure 5 is a flowchart of a method for updating a process relationship provided by another embodiment of the present application;

[0023] Figure 6 is a flowchart of a specific method for generating a business workflow provided by another embodiment of the present application;

[0024] Figure 7 is a flowchart of business process information provided by another embodiment of the present application;

[0025] Figure 8 is a schematic diagram of a business workflow provided by another embodiment of the present application;

[0026] Fig. 9 is a structural diagram of a workflow processing device based on a business process provided by another embodiment of the present application;

[0027] Fig.10 It is a schematic diagram of the hardware structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] In the description of this application, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood to exclude the number, and “above”, “below”, “within”, etc. are understood to include the number.

[0030] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0031] At present, the application field of workflow technology is very wide, involving finance, education, science and technology, logistics and security. In systems in various fields, workflow frameworks based on BPMN technology are usually used to process workflows. Workflow frameworks based on BPMN technology support the processing of complex workflows; however, the workflows involved in small and medium-sized systems are usually relatively simple. If a workflow framework based on BPMN technology is used, the framework structure is complex, the workflow modification process is complex, and the development difficulty is high. In addition, the workflow framework based on BPMN technology has multiple database tables built in, and each workflow call process needs to search the database, resulting in low business processing efficiency and waste of resources. Therefore, a lightweight workflow framework is urgently needed.

[0032] In response to the problems of high development difficulty, low business processing efficiency and waste of resources, the present application provides a workflow processing method, device, equipment and storage medium based on business processes, the method comprising: obtaining multiple business process information and process identifiers, wherein the process identifier corresponds to the business process information; when an application startup event is monitored, generating a corresponding business workflow according to a preset process creation strategy and each business process information; when content modification information is received, updating the business workflow according to the content modification information based on a preset hot repair framework; receiving a business application, wherein the business application carries a target process identifier; in response to the business application, determining a target business workflow in each business workflow according to the target process identifier, and processing the business application according to the target business workflow. According to the solution provided in the embodiment of the present application, by monitoring the application startup event, the process creation strategy and business process information are used to complete the initialization operation and generate a business workflow corresponding to the business process information. In the operation stage, based on the business request, the target process identifier carried by the business application is called to determine the target business workflow. Since the business workflow can be stored in the memory, there is no need to search the database, which enables the rapid calling of the business workflow, improves the business processing efficiency, avoids the waste of resources, and does not require the configuration of multiple database tables. The framework structure is simple and the development difficulty is low. In addition, the business workflow can be modified online through the hot repair framework. The modification process is simple, which can further reduce the development difficulty and improve the business processing efficiency.

[0033] The business process-based workflow processing method, apparatus, device and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the business process-based workflow processing method in the embodiments of the present application is described.

[0034] The workflow processing method based on business processes provided in the embodiments of the present application relates to the field of data processing technology. The workflow processing method based on business processes provided in the embodiments of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements a workflow processing method based on business processes, etc., but is not limited to the above forms.

[0035] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0036] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0037] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0038] like Figure 1 As shown, Figure 1A flowchart of a workflow processing method based on a business process is provided for one embodiment of the present application. The workflow processing method based on a business process can be executed by a server, or can also be executed by a terminal, or can also be executed by a server in conjunction with a terminal. The workflow processing method based on a business process includes but is not limited to the following steps S110 to S150:

[0039] Step S110, obtaining multiple business process information and process identifiers, wherein the process identifiers correspond to the business process information;

[0040] Step S120, when an application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and each business process information;

[0041] Step S130, when content modification information is received, based on a preset hot fix framework, updating the business workflow according to the content modification information;

[0042] Step S140, receiving a service application, wherein the service application carries a target process identifier;

[0043] Step S150, in response to the business application, according to the target process identifier, a target business workflow is determined in each business workflow, and the business application is processed according to the target business workflow.

[0044] It can be understood that business process information refers to the operating content, steps and conditions involved in the business processing process, the process identifier is used to distinguish each business process information, and the process creation strategy refers to generating the corresponding business workflow according to the operating content, steps and conditions involved in the business processing process. Based on the hot repair framework, the business workflow can be modified online on the web page; based on this, by listening to the application startup event, the process creation strategy and business process information are used to complete the initialization operation and generate the business workflow corresponding to the business process information. In the operation stage, based on the business request, the target process identifier carried by the business application is called to determine the target business workflow. Since the business workflow can be stored in the memory, there is no need to search the database, which realizes the rapid calling of the business workflow, can improve the business processing efficiency, and can also avoid waste of resources. Moreover, there is no need to configure multiple database tables, the framework structure is simple, and the development difficulty is small. In addition, the business workflow can be modified online through the hot repair framework, and the modification process is simple, which can further reduce the development difficulty and improve the business processing efficiency.

[0045] In addition, refer to Figure 2 ,In one embodiment, the business process information includes a number of task contents and the execution order of each task content; Figure 1 Step S120 in the illustrated embodiment includes but is not limited to the following steps:

[0046] Step S210, for any business process information, based on the preset process creation strategy, corresponding process nodes are generated according to the content of each task, and process relationships between the process nodes are established according to the execution order;

[0047] Step S220: for any business process information, determine the corresponding business workflow according to each process node and process relationship.

[0048] It can be understood that a business workflow is equivalent to an execution link. Each task content can determine a process node. The generated execution link includes multiple process nodes. When a process node is completed, it will continue to execute the next process node according to the direction of the arrow in the execution link. The direction of the arrow in the execution link is determined by the process relationship. Running a process node means completing the corresponding task content.

[0049] In addition, refer to Figure 3 ,In one embodiment, the process nodes include running nodes, judgment nodes and signal nodes, and the process creation strategy is configured in a preset QLExpress rule engine; Figure 2 Step S210 in the illustrated embodiment includes but is not limited to the following steps:

[0050] Step S310, judging the task type of each task content according to the QLExpress rule engine and each task content, wherein the task type includes an operation task type, a judgment task type and a signal task type;

[0051] Step S320, when the task type of the task content is a running task type, generating a running node according to the QLExpress rule engine and the task content;

[0052] Step S330, when the task type of the task content is a judgment task type, a judgment node is generated according to the QLExpress rule engine and the task content, and a judgment condition of the judgment node is set;

[0053] Step S340: When the task type of the task content is a signal task type, a signal node is generated according to the QLExpress rule engine and the task content, and a trigger condition of the signal node is set.

[0054] It can be understood that, by utilizing the extensibility of the QLExpress rule engine, three types of process nodes are defined, namely, run nodes, judgment nodes and signal nodes. Among them, the run node is used to run the code to complete the task content, the judgment node is used to run the code to complete the task content to obtain the return value, and then determine whether to execute the code of the next process node through the return value, and the signal node is used to interrupt the operation of the workflow until the trigger condition is met. The code of the next process node is executed. The framework structure is simple and the development difficulty is small. For example, for the business process information with the process identifier "audit process", the task content of the run node is "write auditor", the task content of the information node is "wait for audit results", and the function of the information node is "execute the code of the next process node when the audit result is triggered", the task content of the judgment node is "judge the audit result", and the function of the judgment node is "when the return value is 1, execute the passed process node, and when the return value is 0, execute the failed process node".

[0055] In addition, refer to Figure 4 , in one embodiment, Figure 1 After step S110 in the illustrated embodiment, the following steps are also included but not limited to:

[0056] Step S410, for any business process information, generating a process string of the business process information according to the content and execution order of each task;

[0057] Step S420: Generate a configuration file according to the process string and the process identifier, wherein the configuration file is an extensible markup language file and is used to generate a business workflow.

[0058] It can be understood that in order to improve the processing efficiency of business process information, the business process information is converted into a process string. For example, the process string is RUN (save appointment information, write auditor, WAIT (wait for audit result, 5). THEN (WITCH (judge audit result). CASE (true, pass). CASE (false, fail)). TIMEOUT (pass); then combined with the process identifier, a configuration file in the extensible markup language XML format is generated, so that in the subsequent process creation strategy processing, the business process information in the configuration file can be quickly read.

[0059] In addition, refer to Figure 5 , in one embodiment, the hotfix framework includes a Groovy code editor; Figure 1 Step S130 in the illustrated embodiment includes but is not limited to the following steps:

[0060] Step S510, based on a preset hot fix framework, receiving content modification information from a Groovy code editor, wherein the content modification information includes process modification information;

[0061] Step S520: When it is determined that the content modification information is process modification information, the process relationship is updated according to the process modification information.

[0062] It is understandable that when processing online systems, the business workflow is updated online by building a hot fix framework, a Groovy code editor is added to the web page, and CodeMirror is used as the basic library for the development of front-end scripts to implement script highlighting, syntax reminders, line breaks and indentation, and other functions. When the process relationship needs to be modified, the code of the process relationship is directly edited on the Groovy code editor to update the process relationship without repackaging the code, thus realizing hot update of the code and improving processing efficiency.

[0063] In addition, in one embodiment, the content modification information also includes source code modification information; Figure 5 After step S520 in the illustrated embodiment, the following steps are also included but not limited to:

[0064] When it is determined that the content modification information is source code modification information, the process node is updated according to the source code modification information, wherein the source code of the process node is written in JAVA programming language.

[0065] It is understandable that when the code of a process node needs to be modified, the JAVA code of the process node can be directly edited on the Groovy code editor to update the process node without repackaging the code, thus realizing hot update of the code and improving processing efficiency.

[0066] In addition, refer to Figure 6 , in one embodiment, Figure 1 Step S120 in the illustrated embodiment includes but is not limited to the following steps:

[0067] Step S610, monitoring the application startup event of the preset SpringBoot framework;

[0068] Step S620: When an application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and various business process information.

[0069] It is understandable that the SpringBoot framework has multiple events built in. By listening to the ApplicationStartedEvent event built into the SpringBoot framework, it is determined whether to initialize the business workflow, that is, listening to the application startup event. The application startup event is used to indicate that all components in the application have been initialized. When initialized through the process creation strategy, all configuration files under the project file will be traversed. The configuration files record the business process information, and then generate the business workflow.

[0070] In addition, refer to Figure 7 and Figure 8 , Figure 7 is a flowchart of business process information provided by another embodiment of the present application, Figure 8 is a schematic diagram of a business workflow provided by another embodiment of the present application;

[0071] It is understandable that the business workflow has a clear structure, and the workflow framework is developed based on JAVA, Groovy and SpringBoot technologies. The workflow framework has a simple structure, can improve business processing efficiency, avoid waste of resources, and has low development difficulty.

[0072] In addition, refer to Fig. 9 The present application also provides a workflow processing device 900 based on a business process, including:

[0073] An acquisition unit 910 is used to acquire multiple pieces of business process information and process identifiers, wherein the process identifiers correspond to the business process information;

[0074] The link generation unit 920 is used to generate a corresponding business workflow according to a preset process creation strategy and each business process information when monitoring an application startup event;

[0075] The link updating unit 930 is used to update the service workflow according to the content modification information based on the preset hot fix framework when receiving the content modification information;

[0076] The receiving unit 940 is used to receive a service application, wherein the service application carries a target process identifier;

[0077] The processing unit 950 is used to respond to the business application, determine the target business workflow in each business workflow according to the target process identifier, and process the business application according to the target business workflow.

[0078] It can be understood that the specific implementation of the business process-based workflow processing device 900 is basically the same as the specific implementation of the business process-based workflow processing method described above, and will not be described in detail here.

[0079] In addition, refer to Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0080] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0081] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the workflow processing method based on the business process of the embodiment of the present application, for example, executing the above-described Figure 1 Steps S110 to S150 of the method, Figure 2 Steps S210 to S220 of the method, Figure 3 Steps S310 to S340 of the method, Figure 4 Steps S410 to S420 of the method, Figure 5 Steps S510 to S520 of the method, Figure 6 Method steps S610 to S620;

[0082] Input / output interface 1003, used to implement information input and output;

[0083] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0084] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0085] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0086] The embodiment of the present application also provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned workflow processing method based on business processes, for example, to execute the above-described Figure 1 Steps S110 to S150 of the method, Figure 2 Steps S210 to S220 of the method, Figure 3 Steps S310 to S340 of the method, Figure 4 Steps S410 to S420 of the method, Figure 5 Steps S510 to S520 of the method, Figure 6 Method steps S610 to S620 in.

[0087] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0088] The embodiments of the present application provide a workflow processing method, apparatus, device and storage medium based on business processes, which obtain multiple business process information and process identifiers, wherein the process identifier corresponds to the business process information; when an application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and each business process information; when content modification information is received, the business workflow is updated according to the content modification information based on a preset hot fix framework; a business application is received, wherein the business application carries a target process identifier; in response to the business application, a target business workflow is determined in each business workflow according to the target process identifier, and the business application is processed according to the target business workflow. Based on this, by listening to the application startup event, the process creation strategy and business process information are used to complete the initialization operation and generate the business workflow corresponding to the business process information. In the operation stage, based on the business request, the target process identifier carried by the business application is called to determine the target business workflow. Since the business workflow can be stored in the memory, there is no need to search the database, which enables the rapid calling of the business workflow, improves the business processing efficiency, and avoids the waste of resources. There is no need to configure multiple database tables, the framework structure is simple, and the development difficulty is small. In addition, the business workflow can be modified online through the hot repair framework, and the modification process is simple, which can further reduce the development difficulty and improve the business processing efficiency.

[0089] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0090] It can be understood by those skilled in the art that Figures 1 to 6 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.

[0091] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they 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.

[0092] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0093] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0094] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0095] In the several embodiments provided in the present application, 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 schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or 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 software functional units.

[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0099] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A workflow processing method based on business process, characterized in that: include: Acquire multiple business process information and process identifiers, wherein the process identifiers correspond to the business process information; When an application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and each of the business process information, wherein the application startup event is used to indicate that all components within the application have been initialized; When content modification information is received, the business workflow is updated according to the content modification information based on a preset hot fix framework; receiving a service application, wherein the service application carries a target process identifier; In response to the service application, determining a target service workflow in each of the service workflows according to the target process identifier, and processing the service application according to the target service workflow; The business process information includes a number of task contents and the execution order of each of the task contents, and the corresponding business workflow is generated according to the preset process creation strategy and each of the business process information, including: For any of the business process information, based on a preset process creation strategy, corresponding process nodes are generated according to the content of each task, and process relationships between the process nodes are established according to the execution order; For any of the business process information, determine the corresponding business workflow according to each of the process nodes and the process relationship; The hot fix framework includes a Groovy code editor, and the Groovy code editor is used to edit the code of the process relationship and the JAVA code of the process node. When receiving the content modification information, based on the preset hot fix framework, the business workflow is updated according to the content modification information, including: Based on a preset hot fix framework, receiving content modification information from the Groovy code editor, wherein the content modification information includes process modification information and source code modification information; In the case where it is determined that the content modification information is the process modification information, updating the process relationship according to the process modification information; When it is determined that the content modification information is the source code modification information, the process node is updated according to the source code modification information, wherein the source code of the process node is written in JAVA programming language.

2. The method according to claim 1, characterized in that The process nodes include running nodes, judgment nodes and signal nodes, and the process creation strategy is configured in the preset QLExpress rule engine; The preset process creation strategy is based on which corresponding process nodes are generated according to the content of each task, including: According to the QLExpress rule engine and each of the task contents, determine the task type of each of the task contents, wherein the task type includes an operation task type, a judgment task type, and a signal task type; When the task type of the task content is a running task type, generating the running node according to the QLExpress rule engine and the task content; When the task type of the task content is a judgment task type, generating the judgment node according to the QLExpress rule engine and the task content, and setting the judgment condition of the judgment node; When the task type of the task content is a signal task type, the signal node is generated according to the QLExpress rule engine and the task content, and the triggering condition of the signal node is set.

3. The method according to claim 1, characterized in that: After the step of obtaining multiple business process information and process identifiers, the method further includes: For any of the business process information, generating a process character string of the business process information according to the content of each task and the execution order; A configuration file is generated according to the process character string and the process identifier, wherein the configuration file is an extensible markup language file and is used to generate the business workflow.

4. The method according to claim 1, characterized in that: When an application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and each of the business process information, including: Listen to the application startup events of the preset SpringBoot framework; When the application startup event is monitored, a corresponding business workflow is generated according to a preset process creation strategy and each of the business process information.

5. A workflow processing device based on business processes, characterized in that: include: An acquisition unit, configured to acquire a plurality of business process information and process identifiers, wherein the process identifiers correspond to the business process information; A link generation unit, configured to generate a corresponding business workflow according to a preset process creation strategy and each of the business process information when an application startup event is monitored, wherein the application startup event is used to indicate that all components within the application have been initialized; A link update unit, configured to update the service workflow according to the content modification information based on a preset hot fix framework when receiving the content modification information; A receiving unit, configured to receive a service application, wherein the service application carries a target process identifier; A processing unit, configured to respond to the service application, determine a target service workflow in each of the service workflows according to the target process identifier, and process the service application according to the target service workflow; The business process information includes a number of task contents and the execution order of each of the task contents, and the corresponding business workflow is generated according to the preset process creation strategy and each of the business process information, including: For any of the business process information, based on a preset process creation strategy, corresponding process nodes are generated according to the content of each task, and process relationships between the process nodes are established according to the execution order; For any of the business process information, determine the corresponding business workflow according to each of the process nodes and the process relationship; The hot fix framework includes a Groovy code editor, and the Groovy code editor is used to edit the code of the process relationship and the JAVA code of the process node. When receiving the content modification information, based on the preset hot fix framework, the business workflow is updated according to the content modification information, including: Based on a preset hot fix framework, receiving content modification information from the Groovy code editor, wherein the content modification information includes process modification information and source code modification information; In the case where it is determined that the content modification information is the process modification information, updating the process relationship according to the process modification information; When it is determined that the content modification information is the source code modification information, the process node is updated according to the source code modification information, wherein the source code of the process node is written in JAVA programming language.

6. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the workflow processing method based on business processes as claimed in any one of claims 1 to 4 when executing the computer program.

7. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the business process-based workflow processing method according to any one of claims 1 to 4 is implemented.