Process approval method and device, electronic equipment and storage medium
Through the process approval method of collaborative operation of three data tables, the approval process in project construction is simplified, the system complexity and maintenance costs are reduced, the approval efficiency is improved, and the process stability and high availability are ensured.
Patent Information
- Application Number
- CN202510846862.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-24
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-06-24
AI Technical Summary
During the project construction process of existing technology, the approval process is complex, resulting in high overall complexity of the system and high maintenance costs. The strict approval process may lead to inefficiency, especially when there is a bottleneck in a certain link.
By using three core data tables (first data table, second data table and third data table) to work together, the number of data tables and system complexity are simplified and process approval is achieved. The first data table stores the global status of the approval instance, the third data table solidifies the link rules of each approval type, and when the initiator creates an approval object, the second data table is automatically inserted into the second data table based on the number of predefined links in the third data table, and the operation status of the approval object is updated in real time.
It significantly reduces the system complexity and maintenance costs, improves the efficiency of process approval, ensures that the approval process is carried out step by step according to rules, enhances the stability and high availability of the process, and reduces technical dependence.
Smart Images

Figure CN120355376A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and in particular to a process approval method, apparatus, electronic device, and storage medium. Background Art
[0002] During the project construction process, the approval function is very common and one of the most important functions. It is often the main function of a system. Whether it is an external output system or an internal system, the shadow of the approval process can be seen. The seemingly common approval function is actually more complex in implementation. The approval module mainly includes the process initiated by the applicant, the approval process, multi-person approval, single-person approval, and the conditional multi-branch flow after approval, as well as the return and cancellation after disapproval. Currently, the commonly used development frameworks for approval processes all require maintaining more than a dozen data tables. And based on a specific technical framework, the approval process may increase the overall complexity of the system, require more development and maintenance costs, and may have technical dependencies and compatibility issues. In addition, although the process engine aims to improve efficiency, a strict approval process may instead lead to low efficiency in some cases, especially when there is a bottleneck in a certain link. Summary of the Invention
[0003] This application provides a process approval method, apparatus, electronic device, and storage medium.
[0004] One aspect of the embodiments of this application provides a process approval method, the method including: Based on the approval application of the initiating object, insert a first piece of data into a first data table and insert a specified number of second pieces of data into a second data table. The first data at least includes the approval status and approval type of the approval. The specified number is determined based on at least two third pieces of data corresponding to the approval type in a third data table. The third data corresponds to the links of the approval type. The third data at least includes at least one object of the corresponding link. The second data corresponds to the object. The second data at least includes the operation status of the corresponding object for the link to which it belongs. The object includes the initiating object and the approval object. The link includes the initiating link and the approval link; Detect the approval operation of the approval object for the current approval link, and modify and / or add the first data and second data of the approval based on the approval operation. Wherein, if the modified second data meets the first target condition, the approval is passed. The first target condition is that the final approval link of the approval is determined to be passed by the approval operation.
[0005] Wherein, the inserting a first piece of data into a first data table and inserting a specified number of second pieces of data into a second data table based on the approval application of the initiating object includes: The form for the approval submitted by the initiating object is detected, the approval type of the approval is obtained, and based on the approval type, a first data is inserted into the first data table, and a second data is inserted into the second data table. The approval status of the first data is set to draft, the second data corresponds to the initiating object, and the operation status of the second data is set to pending approval; The completion operation of the approval initiated by the initiating object is detected, and the third data corresponding to the first approval link of the approval type in the third data table is determined; Based on the third data, the number of approval objects in the first approval link is determined, and the second data of the number of approval objects is inserted into the second data table. The operation status of the second data is set to pending approval; The operation status of the second data corresponding to the initiating object is modified to passed, and the approval status of the first data is modified to pending approval.
[0006] Among them, detecting the approval operation of the approval link of the approval by the approval object, and modifying and / or adding the first data and the second data of the approval based on the approval operation includes: If it is determined that the approval operation indicates that the current approval link is passed, the operation status of the second data corresponding to the approval object is modified to passed; If it is determined that the current approval link meets the second target condition and the third target condition, the second data of the number of approval objects in the next approval link is inserted into the second data table, and the current link of the first data is updated to the next approval link. The first data also includes the current link. The operation status of the second data is set to pending approval. The next approval link and the number of approval objects are obtained from the third data table. The second target condition is that the approval rule of the current approval link is single-person approval, or the approval rule of the current approval link is multi-person approval and the operation status of the second data corresponding to other approval objects is all passed. The third target condition is that the current approval link is not the final approval link of the approval.
[0007] Among them, detecting the approval operation of the approval link of the approval by the approval object, and modifying and / or adding the first data and the second data of the approval based on the approval operation includes: If it is determined that the approval operation indicates that the current approval link is passed, the operation status of the second data corresponding to the approval object is modified to passed; If it is determined that the current approval step meets the second target condition and the fourth target condition, the approval status of the first data of the approval is modified to passed. The second target condition is that the approval rule of the current approval step is single-person approval and the approval step is the final approval step of the approval, or the approval rule of the current approval step is multi-person approval and the operation statuses of the second data corresponding to other approval objects are all passed. The fourth target condition is that the current approval step is the final approval step of the approval.
[0008] Among them, when detecting the approval operation of the approval object for the approval step of the approval, modifying and / or adding the first data and the second data of the approval based on the approval operation includes: If it is determined that the approval operation indicates that the current approval step is not passed, the operation status of the second data corresponding to the approval object is modified to not passed, and the approval status of the first data of the approval is modified to not passed.
[0009] Among them, the method further includes: When detecting a withdrawal operation of an object for the step to which the object belongs, obtain the next step of the step from the third data table; If it is determined that the next step meets the fifth target condition, delete all the second data of the next step in the second data table. The fifth target condition is that the approval rule of the next step is single-person approval and the operation statuses of all the second data of the next step are all to be approved, or the approval rule of the next step is multi-person approval and there is at least one second data of the next step with an operation status of to be approved; Modify the operation statuses of all the second data of the step to be withdrawn, and insert the second data with the number of objects of the step into the second data table, and set the operation status of the second data to be approved.
[0010] Among them, the method further includes: When detecting a deletion operation of the initiating object for the approval and determining that the approval status of the first data is draft, modify the operation status of the second data of the approval in the second data table from to be approved to deleted, and modify the approval status of the first data to deleted.
[0011] Another aspect of the embodiments of the present application provides a process approval device, and the device includes: A calculation module, configured to insert a first piece of data into a first data table and insert a specified number of second pieces of data into a second data table based on an approval application of an initiating object. The first piece of data includes at least the approval status and approval type of the approval. The specified number is determined based on at least two third pieces of data corresponding to the approval type in a third data table. The third piece of data corresponds to a link of the approval type, and the third piece of data includes at least one object corresponding to the link. The second piece of data corresponds to the object, and the second piece of data includes at least the operation status of the corresponding object for the belonging link. The object includes the initiating object and the approval object, and the link includes an initiating link and an approval link; A processing module, configured to detect an approval operation of the approval object for the current approval link, and modify and / or add the first piece of data and the second piece of data of the approval based on the approval operation. Wherein, if the modified second piece of data meets a first target condition, the approval passes. The first target condition is that the final approval link of the approval is determined to pass by the approval operation.
[0012] On the other hand, the present application also provides an electronic device, including: A processor and a memory for storing executable instructions of the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the process approval method described above.
[0013] On yet another hand, the present application provides a computer-readable storage medium storing a computer program for executing the process approval method described above.
[0014] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understandable through the following description. Description of the Drawings
[0015] By referring to the accompanying drawings and reading the following detailed description, the above and other objects, features, and advantages of the exemplary embodiments of the present application will become easily understandable. In the drawings, several embodiments of the present application are shown in an exemplary rather than restrictive manner, where: In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0016] Figure 1 Shows a flowchart of a process approval method according to an embodiment of the present application; Figure 2 Shows a flowchart of a process approval method according to another embodiment of the present application; Figure 3A flowchart of a process approval method according to another embodiment of the present application is shown; Figure 4 A flowchart of a process approval method according to another embodiment of the present application is shown; Figure 5 A flowchart of a process approval method according to another embodiment of the present application is shown; Figure 6 A schematic structural diagram of a process approval device according to an embodiment of the present application is shown; Figure 7 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present application is shown. Detailed implementation manners
[0017] To make the objectives, features, and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0018] In order to reduce the number of data tables to be maintained and the overall complexity of the system while implementing process approval and improve the efficiency of process approval, an embodiment of the present application provides a process approval method, as Figure 1 shown, the method includes: Step 101, based on an approval application of an initiating object, insert a first data into a first data table and insert a specified number of second data into a second data table. The first data at least includes an approval status and an approval type of the approval. The specified number is determined based on at least two third data corresponding to the approval type in a third data table. The third data corresponds to a link of the approval type. The third data at least includes at least one object of the corresponding link. The second data corresponds to the object. The second data at least includes an operation status of the corresponding object for the affiliated link. The object includes the initiating object and an approval object. The link includes an initiating link and an approval link.
[0019] The first data table is a data table for storing the first data corresponding to the approval. Each approval process has a corresponding unique first data in the first data table.
[0020] In this embodiment, the data structure of the first data table is shown in Table 1. The application number is the unique ID corresponding to the approval in the first data table. The approval type is the approval type corresponding to the approval, such as project establishment, project withdrawal, quarterly funds, project funds, and fund distribution. The initiating object is the initiator of the application for the approval, and the value is at least one user ID. The user ID is the unique ID corresponding to the user in the user table. The approval status is the status of the entire approval, such as pending approval (indicating that the approval is still in progress), passed (indicating that the approval has passed), and not passed (indicating that the approval has not passed). The current approval link is the approval link currently in progress. An approval has an initiating link and at least one approval link. The current object is the initiating object or the approval object. If the current approval link is the initiating link, the current object is the initiating object. If the current approval link is the approval link, the current object is all the approval objects of the current approval link. The value is at least one user ID or role ID. The user ID is the unique ID corresponding to the user in the user table. The role ID is the unique ID corresponding to the role in the user table. The role includes at least one user. The transfer condition is the condition that needs to be met in the approval process to transfer to the next approval stage after the current approval stage is completed. If the transfer condition is not required, this field can be deleted.
[0021] Table 1
[0022] In this embodiment, there are two ways to achieve the flow condition.
[0023] The first method is to set a circulation condition data table, and the value of the circulation condition in the first data is the unique ID corresponding to the circulation condition in the circulation condition data table.
[0024] The second method is to directly implement the flow condition through a fixed code, and the value of the flow condition in the first data is a unique ID in the code that triggers the corresponding flow condition.
[0025] In other implementations, other fields may be added to the first data table to collect more information, as shown in Table 2. Table 2 shows other fields that may be added to the first data table, such as the tenant number. When the system is an external output system, the tenant number may be set as the unique ID corresponding to the user organization. Application title. When initiating an application, the initiating object may enter the title of the approval. The creation time and the creating user are the time and user when the first data is created. The updating time and the updating user are the time and user when the first data is updated. Process stakeholders include all users involved in the approval, including the initiating object and the approving object. Other required fields may also be added to the first data table based on specific needs.
[0026] Table 2
[0027] The third data table is pre-set third data including each initiation link or approval link of each approval type, and the third data further includes at least one object corresponding to the initiation link or approval link, and each third data corresponds to an approval link in a certain approval type.
[0028] In this embodiment, the data structure of the third data table is shown in Table 3. The approval type is the approval type to which the approval link belongs, such as project establishment, project cancellation, quarterly funds, project funds, fund disbursement, etc. The approval link serial number is the ID representing the order of the approval link corresponding to the third data in the approval type. The approval rule is whether the approval link is for single-person approval or multi-person approval. For single-person approval, if one of the at least one approval objects in the approval link selects to pass, then the approval link is considered passed. For multi-person approval, only when each of the at least one approval objects in the approval link selects to pass, the approval link is considered passed. The approval role and approval user are fields for which only one can be selected, both representing the users who can approve the approval link. The value of the approval user is at least one user ID, and the user ID is the unique ID corresponding to the user in the user table. The value of the approval role is at least one role ID, and the role ID is the unique ID corresponding to the role in the user table, and the role includes at least one user. The transfer condition is the condition that needs to be met for the approval process to transfer to the next approval link after the current approval link is completed. If there is no transfer condition, this field can be deleted.
[0029] Table 3
[0030] In other implementation manners, other fields can also be added to the third data table to collect more information. As shown in Table 4, Table 4 shows the other fields that can be added to the third data table, such as the tenant number. When the system is an externally output system, the tenant number can be set, which is the unique ID corresponding to the user organization. The value of the same institution review is 0 or 1. 0 indicates that the approval object and the initiation object are from the same institution, and 1 indicates that the approval object and the initiation object are from different institutions, usually used in combination with the transfer condition. The remarks are the remarks information for the approval link.
[0031] Table 4
[0032] The second data table stores the second data of the objects in the corresponding approval links. After the initiating object initiates an approval application, the approval links of the initiated approval and at least one approval object corresponding to each approval link are determined based on the approval type of the approval. Then, a second data corresponding to the initiating object and the second data of each approval object corresponding to the first approval link are inserted into the second data table. During the subsequent approval process, when the current approval link is passed, the second data of each approval object corresponding to the next approval link will be inserted into the second data table.
[0033] In this embodiment, the data structure of the second data table is shown in Table 5. The application number is the unique ID corresponding to the approval in the first data table, and the application number of the second data is associated with the first data in the first data table based on this ID. The approval type is the approval type corresponding to the approval, such as project establishment, project cancellation, quarterly funds, project funds, fund disbursement, etc. The operation status is the operation status of the object corresponding to this second data for the link to which this second data belongs, such as pending approval (indicating that the object has not yet approved the link to which it belongs), approved (indicating that the object has passed the approval of the link to which it belongs), not approved (indicating that the object has refused to pass the approval of the link to which it belongs), etc. The approval object is a single user or a single role corresponding to this second data, with the value being the user ID or role ID. The user ID is the unique ID corresponding to the user in the user table, and the role ID is the unique ID corresponding to the role in the user table. The role includes at least one user. When the approval object is a role and the role includes multiple users, any one of the users in the role who first operates on the link to which this second data belongs is regarded as the role operating on the link to which this second data belongs.
[0034] Table 5
[0035] In other implementation manners, other fields can also be added to the second data table to collect more information. As shown in Table 6, Table 6 shows other fields that can be added to the second data table, such as the tenant number. When the system is an externally output system, the tenant number can be set, which is the unique ID corresponding to the user organization. The application title can be entered by the initiating object when initiating the application. The creation time and creation user are the time and user when creating this first data. The update time and update user are the time and user when updating this first data. The remarks are the remarks information for this approval link. Other required fields can also be added to the first data table based on specific requirements.
[0036] Table 6
[0037] The following uses a specific scenario as an example to illustrate the specific solution of step 101: As shown in Table 7, Table 7 shows two pieces of third data corresponding to two approval links with the process type of project establishment in the third data table of a certain system.
[0038] Table 7
[0039] The initiating object initiates an approval application, inserts the first data into the first data table. The inserted first data is shown in Table 8. The user ID of the initiating object is 1005, and the selected approval type by the initiating object is project establishment. After the initiation is completed, the initiating link is completed. Therefore, the current approval link is the first approval link for project establishment, that is, the third data in the third data table with the approval type of project establishment and the approval link serial number of 1. The approval roles in this third data include two roles with role IDs of 1001 and 1002. Therefore, the current objects of the first data are R1001 and R1002, where R represents that this ID is a role ID.
[0040] Table 8
[0041] Meanwhile, insert a specified number of second data into the second data table. The specified number is determined based on the initiating object and the number of approval objects in the first approval link for project establishment, that is, 1 + 2 = 3 pieces of second data. The inserted second data is shown in Table 9. The first piece of second data corresponds to the initiating object in the initiating link. Therefore, the approval link serial number is 0, and the initiating link has passed. Therefore, the operation status of this piece of second data is passed. The user ID of the initiating object is 1005. Therefore, the approval object of this piece of second data is U1005, where U represents that this ID is a user ID. The second and third pieces of second data correspond to the two approval roles in the first approval link. Therefore, the approval link serial numbers are both 1, and the current approval roles have not been processed yet. Therefore, the operation statuses of these 2 pieces of second data are both pending review. The second piece of second data corresponds to the approval role with the role ID of 1001. Therefore, the approval object is R1001. The third piece of second data corresponds to the approval role with the role ID of 1002. Therefore, the approval object is R1002. These three pieces of second data are all associated with the first data in the first data table with the application number of 0001. Therefore, the application numbers are all 0001, and the approval types are also all project establishment.
[0042] Table 9
[0043] Step 102, detect the approval operation of the approval object for the current approval link, and modify and / or add the first data and second data of the approval based on the approval operation. Among them, if the modified second data meets the first target condition, the approval passes. The first target condition is that the final approval link of the approval is determined to be passed by the approval operation.
[0044] After entering the approval link, the approval object of the approval link can initiate an approval operation for the approval link. Based on the approval operation of the approval object, the first data and the second data for approval are modified and / or added.
[0045] Continuing with the above example, after entering the first approval link (i.e., the link with approval link number 1), the approval roles of this approval link are 1001 and 1002. Therefore, users in roles 1001 and 1002 have the authority to initiate approval operations for this approval link. A user in role 1001 first initiated an approval operation for this approval link and chose to pass this approval link. Since the approval rule of this approval link is single-person approval, this approval link is directly passed. Since this approval link has subsequent approval links, after modifying the first data and the corresponding second data based on the approval operation for this approval link, it is also necessary to insert the corresponding second data of the approval object of the subsequent approval link into the second data table. Until the final approval link of the approval is passed, it is determined that the approval is passed.
[0046] In the above scheme, the system complexity and maintenance cost are significantly reduced through the collaborative operation mechanism of the three core data tables, namely, the first data table, the second data table and the third data table. The first data table centrally stores the global status of the approval instance (at least including the approval type and approval status), and the third data table solidifies the link rules of each approval type (defining the number of links and associated objects). When initiating the object creation approval, the corresponding number of second data is automatically inserted into the second data table according to the number of links predefined in the third data table (each data is bound to the operation status of the corresponding object of the corresponding link). When the approval object completes the current link operation, the system directly modifies the operation status of the link in the second data table, and updates the approval status of the first data table in real time based on the status change. If it is detected that there are subsequent approval links, the corresponding number of second data will continue to be inserted into the second data table. If it is detected that the operation status of the final approval link is marked as passed, the first data table is synchronously updated to the approval passed status. While realizing process approval, the data table maintenance and the overall complexity of the system are minimized, thereby improving the efficiency of process approval and reducing technical dependence.
[0047] In this application example, a process approval method is also provided, such as Figure 2 As shown, the method of inserting a first data into the first data table and inserting a specified number of second data into the second data table based on the approval application of the initiating object includes: Step 201, detect that the initiating object submits the form for the approval, obtain the approval type of the approval, and insert a first piece of data into the first data table and a second piece of data into the second data table based on the approval type. Set the approval status of the first piece of data to draft, the second piece of data corresponds to the initiating object, and set the operation status of the second piece of data to pending approval.
[0048] The initiating object needs to first submit the form for approval and at least fill in the approval type in the form to determine the approval type of the approval. After obtaining the approval type of the approval, a first piece of data with a draft approval status can be inserted into the first data table based on the approval type, and at the same time, a second piece of data corresponding to the initiating object in the initiating link is inserted into the second data table, and the operation status of the second piece of data is pending approval.
[0049] For example, the data in the third data table is shown in Table 7, including 2 pieces of third data corresponding to 2 approval links with the process type of project establishment. The initiating object submits the form for approval and needs to apply for approval with the approval type of project establishment. As shown in Table 10, insert a first piece of data into the first data table with the approval type of project establishment, the initiating object being 1005 (the user ID of the initiating object is 1005), the approval status being draft, the current approval link being 0 (indicating that the current is in the initiating link), and the current object being U1005 (indicating that it is the user with the user ID of 1005).
[0050] Table 10
[0051] As shown in Table 11, at the same time, insert a second piece of data into the second data table with the approval type of project establishment, the approval link serial number being 0, the operation status being pending approval, and the approval object being U1005.
[0052] Table 11
[0053] Step 202, detect that the initiating object completes the initiation operation for the approval, and determine the third piece of data in the third data table corresponding to the first approval link of the approval type.
[0054] After the initiating object submits the form for approval, it also needs to complete the initiation completion operation for this approval before the approval can complete the initiating link and enter the first approval link.
[0055] Continuing with the above example, detect that the initiating object completes the initiation operation for the approval with the application number 0001, and determine the third piece of data corresponding to the first approval link with the approval type of project establishment from the third data table, that is, the third piece of data with the approval type of project establishment and the approval link serial number of 1 shown in Table 7.
[0056] Step 203: Determine the number of approval objects in the first approval link based on the third data, and insert the second data of the number of approval objects into the second data table. Set the operation status of the second data to pending approval.
[0057] Step 204: Modify the operation status of the second data corresponding to the initiating object to passed, and modify the approval status of the first data to pending approval.
[0058] Continuing the above example, after determining the corresponding third data, the number of approval objects in the third data is 2. As shown in Table 9, insert 2 pieces of second data corresponding to these 2 approval objects into the second data table. At the same time, modify the operation status of the second data corresponding to the initiating object to passed, and modify the approval status of the first data to pending approval.
[0059] In the above solution, when the initiating object submits an approval form, the system only initializes one piece of first data (approval status set to draft) and one piece of second data corresponding to the initiating object in the initiating link (operation status is pending approval). When the initiating object performs the initiating completion operation for this approval, the system then obtains the number of objects in the first approval link of the approval type of this approval from the third data table, inserts the corresponding number of second data (operation status is pending approval) into the second data table, and at the same time updates the operation status of the second data in the initiating link to passed and changes the approval status of the first data to pending approval. By delaying the generation of approval link data records, the draft stage of the approval is realized, leaving a window for the initiating object to modify and withdraw, avoiding the approval directly entering the pending approval stage, and further improving the stability and high availability of the process approval. At the same time, it ensures the precise matching of the formal start of the approval process and the link data, further reducing the system load and improving the data processing efficiency while maintaining the simplicity of the three data table structures.
[0060] In an example of the present application, a process approval method is also provided. As Figure 3 shown, when detecting the approval operation of the approval object for the approval link of the approval, modify and / or add the first data and the second data of the approval based on the approval operation, including: Step 301: Determine that the approval operation indicates that the current approval link is passed, and modify the operation status of the second data corresponding to the approval object to passed.
[0061] If the approval operation of the approval object for the current approval link is passed, then modify the operation status of the second data corresponding to the approval object to passed.
[0062] For example, the second data table after a certain approval enters the first approval step is shown in Table 9. The approval objects of this approval step are roles 1001 and 1002. A certain user belonging to role 1001 performs an approval operation on this approval step, and the approval operation is passed. Then, as shown in Table 12, the operation status of the second data corresponding to role 1001 is modified to passed.
[0063] Table 12
[0064] Step 302, if it is determined that the current approval step meets the second target condition and the third target condition, then insert the second data of the number of approval objects in the next approval step into the second data table, update the current step of the first data to the next approval step. The first data also includes the current step. The operation status of the second data is set to pending approval. The next approval step and the number of approval objects are obtained from the third data table. The second target condition is that the approval rule of the current approval step is single-person approval, or the approval rule of the current approval step is multi-person approval and the operation status of the second data corresponding to other approval objects are all passed. The third target condition is that the current approval step is not the final approval step of the approval.
[0065] If the approval operation of the approval object for the current approval step is passed, it is also necessary to determine whether the current approval step meets the second target condition and the third target condition. The second target condition is that the approval rule of the current approval step is single-person approval, then as long as the approval operation of one approval object in the current approval step is passed, the current approval step is passed. Or the second target condition is that the approval rule of the current approval step is multi-person approval, then it is required that the approval operations of all approval objects in the current approval step are passed, and then the current approval step is passed. The third target condition is that the current approval step is not the final approval step of this approval. If the current approval step meets the second target condition and the third target condition at the same time, determine the number of approval objects in the next approval step from the third data table, and insert the second data of the number of approval objects in the next approval step into the second data table. Each second data corresponds to an approval object. And update the current step information in the first data to the next approval step.
[0066] Continuing with the above example, the third data table for this approval is shown in Table 7, and the first data table is shown in Table 8. Based on the third data table, it can be seen that the approval rule for the first approval link with the approval type of project establishment is single-person approval, and this approval link is not the final approval link for the approval type of project establishment. Therefore, the current approval link meets the second target condition and the third target condition. The number of approval objects for the next approval link is determined from the third data table to be 2. Then, as shown in Table 13, the second data on the number of approval objects for the next approval link is inserted into the second data table. Among them, the approval link numbers of the 2 pieces of second data are both 2, and the operation statuses are both pending review. One piece of second data has the approval object U1002, and the other piece of second data has the approval object U1003. As shown in Table 14, the current link information in the first data is updated to the next approval link. In addition, after determining that the approval rule for the current approval link is single-person approval, the operation statuses of the second data corresponding to other approval objects can be modified to skipped to prevent data information from being misleading.
[0067] Table 13
[0068] Table 14
[0069] It should be noted that since all approval objects of an approval link have the permission to initiate an approval operation for this approval link, when multiple approval objects perform approval operations on this approval link simultaneously, problems such as data errors may occur. An additional lock table can be added to solve the above problems. When the first approval operation initiated for the current approval link is detected, a lock data is added to the lock table. The lock data includes at least data that can be associated with the current approval, such as the application number. When any user initiates an operation on this approval, first query whether there is associated lock data in the lock table. If it exists, reject the user's operation. If it does not exist, add the associated lock data to the lock table and release the user's operation. Of course, after the user's operation is completed or the operation is exited, the associated lock data in the lock table needs to be deleted to unlock the approval.
[0070] In addition, the lock data can also include preset duration data. After determining that the lock data has been added for more than this duration data, the lock data can be directly deleted to prevent abnormal occupation.
[0071] In the above solution, when the approval object performs an approval operation for the current approval step and the approval operation is passed, the operation status of its corresponding second data is updated to passed. If the current approval step meets the conditions of "single-person approval" or "multi-person approval and all passed", and the current approval step is not the final approval step, the number of approval objects for the next approval step is obtained from the third data table, the corresponding number of second data is inserted into the second data table, and at the same time, the current step of the first data is updated to the next approval step. This ensures that the approval process strictly progresses step by step according to the rules, and at the same time maintains the coherence and controllability of the approval process through real-time update of the step status, simplifies the operation logic while improving the overall execution efficiency.
[0072] In an example of the present application, a process approval method is also provided. As Figure 4 shown, when detecting the approval operation of the approval object for the approval step of the approval, modifying and / or adding the first data and the second data of the approval based on the approval operation includes: Step 401, determining that the approval operation indicates that the current approval step is passed, then modifying the operation status of the second data corresponding to the approval object to passed.
[0073] After entering the approval step, if the corresponding approval object's approval operation for this approval step is passed, then modify the operation status of the second data corresponding to this approval object to passed.
[0074] For example, the third data table is shown in Table 7, the second data table of a certain approval is shown in Table 13, and the first data table is shown in Table 14. The approval object with user ID 1003 performs a passed approval operation for the current approval step. Then, as shown in Table 15, the operation status of the second data corresponding to this approval object is modified to passed. However, since the approval rule for the current approval step is multi-person approval and the operation status of another approval object is still pending review, the current approval step has not passed, and other data remains unchanged. The approval object with user ID 1002 also performs a passed approval operation for the current approval step. Then, as shown in Table 16, the operation status of the second data corresponding to this approval object is modified to passed.
[0075] Table 15
[0076] Table 16
[0077] Step 402: If it is determined that the current approval process meets the second target condition and the fourth target condition, then modify the approval status of the first data of the approval to "approved". The second target condition is that the approval rule for the current approval process is single-person approval and the current approval process is the final approval process for the approval, or the approval rule for the current approval process is multi-person approval and the second data operation status corresponding to other approval objects is all "approved". The fourth target condition is that the current approval process is the final approval process for the approval.
[0078] Continuing with the above example, at this time, although the approval rule for the current approval process is multi-person approval, all approval objects in the current approval process have passed. And based on the third data table, it can be seen that the current approval process is the final approval process. Therefore, the current approval process meets the second target condition and the fourth target condition. Then, as shown in Table 17, modify the approval status of the first data of this approval to "approved" to determine that this approval has passed.
[0079] Table 17
[0080] In the above solution, when the approval object completes the approval operation in the current approval process, update the operation status of its corresponding second data to "approved". If the conditions of "single-person approval" or "multi-person approval and all passed" in the current approval process are met, and the current approval process is the final approval process, then synchronously modify the approval status of the first data to "approved". Ensure that the approval status loop is completed when the approval process reaches the end, without additional polling or manual intervention, and achieve instant response by accurately identifying the second target condition and the fourth target condition, which not only guarantees the accuracy of the approval result but also minimizes the delay in updating the approval status.
[0081] In an example of the present application, a process approval method is also provided. Detect the approval operation of the approval object for the approval process of the approval, and modify and / or add the first data and the second data of the approval based on the approval operation, including: If it is determined that the approval operation indicates that the current approval process is not passed, then modify the operation status of the second data corresponding to the approval object to "not passed", and modify the approval status of the first data of the approval to "not passed".
[0082] If the approval operation of the approval object for the current approval process is not passed, then without other conditions, modify the operation status of the second data corresponding to this approval object to "not passed", and at the same time modify the approval status of the first data of this approval to "not passed".
[0083] For example, the first data table for a certain approval is shown in Table 14, and the second data table is shown in Table 13. If the approval object with user ID 1003 performs a non - passing approval operation on the current approval link, then as shown in Table 18, the operation status of the second data corresponding to this approval object is modified to non - passing, and as shown in Table 19, the approval status of the first data of this approval is modified to non - passing to determine that this approval is not passed.
[0084] Table 18
[0085] Table 19
[0086] In the above - mentioned solution, when the approval object performs an approval operation on the current approval link and the approval operation is non - passing, immediately modify the operation status of the corresponding second data to non - passing, and at the same time synchronously update the approval status of the first data to non - passing. This ensures that the veto operation on the current approval link can terminate the process in real - time and strengthens the rigor of process control.
[0087] In an example of this application, a process approval method is also provided. As Figure 5 shown, the method further includes: Step 501, detect a withdrawal operation of the object for the link to which the object belongs, and obtain the next link of this link from the third data table.
[0088] Step 502, if it is determined that the next link meets the fifth target condition, delete all the second data of the next link in the second data table. The fifth target condition is that the approval rule of the next link is single - person approval and the operation status of all the second data of the next link is to be approved, or the approval rule of the next link is multi - person approval and there is at least one second data of the next link with an operation status of to be approved.
[0089] The initiating object and the approval object can perform a withdrawal operation on the passed initiating link or approval link to which they belong, but the next link of the link to be withdrawn has not passed or has not been non - passed yet. That is, the approval rule of the next link is single - person approval and the operation status of all the second data of all the approval objects of the next link is to be approved. Or the approval rule of the next link is multi - person approval and there is at least one second data with an operation status of to be approved in the next link. If the next link of the link to be withdrawn meets the above conditions, then delete all the second data of the next link in the second data table.
[0090] For example, the first data table for a certain approval is shown in Table 14, and the second data table is shown in Table 13. The approval object with the role ID of 1001 initiated a withdrawal operation for the approval process to which it belongs. Based on the second data table, it can be seen that the operation statuses of all the second data corresponding to the next process of the process to be withdrawn are all pending review, meeting the fifth target condition. Then, as shown in Table 20, all the second data corresponding to the next process of the process to be withdrawn are deleted.
[0091] Table 20
[0092] Step 503: Modify the operation statuses of all the second data of the said process to "withdrawn", and insert the second data with the number of objects of the said process into the second data table, and set the operation status of the second data to "pending approval".
[0093] At the same time, it is also necessary to modify the operations of all the second data of the withdrawn process to "withdrawn", and insert the second data with the operation status set to "pending approval" and the number of objects of the withdrawn process into the second data table.
[0094] Continuing with the above example, as shown in Table 21, set the operation statuses of the second data corresponding to R001 and R1002 to "withdrawn", and re-insert the second data with the operation status of "pending review" corresponding to R001 and R1002.
[0095] Table 21
[0096] In the above solution, when an object initiates a withdrawal operation for the process to which it belongs, identify the next approval process of the said process (i.e., the current approval process). If the current approval process meets the condition that "the approval rule is single-person approval and the operation statuses of all the corresponding second data are pending approval" or "the approval rule is multi-person approval and there is at least one corresponding second data with the operation status of pending approval", then immediately delete all the second data of the current approval process. At the same time, modify the operation statuses of all the second data of the process to be withdrawn to "withdrawn", and regenerate the second data with the same number of objects as the process to be withdrawn. By deleting the useless second data of the current approval process and modifying the operation status of the original second data of the process to be withdrawn to "withdrawn" to retain the withdrawal information, the withdrawal operation is realized, and data redundancy caused by process rollback is avoided.
[0097] In an example of the present application, a process approval method is further provided, and the method further includes: If a deletion operation of the initiating object for the approval is detected and it is determined that the approval status of the first data is draft, then the operation status of the approval for the second data in the second data table is modified from pending approval to deleted, and the approval status of the first data is modified to deleted.
[0098] The initiating object can perform a deletion operation on the approval it initiated, but the approval status of the first data of this approval needs to be draft. If the approval status of the first data of this approval is draft, then the operation status of all the second data of this approval in the second data table is modified to deleted, and the approval status of the first data is modified to deleted.
[0099] For example, the first data table of a certain approval is shown in Table 10, and the second data table is shown in Table 11. The initiating object with role ID 1005 initiated a deletion operation on this approval. Based on the first data table, it can be known that the approval status of this approval is draft. Therefore, as shown in Table 22, the operation status of the second data with application number 0001 in the second data table is modified to deleted, and as shown in Table 23, the operation status of the first data with application number 0001 in the first data table is modified to deleted.
[0100] Table 22
[0101] Table 23
[0102] In the above solution, when the initiating object initiates a deletion operation for the approval belonging to it, the operation status of the relevant second data in the second data table is modified to deleted, and at the same time, the approval status of the relevant first data in the first data table is synchronously modified to deleted. Instead of directly deleting the data, the record of the deletion operation is retained by modifying the status, and the quick deletion of the draft approval is realized on the premise of ensuring data integrity.
[0103] To implement the above process approval method, as Figure 6 shown, an example of this application provides a process approval device, including: The calculation module 601 is configured to insert a first piece of data into a first data table and insert a specified number of second pieces of data into a second data table based on an approval application of an initiating object. The first piece of data includes at least an approval status and an approval type of the approval. The specified number is determined based on at least two third pieces of data corresponding to the approval type in a third data table. The third piece of data corresponds to a link of the approval type. The third piece of data includes at least one object corresponding to the link. The second piece of data corresponds to the object. The second piece of data includes at least an operation status of the corresponding object for the belonging link. The object includes the initiating object and an approval object. The link includes an initiating link and an approval link; The processing module 602 is configured to detect an approval operation of the approval object for the current approval link, and modify and / or add the first piece of data and the second piece of data of the approval based on the approval operation. Wherein, if the modified second piece of data meets a first target condition, the approval is passed. The first target condition is that the final approval link of the approval is determined to be passed by the approval operation.
[0104] Wherein, the processing module 602 is further configured to detect that the initiating object submits a form of the approval, obtain the approval type of the approval, and insert a first piece of data into the first data table and insert a second piece of data into the second data table based on the approval type. The approval status of the first piece of data is set to draft. The second piece of data corresponds to the initiating object. The operation status of the second piece of data is set to pending approval; The processing module 602 is further configured to detect an initiating completion operation of the initiating object for the approval, and determine a third piece of data corresponding to the first approval link of the approval type in the third data table; The calculation module 601 is further configured to determine the number of approval objects of the first approval link based on the third piece of data, and insert the second piece of data with the number of approval objects into the second data table. The operation status of the second piece of data is set to pending approval; The processing module 602 is further configured to modify the operation status of the second piece of data corresponding to the initiating object to passed, and modify the approval status of the first piece of data to pending approval.
[0105] Wherein, the processing module 602 is further configured to determine that the approval operation indicates that the current approval link is passed, and modify the operation status of the second piece of data corresponding to the approval object to passed; The calculation module 601 is further configured to determine that the current approval step meets the second target condition and the third target condition, then insert second data of the number of approval objects in the next approval step into the second data table, update the current step of the first data to the next approval step, the first data further includes the current step, set the operation status of the second data to be pending approval, the next approval step and the number of approval objects are obtained from the third data table, the second target condition is that the approval rule of the current approval step is single-person approval, or the approval rule of the current approval step is multi-person approval and the operation status of the second data corresponding to other approval objects are all passed, and the third target condition is that the current approval step is not the final approval step of the approval.
[0106] Wherein, the processing module 602 is further configured to determine that the approval operation indicates that the current approval step is passed, then modify the operation status of the second data corresponding to the approval object to passed; The processing module 602 is further configured to determine that the current approval step meets the second target condition and the fourth target condition, then modify the approval status of the first data of the approval to passed, the second target condition is that the approval rule of the current approval step is single-person approval and the approval step is the final approval step of the approval, or the approval rule of the current approval step is multi-person approval and the operation status of the second data corresponding to other approval objects are all passed, and the fourth target condition is that the current approval step is the final approval step of the approval.
[0107] Wherein, the processing module 602 is further configured to determine that the approval operation indicates that the current approval step is not passed, then modify the operation status of the second data corresponding to the approval object to not passed, and modify the approval status of the first data of the approval to not passed.
[0108] Wherein, the processing module 602 is further configured to detect a withdrawal operation of an object for the step to which the object belongs, and obtain the next step of the step from the third data table; The processing module 602 is further configured to determine that the next step meets the fifth target condition, then delete all the second data of the next step in the second data table, the fifth target condition is that the approval rule of the next step is single-person approval and the operation status of all the second data of the next step are all pending approval, or the approval rule of the next step is multi-person approval and there is at least one second data of the next step with an operation status of pending approval; The calculation module 601 is further configured to modify the operation status of all the second data of the step to withdrawn, and insert second data of the number of objects of the step into the second data table, and set the operation status of the second data to be pending approval.
[0109] Wherein, the processing module 602 is further configured to, when detecting a deletion operation of the approval by the initiating object and determining that the approval status of the first data is a draft, change the operation status of the approval of the second data in the second data table from pending approval to deleted, and change the approval status of the first data to deleted.
[0110] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0111] Figure 7 FIG. shows a schematic block diagram of an exemplary electronic device 700 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0112] As Figure 7 shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0113] A plurality of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0114] The computing unit 701 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 executes the various methods and processes described above, such as the process approval method. For example, in some embodiments, the process approval method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the process approval method described above can be executed. Alternatively, in other embodiments, the computing unit 701 can be configured to execute the process approval method by any other suitable means (e.g., by means of firmware).
[0115] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0116] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program codes can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0117] In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0118] In order to provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0119] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0120] A computer system can include a client and a server. The client and the server are generally far apart from each other and typically interact through a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, can also be a server of a distributed system, or a server incorporating a blockchain.
[0121] It should be understood that the various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein.
[0122] In addition, the terms "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of this disclosure, "a plurality of" means two or more, unless otherwise specifically defined.
[0123] As described above, the above are only specific embodiments of this disclosure, but the protection scope of this disclosure is not limited thereto. Any person skilled in the art within the technical scope disclosed in this disclosure can easily think of changes or substitutions, which should all be covered by the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be subject to the protection scope of the claims.
Claims
1. A process approval method, characterized in that, The method includes: Based on the approval application of the initiating object, insert a first piece of data into the first data table and insert a specified number of second pieces of data into the second data table. The first piece of data includes at least the approval status and approval type of the approval. The specified number is determined based on at least two third pieces of data corresponding to the approval type in the third data table. The third piece of data corresponds to the link of the approval type. The third piece of data includes at least one object corresponding to the link. The second piece of data corresponds to the object. The second piece of data includes at least the operation status of the corresponding object for the link to which it belongs. The object includes the initiating object and the approval object. The link includes the initiating link and the approval link; Detect the approval operation of the approval object for the current approval link, and modify and / or add the first piece of data and the second piece of data of the approval based on the approval operation. Wherein, if the modified second piece of data meets the first target condition, the approval passes. The first target condition is that the final approval link of the approval is determined to pass by the approval operation.
2. The method according to claim 1, wherein The step of inserting a first piece of data into the first data table and inserting a specified number of second pieces of data into the second data table based on the approval application of the initiating object includes: Detect that the initiating object submits the form of the approval, obtain the approval type of the approval, and insert a first piece of data into the first data table and insert a second piece of data into the second data table based on the approval type. The approval status of the first piece of data is set to draft. The second piece of data corresponds to the initiating object. The operation status of the second piece of data is set to pending approval; Detect the initiating completion operation of the initiating object for the approval, and determine the third piece of data corresponding to the first approval link of the approval type in the third data table; Determine the number of approval objects for the first approval link based on the third piece of data, and insert the second pieces of data with the number of approval objects into the second data table. The operation status of the second pieces of data is set to pending approval; Modify the operation status of the second piece of data corresponding to the initiating object to passed, and modify the approval status of the first piece of data to pending approval.
3. The method according to claim 1, characterized in that, Detect the approval operation of the approval object for the approval link of the approval, and modify and / or add the first piece of data and the second piece of data of the approval based on the approval operation, including: Determine that the approval operation indicates that the current approval link passes, and modify the operation status of the second piece of data corresponding to the approval object to passed; If it is determined that the current approval step meets the second target condition and the third target condition, then insert second data of the number of approval objects in the next approval step into the second data table, update the current step of the first data to the next approval step. The first data further includes the current step, set the operation status of the second data to be pending approval. The next approval step and the number of approval objects are obtained from the third data table. The second target condition is that the approval rule of the current approval step is single-person approval, or the approval rule of the current approval step is multi-person approval and the operation status of the second data corresponding to other approval objects are all passed. The third target condition is that the current approval step is not the final approval step of the approval.
4. The method according to claim 1, characterized in that When it is detected that the approval object performs an approval operation on the approval step of the approval, modify and / or add the first data and the second data of the approval based on the approval operation, including: If it is determined that the approval operation indicates that the current approval step is passed, then modify the operation status of the second data corresponding to the approval object to passed; If it is determined that the current approval step meets the second target condition and the fourth target condition, then modify the approval status of the first data of the approval to passed. The second target condition is that the approval rule of the current approval step is single-person approval and the approval step is the final approval step of the approval, or the approval rule of the current approval step is multi-person approval and the operation status of the second data corresponding to other approval objects are all passed. The fourth target condition is that the current approval step is the final approval step of the approval.
5. The method according to claim 1, wherein When it is detected that the approval object performs an approval operation on the approval step of the approval, modify and / or add the first data and the second data of the approval based on the approval operation, including: If it is determined that the approval operation indicates that the current approval step is not passed, then modify the operation status of the second data corresponding to the approval object to not passed, and modify the approval status of the first data of the approval to not passed.
6. The method according to claim 1, wherein The method further includes: When it is detected that an object performs a withdrawal operation on the step to which the object belongs, obtain the next step of the step from the third data table; If it is determined that the next step meets the fifth target condition, then delete all the second data of the next step in the second data table. The fifth target condition is that the approval rule of the next step is single-person approval and the operation status of all the second data of the next step are all pending approval, or the approval rule of the next step is multi-person approval and there is at least one second data of the next step with an operation status of pending approval; Modify the operation status of all the second data of the step to be withdrawn, and insert second data of the number of objects of the step into the second data table, and set the operation status of the second data to be pending approval.
7. The method according to claim 1, wherein The method further includes: If a deletion operation of the approval by the initiating object is detected and it is determined that the approval status of the first data is draft, then the operation status of the approval for the second data in the second data table is modified from pending approval to deleted, and the approval status of the first data is modified to deleted.
8. A process approval device, characterized in that, The device includes: A calculation module, configured to insert a first data into a first data table and insert a specified number of second data into a second data table based on an approval application of an initiating object. The first data at least includes an approval status and an approval type of the approval. The specified number is determined based on at least two third data corresponding to the approval type in a third data table. The third data corresponds to a link of the approval type. The third data at least includes at least one object of the corresponding link. The second data corresponds to the object. The second data at least includes an operation status of the corresponding object for the affiliated link. The object includes the initiating object and the approval object. The link includes an initiating link and an approval link. A processing module, configured to detect an approval operation of the approval object for the current approval link, and modify and / or add the first data and the second data of the approval based on the approval operation. Wherein, if the modified second data meets a first target condition, the approval passes. The first target condition is that the final approval link of the approval is determined to pass by the approval operation.
9. An electronic device, characterized in that, It includes: A processor and a memory for storing executable instructions of the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the process approval method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is used to execute the process approval method according to any one of claims 1-7.
Citation Information
Patent Citations
Examination and approval method and device, electronic equipment and computer readable medium
CN111639918A
Service processing method and device
CN111897815A
Process approval certainty rule and semantic self-learning combined judgment method and device
CN114282875A
Data approval method and device based on block chain, equipment and storage medium
CN114372293A
Business auditing method and device, storage medium and electronic equipment
CN117541179A