Workflow task priority calculation method and workflow management system
Through the workflow task priority calculation method, combined with the estimated time consumption and resource usage of the task, the comprehensive priority of the task is determined, which solves the problem of lack of priority attributes when the scheduling engine allocates tasks, and improves the execution efficiency and progress of the process. .
Patent Information
- Application Number
- CN202410886062.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing scheduling engine lacks priority attributes when allocating tasks, resulting in unreasonable task execution order and affecting the progress of the entire process.
Through the workflow task priority calculation method, the time priority and resource priority of the task are calculated based on the estimated time consumption, resource usage and weight coefficient of the task, and the comprehensive priority is determined by combining the two, and the task execution order is reasonably arranged. Avoid time and resource conflicts.
It effectively avoids process delays caused by time and resource conflicts, and improves the execution efficiency and overall progress of the work process.
Smart Images

Figure CN118567862A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of task scheduling, and in particular to a workflow task priority calculation method and a workflow management system. Background Art
[0002] Since the tasks currently assigned to users by various scheduling engines do not have priority attributes, users are arbitrary in selecting tasks to be executed, which may result in tasks that actually need to be processed in priority not being processed in a timely manner, thus affecting the progress of the entire process. Summary of the invention
[0003] In view of this, the present invention provides a workflow task priority calculation method and a workflow management system to solve the problem that the progress of the entire process is affected by the unreasonable order of executing tasks.
[0004] In a first aspect, the present invention provides a method for calculating a workflow task priority, the method comprising: determining an estimated time consumption of each task based on basic data of each task in a target workflow task; determining resources used by each task, as well as a resource priority and a weight coefficient of each resource used by each task based on the basic data of each task in the target workflow task; determining a time priority of each task based on the estimated time consumption of each task; determining a resource priority of each task based on the resource priority and a weight coefficient of each resource used by each task; and determining a comprehensive priority of each task based on its time priority and resource priority.
[0005] In an optional implementation, the time priority of each task is determined based on the estimated time consumption of each task, including: establishing a task flow chart for each task based on the process of the target workflow task, in which there are dependencies between the tasks; using a critical path algorithm to find the critical path in the task flow chart, and assigning priorities to the tasks on the critical path, the critical path being determined based on the estimated time consumption of the tasks included in each path; removing the critical path from the task flow chart to obtain an updated task flow chart; repeatedly executing the steps of using a critical path algorithm to find the critical path in the task flow chart, and assigning priorities to the tasks on the critical path, until there is no critical path in the task flow chart, and obtaining the time priority of each task; the priority assigned to the tasks on the critical path in each cycle is lower than the priority assigned to the tasks on the critical path in the previous cycle.
[0006] The method provided by the embodiment of the present invention combines the time priority and resource priority of each task when multiple tasks are generated at the same time, and obtains the comprehensive priority of the task. The order of executing tasks is determined based on the comprehensive priority, thereby avoiding problems such as overall delays in the process due to time conflicts, resource conflicts, etc.
[0007] In an optional implementation, the time priority of each task is determined based on the estimated time of each task, including: correcting the estimated time of the task based on the historical data of the task, and / or real-time data to obtain a corrected estimated time, the historical data including the actual waiting time and the actual execution time of the task; determining the time priority of each task based on the corrected estimated time of each task.
[0008] In an optional implementation, the resource priority of each task is determined based on the resource priority and weight coefficient of each resource used by each task, including: weighted accumulation of the resource priority and weight coefficient of the resources used by each task to obtain the resource priority of each task.
[0009] In an optional implementation, the resource priority of each task is determined based on the resource priority and weight coefficient of each resource used by each task, including: correcting the resource priority of the task based on historical data of the task, and / or real-time data, to obtain a corrected resource priority, the historical data including actual usage information of the resources by the task; determining the resource priority of each task based on the corrected resource priority and weight coefficient of each resource used by each task.
[0010] In an optional implementation, the comprehensive priority of each task is determined based on the time priority and resource priority of each task, including: calculating the overall priority of each task based on the time priority, resource priority, and coefficients of the time priority and resource priority of each task; calculating the comprehensive priority of each task based on the priority coefficient of the target workflow task to which each task belongs and the overall priority of each task.
[0011] The second aspect of the present invention provides a workflow management system, including: a process scheduling engine, used to initialize the basic data of each task in the target workflow task; a time priority evaluation module, used to determine the estimated time of each task based on the basic data of each task in the target workflow task; determine the time priority of each task based on the estimated time of each task; a resource priority evaluation module, used to determine the resources used by each task based on the basic data of each task in the target workflow task, as well as the resource priority and weight coefficient of each resource used by each task; determine the resource priority of each task based on the resource priority and weight coefficient of each resource used by each task; a comprehensive priority evaluation module, used to determine the comprehensive priority of each task based on the time priority and resource priority of each task, so that the process scheduling engine schedules the execution of each task according to the comprehensive priority of each task.
[0012] In an optional embodiment, it also includes: a database for storing basic data and historical data of each task, the historical data is formed according to the parameters during the execution process after the execution of each task is completed; a cache unit for storing real-time data of each task, and when the task is completed, the real-time data corresponding to the task in the cache unit is deleted; the time priority evaluation module is also used to correct the estimated time of the task according to the historical data and / or real-time data of the task, to obtain the corrected estimated time, and determine the time priority of each task according to the corrected estimated time; the resource priority evaluation module is also used to correct the resource priority of the task according to the historical data and / or real-time data of the task, to obtain the corrected resource priority, and determine the resource priority of each task according to the corrected resource priority and the weight coefficient.
[0013] In a third aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the disaster emergency decision-making support method of the first aspect or any corresponding embodiment thereof.
[0014] In a fourth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the disaster emergency decision support method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 is a flowchart of a method for calculating workflow task priority according to an embodiment of the present invention;
[0017] Figure 2 is a structural block diagram of a workflow management system according to an embodiment of the present invention;
[0018] Figure 3 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] Workflow Management is a system that completes the definition, management and execution of workflows through software execution driven by the formal representation of workflows. It is a production management system commonly used in digital enterprises.
[0021] The process scheduling engine is the core functional module responsible for task scheduling in the workflow management system. This module is responsible for creating, allocating, and scheduling tasks that can be executed in real time according to the definition of business processes.
[0022] A process instance refers to an actual execution of a business process. A workflow management system can define multiple business processes; a business process can have multiple process instances executing at the same time.
[0023] Workflow tasks are a series of independent tasks or business processing steps defined in a business process in a workflow management system. The execution of tasks may require human participation or the use of certain resources.
[0024] Since the execution of tasks takes time and requires the use of certain resources, if the execution priority of each task cannot be reasonably arranged, the execution efficiency of the overall workflow will be reduced.
[0025] According to an embodiment of the present invention, an embodiment of a workflow task priority calculation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] In this embodiment, a method for calculating the priority of a workflow task is provided. Figure 1 is a flowchart of a method for calculating workflow task priority according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0027] Step S101, determining the estimated time consumption of each task according to the basic data of each task in the target workflow task.
[0028] In an optional embodiment, the basic data of each task in the target workflow task is initialized by the process scheduling engine when creating the task. The basic data of each task includes basic data related to time and basic data related to resources.
[0029] Among them, the basic data related to time includes but is not limited to the preliminary estimate of the task execution time; the basic data related to resources includes but is not limited to the executors on which the task is dependent, the types of resources used when executing the task, the total amount of resources, the number of resources, the amount of resource consumption, whether the resources are exclusive, restrictions on resource use, etc., among which resources include material resources, computing resources, human resources, etc.
[0030] In an optional embodiment, the estimated time consumption of each task is determined based on the basic data related to time in the basic data. For example, the estimated time consumption of the task is determined based on the initial estimated task execution time when the process scheduling engine assigns the task.
[0031] Step S102: determining the resources used by each task, and the resource priority and weight coefficient of each resource used by each task according to the basic data of each task in the target workflow task.
[0032] In an optional embodiment, different tasks use different resources during execution, and a task may require the use of multiple resources, including physical resources, computing resources, storage resources, human resources, and the like.
[0033] Step S103, determining the time priority of each task according to the estimated time consumption of each task.
[0034] In an optional embodiment, since different workflows have different purposes and the deployment methods of tasks in different application scenarios are also different, the time priority of each task can be determined by selecting an appropriate method according to actual needs. For example, if the purpose of the target workflow task is to achieve a quick response to user requests, it is necessary to give a higher priority to tasks with a shorter estimated time consumption; if multiple tasks can be executed concurrently in the current scenario, the time priority of each task can be determined by combining the number of tasks that can be executed concurrently and the estimated time consumption of each task.
[0035] Step S104: determining the resource priority of each task according to the resource priority and weight coefficient of each resource used by each task.
[0036] In an optional embodiment, different resources may be occupied when executing a task, and different resources play different roles and have different importance in the process of executing the task. Therefore, it is necessary to determine the weight coefficient of each resource used by each task.
[0037] In an optional embodiment, since different tasks may use the same resource, it is necessary to determine the resource priority of each task in using each resource.
[0038] Step S105, determining the comprehensive priority of each task according to the time priority and resource priority of each task.
[0039] The method provided by the embodiment of the present invention combines the time priority and resource priority of each task when multiple tasks are generated at the same time, and obtains the comprehensive priority of the task. The order of executing tasks is determined based on the comprehensive priority, thereby avoiding problems such as overall delays in the process due to time conflicts, resource conflicts, etc.
[0040] In an optional embodiment, the above step S103 specifically includes:
[0041] Step a1, establishing a task flow chart of each task according to the process of the target workflow task, in which there is a dependency relationship between each task;
[0042] Step a2, using a critical path algorithm to find a critical path in the task flow chart, and assigning priorities to the tasks on the critical path. The critical path is determined based on the estimated time consumption of the tasks included in each path.
[0043] Step a3, removing the critical path from the task flow chart to obtain an updated task flow chart.
[0044] Repeat the above steps a2 and a3 until there is no critical path in the task flow chart, and obtain the time priority of each task; the priority assigned to the tasks on the critical path in each cycle is lower than the priority assigned to the tasks on the critical path in the previous cycle.
[0045] In an optional embodiment, if there is no critical path in the updated task flow chart, the tasks in all paths in the current task flow chart are given the lowest priority, and the priorities of the tasks in each critical path obtained from previous multiple cycles are combined to obtain the time priority of each task in the target workflow task.
[0046] In an embodiment of the present invention, after establishing a task flow chart for each task, the time priority of each task is determined based on the critical path in the task flow chart. Since the critical path can reflect the importance of each task in the overall workflow task, the time priority of each task obtained in the embodiment of the present invention is more reasonable.
[0047] In an optional embodiment, in the above step S103, when determining the time priority of each task, after determining the estimated time of each task based on the basic data of each task, the estimated time of the task is corrected according to the historical data of the task, and / or the real-time data to obtain a corrected estimated time, and then the time priority of each task is calculated based on the corrected estimated time, wherein the historical data includes the actual waiting time and the actual execution time of the task.
[0048] In an optional embodiment, after the current task is completed, the execution parameters of the current task will also be stored as historical data for subsequent use.
[0049] In an optional embodiment, after determining the task from the target workflow task, it is determined whether the same task has been executed. If the same task has been executed, the estimated time of the current task is corrected according to the historical data corresponding to the same task. Since the preliminary time in the basic data is obtained by the preliminary estimate of the process scheduling engine, it may not be executed completely according to the prediction of the process scheduling engine during the actual execution process, so the estimated time of the process scheduling engine will have a certain deviation. The historical data generated when executing the same task is real, so the estimated time obtained by referring to the basic data and historical data will be more reliable. It should be noted that since some emergencies may occur during the execution of the task, if the estimated time is determined completely according to the historical data, it will also be affected by abnormal conditions. Therefore, in this application, the basic data initialized by the process scheduling engine is corrected according to the historical data, and the result obtained will be more accurate and reliable.
[0050] In an optional embodiment, real-time data refers to emergencies that occur during task execution and that affect the task execution time. For example, when the process scheduling engine assigns tasks, the human resources configured for the task are mature employees, but the current executor is a novice and unfamiliar with the business, then the estimated time of the task needs to be appropriately increased; or, when the process scheduling engine assigns tasks, the computing power of the computing resources configured for the task is low, but the current system has replaced computing resources with higher computing power, then the estimated time of the task needs to be appropriately reduced.
[0051] In an optional embodiment, the above step S104 specifically includes: weighted accumulation of resource priorities and weight coefficients of resources used by each task respectively to obtain the resource priority of each task.
[0052] In an optional embodiment, in the above step S104, when determining the resource priority of each task, the resource priority of the task is corrected according to the historical data of the task and / or the real-time data. After obtaining the corrected resource priority, the resource priority of each task is determined according to the corrected resource priority and weight coefficient of each resource used by each task, wherein the historical data contains information on the actual use of resources by the task.
[0053] In an optional embodiment, after the current task is completed, the resource usage information during the execution of the current task will also be stored as historical data for subsequent use.
[0054] In an optional embodiment, the resource usage information includes the executor on which the task is dependent, the resource type used when executing the task, the total amount of resources, the number of resources, the amount of resource consumption, whether the resources are exclusive, restrictions on resource usage, etc.
[0055] In an optional embodiment, after determining the task from the target workflow task, it is determined whether the same task has been executed. If the same task has been executed, the resource priority of the current task is corrected according to the historical data corresponding to the same task. Since the basic data is obtained by the preliminary estimation of the process scheduling engine, it may not be able to be executed completely according to the prediction of the process scheduling engine during the actual execution process, so the resource usage estimated by the process scheduling engine will have a certain deviation. The historical data generated when executing the same task is real, so the resource priority obtained by referring to the basic data and historical data will be more reliable. It should be noted that since some emergencies may occur during the execution of the task, if the resource priority is determined completely according to the historical data, it will also be affected by abnormal conditions. Therefore, in this application, the basic data initialized by the process scheduling engine is corrected according to the historical data, and the result obtained will be more accurate and reliable.
[0056] In an optional embodiment, real-time data refers to emergencies that occur during task execution and that may affect the use of resources by the task. For example, due to other events, a resource required for task execution is relatively tight, which may cause a change in resource priority.
[0057] In an optional embodiment, the above step S105 specifically includes the following steps:
[0058] Step b1, calculating the overall priority of each task according to the time priority, resource priority, and coefficients of the time priority and resource priority of each task.
[0059] Step b2, calculating the comprehensive priority of each task according to the priority coefficient of the target workflow task to which each task belongs and the overall priority of each task.
[0060] In the process of calculating the overall priority, the interaction and influence of the time priority and the resource priority need to be comprehensively considered, so the embodiment of the present invention introduces weight parameters for the time priority and the resource priority.
[0061] In addition, in the process of calculating the comprehensive priority, it is also necessary to consider the instances of different process definitions and the priority trade-offs between different process instances of the same process definition. At this time, data related to the process instance is needed. For example, some processes have higher priority scheduling, so the priority coefficient of the process to which each task belongs is combined to obtain the comprehensive priority of each task.
[0062] In the embodiment of the present invention, the comprehensive priority not only refers to the situation of the task in the current process instance, but also refers to the comparison between different process instances. Even if multiple process instances are executed simultaneously, the execution order of each task can be reasonably arranged.
[0063] The embodiment of the present invention also provides a workflow management system, such as Figure 2 As shown, including:
[0064] The process scheduling engine is used to initialize the basic data of each task in the target workflow task. For details, please refer to the description in the above embodiment and will not be repeated here.
[0065] The time priority evaluation module is used to determine the estimated time consumption of each task according to the basic data of each task in the target workflow task; determine the time priority of each task according to the estimated time consumption of each task. For details, please refer to the description in the above embodiment and will not be repeated here.
[0066] The resource priority evaluation module is used to determine the resources used by each task, as well as the resource priority and weight coefficient of each resource used by each task based on the basic data of each task in the target workflow task; the resource priority of each task is determined based on the resource priority and weight coefficient of each resource used by each task. For details, please refer to the description in the above embodiment and will not be repeated here.
[0067] The comprehensive priority evaluation module is used to determine the comprehensive priority of each task based on the time priority and resource priority of each task, so that the process scheduling engine can schedule the execution of each task according to the comprehensive priority of each task. For details, please refer to the description in the above embodiment and will not be repeated here.
[0068] The system provided by the embodiment of the present invention combines the time priority and resource priority of each task when multiple tasks are generated simultaneously to obtain a comprehensive priority of the task, and determines the order of executing the tasks based on the comprehensive priority, thereby avoiding problems such as overall delays in the process due to time conflicts, resource conflicts, etc.
[0069] In an optional embodiment, the system provided by the embodiment of the present invention further includes:
[0070] The database is used to store the basic data and historical data of each task. The historical data is formed after each task is completed according to the parameters during the execution process;
[0071] The cache unit is used to store the real-time data of each task. When the task is completed, the real-time data corresponding to the task in the cache unit is deleted;
[0072] The time priority evaluation module is also used to correct the estimated time consumption of the task according to the historical data and / or the real-time data of the task to obtain the corrected estimated time consumption, and determine the time priority of each task according to the corrected estimated time consumption of each task;
[0073] The resource priority evaluation module is also used to correct the resource priority of the task based on the historical data and / or real-time data of the task to obtain a corrected resource priority, and determine the resource priority of each task based on the corrected resource priority and weight coefficient.
[0074] The embodiment of the present invention makes relatively little modification (intrusion) to the original workflow management system, which is convenient for development and maintenance. Only the process scheduling engine part of the workflow management system needs to be modified, and the modified part has simple functions: only the existing relevant data needs to be dumped to the database system and cache system. Therefore, the system provided by this application can be independently developed and maintained. During development and operation, the impact on the original workflow management system is very small, and the solution is easily accepted by customers.
[0075] Since the data relied on by the system provided by the embodiment of the present invention is independently stored in the database and cache system, and the evaluation system itself is also an independent software system, it has advantages in performance. Moreover, as an independent plug-in system, it is also convenient for system performance tuning.
[0076] The embodiment of the present invention also provides a computer device having the above Figure 3 The disaster emergency decision support device shown.
[0077] See also Figure 3 , Figure 3 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 3As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.
[0078] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0079] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0080] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0082] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0083] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0084] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0085] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0086] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A workflow task priority calculation method, characterized in that: The method comprises: Determine the estimated time required for each task based on the basic data of each task in the target workflow task; Determine the resources used by each task, as well as the resource priority and weight coefficient of each resource used by each task according to the basic data of each task in the target workflow task; Determine the time priority of each task based on the estimated time of each task; Determine the resource priority of each task based on the resource priority and weight coefficient of each resource used by each task; Determine the comprehensive priority of each task based on the time priority and resource priority of each task.
2. The method according to claim 1, characterized in that Determining the time priority of each task according to the estimated time consumption of each task includes: Establishing a task flow chart of each task according to the process of the target workflow task, wherein there is a dependency relationship between the tasks in the task flow chart; Using a critical path algorithm to find a critical path in the task flow chart, and assigning priorities to tasks on the critical path, wherein the critical path is determined based on the estimated time consumption of tasks included in each path; Removing the critical path from the task flow chart to obtain an updated task flow chart; Repeat the steps of finding a critical path in the task flow chart using a critical path algorithm and assigning priorities to tasks on the critical path until there is no critical path in the task flow chart, and obtain the time priority of each task; the priority assigned to the tasks on the critical path in each cycle is lower than the priority assigned to the tasks on the critical path in the previous cycle.
3. The method according to claim 1 or 2, characterized in that: Determining the time priority of each task according to the estimated time consumption of each task includes: Correcting the estimated time consumption of the task according to the historical data of the task and / or the real-time data to obtain a corrected estimated time consumption, wherein the historical data includes the actual waiting time and the actual execution time of the task; Determine the time priority of each task based on the revised estimated duration of each task.
4. The method according to claim 1, characterized in that Determining the resource priority of each task according to the resource priority and weight coefficient of each resource used by each task includes: The resource priority and weight coefficient of the resources used by each task are weighted and accumulated to obtain the resource priority of each task.
5. The method according to claim 1 or 4, characterized in that: Determining the resource priority of each task according to the resource priority and weight coefficient of each resource used by each task includes: According to the historical data and / or real-time data of the task, the resource priority of the task is modified to obtain a modified resource priority, wherein the historical data includes actual usage information of the task on the resources; The resource priority of each task is determined according to the modified resource priority and weight coefficient of each resource used by each task.
6. The method according to claim 1, characterized in that Determining the comprehensive priority of each task according to the time priority and resource priority of each task includes: Calculate the overall priority of each task based on the time priority, resource priority, and coefficients of the time priority and resource priority of each task; The comprehensive priority of each task is calculated based on the priority coefficient of the target workflow task to which each task belongs and the overall priority of each task.
7. A workflow management system, characterized in that: include: The process scheduling engine is used to initialize the basic data of each task in the target workflow task; The time priority evaluation module is used to determine the estimated time consumption of each task according to the basic data of each task in the target workflow task; and determine the time priority of each task according to the estimated time consumption of each task; The resource priority evaluation module is used to determine the resources used by each task, as well as the resource priority and weight coefficient of each resource used by each task according to the basic data of each task in the target workflow task; and determine the resource priority of each task according to the resource priority and weight coefficient of each resource used by each task; The comprehensive priority evaluation module is used to determine the comprehensive priority of each task according to the time priority and resource priority of each task, so that the process scheduling engine can schedule and execute each task according to the comprehensive priority of each task.
8. The system according to claim 7, characterized in that Also includes: A database is used to store basic data and historical data of each task, wherein the historical data is formed according to the parameters during the execution of each task after the task is completed; A cache unit, used to store the real-time data of each task, and when the task is completed, the real-time data corresponding to the task in the cache unit is deleted; The time priority evaluation module is also used to correct the estimated time consumption of the task according to the historical data and / or the real-time data of the task to obtain a corrected estimated time consumption, and determine the time priority of each task according to the corrected estimated time consumption of each task; The resource priority evaluation module is also used to correct the resource priority of the task based on the historical data and / or real-time data of the task to obtain a corrected resource priority, and determine the resource priority of each task based on the corrected resource priority and weight coefficient.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the workflow task priority calculation method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the workflow task priority calculation method according to any one of claims 1 to 6.
Citation Information
Patent Citations
HIVE task execution engine selection method and system
CN109634989A
Big data resource scheduling method and device, server and storage medium
CN111352736A
Task execution method and device
CN113238861A
Kernel scheduling based on precedence constraints and / or artificial intelligence techniques
US10152349B1
Cited By
Battery capacity grading capacity correction method and system based on artificial intelligence
CN119165373A
Complex project-oriented task priority adaptive adjustment system and method
CN120672095A
Task priority adaptive adjustment system and method for complex projects
CN120672095B
