A workflow management method and system

By acquiring workflow task packages and processing task nodes according to preset splitting rules, a target model is generated and associated with the process instance. This solves the problem of low flexibility in process management in traditional workflow models and achieves more efficient workflow management.

CN115423430BActive Publication Date: 2026-07-03SHANGHAI GISINFO TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI GISINFO TECH CO LTD
Filing Date
2022-08-22
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In traditional workflow models, the task types and the number of tasks created for workflow nodes are mostly preset, resulting in low flexibility in process management when the amount of data to be processed changes.

Method used

By acquiring workflow task packages, determining splitting permissions, obtaining workflow information, generating model information, parsing task nodes, processing nodes according to preset splitting rules, forming a target model, and associating it with the current workflow instance, a target workflow is generated.

Benefits of technology

It enhances the flexibility of work task process management, improves system security, and increases the flexibility of workflow models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115423430B_ABST
    Figure CN115423430B_ABST
Patent Text Reader

Abstract

This application relates to the field of data processing technology, and in particular to a workflow management method and system. The method includes: acquiring a workflow task package; determining whether the user has permission to split the workflow task package; if the user has the splitting permission, acquiring workflow information; acquiring a current workflow instance based on the workflow information; reading the current workflow instance and generating corresponding model information; parsing the model information and generating a current task node; processing the current task node according to preset splitting rules to form a target model; and associating the target model and the current workflow instance to generate a target workflow. The workflow management method and system provided by this application improve the flexibility of workflow management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a workflow control method and system. Background Technology

[0002] Currently, before a workflow runs, it is generally necessary to set the task creation type and parameters for each workflow node. For example, the task creation type of a certain workflow node can be set to a split type, and the task creation quantity value corresponding to the split type can be set to a certain value. When the workflow runs, the data to be processed can be processed by creating tasks of that value. A workflow point refers to the transition point between each program in the workflow instance and the programs connected to it. Its types include regular type, split type, and merge type.

[0003] In traditional workflow models, the task types and the number of tasks created for workflow nodes are mostly pre-set. Once the workflow model is published, the task nodes are fixed. Therefore, when the amount of data to be processed at each workflow node changes after the workflow starts running, the workload of the workflow node cannot be adjusted accordingly in a timely manner, resulting in low flexibility in process management. Summary of the Invention

[0004] To improve the flexibility of work task process management, this application provides a workflow control method and system.

[0005] Firstly, this application provides a workflow control method, comprising the following steps:

[0006] Obtain workflow task packages;

[0007] Determine whether you have permission to split the workflow task package;

[0008] If the splitting permission is granted, then the workflow information is obtained;

[0009] Based on the workflow information, obtain the current workflow instance;

[0010] Read the current process instance and generate the corresponding model information;

[0011] Parse the model information to generate the current task node;

[0012] The current task node is processed according to preset splitting rules to form a target model;

[0013] By associating the target model with the current process instance, a target workflow is generated.

[0014] By adopting the above technical solution, the system obtains workflow task packages based on the call requests sent by the receiving business system, and then determines whether it has the permission to split the workflow task package, thereby improving the system's security. It further reads the current process instance from the workflow information, generates corresponding model information, and obtains the original fixed current task nodes in the current process instance by parsing the model information. The current task nodes are then processed according to preset splitting rules to form a complete target model. Finally, the target model is associated with the corresponding current process instance to generate a target workflow that meets the user's needs, thus improving the flexibility of workflow management.

[0015] Optionally, processing the current process task node according to preset splitting rules to form the target model includes the following steps:

[0016] Based on the current task node, obtain node information;

[0017] The node information is processed according to the preset splitting rules to generate split nodes;

[0018] Determine the node type of the split node;

[0019] If it is a necessary node, then set the necessary flow items of the split node to form the target model;

[0020] If it is a non-essential node, then the flow permission of the split node is matched to form the target model.

[0021] By adopting the above technical solution, the predetermined node information can be dynamically processed according to the preset splitting rules to generate corresponding splitting nodes. Furthermore, the flow configuration of necessary and unnecessary nodes in the splitting nodes can be set according to specific circumstances, thereby improving the flexibility of the workflow model.

[0022] Optionally, if the node is a necessary node, then setting the necessary flow items for the split node to form the target model includes the following steps:

[0023] Based on the split nodes, obtain the corresponding flow conditions;

[0024] Configure the necessary flow items for the split node according to the flow conditions;

[0025] The target model is formed by combining the necessary flow items.

[0026] By adopting the above technical solution, the necessary flow items are set according to the flow conditions of the split nodes, which makes it easier to flexibly divide the specific functions of the split nodes.

[0027] Optionally, before combining the necessary flow items to form the target model, the following steps are also included:

[0028] Determine the number of necessary flow items after configuration;

[0029] If multiple necessary transfer items exist, determine whether there is a transfer relationship between the multiple necessary transfer items;

[0030] If the aforementioned flow relationship exists, then obtain the trigger flow information between multiple necessary flow items;

[0031] Based on the attributes of the trigger flow information, obtain and set the associated trigger information of the necessary flow items.

[0032] By adopting the above technical solution, the association trigger information between multiple necessary flow items is set according to the attributes of the trigger flow information, thereby improving the flow efficiency and flexibility between necessary flow items.

[0033] Optionally, if the node is not a necessary node, then matching the flow permissions of the split node to form the target model includes the following steps:

[0034] Obtain the configuration attributes corresponding to the non-essential nodes;

[0035] Parse the configuration attributes to generate the completion criteria for the unnecessary nodes;

[0036] The target model is formed by matching the flow permissions of the split nodes according to the completion criteria.

[0037] By adopting the above technical solution, corresponding actual completion standards are generated based on the configuration attributes of non-essential nodes. Then, matching flow permissions are matched according to the actual completion standards. This makes it easier to divide the corresponding flow permissions according to the actual situation of non-essential nodes in the target model, thereby further improving the efficiency and flexibility of the workflow.

[0038] Optionally, the step of matching the flow permissions of the splitting nodes according to the completion criteria to form the target model includes the following steps:

[0039] Determine if multiple completion criteria exist;

[0040] If there are multiple completion criteria, the circulation time of multiple completion criteria is set according to the preset time limit criteria to generate the target circulation criteria;

[0041] The target model is formed by matching the transfer permissions of the splitting nodes according to the target transfer criteria.

[0042] By adopting the above technical solutions and setting corresponding processing times based on the actual situation of multiple completion standards, the processing efficiency of unnecessary nodes can be improved.

[0043] Optionally, before reading the current process instance and generating the corresponding model information, the following steps are also included:

[0044] Based on the current process instance, obtain the corresponding process attribute information;

[0045] Determine whether there are multiple identical instances of the current process based on the process attribute information;

[0046] If multiple identical instances of the current process exist, then each instance of the current process is assigned an identifier according to a preset identification rule.

[0047] By adopting the above technical solution, multiple identical current process instances can be easily distinguished based on the identification number, and the relevant data of the current process instance can be easily obtained through the identification number.

[0048] Optionally, after setting the identifier corresponding to each of the multiple identical current process instances according to a preset identification rule, the following step is further included:

[0049] Determine whether there are multiple instances of the current process running in parallel;

[0050] If there are multiple instances of the current process running in parallel, then a distributed lock is set for the multiple instances of the current process running in parallel according to the identifier.

[0051] By adopting the above technical solution, the current process instance is locked using a distributed lock, reducing the possibility of other threads modifying it.

[0052] Optionally, after associating the target model and the current process instance to obtain the target workflow, the following steps are further included:

[0053] According to the target workflow, obtain the current model information;

[0054] Based on the current model information, remove irrelevant models from the target workflow.

[0055] By adopting the above technical solution, irrelevant models that are not related to the current model information in the target workflow are removed, which facilitates the improvement of the operating efficiency of the target workflow.

[0056] Secondly, this application also provides a workflow control system, including:

[0057] The first acquisition module is used to acquire workflow task packages;

[0058] The judgment module is used to determine whether the workflow task package has splitting permissions.

[0059] The permission module is used to obtain workflow information if the splitting permission is obtained.

[0060] The second acquisition module is used to acquire the current process instance based on the workflow information.

[0061] The reading module is used to read the current process instance and generate corresponding model information;

[0062] The parsing module is used to parse the model information and generate the current task node;

[0063] The splitting module is used to process the current task node according to preset splitting rules to form a target model;

[0064] The process configuration module is used to associate the target model and the current process instance to obtain the target workflow.

[0065] By adopting the above technical solution, based on the call request sent by the receiving business system, the first acquisition module obtains the workflow task package. Then, the judgment module determines whether the workflow task package has the splitting permission. If it has the corresponding splitting permission, the permission module obtains the corresponding workflow information, thereby improving the system's security. Further, the second acquisition module obtains the current process instance, and then the reading module reads the current process instance from the workflow information to generate the corresponding model information. Combined with the parsing module, the model information is parsed to obtain the original fixed current task node in the current process instance. This allows the splitting module to process the current task node according to preset splitting rules to form a complete target model. Finally, the process configuration module associates the target model with the corresponding current process instance to generate a target workflow that meets the user's needs, thereby improving the flexibility of work task workflow management.

[0066] In summary, this application offers the following beneficial technical effects: By adopting the above technical solution, the system obtains workflow task packages based on the call requests sent by the receiving business system, and then determines whether it has the permission to split these workflow task packages, thereby improving system security. Furthermore, it reads the current process instance from the workflow information, generates corresponding model information, and obtains the original fixed current task nodes in the current process instance by parsing the model information. It then processes the current task nodes using preset splitting rules to form a complete target model. Finally, it associates the target model with the corresponding current process instance to generate a target workflow that meets user needs, thus improving the flexibility of workflow management. Attached Figure Description

[0067] Figure 1 This is a flowchart illustrating steps S101 to S108 of a workflow control method according to this application.

[0068] Figure 2 This is a flowchart illustrating steps S201 to S205 of a workflow control method according to this application.

[0069] Figure 3 This is a flowchart illustrating steps S301 to S303 in a workflow control method according to this application.

[0070] Figure 4 This is a flowchart illustrating steps S401 to S404 of a workflow control method according to this application.

[0071] Figure 5 This is a flowchart illustrating steps S501 to S503 in a workflow control method according to this application.

[0072] Figure 6 This is a flowchart illustrating steps S601 to S603 in a workflow control method according to this application.

[0073] Figure 7 This is a flowchart illustrating steps S701 to S703 in a workflow control method according to this application.

[0074] Figure 8 This is a flowchart illustrating steps S801 to S802 in a workflow control method according to this application.

[0075] Figure 9 This is a flowchart illustrating steps S901 to S902 in a workflow control method according to this application.

[0076] Figure 10 This is a schematic diagram of a workflow control system according to this application.

[0077] Explanation of reference numerals in the attached figures:

[0078] 1. First Acquisition Module; 2. Judgment Module; 3. Permission Module; 4. Second Acquisition Module; 5. Reading Module; 6. Parsing Module; 7. Splitting Module; 8. Process Configuration Module. Detailed Implementation

[0079] The following is in conjunction with the appendix Figure 1-10 This application will be described in further detail.

[0080] This application discloses a workflow control method, referring to... Figure 1 This includes the following steps:

[0081] S101. Obtain the workflow task package;

[0082] S102. Determine whether you have permission to split workflow task packages;

[0083] S103. If you have splitting permissions, obtain workflow information;

[0084] S104. Obtain the current process instance based on the workflow information;

[0085] S105. Read the current process instance and generate the corresponding model information;

[0086] S106. Parse the model information and generate the current task node;

[0087] S107. Process the current task node according to the preset splitting rules to form the target model;

[0088] S108. Associate the target model with the current process instance to generate the target workflow.

[0089] In step S101, the workflow in the workflow task package refers to the automation of part or all of a business process in a computer application environment. It is an abstract and generalized description of the business rules between the workflow and its operation steps. The main problem that the workflow solves is: to achieve a certain business goal, to automatically transfer documents, information or tasks between multiple participants according to certain predetermined rules using computers.

[0090] The splitting permission in steps S102 to S103 refers to the permission to split the workflow task package. The workflow information refers to the overall workflow information related to initiating the task, including task nodes, the operations required to complete the task, and the connection relationships between the task nodes.

[0091] In practical applications, after receiving a call request from the business system, the system immediately verifies whether the current operation has the relevant splitting permissions. If approved, it further reads the workflow task package, obtains the corresponding workflow information, and starts the task splitting interface of the workflow information to split the task.

[0092] In steps S104 to S105, the current process instance refers to the process instance currently initiated by the initiator. The process instance represents the execution instance of the process definition. A process instance includes all running nodes, and this object can be used to understand the progress and other information of the current process instance.

[0093] In practical applications, when a user or program initiates a process according to the defined process content, this is a process instance. For example, in the business trip process definition, the process instance is: Process definition: Business trip; Process instance: Participant (user) Xiao Zhang creates a business trip order (order number: 1001) and initiates a business trip application process (dynamic); Of course, other users can also create the current business trip application process.

[0094] The model information in steps S105 to S106 mainly consists of information about the model formed by tasks, connections between tasks, task configuration information, task flow order, etc., and the tasks themselves or between tasks. Among them, tasks represent the various nodes in the process and the task connections to which nodes the related business flows to after completion. The connections between tasks refer to the fact that when configuring each task, it is also necessary to specify which operations the related business will perform when it is in that task.

[0095] For example, in the business trip process of the company's human resources management system, the workflow approval tasks include: creating an application, manager approval, general manager approval, and financial approval. The application creation form includes fields such as the traveler's name, reason for the trip, trip duration, estimated number of days, destination, and relevant status display. After the application creation task node is completed, it flows to the manager approval task node. After the manager approval task node is completed, it flows to the general manager approval task node. After the general manager approval task node is completed, it flows to the financial approval task node.

[0096] In steps S107 to S108, the preset splitting rules refer to the task splitting information provided by the user. According to the preset splitting rules, the current task node can be added, modified, viewed, and deleted. The target model refers to the model information formed after the current task node is processed by the preset splitting rules. The target workflow refers to the workflow that meets the user's needs by associating the generated target model with the current workflow instance.

[0097] The workflow control method provided in this embodiment obtains a workflow task package based on the call request sent by the business system, and then determines whether it has the permission to split the workflow task package, thereby improving the system's security. It further reads the current process instance in the workflow information, generates the corresponding model information, obtains the original fixed current task node in the current process instance by parsing the model information, processes the current task node in combination with preset splitting rules, and forms a complete target model. Finally, it associates the target model with the corresponding current process instance to generate a target workflow that meets the user's needs, thereby improving the flexibility of workflow management.

[0098] In one of the embodiments provided in this example, such as Figure 2As shown, step S107 includes the following steps:

[0099] S201. Obtain node information based on the current task node;

[0100] S202. Process node information according to preset splitting rules to generate splitting nodes;

[0101] S203. Determine the node type of the split node;

[0102] S204. If it is a necessary node, set the necessary flow items for the split node to form the target model;

[0103] S205. If it is a non-essential node, then match the flow permissions of the split node to form the target model.

[0104] In practical applications, node information refers to the specific task information contained in the current task node; split node refers to the new node and related information generated by processing node information according to user needs; necessary node refers to the node that must be passed to complete the workflow; non-necessary node refers to the node in the task node that does not need to complete the task before the workflow starts; necessary workflow item refers to the task item that must be completed to complete the task corresponding to the necessary node; and workflow permission refers to the permission assigned to the next task node based on the completion level of the task configured in the task node.

[0105] For example, if a user or program initiates a business trip process according to the defined process, and the first task node in the business trip process is to create a business trip information form, then the business trip information form and some personal work-related information of the person initiating the business trip contained in the business trip information form constitute the node information for creating the business trip information form.

[0106] In the aforementioned application scenario, Xiao Zhang initiated a business trip approval process. The first task node of the business trip approval process is to create a business trip information form. Clicking to create a business trip information form returns a business trip form (form number: 1001), which displays business trip node information such as the traveler's name, business trip project, number of business trip days, and business trip destination.

[0107] For example, the business trip approval process includes creating a business trip information form, manager approval, general manager approval, and financial approval task nodes. The flow of the task nodes is as follows: after completing the creation of the business trip information form, it flows to the manager for approval; after the manager's approval, it flows to the general manager for approval; after the general manager's approval, it flows to the financial approval. According to the preset splitting rules, the creation of the business trip information form and the manager's approval are split, and a supervisor approval task node is added. If the supervisor approval task node is determined to be a necessary node, the necessary flow items such as the department, the name of the department head, and the supervisor's identity authentication are set in the supervisor approval task node to form the target model of the supervisor approval task node.

[0108] For example, based on preset splitting rules, the task nodes for general manager approval and financial approval can be split, and unnecessary nodes for general manager notes can be added and matched with corresponding permissions. The general manager notes node has a note box in which the general manager can fill in the text information that he / she needs to add. After the general manager approval task node is completed, it will flow to the general manager notes node. Even if there is no content in the note box, as long as the submit button of the general manager notes node is clicked, the corresponding flow permission will be matched and it will flow to financial approval.

[0109] The workflow control method provided in this embodiment can dynamically process predetermined node information according to preset splitting rules, generate corresponding splitting nodes, and further set the flow configuration of necessary and unnecessary nodes in the splitting nodes according to specific circumstances, thereby improving the flexibility of the workflow model.

[0110] In one of the embodiments provided in this example, such as Figure 3 As shown, step S204 includes the following steps:

[0111] S301. Obtain the corresponding flow conditions based on the split nodes;

[0112] S302. Configure the necessary flow items for the split nodes according to the flow conditions;

[0113] S303. Combine the necessary flow items to form the target model.

[0114] In practical applications, the transition conditions refer to the conditions under which necessary transition items can transition between each other. Only when the transition conditions of each necessary transition item in a necessary node are met can the transition of the necessary node to the next task node be triggered. The necessary transition items can have a transition order or be at the same level. For the sake of explaining this solution, we will take the case where the necessary transition items have a transition order as an example.

[0115] For example, the wall decoration workflow includes fixed task nodes such as inspecting the original wall surface, protecting the finished product, applying the curing layer, applying the putty layer, applying the primer and topcoat, and final acceptance. The task standards for completing the final acceptance task node are uploading on-site inspection photos, verifying the image information, and scoring the acceptance. The task standards for completing the final acceptance task node are modified according to the preset splitting rules to obtain the final acceptance splitting node. Then, the corresponding necessary flow items are set according to the flow conditions of the final acceptance splitting node. The necessary flow items include uploading on-site inspection photos and corresponding text descriptions, verifying the image information and corresponding text descriptions, and scoring the acceptance.

[0116] In the entire wall decoration workflow, the standard for inspecting the original wall surface is as follows: ensure the wall surface moisture content is below 10%, upload the moisture content data of the original wall surface to the original wall surface inspection task node, and if it meets the corresponding standard, proceed from the original wall surface inspection task node to the finished product protection task node. The standard for finished product protection is as follows: there should be no large amount of dust or paint stains on the installed custom products, upload on-site photos of the finished products to be protected to the finished product protection task node, and if it meets the corresponding standard, proceed from the finished product protection task node to the coating and curing layer task node. These transfer standards refer to the standards for the transfer between inspecting the original wall surface, finished product protection, coating and curing layer, putty layer, primer and topcoat application, and final acceptance.

[0117] The workflow standards for applying the curing layer are as follows: All walls requiring a curing layer have been coated with it. Videos of the wall surface are uploaded, and if the wall meets the corresponding standards, the workflow moves from the curing layer task node to the putty layer task node. The workflow standards for the putty layer task node are as follows: The wall surface flatness meets the corresponding standards. The wall surface flatness information is uploaded to the putty layer task node, and if it meets the corresponding standards, the workflow moves from the putty layer task node to the primer and topcoat application task node. The workflow standards for the primer and topcoat application task node are as follows: One coat of primer and two coats of topcoat. Videos of the primer and topcoat application are uploaded to the primer and topcoat application task node, and if the application meets the corresponding standards, the workflow moves from the primer and topcoat application task node to the completion and acceptance task node.

[0118] The flow conditions and flow order for each necessary flow item in the completion and acceptance breakdown node are as follows: The flow condition for uploading on-site acceptance photos and corresponding text descriptions is that each uploaded on-site acceptance photo must be accompanied by a corresponding text description. If the uploaded on-site acceptance photos and corresponding text descriptions meet the corresponding flow conditions, the flow proceeds from the "Upload on-site acceptance photos and corresponding text descriptions" item to the "Verification of image information and corresponding text descriptions" item. The flow condition for verifying image information and corresponding text descriptions is that the content of the text description must be consistent with the information displayed in the corresponding image. If the verification of image information and corresponding text descriptions meets the corresponding flow conditions, the flow proceeds from the "Verification of image information and corresponding text descriptions" item to the "Acceptance Scoring" item. Finally, the acceptance information is scored based on the acceptance score. The flow condition for the acceptance score is that the obtained score is not lower than 60 points. If the score is not lower than 60 points, the node task of the completion and acceptance breakdown node is completed.

[0119] The workflow control method provided in this embodiment sets the necessary flow items according to the flow conditions of the split nodes, thereby facilitating the flexible division of the specific functions of the split nodes.

[0120] In one of the embodiments provided in this example, such as Figure 4As shown, the following steps are included before step S303:

[0121] S401. Determine the number of necessary flow items after configuration;

[0122] S402. If there are multiple necessary flow items, determine whether there is a flow relationship between the multiple necessary flow items;

[0123] S403. If a flow relationship exists, obtain the trigger flow information between multiple necessary flow items;

[0124] S404. Based on the attributes of the trigger flow information, obtain and set the associated trigger information of the necessary flow items.

[0125] In practical applications, flow relationship refers to the flow connection between necessary flow items, trigger flow information refers to information that can trigger the flow of the current necessary flow item, and associated trigger information refers to information with the same attribute standard as the trigger flow information in the current necessary flow item.

[0126] For example, Xiao Zhang initiated a business trip approval process. The original fixed task nodes of the business trip approval process include creating a business trip information form, manager approval, general manager approval, and financial approval. According to the preset splitting rules, the creation of the business trip information form and manager approval are split, and a supervisor approval splitting node is added. The flow of the task nodes is as follows: after completing the creation of the business trip information form, it flows to supervisor approval, after supervisor approval, it flows to manager approval, after manager approval, it flows to general manager approval, and after general manager approval, it flows to financial approval.

[0127] It was determined that the supervisor approval split node is a necessary node. The supervisor approval split node contains necessary flow items such as the department, the name of the department head, and the supervisor's identity authentication. The flow relationship between the necessary flow items is as follows: after completing the department item, it flows to the department head's name item, and after completing the department head's name item, it flows to the supervisor's identity authentication item. The trigger flow information in the supervisor's identity authentication item is the supervisor's ID card image information. Based on the attributes of the ID card image information, the identity association trigger information of the supervisor's identity authentication item is obtained and set. The identity association trigger information includes all information that can verify the supervisor's identity, including driver's license and other relevant identity verification information.

[0128] The workflow control method provided in this embodiment sets the associated trigger information between multiple necessary workflow items according to the attributes of the trigger flow information, thereby improving the flow efficiency and flexibility between necessary workflow items.

[0129] In one of the embodiments provided in this example, such as Figure 5 As shown, step S205 includes the following steps:

[0130] S501, Obtain the configuration attributes corresponding to unnecessary nodes;

[0131] S502. Parse configuration attributes and generate completion criteria for unnecessary nodes;

[0132] S503. Based on the completion criteria, match the flow permissions of the split nodes to form the target model.

[0133] In practical applications, configuration attributes refer to setting information attributes for non-essential nodes, and completion criteria refer to the standards for non-essential nodes to perform flow.

[0134] For example, Xiao Zhang initiated a business trip approval process. The business trip approval process includes the original fixed task nodes of creating a business trip information form, manager approval, general manager approval, and financial approval. According to the preset splitting rules, the task nodes of general manager approval and financial approval are split, and non-essential nodes with general manager notes are added. The general manager notes node has a note box, in which the general manager fills in the text information that he needs to add.

[0135] Once the General Manager approves the task, it will be transferred to the General Manager's Notes node. The General Manager's Notes node is configured with non-essential information to be filled in. Based on the configuration of the General Manager's Notes node, the corresponding completion criteria are generated, i.e. whether there is a submission action. That is, even if no content is filled in the notes box, as long as the submit button of the General Manager's Notes node is clicked, the corresponding transfer permissions will be matched according to the submission action, and it can be transferred to the Finance Approval.

[0136] The workflow control method provided in this embodiment generates corresponding actual completion standards based on the configuration attributes of non-essential nodes, and further matches the corresponding flow permissions based on the actual completion standards. This facilitates the division of corresponding flow permissions based on the actual situation of non-essential nodes in the target model, thereby further improving the operational efficiency and flexibility of the workflow.

[0137] In one of the embodiments provided in this example, such as Figure 6 As shown, step S503 includes the following steps:

[0138] S601. Determine if multiple completion criteria exist;

[0139] S602. If there are multiple completion standards, the circulation time of multiple completion standards shall be set according to the preset time limit standards, and the target circulation standard shall be generated.

[0140] S603. Match the transfer permissions of the split nodes according to the target transfer standard to form the target model.

[0141] In practical applications, the preset time limit standard refers to the completion time specified for non-essential transfer items in the split node, the transfer time refers to the time period during which transfer occurs after the specified completion time, and the target transfer standard refers to the completion time standard specified for the actual situation of each of the multiple completion standards.

[0142] For example, Xiao Zhang initiated a business trip approval process. The business trip approval process includes the original fixed task nodes of creating a business trip information form, manager approval, general manager approval, and financial approval. According to the preset splitting rules, the task nodes of general manager approval and financial approval are split, and non-essential nodes of general manager notes are added. The general manager notes node has multiple completion criteria, including entering note text information, entering note image information, and uploading note file.

[0143] Based on preset time limits, the processing time for entering text notes is set to 1 day, the processing time for entering image notes is set to 2 days, and the processing time for uploading note files is set to 3 days.

[0144] Based on the processing time of 1 day for text information entry, 2 days for image information entry, and 3 days for file upload, corresponding target processing standards for the General Manager's remarks are generated.

[0145] The workflow control method provided in this embodiment sets the corresponding processing time according to the actual situation of multiple completion standards, thereby improving the processing efficiency of unnecessary nodes.

[0146] In one of the embodiments provided in this example, such as Figure 7 As shown, the following steps are included before step S105:

[0147] S701. Obtain the corresponding process attribute information based on the current process instance;

[0148] S702. Determine whether there are multiple identical current process instances based on process attribute information;

[0149] S703. If there are multiple instances of the same current process, set the corresponding identifier for each instance of the same current process according to the preset identification rules.

[0150] In practical applications, process attribute information refers to the attribute information of all current process instances contained in the entire workflow, preset identification rules refer to the identification information corresponding to the current process instance, and the identifier number refers to the ID number corresponding to each current process instance.

[0151] For example, if Zhang, Li, and Wang simultaneously initiate a business trip application process, the system analyzes the business trip application process's attribute information. After determining that there are three identical current business trip process instances, the system assigns an identifier of 10 to the current business trip process instance based on preset identification rules. Furthermore, it sets the identifier of Zhang's current process instance to 1001, Li's to 1002, and Wang's to 1003. The identifiers can be sorted from largest to smallest according to the time sequence of initiating the business trip application process. On the other hand, the system can obtain relevant data of the current process instance by entering the corresponding identifier in the query box.

[0152] The workflow control method provided in this embodiment can easily distinguish multiple identical current process instances based on the identification number, and can also easily obtain relevant data of the current process instance through the identification number.

[0153] In one of the embodiments provided in this example, such as Figure 8 As shown, the following steps are included after step S703:

[0154] S801. Determine if there are multiple concurrent instances of the current process;

[0155] S802. If there are multiple concurrent current process instances, then set a distributed lock for the multiple concurrent current process instances according to their identifiers.

[0156] In practical applications, a distributed lock refers to a lock in a distributed system. In monolithic applications, locks are used to control access to shared resources, while distributed locks are used to control access to shared resources in distributed systems. Unlike monolithic applications, the smallest unit of competition for shared resources in distributed systems has been upgraded from threads to processes.

[0157] For example, Zhang initiates a business trip application process with the corresponding identifier 1001. At the same time, Wang also initiates a business trip application process with the corresponding identifier 1002. The system uses identifier 1001 to lock the business trip process instance initiated by Zhang and identifier 1002 to lock the business trip process instance initiated by Wang. Because there are parallel business trip application tasks, when the application task of the current executor is split, others may also submit their own tasks. If locking is not performed, it may cause abnormal process instance data.

[0158] The workflow control method provided in this embodiment locks the current process instance using a distributed lock, reducing the possibility of other threads modifying it.

[0159] In one of the embodiments provided in this example, such as Figure 9 As shown, the following steps are included after step S108:

[0160] S901. Obtain the current model information according to the target workflow;

[0161] S902. Based on the current model information, remove irrelevant models from the target workflow.

[0162] In practical applications, current model information refers to all kinds of information contained in the target workflow, while irrelevant models refer to models that do not correspond to current model information.

[0163] For example, Xiao Zhang initiated a business trip approval process. The business trip approval process includes the original fixed task nodes of creating a business trip information form, supervisor approval, manager approval, general manager approval, and financial approval. According to the preset splitting rules, the creation of the business trip information form and manager approval are split, and a parallel splitting node with supervisor approval is added: team leader approval. At this time, the task node of supervisor approval has been replaced by the splitting node of team leader approval, and supervisor approval is an irrelevant model.

[0164] The workflow control method provided in this embodiment removes irrelevant models that are not related to the current model information in the target workflow, thereby improving the operating efficiency of the target workflow.

[0165] This application also discloses a workflow control system, such as... Figure 10 As shown, it includes an acquisition module 1, a judgment module 2, a permission module 3, a second acquisition module 4, a reading module 5, a parsing module 6, a splitting module 7, and a process configuration module 8;

[0166] The first acquisition module 1 is used to acquire workflow task packages;

[0167] Module 2 is used to determine whether the workflow task package has splitting permissions.

[0168] Permission module 3 is used to obtain workflow information if it has the splitting permission;

[0169] The second acquisition module 4 is used to acquire the current process instance based on the workflow information.

[0170] Reading module 5 is used to read the current process instance and generate corresponding model information;

[0171] Parsing module 6 is used to parse the model information and generate the current task node;

[0172] The splitting module 7 is used to process the current task node according to preset splitting rules to form a target model;

[0173] Process configuration module 8 is used to associate the target model and the current process instance to obtain the target workflow.

[0174] The workflow management system provided in this embodiment obtains a workflow task package through the first acquisition module 1 based on the call request sent by the business system. Then, the judgment module 2 determines whether the workflow task package has the splitting permission. If it has the corresponding splitting permission, the permission module 3 obtains the corresponding workflow information, thereby improving the system's security. Further, the second acquisition module 4 obtains the current process instance, and then the reading module 5 reads the current process instance from the workflow information to generate the corresponding model information. Combined with the parsing module 6, the model information is parsed to obtain the original fixed current task node in the current process instance. This allows the splitting module 7 to process the current task node according to preset splitting rules to form a complete target model. Finally, the workflow configuration module 8 associates the target model with the corresponding current process instance to generate a target workflow that meets the user's needs, thereby improving the flexibility of workflow management.

[0175] It should be noted that the workflow control system provided in this application embodiment also includes each module and / or corresponding sub-module corresponding to the logical function or logical step of any of the above workflow control methods, to achieve the same effect as each logical function or logical step, which will not be elaborated here.

[0176] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A workflow management method, characterized by, Includes the following steps: Obtain workflow task packages; Determine whether you have permission to split the workflow task package; If the splitting permission is granted, then the workflow information is obtained; Based on the workflow information, obtain the current workflow instance; Read the current process instance and generate the corresponding model information; Parse the model information to generate the current task node; The current task node is processed according to preset splitting rules to form a target model; By associating the target model with the current process instance, a target workflow is generated; The process of processing the current task node according to the preset splitting rules to form the target model includes the following steps: Based on the current task node, obtain node information; The node information is processed according to the preset splitting rules to generate split nodes; Determine the node type of the split node; If it is a necessary node, then set the necessary flow items of the split node to form the target model; If it is a non-essential node, then match the flow permissions of the split node to form the target model; If the node is a necessary node, then setting the necessary flow items for the split node to form the target model includes the following steps: Based on the split nodes, obtain the corresponding flow conditions; Configure the necessary flow items for the split node according to the flow conditions; The target model is formed by combining the necessary flow items; The following steps are included before combining the necessary flow items to form the target model: Determine the number of necessary flow items after configuration; If multiple necessary transfer items exist, determine whether there is a transfer relationship between the multiple necessary transfer items; If the aforementioned flow relationship exists, then obtain the trigger flow information between multiple necessary flow items; Based on the attributes of the trigger flow information, obtain and set the associated trigger information of the necessary flow items; If the node is not a necessary node, then matching the flow permissions of the split node to form the target model includes the following steps: Obtain the configuration attributes corresponding to the non-essential nodes; Parse the configuration attributes to generate the completion criteria for the unnecessary nodes; The target model is formed by matching the flow permissions of the split nodes according to the completion criteria. The process of matching the flow permissions of the split nodes according to the completion criteria to form the target model includes the following steps: Determine if multiple completion criteria exist; If there are multiple completion criteria, the circulation time of multiple completion criteria is set according to the preset time limit criteria to generate the target circulation criteria; The target model is formed by matching the transfer permissions of the splitting nodes according to the target transfer criteria.

2. The workflow control method according to claim 1, characterized in that, Before reading the current process instance and generating the corresponding model information, the following steps are also included: Based on the current process instance, obtain the corresponding process attribute information; Determine whether there are multiple identical instances of the current process based on the process attribute information; If multiple identical instances of the current process exist, then each instance of the current process is assigned an identifier according to a preset identification rule.

3. The workflow control method according to claim 2, characterized in that, After setting the identifier corresponding to each of the multiple identical current process instances according to the preset identification rules, the following steps are also included: Determine whether there are multiple instances of the current process running in parallel; If there are multiple instances of the current process running in parallel, then a distributed lock is set for the multiple instances of the current process running in parallel according to the identifier.

4. The workflow control method according to claim 1, characterized in that, After associating the target model and the current process instance to generate the target workflow, the following steps are also included: According to the target workflow, obtain the current model information; Based on the current model information, remove irrelevant models from the target workflow.

5. A workflow control system employing the workflow control method as described in any one of claims 1-4, characterized in that, include: The first acquisition module (1) is used to acquire workflow task packages; The judgment module (2) is used to determine whether the workflow task package has splitting permissions. The permission module (3) is used to obtain workflow information if it has the splitting permission; The second acquisition module (4) is used to acquire the current process instance based on the workflow information. The reading module (5) is used to read the current process instance and generate the corresponding model information; The parsing module (6) is used to parse the model information and generate the current task node; The splitting module (7) is used to process the current task node according to the preset splitting rules to form a target model; The process configuration module (8) is used to associate the target model and the current process instance to obtain the target workflow.