A workflow configuration method and device, electronic equipment and storage medium

By separating the main workflow and general sub-workflows, and using virtual nodes to process current business requests, the problem of repetitive configuration and frequent adjustments of workflows in large projects is solved, achieving flexible and efficient workflow configuration.

CN115129492BActive Publication Date: 2026-03-27PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-15
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing technologies suffer from redundant configurations and frequent adjustments in workflow configuration for large projects, especially when different review units or methods are involved, making it difficult to determine business processes in advance and adapt to structural adjustments.

Method used

The main workflow and general sub-workflows are separated. The main workflow is configured by obtaining the general business process, and the general sub-workflows are called by virtual nodes to process the current business application until the main workflow is completed. This avoids repeated configuration and frequent adjustments.

Benefits of technology

It reduces the time cost of workflow configuration, improves the readability and flexibility of workflow, adapts to changes in approval structures at different levels, and does not require frequent adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129492B_ABST
    Figure CN115129492B_ABST
Patent Text Reader

Abstract

The application provides a workflow configuration method and device, electronic equipment and a computer readable storage medium. The workflow configuration method comprises the following steps: acquiring a general business process, configuring a main workflow according to the general business process; acquiring a current business process, configuring a general sub-workflow according to the current business process; when the main workflow receives a current business application, making the current business application execute according to the order of the main workflow; when the current business application reaches a virtual node, calling the general sub-workflow, and processing the current business application according to the general sub-workflow; after the general sub-workflow completes processing of the current business application, making the process node after the virtual node in the main workflow continue to execute the current business application until the current business application is executed according to the main workflow. The workflow configuration method avoids repeated configuration of the workflow and frequent adjustment of the workflow.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of workflow, in particular to a workflow configuration method and device, electronic equipment and computer readable storage medium. BACKGROUND

[0002] The application field of the workflow technology of various systems and platforms at the present stage is very wide, involving the fields of finance, education, technology, logistics and security. Many open source workflow products and commercial products based on secondary packaging of open source products exist. These products are used by drawing a workflow diagram through an API (program programming interface), a plug-in and based on the BPMN specification, transmitting to a background workflow engine, generating a workflow instance, and combining the personnel unit permissions of each operation link, that is, the flow transfer work of the business can be carried out. The workflow drawing method is slightly different according to different systems. Some are configured by R&D personnel according to demand in the management platform. Some powerful systems support business users to draw and configure in the business system. However, the essence of different systems is to generate a BPMN specification script to realize workflow configuration.

[0003] For small projects, due to the limitation of business volume, there will not be many kinds of workflows in the entire system of the project, and manual configuration of these workflows can be performed. For large projects, due to many approval links, the following problems may exist when configuring the workflow: the workflows of the same or similar business may be repeated due to the difference of some audit units or the difference of some audit methods; the audit process of some large businesses is long and not fixed, and it is difficult to determine how many departments a business needs to pass through for audit in advance, and it is difficult to draw the workflow in advance. Even if the workflow is determined in advance, the structure of the company or department under the group may be adjusted, and the workflow may also be changed. These make the workflow need to be adjusted frequently. SUMMARY

[0004] The purpose of the present application is to provide a workflow configuration method, device, electronic equipment and computer readable storage medium to solve the technical problems of repeated configuration and frequent adjustment of the workflow in the prior art.

[0005] The technical solution of the present application is as follows, a workflow configuration method is provided, comprising:

[0006] obtaining a general business process, and configuring a main workflow according to the general business process, wherein the main workflow comprises a virtual node;

[0007] obtaining a current business process, and configuring a general sub-workflow according to the current business process;

[0008] When the main workflow receives a current service application, the current service application is executed according to the order of the main workflow;

[0009] When the current service application reaches the virtual node, the general sub-workflow is invoked to process the current service application according to the general sub-workflow;

[0010] After the general sub-workflow processes the current service application, the process node after the virtual node in the main workflow continues to execute the current service application until the current service application is executed according to the order of the main workflow.

[0011] Further, the main workflow is configured according to the general service process, including: according to the general service process, configuring the number of general nodes, the position of general nodes, the number of virtual nodes, the position of virtual nodes, and the flow direction between each process node in the main workflow, wherein the process node includes a general node and a virtual node.

[0012] Further, the general sub-workflow is configured according to the current service process, including: according to the current service process, configuring the number of process nodes, the position of process nodes and the flow direction between each process node in the general sub-workflow.

[0013] Further, the workflow configuration method, after configuring the general sub-workflow according to the current service process, further includes: obtaining link data of a current service application, performing hierarchical division on the link data, and generating a service application chain.

[0014] According to the general sub-workflow, the current service application is processed, including: configuring the service application chain, and processing the current service application according to the service application chain and the general sub-workflow.

[0015] Further, processing the current service application by using the service application chain and the general sub-workflow includes:

[0016] Loading the service application chain, disassembling the service application chain to obtain a disassembled service application chain, putting the disassembled service application chain into a queue, and processing the current service application according to the general sub-workflow and the queue.

[0017] Further, putting the disassembled service application chain into a queue and processing the current service application according to the general sub-workflow and the queue includes:

[0018] The disassembled business application chain is put into the queue according to the order of the business application chain before disassembly, when the current business application reaches a process node in the general sub-workflow, the corresponding link data is popped out from the queue according to the position of the process node in the general sub-workflow, and the link data is used for processing the current business application by a corresponding business node.

[0019] Further, after the corresponding link data is popped out from the queue, the length of the queue is reduced by 1.

[0020] After the link data corresponding business node processes the current business application, the current business application reaches the next process node in the general sub-workflow, the corresponding link data is popped out from the queue according to the position of the process node in the general sub-workflow, and the above steps are repeated until the length of the queue is 0.

[0021] Another technical solution of the application is as follows, a workflow configuration device is provided, comprising a main workflow configuration module, a sub-workflow configuration module, a first main workflow execution module, a sub-workflow execution module and a second main workflow execution module.

[0022] The main workflow configuration module is used for acquiring a general business process, and configuring a main workflow according to the general business process, wherein the main workflow comprises a virtual node.

[0023] The sub-workflow configuration module is used for acquiring a current business process, and configuring a general sub-workflow according to the current business process.

[0024] The first main workflow execution module is used for making the current business application execute according to the order of the main workflow when the main workflow receives the current business application.

[0025] The sub-workflow execution module is used for calling the general sub-workflow when the current business application reaches the virtual node, and processing the current business application according to the general sub-workflow.

[0026] The second main workflow execution module is used for making the process nodes in the main workflow after the virtual node continue to execute the current business application after the general sub-workflow processes the current business application, until the current business application is executed according to the order of the main workflow.

[0027] Another technical solution of the present application is as follows, providing an electronic device, comprising a memory and a processor, the memory stores a computer program which can be executed by the processor, and the processor executes the computer program to realize the workflow configuration method according to any one of the above technical solutions.

[0028] Another technical solution of the present application is as follows, providing a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the workflow configuration method according to any one of the above technical solutions.

[0029] The present application has the beneficial effect that: a general business process is obtained, a main workflow is configured according to the general business process; a current business process is obtained, a general sub-workflow is configured according to the current business process; when the main workflow receives a current business application, the current business application is executed according to the order of the main workflow; when the current business application reaches the virtual node, the general sub-workflow is called, and the current business application is processed according to the general sub-workflow; after the general sub-workflow processes the current business application, the process node after the virtual node in the main workflow continues to execute the current business application until the current business application is executed according to the order of the main workflow; through the above technical solution, the repeated configuration of the workflow and the frequent adjustment of the workflow are avoided. BRIEF DESCRIPTION OF DRAWINGS

[0030] Figure 1 The flowchart of the workflow configuration method of the embodiment of the present application is shown in the figure;

[0031] Figure 2 The structure diagram of the main workflow of the embodiment of the present application is shown in the figure;

[0032] Figure 3 The workflow structure diagram of the first level of approval of the embodiment of the present application is shown in the figure;

[0033] Figure 4 The workflow structure diagram of the second level of approval of the embodiment of the present application is shown in the figure;

[0034] Figure 5 The workflow structure diagram of the third level of approval of the embodiment of the present application is shown in the figure;

[0035] Figure 6 The structure diagram of the first general sub-workflow of the embodiment of the present application is shown in the figure;

[0036] Figure 7 The structure diagram of the second general sub-workflow of the embodiment of the present application is shown in the figure;

[0037] Figure 8A structure schematic diagram of a third general sub-workflow of an embodiment of the present application;

[0038] Figure 9 A structure schematic diagram of a fourth general sub-workflow of an embodiment of the present application;

[0039] Figure 10 A structure schematic diagram of a workflow configuration device of an embodiment of the present application;

[0040] Figure 11 A structure schematic diagram of an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0042] Reference to "an embodiment" in this text means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The phrase appears at various places in the specification does not necessarily refer to the same embodiment, nor is it necessary that every embodiment include the feature, structure, or characteristic. It will be explicitly understood by a person of ordinary skill in the art that the embodiments described herein can be combined with other embodiments.

[0043] Figure 1 is a flow schematic diagram of a workflow configuration method of an embodiment of the present application. It is to be noted that the workflow configuration method provided by the present application is not limited to the flow order shown, as long as there is substantially the same result. As shown in Figure 1 , the workflow configuration method mainly includes the following steps: Figure 1

[0044] S1, a general business process is acquired, and a main workflow is configured according to the general business process, wherein the main workflow includes virtual nodes;

[0045] It is to be noted that the main workflow can include multiple virtual nodes and multiple general nodes, and the main workflow can involve each link of the entire general business process. The general node is a general process node, and the business process can be a business application process.

[0046] S2, a current business process is acquired, and a general sub-workflow is configured according to the current business process;

[0047] ​The general service flow is for general services, and the current service flow is for a current specific service.

[0048] S3, when the main workflow receives a current service application, the current service application is executed according to the order of the main workflow;

[0049] S4, when the current service application reaches the virtual node, the general sub-workflow is called to process the current service application according to the general sub-workflow;

[0050] The main workflow and the general sub-workflow are separated, the current service application is executed according to the order of the main workflow, and the general sub-workflow is called when the current service application reaches the virtual node;

[0051] S5, after the general sub-workflow processes the current service application, the process node after the virtual node in the main workflow continues to execute the current service application until the current service application is executed according to the order of the main workflow.

[0052] It should be noted that there can be multiple virtual nodes, when the current service application reaches a virtual node, the general sub-workflow corresponding to the virtual node is called, after the general sub-workflow processes the current service application, the processing process returns to the main workflow, the process node after the virtual node in the main workflow continues to execute the current service application, when the current service application reaches another virtual node, the general sub-workflow corresponding to the virtual node is called, and the current service application is processed according to the general sub-workflow.

[0053] The workflow configuration method provided by the embodiment of the application comprises the following steps: a general service flow is acquired, a main workflow is configured according to the general service flow; when the main workflow receives a current service application, the current service application is executed according to the order of the main workflow; when the current service application reaches the virtual node, the general sub-workflow is called to process the current service application according to the general sub-workflow; after the general sub-workflow processes the current service application, the process node after the virtual node in the main workflow continues to execute the current service application until the current service application is executed according to the order of the main workflow.

[0054] In an alternative embodiment, the main workflow is configured according to the general business process, including: configuring the number of general nodes, the positions of the general nodes, the number of virtual nodes, the positions of the virtual nodes, and the flow direction between each process node in the main workflow according to the general business process, wherein the process nodes include general nodes and virtual nodes.

[0055] In one embodiment, a structural diagram of a main workflow is shown in Figure 2 . Figure 2 For a business application workflow within an enterprise, a business application is initiated by a business staff, and is approved by multiple departments of the company in a hierarchical manner. After the approval, a seal of the headquarters is given, and the business application workflow is executed after the seal of the headquarters. In the hierarchical approval stage, the business application of the business staff can be rejected, and the business application of the business staff can also be rejected after being sent to the headquarters. The business application of the business staff can also be sent directly to the headquarters, i.e., the hierarchical approval is omitted. As can be seen, the fixed process nodes of the main workflow include the submission of the application, the approval, and the seal of the headquarters, and different fixed process nodes are the hierarchical approval. One business application task is usually assigned to multiple approval units, and the data hierarchy of the units to be approved is different for different subsidiaries, agencies, or departments.

[0056] For hierarchical approval of different numbers of units, different hierarchical approval workflows need to be drawn, i.e., for hierarchical approval of two units, a structural diagram of a first hierarchical approval workflow is shown in Figure 3 , for hierarchical approval of three units, a structural diagram of a second hierarchical approval workflow is shown in Figure 4 , and for hierarchical approval of four units, a structural diagram of a third hierarchical approval workflow is shown in Figure 5 . This will result in too many workflows, and all different hierarchical approval workflows of different numbers of units need to be drawn one by one, which increases the workload of the business staff. Since the number of units for hierarchical approval is not fixed, the process nodes in the main workflow are also not fixed, e.g., three main workflows are drawn for Figures 3-5 , and if the number of units for hierarchical approval is adjusted, the main workflows also need to be redrawn.

[0057] According to the above embodiments, the hierarchical approval can be abstracted into a virtual node, and if the number of units for hierarchical approval is adjusted, the entire workflow does not need to be adjusted, which can reduce the time cost of configuring the workflow. The virtual node is a placeholder node, which is used to represent that there are an uncertain number of nodes at this position, and the business work of these uncertain number of nodes needs to be consistent, e.g., all belong to business application or approval.

[0058] In an optional implementation, configuring a general sub-workflow according to the current business process includes: configuring the number of process nodes, the position of the process nodes, and the flow direction between each process node in the general sub-workflow according to the current business process.

[0059] In one specific embodiment, when a current business request arrives at the virtual node, a general sub-workflow is invoked to process the current business request. The hierarchy of the general sub-workflow, i.e., the number of nodes, can be configured as needed. A schematic diagram of the structure of the first general sub-workflow is shown below. Figure 6 As shown, Figure 6 This is a type of serial business application (approval) workflow with a total of 20 levels. This general sub-workflow can support a maximum of 20 levels of process nodes. By calling the general sub-workflow, up to 20 separately drawn workflows can be saved. If later scenarios require longer business application levels, only [the workflow needs to be modified / required]. Figure 6 Simply increase the total number of layers (number) of the general sub-workflow.

[0060] In another specific embodiment, the general sub-workflow is specifically a combination of nodes with completely identical functional operations but a variable number of nodes; the structural diagram of the second general sub-workflow is as follows. Figure 7 As shown, in this Figure 7 In this process, if a business application is approved at one node, it is submitted to the next node for processing; if a business application is rejected at one node, it is returned to the previous node. The structural diagram of the third general sub-workflow is as follows: Figure 8 As shown, in this Figure 8 In this process, if a business application is approved at one node, it is submitted to the next node for processing; if the business application is rejected at one node, it is rejected back to the parent node, thus exiting the current general sub-workflow. The structural diagram of the fourth general sub-workflow is as follows: Figure 9 As shown, Figure 9 In the parallel approval mode, the number of participating nodes is not fixed. It can be a single signature, meaning that approval from one node is sufficient, or a joint signature, meaning that approval from all nodes is required. The nodes mentioned above are the general process nodes.

[0061] In an optional implementation, after configuring the general sub-workflow according to the current business process, the method further includes obtaining the link data of the current business application, dividing the link data into hierarchical levels, and generating a business application chain.

[0062] The current business application is processed according to the general sub-workflow, including configuring the business application chain and processing the current business application according to the business application chain and the general sub-workflow.

[0063] In one specific embodiment, for different scenarios, two workflows need to be drawn: a main workflow and a general sub-workflow. Furthermore, data and processes need to be separated. A data structure called a business application chain (i.e., approval chain) is introduced. The link data of the business application is stored as strings and separated by the symbol "->", resulting in the business application chain. For example, if the link data of a subsidiary A's business application includes Big Data R&D Team 1, Big Data R&D Department, and Human Resources Department, then the business application chain is: Big Data R&D Team 1 -> Big Data R&D Department -> Human Resources Department. This business application chain corresponds to three layers of business applications and will occupy [data / resources]. Figure 6 The first three nodes in a general sub-workflow; for example, the business application chain of subsidiary B is: Pre-sales Group -> System Division -> Marketing Department -> Human Resources Department. This business application chain corresponds to four layers of business applications, and this business application chain will occupy... Figure 6 The first four nodes in the general sub-workflow. For the link data of business applications, as long as its layer number does not exceed the layer level of the general sub-workflow, it can be configured arbitrarily. The link data of the business application chain can be stored using any data structure, as long as it can represent the layer level.

[0064] In an optional implementation, the current business application is processed using the business application chain and the general sub-workflow, including:

[0065] Load the business application chain, decompose the business application chain to obtain the decomposed business application chain, put the decomposed business application chain into a queue, and process the current business application according to the general sub-workflow and the queue.

[0066] In one specific embodiment, a main workflow is configured according to the general business process. If there are fixed operation business scenarios in the main workflow but the number of nodes is not fixed, virtual nodes are used as placeholders in the main workflow. Then, the general sub-workflow corresponding to the virtual nodes is drawn. The number of nodes in the general sub-workflow can be determined according to the actual situation. The link data of the business application is configured in the system. Depending on the system, the configured interaction method can be diverse. The interaction method can be fill, drop-down selection or drag and drop. Then, a workflow memory instance can be generated for the business scenario of a company, institution or department.

[0067] In another specific embodiment, after an employee submits an application form, the workflow automatically flows. After entering the hierarchical approval virtual node, the system loads the business application chain, which needs to be broken down and placed into a queue. The queuing order is the same as the order of the business application chain before the breakdown.

[0068] In an optional embodiment, the disassembled business application chain is put into a queue, and the current business application is processed according to the general sub-workflow and the queue, including:

[0069] The disassembled business application chain is put into the queue according to the order of the business application chain before disassembly. When the current business application reaches a process node in the general sub-workflow, the corresponding link data is popped out from the queue according to the position of the process node in the general sub-workflow, and the link data corresponding to the business node processes the current business application.

[0070] In a specific embodiment, for the general sub-workflow of the business application chain being big data research group 1->big data research department->personnel department, when the current business application reaches a process node in the general sub-workflow, such as the first node, the big data research group 1 is popped out according to the position of the process node in the general sub-workflow, and the big data research group 1 corresponding to the business node processes the current business application. If the audit is passed, the process goes to the next node.

[0071] In an optional embodiment, after the corresponding link data is popped out from the queue, the workflow configuration method further includes reducing the length of the queue by 1. After the link data corresponding business node processes the current business application, the workflow configuration method further includes making the current business application reach the next process node in the general sub-workflow, popping out the corresponding link data from the queue according to the position of the process node in the general sub-workflow, and repeating the above steps until the length of the queue is 0.

[0072] In a specific embodiment, the length of the queue is obtained, and the length of the queue is reduced by 1 after the corresponding link data is popped out from the queue. For example, for the general sub-workflow of the business application chain being big data research group 1->big data research department->personnel department, the queue length is 3. When the node of the general sub-workflow reaches the first node, the queue pops out "big data research group 1". After the audit is passed, the queue length is 2. When the node of the general sub-workflow reaches the second node, the queue pops out "big data research department". After the audit is passed, the queue length is 1. When the node of the general sub-workflow reaches the third node, the queue pops out "personnel department". After the audit is passed, the current queue length is 0. At this time, the general sub-workflow ends, and the current business application process returns to the main workflow. The work of each node of the general sub-workflow is completely consistent, which is to pop out the corresponding link data from the queue, and then determine whether the queue is empty. If the queue is not empty, the process is submitted to the next node. If the queue is empty, the process of the general sub-workflow ends.

[0073] The workflow configuration method provided by the embodiment of the present application avoids repeated configuration of the workflow and frequent adjustment of the workflow.

[0074] It should be noted that a workflow can often reflect a business process, and too many workflow nodes make it difficult for managers and business personnel to know the key work of the workflow. The complexity of the workflow of a large enterprise is extremely high, and the nodes of the main workflow can be hundreds. If the main workflow has multiple hierarchical approval nodes, the number of nodes of the entire workflow can be inflated to several hundred, and most of the hierarchical approval nodes are non-core businesses, which results in poor readability of the entire workflow.

[0075] The embodiment of the present application separates the main workflow from the general sub-workflow by setting a virtual node to replace the hierarchical approval node, and separates the business application chain from the general sub-workflow. For different business applications, if the number of hierarchical approval nodes corresponding to the business application does not exceed the number of nodes of the general sub-workflow, the main workflow and the general sub-workflow do not need to be changed, and the business application chain is changed according to the current application business. If the number of hierarchical approval nodes corresponding to the business application exceeds the number of nodes of the general sub-workflow, only the nodes of the general sub-workflow need to be increased, and the business application chain is changed according to the current application business to complete the configuration of the workflow. The workflow configuration method not only avoids repeated configuration of the workflow and frequent adjustment of the workflow, but also reduces the time cost of configuring the workflow, and increases the readability of the workflow, which is easy to display and convenient to adjust. In addition, the workflow configuration method provided by the embodiment of the present application can be applied to all workflow engines on the market.

[0076] The workflow configuration method provided by the embodiment can be constructed based on artificial intelligence, and relevant data can be acquired and processed based on artificial intelligence technology to realize unattended artificial intelligence workflow configuration. Artificial intelligence (AI) is the use of digital computers or digital computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0077] The artificial intelligence basic technology generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction system, mechatronics, etc. The artificial intelligence software technology mainly includes computer vision technology, robot technology, biometric identification technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc.

[0078] Figure 10 is a structural schematic diagram of a workflow configuration device of an embodiment of the present application. As shown in Figure 10 , the workflow configuration device 100 includes a main workflow configuration module 101, a sub-workflow configuration module 102, a first main workflow execution module 103, a sub-workflow execution module 104, and a second main workflow execution module 105;

[0079] The main workflow configuration module 101 is configured to acquire a general business process and configure a main workflow according to the general business process, wherein the main workflow includes virtual nodes.

[0080] The main workflow can include a plurality of virtual nodes and a plurality of general nodes, and can involve each link of the entire general business process. The general node is a general process node, and the business process can be a business application process.

[0081] The sub-workflow configuration module 102 is configured to acquire a current business process and configure a general sub-workflow according to the current business process.

[0082] The first main workflow execution module 103 is configured to, when the main workflow receives a current business application, make the current business application execute according to the order of the main workflow.

[0083] The sub-workflow execution module 104 is configured to, when the current business application reaches the virtual node, call the general sub-workflow and process the current business application according to the general sub-workflow.

[0084] The main workflow and the general sub-workflow are separated, the current business application executes according to the order of the main workflow, and the general sub-workflow is called only when the current business application reaches the virtual node.

[0085] The second main workflow execution module 105 is configured to, after the general sub-workflow processes the current business application, make the process nodes after the virtual node in the main workflow continue to execute the current business application until the current business application is executed according to the order of the main workflow.

[0086] The virtual nodes can be multiple. When the current service application reaches a virtual node, the corresponding general sub-workflow of the virtual node is called. After the general sub-workflow completes processing of the current service application, the processing flow returns to the main workflow, and the flow node after the virtual node in the main workflow continues to execute the current service application. When the current service application reaches another virtual node, the corresponding general sub-workflow of the virtual node is called, and the current service application is processed according to the general sub-workflow.

[0087] Further, the main workflow configuration module 101 is further configured to configure, according to the general service flow, the number and position of the general nodes, the number and position of the virtual nodes, and the flow direction between the flow nodes, wherein the flow nodes include the general nodes and the virtual nodes.

[0088] Further, the sub-workflow configuration module 102 is further configured to configure, according to the current service flow, the number and position of the flow nodes and the flow direction between the flow nodes in the general sub-workflow.

[0089] Further, the workflow configuration apparatus 100 further includes a service application chain generation module, which is configured to obtain link data of a current service application, perform hierarchical division on the link data, and generate a service application chain. The sub-workflow execution module 104 is further configured to configure the service application chain, and process the current service application according to the service application chain and the general sub-workflow.

[0090] Further, the sub-workflow execution module 104 is further configured to load the service application chain, disassemble the service application chain to obtain a disassembled service application chain, put the disassembled service application chain into a queue, and process the current service application according to the general sub-workflow and the queue.

[0091] In one specific embodiment, according to the general service flow, a main workflow is configured. If there is a fixed operation service but a variable number of nodes in the main workflow, a virtual node is used to occupy a position in the main workflow, and then a general sub-workflow corresponding to the virtual node is drawn. The number of nodes of the general sub-workflow can be determined according to actual conditions. Link data of a service application is configured in the system. According to different systems, the interactive mode can be various, and the interactive mode can be filling, drop-down selection, or dragging. Then, a workflow memory instance can be generated for a business scenario of a company, an institution, or a department.

[0092] In another specific embodiment, after the employee submits the application form, the workflow automatically flows into the hierarchical approval virtual node, and the system loads the business application chain.

[0093] Further, the sub-workflow execution module 104 is further configured to put the decomposed business application chain into the queue according to the order of the business application chain before the decomposition, and when the current business application reaches a process node in the general sub-workflow, the corresponding link data is popped out from the queue according to the position of the process node in the general sub-workflow, and the link data is used for processing the current business application by the corresponding business node.

[0094] Further, the sub-workflow execution module 104 is further configured to make the length of the queue decrease by 1 after the corresponding link data is popped out from the queue, and make the current business application reach the next process node in the general sub-workflow after the corresponding business node corresponding to the link data processes the current business application, and the corresponding link data is popped out from the queue according to the position of the process node in the general sub-workflow, and the above steps are repeated until the length of the queue is 0.

[0095] Figure 11 FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application. Figure 11 As shown in the figure, the electronic device 110 includes a processor 111 and a memory 112 connected with the processor 111.

[0096] The memory 112 stores program instructions for implementing the workflow configuration method of any of the above embodiments.

[0097] The processor 111 is configured to execute the program instructions stored in the memory 112 to perform code testing.

[0098] The processor 111 can also be referred to as a CPU (Central Processing Unit). The processor 111 can be an integrated circuit chip with signal processing capability. The processor 111 can also be a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application-Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0099] The storage medium of the embodiment of the present application stores program instructions capable of implementing all the methods described above, and the storage medium can be non-volatile or volatile. The program instructions can be stored in the storage medium in the form of a software product, and include instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The storage medium described above includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes, or a terminal device such as a computer, a server, a mobile phone, or a tablet.

[0100] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the division of the apparatus embodiments is merely illustrative, and for example, the division of modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the modules can be indirect coupling or communication connection through some interface, and can be electrical, mechanical or in other forms.

[0101] In addition, each function module in the various embodiments of the present application can be integrated in a processing unit, or each module can exist alone physically, or two or more modules can be integrated in one unit. The integrated unit can be implemented in the form of hardware, or in the form of a software functional unit. The above is merely an embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent flow transformation using the content of the present application specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

[0102] The above is merely an embodiment of the present application, and it should be noted that for those skilled in the art, improvements can be made without departing from the inventive concept, and these are all within the protection scope of the present application.

Claims

1. A workflow configuration method, characterized by, The method comprises the following steps: obtaining a general service flow, and configuring a main workflow according to the general service flow, wherein the main workflow comprises virtual nodes; obtaining a current service flow, and configuring a general sub-workflow according to the current service flow; obtaining link data of a current service application, performing hierarchical division on the link data, and generating a service application chain; when the main workflow receives the current service application, enabling the current service application to be executed in the order of the main workflow; when the current service application reaches the virtual node, calling the general sub-workflow, and processing the current service application according to the general sub-workflow, wherein the processing of the current service application according to the general sub-workflow comprises the following steps: configuring the service application chain, loading the service application chain, disassembling the service application chain to obtain a disassembled service application chain, putting the disassembled service application chain into a queue, and processing the current service application according to the general sub-workflow and the queue; after the processing of the current service application by the general sub-workflow is completed, enabling the process nodes of the main workflow after the virtual node to continue to execute the current service application until the current service application is executed in the order of the main workflow.

2. The workflow configuration method of claim 1, wherein, The configuration of the main workflow according to the general service flow comprises the following steps: according to the general service flow, configuring the number and position of general nodes, the number and position of virtual nodes, and the flow direction between the process nodes in the main workflow, wherein the process nodes comprise general nodes and virtual nodes.

3. The workflow configuration method of claim 1, wherein, The configuration of the general sub-workflow according to the current service flow comprises the following steps: according to the current service flow, configuring the number and position of process nodes and the flow direction between the process nodes in the general sub-workflow.

4. The workflow configuration method of claim 1, wherein, The processing of the current service application according to the general sub-workflow and the queue after the disassembled service application chain is put into the queue comprises the following steps: the disassembled service application chain is put into the queue in the order of the service application chain before disassembly; when the current service application reaches a process node in the general sub-workflow, corresponding link data is popped out from the queue according to the position of the process node in the general sub-workflow, and the link data is used for processing the current service application by a corresponding service node.

5. The workflow configuration method of claim 4, wherein, after the corresponding link data is popped out from the queue, the length of the queue is reduced by 1; after the processing of the current service application by the link data corresponding service node, the current service application reaches the next process node in the general sub-workflow, corresponding link data is popped out from the queue according to the position of the process node in the general sub-workflow, and the above steps are repeated until the length of the queue is 0.

6. A workflow configuration apparatus characterized by comprising: The main workflow configuration module, the sub-workflow configuration module, the business application chain generation module, the first main workflow execution module, the sub-workflow execution module and the second main workflow execution module are included. The main workflow configuration module is configured to acquire a general business process and configure a main workflow according to the general business process, wherein the main workflow includes a virtual node. The sub-workflow configuration module is configured to acquire a current business process and configure a general sub-workflow according to the current business process. The business application chain generation module is configured to acquire link data of a current business application, perform hierarchical division on the link data, and generate a business application chain. The first main workflow execution module is configured to make the current business application execute according to an order of the main workflow when the main workflow receives the current business application. The sub-workflow execution module is configured to call the general sub-workflow when the current business application reaches the virtual node, and process the current business application according to the general sub-workflow, wherein processing the current business application according to the general sub-workflow includes configuring the business application chain, loading the business application chain, disassembling the business application chain to obtain a disassembled business application chain, putting the disassembled business application chain into a queue, and processing the current business application according to the general sub-workflow and the queue. The second main workflow execution module is configured to make process nodes of the main workflow after the virtual node continue to execute the current business application until the current business application is executed according to the order of the main workflow after the general sub-workflow processes the current business application.

7. An electronic device comprising a memory, a processor, the memory storing a computer program executable by the processor, characterized in that, The processor executes the computer program to implement the workflow configuration method of any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 7. The computer program is executed by the processor to implement the workflow configuration method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Workflow customization device and method

    CN106845741A

  • Workflow processing method and device and computer equipment

    CN114219435A