A workflow processing method, device, equipment and medium for applying for cloud resources
By introducing workflow processing methods into the cloud computing system, the cloud resource application process is automatically processed, which solves the problem that cloud tenants need administrator authorization to apply for cloud resources, and improves the efficiency and automation of resource application.
Patent Information
- Application Number
- CN202110739228.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2041-06-30
AI Technical Summary
In the existing cloud computing system, cloud tenants need to pass an administrator account to apply for cloud resources, resulting in extremely low resource application efficiency and unable to meet the tenants' cloud resource needs in a timely manner.
Provide a workflow processing method for applying for cloud resources. By generating tasks and work orders to be approved, the approval process is automatically selected, so as to realize the automatic flow of approval nodes and the automatic effect of cloud resources.
It realizes that tenants can automatically apply for cloud resources without specific user permissions, improves the efficiency of cloud resources application and approval, and simplifies resource management in multi-tenant scenarios.
Smart Images

Figure CN113590308B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to a workflow processing method, device, equipment and medium for applying for cloud resources. Background Art
[0002] The concept of workflow originated in the fields of production organization and office automation. It is a concept proposed for activities with fixed procedures in daily work. The purpose is to improve work efficiency, better control processes, enhance customer services, and effectively manage business processes by breaking down work into well-defined tasks or roles, executing and monitoring these tasks according to certain rules and processes.
[0003] Public clouds or private clouds generally support multi-organization multi-tenant mechanisms, and provide cloud resources to multiple tenants through cloud data centers. Cloud resources include CPU, memory, storage, network card, virtual machine, etc. When a specific cloud tenant needs a certain cloud resource, it cannot apply for it by itself. It needs to log in with a user with permission to create or allocate cloud resources, such as using an administrator account to create a cloud host. It can be seen that existing cloud tenants can only apply for cloud resources offline to the administrator, and their over-reliance on the administrator account results in extremely low efficiency in resource application, so it is urgently needed to be improved. Summary of the invention
[0004] In view of this, it is necessary to provide a workflow processing method, device, equipment and medium for applying for cloud resources, which can provide tenants with the corresponding cloud resources applied for in a timely manner, in response to the above technical problems.
[0005] According to a first aspect of the present invention, a workflow processing method for applying for cloud resources is provided, the method comprising:
[0006] In response to receiving a cloud resource application request submitted by a tenant, generating a first task based on the cloud resource application request, wherein the cloud resource application request includes cloud resource configuration information and tenant information;
[0007] Using a task scheduler to capture and execute the first task to generate a second task of creating cloud resources based on the cloud resource configuration information, and generating a work order to be approved corresponding to the second task based on tenant information;
[0008] Matching a target approval process from a plurality of preset approval processes for the work order to be approved;
[0009] Generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process;
[0010] The task scheduler is used to capture and execute the third task to generate an approval result, and the second task is started or deleted based on the approval result.
[0011] In some embodiments, the step of using a task scheduler to capture and execute the third task to generate an approval result, and starting or deleting the second task based on the approval result includes:
[0012] Acquire the approval order of several approval nodes in the target approval process, and approve each approval node in turn based on the approval order to obtain an approval result;
[0013] In response to the approval result being approval, generating a fourth task for making cloud resources effective based on the information of the work order to be approved and the information of the second task corresponding to the work order to be approved;
[0014] The task scheduler is used to capture and execute the fourth task to obtain the information of the second task corresponding to the approved work order to be approved, and execute the second task corresponding to the information of the second task.
[0015] In some embodiments, the step of obtaining the approval order of several approval nodes in the target approval process, and approving each approval node in turn based on the approval order to obtain an approval result includes:
[0016] In response to a certain approval node passing the approval, determining whether the certain approval node is the final approval node;
[0017] In response to the certain approval node not being the final approval node, continuing to approve the remaining approval nodes;
[0018] In response to the certain approval node being a final approval node, setting the approval status of the work order to be approved to approved;
[0019] In response to the failure of approval of the certain node, the approval status of the work order to be approved is set to approval rejected.
[0020] In some embodiments, the method further comprises:
[0021] Check the pending approval work order and the target approval process to confirm whether the approval is legal;
[0022] In response to the approval being legal, the step of generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process is executed.
[0023] In some embodiments, the method further comprises:
[0024] In response to the approval being illegal or the approval status being approval rejected, generating a fifth task for deleting the corresponding second task based on the information of the work order to be approved and the information of the second task corresponding to the work order to be approved;
[0025] The task scheduler is used to capture and execute the fifth task to delete the second task.
[0026] In some embodiments, the step of matching the target approval process from a plurality of preset approval processes for the work order to be approved includes:
[0027] Obtain the organizational department to which the tenant belongs and the type of the work order to be approved, and determine whether there is a custom approval process based on the organizational department to which the tenant belongs and the type of the work order to be approved;
[0028] In response to the existence of a custom approval process, taking the custom approval process as the target approval process;
[0029] In response to the absence of a custom approval process, a default approval process is used as the target approval process.
[0030] In some embodiments, the cloud resources include at least one of a CPU, a memory, a network card, and a virtual machine.
[0031] According to a second aspect of the present invention, there is provided a workflow processing device for applying for cloud resources, the device comprising:
[0032] The first module is used to generate a first task based on the cloud resource application request when receiving the cloud resource application request submitted by the tenant, wherein the cloud resource application request includes cloud resource configuration information and tenant information;
[0033] A second module is used to capture and execute the first task using a task scheduler to generate a second task of creating cloud resources based on the cloud resource configuration information, and to generate a work order to be approved corresponding to the second task based on tenant information;
[0034] The third module is used to match the target approval process from a plurality of preset approval processes for the work order to be approved;
[0035] A fourth module is used to generate a third task for approving the work order to be approved based on the work order to be approved and the target approval process;
[0036] The fifth module is used to use the task scheduler to capture and execute the third task to generate an approval result, and start or delete the second task based on the approval result.
[0037] According to a third aspect of the present invention, there is further provided a computer device, the computer device comprising:
[0038] at least one processor; and
[0039] The memory stores a computer program that can be run on the processor, and the processor executes the aforementioned workflow processing method for applying for cloud resources when executing the program.
[0040] According to a fourth aspect of the present invention, there is further provided a computer-readable storage medium storing a computer program, which executes the aforementioned workflow processing method for applying for cloud resources when executed by a processor.
[0041] The above-mentioned workflow processing method for applying for cloud resources generates a first task upon receiving a cloud resource application request submitted by a tenant, and the task scheduler captures and executes the first task to generate a second task of creating cloud resources and a work order to be approved, and then matches the target approval process for the work order to be approved from the preset approval process, thereby generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process, and finally uses the task scheduler to capture and execute the third task to generate an approval result, and starts or deletes the second task based on the approval result, thereby realizing the tenant submitting a work order for applying for cloud resources, the automatic selection and determination of the approval process, the automatic flow of approval nodes, and the automatic effectiveness of cloud resources, without the need to use specific users to apply for cloud resources, providing great convenience for applications in multi-tenant scenarios and improving the efficiency of cloud resource application and approval.
[0042] In addition, the present invention also provides a workflow processing device for applying for cloud resources, a computer device and a computer-readable storage medium, which can also achieve the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A flowchart of a workflow processing method for applying for cloud resources provided by an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of an approval process provided for an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of a response to a tenant submitting a request for cloud resource application according to an embodiment of the present invention;
[0047] Figure 4 A schematic diagram of a process flow for processing a work order to be approved provided in one embodiment of the present invention;
[0048] Figure 5 A schematic diagram of a cloud resource flow for validating / rejecting an application provided by another embodiment of the present invention;
[0049] Figure 6 A schematic diagram of the structure of a workflow processing device for applying for cloud resources provided by an embodiment of the present invention;
[0050] Figure 7 An internal structural diagram of a computer device in another embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0052] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0053] In one embodiment, please refer to Figure 1 As shown, the present invention provides a workflow processing method for applying for cloud resources, the method comprising the following steps:
[0054] S100, in response to receiving a cloud resource application request submitted by a tenant, generating a first task based on the cloud resource application request, wherein the cloud resource application request includes cloud resource configuration information and tenant information;
[0055] S200, using a task scheduler to capture and execute the first task to generate a second task of creating cloud resources based on the cloud resource configuration information, and generating a to-be-approved work order corresponding to the second task based on tenant information;
[0056] S300, matching a target approval process from a plurality of preset approval processes for the work order to be approved;
[0057] S400, generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process;
[0058] S500: Utilize a task scheduler to capture and execute the third task to generate an approval result, and start or delete the second task based on the approval result.
[0059] The above-mentioned workflow processing method for applying for cloud resources generates a first task upon receiving a cloud resource application request submitted by a tenant, and the task scheduler captures and executes the first task to generate a second task of creating cloud resources and a work order to be approved, and then matches the target approval process for the work order to be approved from the preset approval process, thereby generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process, and finally uses the task scheduler to capture and execute the third task to generate an approval result, and starts or deletes the second task based on the approval result, thereby realizing the tenant submitting a work order for applying for cloud resources, the automatic selection and determination of the approval process, the automatic flow of approval nodes, and the automatic effectiveness of cloud resources, without the need to use specific users to apply for cloud resources, providing great convenience for applications in multi-tenant scenarios and improving the efficiency of cloud resource application and approval.
[0060] In yet another embodiment, the aforementioned step S200 of using a task scheduler to capture and execute the third task to generate an approval result, and starting or deleting the second task based on the approval result includes the following sub-steps:
[0061] Acquire the approval order of several approval nodes in the target approval process, and approve each approval node in turn based on the approval order to obtain an approval result;
[0062] In response to the approval result being approval, generating a fourth task for making cloud resources effective based on the information of the work order to be approved and the information of the second task corresponding to the work order to be approved;
[0063] The task scheduler is used to capture and execute the fourth task to obtain the information of the second task corresponding to the approved work order to be approved, and execute the second task corresponding to the information of the second task.
[0064] In another embodiment, the step of obtaining the approval order of the plurality of approval nodes in the target approval process, and approving each approval node in turn based on the approval order to obtain an approval result includes:
[0065] In response to a certain approval node passing the approval, determining whether the certain approval node is the final approval node;
[0066] In response to the certain approval node not being the final approval node, continuing to approve the remaining approval nodes;
[0067] In response to the certain approval node being a final approval node, setting the approval status of the work order to be approved to approved;
[0068] In response to the failure of approval of the certain node, the approval status of the work order to be approved is set to approval rejected.
[0069] In yet another embodiment, the method further comprises:
[0070] Check the pending approval work order and the target approval process to confirm whether the approval is legal;
[0071] In response to the approval being legal, the step of generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process is executed.
[0072] In yet another embodiment, the method further comprises:
[0073] In response to the approval being illegal or the approval status being approval rejected, generating a fifth task for deleting the corresponding second task based on the information of the work order to be approved and the information of the second task corresponding to the work order to be approved;
[0074] The task scheduler is used to capture and execute the fifth task to delete the second task.
[0075] In yet another embodiment, the aforementioned step S300 specifically includes the following steps:
[0076] Obtain the organizational department to which the tenant belongs and the type of the work order to be approved, and determine whether there is a custom approval process based on the organizational department to which the tenant belongs and the type of the work order to be approved;
[0077] In response to the existence of a custom approval process, taking the custom approval process as the target approval process;
[0078] In response to the absence of a custom approval process, a default approval process is used as the target approval process.
[0079] Preferably, the cloud resources include at least one of a CPU, a memory, a network card, and a virtual machine.
[0080] In another embodiment, in order to facilitate understanding of the technical solution of the present invention, an example is given below in which a tenant requests to create a virtual machine. The method includes the following steps:
[0081] Step 1: Predefine the default approval process and custom approval process;
[0082] The default approval process refers to the default approval process generated after a new organization or tenant is created. Customize the process, and the corresponding work order will be approved according to the customized approval process. Edit the approval process: modify the approvers at each level in the approval process. Delete the approval process: after the approval process is deleted, the subsequent work orders will be approved according to the default approval process. Figure 2As shown, t_ticket_flow is used to define the approval process; t_ticket_approver is used to define the approval node. An approval process will have multiple approval nodes. The approval node supports the definition of approval policies, including OR (approval if one person agrees), AND (approval if all agree), and MAJORITY (approval if majority agree); t_ticket_approver_info is used to define the approver table. An approval node can include multiple approvers.
[0083] Step 2: The tenant submits an application to create a virtual machine;
[0084] Please combine Figure 2 As shown, after the tenant submits an application to create a virtual machine, a first task task1 to be executed is generated and the task ID of the first task task1 is returned; the task scheduler captures the first task task1 to be executed and calls the specific business process method to create a hidden second task task2 to be run to create a virtual machine, and generates an approval work order.
[0085] Step 3: Automatically select the approval process;
[0086] Please combine Figure 3 The system automatically selects an approval process from the pre-set approval processes based on the work order type and the organizational department to which the tenant belongs. The approval process customized for the tenant is preferred. If the tenant does not have a customized approval process, the default work order approval process is selected.
[0087] Step 4: Approve the work order according to the approval process;
[0088] Please combine Figure 4 As shown, after the approver approves the work order, a third task task3 is generated to be executed (the third task task3 is used to approve the work order). The task scheduler grabs the third task task3 to be executed, and calls the work order approval business process according to the parameters in the approval task (such as the work order ID, approval opinion, etc.). The specific work order approval business method includes the following logic:
[0089] a. Check whether the work order, approval process, and approver are legal. If legal, construct the approval record and decide the business direction based on the approval opinion. If not legal, construct the necessary parameters (such as the ID of the second task task2 to create the virtual machine, the work order ID), and generate a fifth task task5 to delete the second task task2 for the task scheduler to schedule and execute.
[0090] b. If the approval is passed, determine whether the current node is an intermediate approval node. If so, it will automatically enter the next approval node and notify the approver in the next approval node.
[0091] c. If the approval is passed and the current node is the last approval node, the work order is changed to the approved status, the necessary parameters are constructed (such as the ID of the second task task2 for creating a virtual machine, the work order ID), and a fourth task task4 for creating a virtual machine is generated for the task scheduler to schedule and execute.
[0092] d. If the approval is rejected, end the work order approval, set it to the approval rejected state, construct necessary parameters (such as the ID of the second task task2 for creating a virtual machine, the work order ID), and generate a fifth task task5 for deleting the second task task2 for the task scheduler to schedule and execute.
[0093] Step 5: After the work order is approved / rejected, the task of creating a virtual machine will automatically take effect / be deleted;
[0094] Please combine Figure 5 As shown, when the task scheduler detects that there is a fourth task task4 for creating a virtual machine or a fifth task task5 for deleting the second task task2, it automatically schedules the execution. If it is an effective task, the operation of the second task task2 for creating a virtual machine is triggered, and the fourth task task4 monitors the execution result of the second task task2. If successful, the work order status is updated successfully; if failed, the update of the work order status fails, and the tenant is notified synchronously. If it is a deletion task, the second task2 record is cleaned up according to the task ID of the second task2 in the parameter, and the work order record is updated according to the work order ID.
[0095] The method of the present invention has at least the following beneficial technical effects: it realizes the automatic selection and determination of the approval process, the automatic transfer of the approval node, and the automatic effectiveness of the cloud resources when the tenant submits the work order for applying for cloud resources. At the same time, the approval process adds an automatic approval function, and the work order can be automatically approved after submission, freeing up the manpower of the approval personnel. It promotes the application improvement of the system in multi-tenant scenarios and improves the efficiency of application approval.
[0096] In yet another embodiment, please combine Figure 6 As shown, the present invention also provides a workflow processing device 60 for applying for cloud resources, the device comprising:
[0097] The first module 61 is used to generate a first task based on the cloud resource application request when receiving the cloud resource application request submitted by the tenant, wherein the cloud resource application request includes cloud resource configuration information and tenant information;
[0098] A second module 62 is configured to use a task scheduler to capture and execute the first task to generate a second task of creating cloud resources based on the cloud resource configuration information, and to generate a work order to be approved corresponding to the second task based on tenant information;
[0099] The third module 63 is used to match the target approval process from a plurality of preset approval processes for the work order to be approved;
[0100] A fourth module 64 is used to generate a third task for approving the work order to be approved based on the work order to be approved and the target approval process;
[0101] The fifth module 65 is used to use the task scheduler to capture and execute the third task to generate an approval result, and start or delete the second task based on the approval result.
[0102] The above-mentioned workflow processing device for applying for cloud resources generates a first task upon receiving a request for applying for cloud resources submitted by a tenant, and the task scheduler captures and executes the first task to generate a second task for creating cloud resources and a work order to be approved, and then matches the target approval process for the work order to be approved from the preset approval process, thereby generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process, and finally uses the task scheduler to capture and execute the third task to generate an approval result, and starts or deletes the second task based on the approval result, thereby realizing the automatic selection and determination of the approval process, the automatic flow of approval nodes and the automatic effectiveness of cloud resources when the tenant submits a work order for applying for cloud resources, and there is no need to use a specific user to apply for cloud resources, which provides great convenience for applications in multi-tenant scenarios and improves the efficiency of cloud resource application and approval.
[0103] It should be noted that the specific limitations of the workflow processing device for applying for cloud resources can be found in the above limitations on the workflow processing method for applying for cloud resources, which will not be repeated here. Each module in the above-mentioned workflow processing device for applying for cloud resources can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0104] According to another aspect of the present invention, a computer device is provided. The computer device may be a server. Figure 7As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the workflow processing method for applying for cloud resources described above is implemented. Specifically, the method includes the following steps:
[0105] In response to receiving a cloud resource application request submitted by a tenant, generating a first task based on the cloud resource application request, wherein the cloud resource application request includes cloud resource configuration information and tenant information;
[0106] Using a task scheduler to capture and execute the first task to generate a second task of creating cloud resources based on the cloud resource configuration information, and generating a work order to be approved corresponding to the second task based on tenant information;
[0107] Matching a target approval process from a plurality of preset approval processes for the work order to be approved;
[0108] Generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process;
[0109] The task scheduler is used to capture and execute the third task to generate an approval result, and the second task is started or deleted based on the approval result.
[0110] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned workflow processing method for applying for cloud resources is implemented. Specifically, the method includes executing the following steps:
[0111] In response to receiving a cloud resource application request submitted by a tenant, generating a first task based on the cloud resource application request, wherein the cloud resource application request includes cloud resource configuration information and tenant information;
[0112] Using a task scheduler to capture and execute the first task to generate a second task of creating cloud resources based on the cloud resource configuration information, and generating a work order to be approved corresponding to the second task based on tenant information;
[0113] Matching a target approval process from a plurality of preset approval processes for the work order to be approved;
[0114] Generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process;
[0115] The task scheduler is used to capture and execute the third task to generate an approval result, and the second task is started or deleted based on the approval result.
[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0117] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0118] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A workflow processing method for applying for cloud resources, characterized in that: The method comprises: In response to receiving a cloud resource application request submitted by a tenant, generating a first task based on the cloud resource application request, wherein the cloud resource application request includes cloud resource configuration information and tenant information; Using a task scheduler to capture and execute the first task to generate a second task of creating cloud resources based on the cloud resource configuration information, and generating a work order to be approved corresponding to the second task based on tenant information; Matching a target approval process from a plurality of preset approval processes for the work order to be approved; Generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process; The task scheduler is used to capture and execute the third task to generate an approval result, and the second task is started or deleted based on the approval result.
2. The method according to claim 1, characterized in that: The step of using the task scheduler to capture and execute the third task to generate an approval result, and starting or deleting the second task based on the approval result includes: Acquire the approval order of several approval nodes in the target approval process, and approve each approval node in turn based on the approval order to obtain an approval result; In response to the approval result being approval, generating a fourth task for making cloud resources effective based on the information of the work order to be approved and the information of the second task corresponding to the work order to be approved; The task scheduler is used to capture and execute the fourth task to obtain the information of the second task corresponding to the approved work order to be approved, and execute the second task corresponding to the information of the second task.
3. The method according to claim 2, characterized in that The step of obtaining the approval order of several approval nodes in the target approval process, and approving each approval node in turn based on the approval order to obtain an approval result includes: In response to a certain approval node passing the approval, determining whether the certain approval node is the final approval node; In response to the certain approval node not being the final approval node, continuing to approve the remaining approval nodes; In response to the certain approval node being a final approval node, setting the approval status of the work order to be approved to approved; In response to the failure of approval of the certain node, the approval status of the work order to be approved is set to approval rejected.
4. The method according to claim 3, characterized in that The method further comprises: Check the pending approval work order and the target approval process to confirm whether the approval is legal; In response to the approval being legal, the step of generating a third task for approving the work order to be approved based on the work order to be approved and the target approval process is executed.
5. The method according to claim 4, characterized in that The method further comprises: In response to the approval being illegal or the approval status being approval rejected, generating a fifth task for deleting the corresponding second task based on the information of the work order to be approved and the information of the second task corresponding to the work order to be approved; The task scheduler is used to capture and execute the fifth task to delete the second task.
6. The method according to claim 1, characterized in that The step of matching the target approval process from a plurality of preset approval processes for the work order to be approved comprises: Obtain the organizational department to which the tenant belongs and the type of the work order to be approved, and determine whether there is a custom approval process based on the organizational department to which the tenant belongs and the type of the work order to be approved; In response to the existence of a custom approval process, taking the custom approval process as the target approval process; In response to the absence of a custom approval process, a default approval process is used as the target approval process.
7. The method according to any one of claims 1 to 6, characterized in that: Cloud resources include at least one of CPU, memory, network card, and virtual machine.
8. A workflow processing device for applying for cloud resources, characterized in that: The device comprises: The first module is used to generate a first task based on the cloud resource application request when receiving the cloud resource application request submitted by the tenant, wherein the cloud resource application request includes cloud resource configuration information and tenant information; A second module is used to capture and execute the first task using a task scheduler to generate a second task of creating cloud resources based on the cloud resource configuration information, and to generate a work order to be approved corresponding to the second task based on tenant information; The third module is used to match the target approval process from a plurality of preset approval processes for the work order to be approved; A fourth module is used to generate a third task for approving the work order to be approved based on the work order to be approved and the target approval process; The fifth module is used to use the task scheduler to capture and execute the third task to generate an approval result, and start or delete the second task based on the approval result.
9. A computer device, characterized in that: include: at least one processor; as well as A memory storing a computer program executable in the processor, wherein the processor executes the method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Self-defining method for business process nodes in cloud sea operating system
CN104468751A
Cloud resource application approval management method and system
CN107491937A