Process approval method and device, electronic equipment and storage medium
The workflow approval method, which uses three data tables to work together, solves the problems of high system complexity and low efficiency in existing technologies, achieves high efficiency and stability in workflow approval, and reduces maintenance costs.
Patent Information
- Application Number
- CN202510846862.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-24
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2045-06-24
AI Technical Summary
Existing technologies require the maintenance of a large number of data tables in the process approval, resulting in high system complexity and compatibility issues. Strict approval processes may lead to inefficiency, especially when a bottleneck occurs at a certain stage.
By inserting first data into the first data table and a specified number of second data into the second data table based on the approval application initiated by the object, the three data tables work together to reduce system complexity and maintenance costs, thereby achieving high efficiency in process approval.
It significantly reduced the number and complexity of data tables in the system, improved the efficiency of process approval, ensured the stability and high availability of the approval process, and reduced reliance on technology.
Smart Images

Figure CN120355376B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of data processing, and in particular to a process approval method and device, an electronic device, and a storage medium. BACKGROUND
[0002] In the process of project construction, the approval function is one of the most common and most important functions, and is often the main function of a system. Whether it is an external output system or an internal system, the approval flow can be seen. The seemingly common approval function is indeed relatively complex in implementation. The approval module mainly includes the initiation of the flow by the applicant, the approval flow, multi-person approval, single-person approval, and the multi-branch flow transmission with conditions after the approval, and the return and cancellation after the disapproval. The development framework of the current commonly used approval flow needs to maintain dozens of data tables, and is based on a specific technical framework. The approval flow may increase the overall complexity of the system, require more development and maintenance costs, and may have technical dependence and compatibility problems. In addition, although the process engine aims to improve efficiency, strict approval processes may lead to low efficiency in some cases, especially when a certain link appears to be a bottleneck. SUMMARY
[0003] The present application provides a process approval method and device, an electronic device, and a storage medium.
[0004] The present application provides a process approval method and device, an electronic device, and a storage medium.
[0005] Based on the approval application of the initiator, a first data is inserted into a first data table, and a specified number of second data is inserted into a second data table. The first data at least includes the approval state and the 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 corresponding to the link, the second data corresponds to an object, and the second data at least includes the operation state of the object on the link. The object includes the initiator and an approval object, and the link includes an initiation link and an approval link.
[0006] The approval operation of the approval object on the current approval link is detected, and the first data and the second data of the approval are modified and / or newly added based on the approval operation. If the modified second 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.
[0007] The method comprises the following steps: based on the approval application of the initiator, a first data is inserted into a first data table, and a specified number of second data is inserted into a second data table. The first data at least includes the approval state and the 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 corresponding to the link, the second data corresponds to an object, and the second data at least includes the operation state of the object on the link. The object includes the initiator and an approval object, and the link includes an initiation link and an approval link.
[0008] detecting that the initiator submits a form of the approval, obtaining an approval type of the approval, and inserting a first data into a first data table and a second data into a second data table based on the approval type, the approval state of the first data being set as draft, the second data corresponding to the initiator, and the operation state of the second data being set as to be approved;
[0009] detecting that the initiator completes an operation for the approval, and determining a third data corresponding to a first approval link of the approval type in the third data table;
[0010] determining a number of approval objects of the first approval link based on the third data, and inserting second data of the number of approval objects into the second data table, the operation state of the second data being set as to be approved;
[0011] modifying the operation state of the second data corresponding to the initiator to passed, and modifying the approval state of the first data to to be approved.
[0012] wherein, based on the approval operation, the first data and the second data of the approval are modified and / or added, including:
[0013] determining that the approval operation indicates that the current approval link is passed, and modifying the operation state of the second data corresponding to the approval object to passed;
[0014] determining that the current approval link meets a second target condition and a third target condition, inserting second data of a number of approval objects of a next approval link into the second data table, and updating the first data to the next approval link, the first data further including the current link, the operation state of the second data being set as to be approved, the next approval link and the number of approval objects being obtained from the third data table, the second target condition being 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 state of the second data corresponding to other approval objects is all passed, and the third target condition being that the current approval link is not the final approval link of the approval.
[0015] wherein, based on the approval operation, the first data and the second data of the approval are modified and / or added, including:
[0016] determining that the approval operation indicates that the current approval link is passed, and modifying the operation state of the second data corresponding to the approval object to passed;
[0017] determining that the current approval link meets a second target condition and a fourth target condition, modifying the approval state of the first data of the approval to passed, the second target condition being that the approval rule of the current approval link is single-person approval and the current approval link is the final approval link of the approval, or the approval rule of the current approval link is multi-person approval and the operation states of the second data corresponding to other approval objects are all passed, and the fourth target condition being that the current approval link is the final approval link of the approval.
[0018] wherein the approval operation of the approval object on the approval link of the approval is detected, and the first data and the second data of the approval are modified and / or added based on the approval operation, comprising:
[0019] determining that the approval operation indicates that the current approval link is not passed, modifying the operation state of the second data corresponding to the approval object to not passed, and modifying the approval state of the first data of the approval to not passed.
[0020] wherein the method further comprises:
[0021] detecting a withdrawal operation of an object on a link to which the object belongs, obtaining a next link of the link from the third data table;
[0022] determining that the next link meets a fifth target condition, deleting all second data of the next link in the second data table, the fifth target condition being that the approval rule of the next link is single-person approval and the operation states of all second data of the next link are all to be reviewed, 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 state of to be reviewed;
[0023] modifying the operation states of all second data of the link to have been withdrawn, and inserting second data of the number of objects of the link into the second data table, the operation state of the second data being set to to be reviewed.
[0024] wherein the method further comprises:
[0025] detecting a deletion operation of the initiating object on the approval and determining that the approval state of the first data is a draft, modifying the operation state of the second data of the approval in the second data table from to be reviewed to have been deleted, and modifying the approval state of the first data to have been deleted.
[0026] Another aspect of the embodiments of the present application provides a process approval device, the device comprising:
[0027] The computing module is 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 initiated by an object, the first data at least including an approval state and an approval type of the approval, the specified number being determined based on at least two third data corresponding to the approval type in a third data table, the third data corresponding to a link of the approval type, the third data at least including at least one object corresponding to the link, the second data corresponding to an object, the second data at least including an operation state of the object on the link, the object including the initiating object and an approval object, and the link including an initiating link and an approval link.
[0028] The processing module is configured to detect an approval operation of the approval object on a 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 satisfies a first target condition, the approval is passed, and the first target condition is that a final approval link of the approval is determined as passed by the approval operation.
[0029] In an aspect, the present application provides a flow approval method, comprising:
[0030] A processor and a memory for storing executable instructions of the processor;
[0031] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the flow approval method.
[0032] In another aspect, the present application provides a computer readable storage medium, the storage medium storing a computer program, the computer program being used to execute the flow approval method.
[0033] It should be understood that the content described in this section is not intended to identify 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 apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0034] The above and other objects, features and advantages of the example embodiments of the present application will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0035] In the drawings, the same or corresponding parts are denoted by the same or corresponding reference numerals.
[0036] Figure 1 A flow chart of a flow approval method according to an embodiment of the present application is shown;
[0037] Figure 2A flow chart of a process approval method according to another embodiment of the present application is shown;
[0038] Figure 3 A flow chart of a process approval method according to another embodiment of the present application is shown;
[0039] Figure 4 A flow chart of a process approval method according to another embodiment of the present application is shown;
[0040] Figure 5 A flow chart of a process approval method according to another embodiment of the present application is shown;
[0041] Figure 6 A structural schematic diagram of a process approval device according to an embodiment of the present application is shown;
[0042] Figure 7 A structural schematic diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] In order to make the purposes, features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0044] In order to realize process approval while reducing the number of maintained data tables and the complexity of the whole system and improving the efficiency of process approval, an embodiment of the present application provides a process approval method, as shown in Figure 1 The method comprises the following steps.
[0045] In step 101, based on the approval application of an initiating object, a first data is inserted into a first data table and a specified number of second data is inserted into a second data table, the first data at least includes the approval state and the 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 corresponding to the link, the second data corresponds to an object, and the second data at least includes the operation state of the object on the link, the object includes the initiating object and an approval object, and the link includes an initiating link and an approval link.
[0046] The first data table is a data table for storing the first data corresponding to the approval, and each approval process has a corresponding unique first data in the first data table.
[0047] In the embodiment, the data structure of the first data table is shown in Table 1, and the application number is the unique ID in the first data table. The approval type is the approval type corresponding to the approval, such as project establishment, project withdrawal, quarterly fund, project fund, and fund transfer. The initiator is the application initiator of the approval, and the value is at least one user ID, which is the unique ID of the user in the user table. The approval state is the state of the whole approval, such as pending approval (indicating that the approval is still in progress), passed (indicating that the approval has passed), and failed (indicating that the approval has failed). The current approval link is the current approval link of the approval, and one approval has one initiation link and at least one approval link. The current object is the initiator or the approval object. If the current approval link is the initiation link, the current object is the initiator. If the current approval link is the approval link, the current object is all approval objects of the current approval link, and the value is at least one user ID or role ID. The user ID is the unique ID of the user in the user table, and the role ID is the unique ID of the role in the user table. The role includes at least one user. The flow condition is the condition required to be met after the completion of the current approval link in the approval process to flow to the next approval link. If there is no flow condition, the field can be deleted.
[0048] Table 1
[0049]
[0050] In the embodiment, there are two ways to implement the flow condition.
[0051] The first way is to set the flow condition data table, and the value of the flow condition in the first data is the unique ID of the flow condition in the flow condition data table.
[0052] The second way is to directly implement the flow condition through a fixed code, and the value of the flow condition in the first data is the unique ID of the corresponding flow condition triggered in the code.
[0053] In other embodiments, other fields can be added to the first data table to collect more information, as shown in Table 2. In Table 2, other fields that can be added to the first data table include tenant number, application title, creation time and user, update time and user, and process contact. When the system is an external output system, the tenant number can be set as the unique ID of the user institution. The initiator can input the title of the approval when initiating the application. The creation time and user are the time and user of creating the first data. The update time and user are the time and user of updating the first data. The process contact includes all users involved in the approval, including the initiator and the approval object. Other required fields can be added to the first data table based on specific needs.
[0054] Table 2
[0055]
[0056] The third data table is a third data table pre-set 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. Each third data corresponds to a certain approval link in a certain approval type.
[0057] In the embodiment, the data structure of the third data table is shown in Table 3. The approval type is an approval type to which the approval link belongs, such as project establishment, project withdrawal, quarterly fund, project fund, fund replacement, etc. The approval link serial number is an 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 single-person approval or multi-person approval. Single-person approval means that if one of the at least one approval object of the approval link is selected to pass, the approval link is passed. Multi-person approval means that if each of the at least one approval object of the approval link is selected to pass, the approval link is passed. The approval role and the approval user are two alternative fields, both of which represent users who can approve the approval link. The value of the approval user is at least one user ID, and the user ID is a 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 a unique ID corresponding to the role in the user table. The role includes at least one user. The flow condition is a condition required to be met after the current approval link is completed in the approval process to flow to the next approval link. If no flow condition is required, the field can be deleted.
[0058] Table 3
[0059]
[0060] In other embodiments, other fields can be added to the third data table to collect more information, as shown in Table 4. In Table 4, other fields that can be added to the third data table are shown, such as tenant number. When the system is output to the outside, the tenant number can be set, which is a unique ID corresponding to the user institution. The value of the same institution audit is 0 or 1, 0 representing that the approval object and the initiation object are in the same institution, and 1 representing that the approval object and the initiation object are not in the same institution, which is usually used in combination with the flow condition. The remark is a remark information of the approval link.
[0061] Table 4
[0062]
[0063] The second data table stores the second data of the object of each approval link. After the initiating object initiates the approval application, the approval type of the approval is determined to determine the approval link of the initiated approval and at least one approval object corresponding to each approval link. Then, a second data corresponding to the initiating object and a second data corresponding to each approval object of the first approval link are inserted into the second data table. In the subsequent approval process, when the current approval link is passed, a second data corresponding to each approval object of the next approval link is inserted into the second data table.
[0064] In the 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. The application number of the second data is associated with the first data in the first data table by the ID. The approval type is the approval type corresponding to the approval, such as project establishment, project withdrawal, quarterly fund, project fund, and fund transfer. The operation state is the operation state of the object corresponding to the second data to the link to which the second data belongs, such as waiting for approval (indicating that the object has not performed approval on the link), passed (indicating that the object has passed the approval of the link), and not passed (indicating that the object has refused to pass the approval of the link). The approval object is a single user or a single role corresponding to the second data, and the value is a user ID or a role ID. The user ID is the unique ID of the user in the user table, and the role ID is the unique ID of 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 user in the role first operates the link to which the second data belongs, and is regarded as the operation of the role to the link to which the second data belongs.
[0065] Table 5
[0066]
[0067] In other embodiments, other fields can be added to the second data table to collect more information, as shown in Table 6. In Table 6, other fields that can be added to the second data table are shown, such as tenant number. When the system is an external output system, the tenant number can be set as the unique ID of the user institution. The application title is the title of the approval input by the initiating object when initiating the application. The creation time and the creation user are the time and the user who create the first data. The update time and the update user are the time and the user who update the first data. The remark is the remark information of the approval link. Other required fields can be added to the first data table based on specific needs.
[0068] Table 6
[0069]
[0070] The following illustrates the specific scheme of step 101 in combination with a specific scenario:
[0071] As shown in Table 7, Table 7 is two third data corresponding to two approval links of the project approval type in a third data table of a certain system.
[0072] Table 7
[0073]
[0074] The initiator initiates the approval application, inserts the first data into the first data table, and the first data after insertion is shown in Table 8. The user ID of the initiator is 1005, the approval type selected by the initiator is project approval, and after the initiation is completed, the initiation link is completed. Therefore, the current approval link is the first approval link of the project approval type, that is, the third data in the third data table with the approval type of project approval and the approval link sequence number of 1. The approval roles in the third data include two roles with role IDs of 1001 and 1002. Therefore, the current object of the first data is R1001 and R1002, and R represents that the ID is a role ID.
[0075] Table 8
[0076]
[0077] At the same time, a specified number of second data is inserted into the second data table, and the specified number is determined based on the number of approval objects of the initiator and the first approval link of the project approval type, that is, 1+2=3 second data. The second data after insertion is shown in Table 9. The first second data corresponds to the initiator of the initiation link, so the approval link sequence number is 0, the initiation link has been passed, and the operation state of this second data is passed. The user ID of the initiator is 1005, so the approval object of this second data is U1005, and U represents that the ID is a user ID. The second and third second data correspond to the two approval roles of the first approval link, so the approval link sequence number is 1, and the current approval role has not been processed, so the operation state of the two second data is pending. The second second data corresponds to the approval role with the role ID of 1001, so the approval object is R1001. The third second data corresponds to the approval role with the role ID of 1002, so the approval object is R1002. The three second data are all associated with the first data with the application number of 0001 in the first data table, so the application number is 0001, and the approval type is also project approval.
[0078] Table 9
[0079]
[0080] At step 102, it is detected that the approval operation of the approval object for the current approval link, and the first data and the second data of the approval are modified and / or added based on the approval operation, wherein if the modified second data meets the first target condition, the approval is passed, and the first target condition is that the final approval link of the approval is determined to be passed by the approval operation.
[0081] After entering the approval link, the approval object of the approval link can initiate the approval operation on the approval link. Based on the approval operation of the approval object, the first data and the second data of the approval are modified and / or added.
[0082] Taking the above example, after entering the first approval link (i.e., the link with the link number 1), the approval roles of the approval link are 1001 and 1002, so the users in the roles 1001 and 1002 both have the permission to initiate the approval operation on the approval link. A user in the role 1001 initiates the approval operation on the approval link first and selects to pass the approval link, and since the approval rule of the approval link is single-person approval, the approval link is directly passed. Since the approval link has subsequent approval links, after the first data and the corresponding second data are modified based on the approval operation on the approval link, the second data corresponding to the approval objects of the subsequent approval links are also inserted into the second data table. Until the final approval link of the approval is passed, it is determined that the approval is passed.
[0083] In the above scheme, the system complexity and maintenance cost are significantly reduced through the cooperative operation mechanism of the three core data tables, i.e., the first data table, the second data table and the third data table. The first data table stores the global state of the approval instance (at least including the approval type and the approval state), the third data table fixes the link rules of each approval type (defines the number of links and the associated objects), and the initiator creates the approval according to the number of links predefined by the third data table to automatically insert the corresponding number of second data into the second data table (each data is bound to the operation state of the corresponding object of the link). When the approval object completes the current link operation, the system directly modifies the operation state of the link in the second data table, and updates the approval state of the first data table in real time based on the state change. If it is detected that there are subsequent approval links, the corresponding number of second data is continuously inserted into the second data table. If it is detected that the operation state of the final approval link is marked as passed, the first data table is synchronously updated to the approval passed state. While implementing the process approval, the data table maintenance amount and the overall system complexity are reduced to the minimum, thereby improving the efficiency of the process approval and reducing the technical dependence.
[0084] In an example of the present application, a process approval method is also provided, such as Figure 2As shown, the approval application based on the initiator is inserted into a first data table and a specified number of second data is inserted into a second data table, including:
[0085] In step 201, it is detected that the initiator submits the form of the approval, obtains the approval type of the approval, and inserts a first data into the first data table and a second data into the second data table based on the approval type, the approval state of the first data is set to draft, the second data corresponds to the initiator, and the operation state of the second data is set to pending approval.
[0086] The initiator needs to submit the form of the approval first, and needs to fill in at least the approval type in the form to determine the approval type of the approval. After obtaining the approval type of the approval, a first data with a draft approval state is inserted into the first data table based on the approval type, and a second data corresponding to the initiator of the initiation link is inserted into the second data table, and the operation state of the second data is pending approval.
[0087] For example, the data in the third data table is shown in Table 7, including two third data corresponding to two approval links of the process type of project initiation. The initiator submits the form of the approval, and needs to apply for the approval type of the approval. As shown in Table 10, a first data with the approval type of project initiation, the initiator 1005 (the user ID of the initiator is 1005), the approval state of draft, the current approval link 0 (indicating that it is currently in the initiation link), and the current object U1005 (indicating the user with the user ID of 1005) is inserted into the first data table.
[0088] Table 10
[0089]
[0090] As shown in Table 11, a second data with the approval type of project initiation, the approval link number 0, the operation state of pending approval, and the approval object U1005 is inserted into the second data table.
[0091] Table 11
[0092]
[0093] In step 202, it is detected that the initiator completes the operation for the initiation of the approval, and determines that the first approval link of the approval type corresponds to the third data in the third data table.
[0094] After the initiator submits the form of the approval, the initiator also needs to complete the initiation operation for the approval, and the approval can complete the initiation link and enter the first approval link.
[0095] Continuing the above example, it is detected that the initiator object initiates a complete operation for the approval with the application number 0001, and the third data corresponding to the first approval link of the approval type of project establishment is determined from the third data table, i.e., the third data of the approval type of project establishment and the approval link serial number of 1 as shown in Table 7.
[0096] In step 203, the number of approval objects of the first approval link is determined based on the third data, and the second data of the number of approval objects is inserted into the second data table, and the operation state of the second data is set to be under review.
[0097] In step 204, the operation state of the second data corresponding to the initiator object is modified to be passed, and the approval state of the first data is modified to be under review.
[0098] Continuing the above example, after the corresponding third data is determined, the number of approval objects of the third data is 2, as shown in Table 9, and 2 pieces of second data corresponding to the 2 approval objects are inserted into the second data table. And at the same time, the operation state of the second data corresponding to the initiator object is modified to be passed, and the approval state of the first data is modified to be under review.
[0099] In the above scheme, when the initiator object submits the approval form, the system only initializes one first data (the approval state is set to be a draft) and one second data of the initiator object corresponding to the initiation link (the operation state is under review). When the initiator object performs the initiation completion operation for the approval, the number of objects of the first approval link of the approval type is obtained according to the third data table, the second data corresponding to the number of objects is inserted into the second data table (the operation state is under review), and the operation state of the second data of the initiation link is updated to be passed, and the approval state of the first data is changed to be under review. By delaying the generation of the approval link data record, the draft stage of the approval is realized, the window for modification and withdrawal is left for the initiator object, the direct entry of the approval into the under review stage is avoided, and the stability and high availability of the process approval are further improved. At the same time, the formal start of the approval process is ensured and the accurate matching of the link data is ensured, the system load is further reduced and the data processing efficiency is improved on the basis of maintaining the simplicity of the structure of the three data tables.
[0100] In an example of the present application, a process approval method is also provided, as shown in Figure 3 The approval operation of the approval object for the approval link of the approval is detected, and the first data and the second data of the approval are modified and / or added based on the approval operation, including:
[0101] In step 301, it is determined that the approval operation indicates that the current approval link is passed, and the operation state of the second data corresponding to the approval object is modified to be passed.
[0102] If the approval operation of the approval object for the current approval link is passed, the operation state of the second data corresponding to the approval object is modified to passed.
[0103] For example, the second data table of a certain approval after entering the first approval link is shown in Table 9, the approval objects of the approval link are roles 1001 and 1002, and a user belonging to the role 1001 performs an approval operation on the approval link, and the approval operation is passed. As shown in Table 12, the operation state of the second data corresponding to the role 1001 is modified to passed.
[0104] Table 12
[0105]
[0106] In step 302, it is determined that the current approval link meets the second target condition and the third target condition, and then the second data of the number of approval objects of 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 further includes the current link, the operation state of the second data is set to be under approval, and 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 state of the second data corresponding to other approval objects is passed, and the third target condition is that the current approval link is not the final approval link of the approval.
[0107] If the approval operation of the approval object for the current approval link is passed, it is also necessary to determine whether the current approval link meets the second target condition and the third target condition. The second target condition is that the approval rule of the current approval link is single-person approval, and as long as one of the approval objects of the current approval link has a passed approval operation, the current approval link is passed. Or the second target condition is that the approval rule of the current approval link is multi-person approval, and all approval objects of the current approval link have passed approval operations, and the current approval link is passed. The third target condition is that the current approval link is not the final approval link of the approval. If the current approval link meets the second target condition and the third target condition at the same time, the number of approval objects of the next approval link is determined from the third data table, and the second data of the number of approval objects of the next approval link is inserted into the second data table, each second data corresponding to an approval object. And the current link information in the first data is updated to the next approval link.
[0108] Taking the above example, the third data table of the examination and approval is shown in Table 7, and the first data table is shown in Table 8. Based on the third data table, it is known that the examination and approval type of the first examination and approval link is single-person examination and approval, and the examination and approval link is not the final examination and approval link of the examination and approval type. Therefore, the current examination and approval link satisfies the second target condition and the third target condition. The number of examination and approval objects of the next examination and approval link is determined to be 2 from the third data table. As shown in Table 13, the second data of the number of examination and approval objects of the next examination and approval link is inserted into the second data table, wherein the examination and approval link numbers of the two second data are both 2, the operation states are both to be reviewed, the examination and approval object of one second data is U1002, and the examination and approval object of the other second data is U1003. As shown in Table 14, the current link information in the first data is updated to the next examination and approval link. In addition, after determining that the examination and approval rule of the current examination and approval link is single-person examination and approval, the operation states of the second data corresponding to other examination and approval objects can be modified to have been skipped, so as to prevent the data information from being misleading.
[0109] Table 13
[0110]
[0111] Table 14
[0112]
[0113] It should be noted that since the examination and approval objects of the examination and approval link all have the permission to initiate the examination and approval operation of the examination and approval link, when multiple examination and approval objects simultaneously perform the examination and approval operation on the examination and approval link, data errors and other problems can occur. An additional lock table can be added to solve the above problems. When the first examination and approval operation initiated on the current examination and approval link is detected, a lock data is added to the lock table, and the lock data at least includes data that can be associated with the current examination and approval, such as an application number. When any user initiates an operation on the examination and approval, it is first queried whether there is associated lock data in the lock table. If there is, the operation of the user is refused. If there is not, the associated lock data is added to the lock table, and the operation of the user is released. Of course, after the operation of the user is completed or the user exits the operation, the associated lock data in the lock table needs to be deleted to unlock the examination and approval.
[0114] In addition, the lock data can also include preset time length data. When it is determined that the lock data is added for more than the time length data, the lock data can be directly deleted to prevent abnormal occupation.
[0115] In the above scheme, when the approval object performs an approval operation on the current approval link and the approval operation is passed, the operation state of the corresponding second data is updated to passed. If the current approval link meets the conditions of "single approval" or "multi-person approval and all pass", and the current approval link is not the final approval link, the number of approval objects of the next approval link is obtained from the third data table, a corresponding number of second data is inserted into the second data table, and the current link of the first data is updated to the next approval link. It is ensured that the approval process strictly follows the rules and gradually advances, while maintaining the continuity and controllability of the approval process through real-time link state updating, simplifying the operation logic while improving overall execution efficiency.
[0116] In an example of the present application, a process approval method is also provided, as shown in Figure 4 The approval operation of the approval object on the approval link of the approval is detected, and the first data and the second data of the approval are modified and / or added based on the approval operation, including:
[0117] Step 401, determine that the approval operation indicates that the current approval link is passed, then modify the operation state of the second data corresponding to the approval object to passed.
[0118] After entering the approval link, if the approval operation performed by the corresponding approval object on the approval link is passed, the operation state of the second data corresponding to the approval object is modified to passed.
[0119] 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 on the current approval link, and the operation state of the second data corresponding to the approval object is modified to passed as shown in Table 15. However, since the approval rule of the current approval link is multi-person approval and the operation state of another approval object is still in the state of waiting for review, the current approval link has not been passed, and other data is not processed. The approval object with user ID 1002 also performs a passed approval operation on the current approval link, and the operation state of the second data corresponding to the approval object is modified to passed as shown in Table 16.
[0120] Table 15
[0121]
[0122] Table 16
[0123]
[0124] At step 402, it is determined that the current approval link meets the second target condition and the fourth target condition, and the approval state of the first data of the approval is modified to be passed. The second target condition is that the approval rule of the current approval link is single-person approval and the current approval link is the final approval link of the approval, or the approval rule of the current approval link is multi-person approval and the second data operation states corresponding to other approval objects are all passed. The fourth target condition is that the current approval link is the final approval link of the approval.
[0125] In the above example, although the approval rule of the current approval link is multi-person approval, all the approval objects of the current approval link have been passed. Based on the third data table, it is known that the current approval link is the final approval link. Therefore, the current approval link meets the second target condition and the fourth target condition. As shown in Table 17, the approval state of the first data of the approval is modified to be passed to determine that the approval is passed.
[0126] Table 17
[0127]
[0128] In the above scheme, when the approval object completes the passing operation in the current approval link, the operation state of the corresponding second data is updated to be passed. If the current approval link is “single-person approval” or “multi-person approval and all employees pass”, and the current approval link is the final approval link, the approval state of the first data is modified to be passed at the same time. The closed loop of the approval state is ensured when the approval process reaches the end point, without the need for additional polling or manual intervention. Through accurate identification of the second target condition and the fourth target condition, instantaneous response is realized, which not only guarantees the accuracy of the approval result, but also maximally compresses the delay of the approval state update.
[0129] In an example of the present application, a process approval method is also provided. It is detected that the approval object performs an approval operation on the approval link of the approval. Based on the approval operation, the first data and the second data of the approval are modified and / or added, comprising:
[0130] If it is determined that the approval operation indicates that the current approval link is not passed, the operation state of the second data corresponding to the approval object is modified to be not passed, and the approval state of the first data of the approval is modified to be not passed.
[0131] If the approval operation of the approval object on the current approval link is not passed, the operation state of the second data corresponding to the approval object is modified to be not passed without other conditions, and the approval state of the first data of the approval is modified to be not passed.
[0132] For example, the first data table of an approval is shown in Table 14, and the second data table is shown in Table 13. The approval object with the user ID of 1003 performs a disapproval operation on the current approval link, and then the operation state of the second data corresponding to the approval object is modified to disapproval, as shown in Table 18, and the approval state of the first data of the approval is modified to disapproval, as shown in Table 19, to determine that the approval is disapproved.
[0133] Table 18
[0134]
[0135] Table 19
[0136]
[0137] In the above scheme, when the approval object performs an approval operation on the current approval link and the approval operation is disapproval, the operation state of the second data corresponding to the approval object is immediately modified to disapproval, and the approval state of the first data is synchronously updated to disapproval. This ensures that the veto operation on the current approval link can terminate the process in real time, thereby strengthening the rigor of process control.
[0138] In an example of the present application, a process approval method is also provided, as shown in Figure 5 The method further includes:
[0139] In step 501, it is detected that the object performs a withdrawal operation on the link to which the object belongs, and the next link of the link is obtained from the third data table.
[0140] In step 502, it is determined that the next link satisfies a fifth target condition, and all second data of the next link in the second data table is deleted, the fifth target condition being that the approval rule of the next link is single-person approval and the operation state of all second data of the next link is pending approval, 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 a pending approval operation state.
[0141] The initiator and the approval object can perform a withdrawal operation on the passed initiator link or approval link to which the object belongs, but the next link of the link to be withdrawn has not been passed or has not been disapproved. That is, the approval rule of the next link is single-person approval, and the operation state of all second data of the approval object of the next link is pending approval. 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 a pending approval operation state. If the next link of the link to be withdrawn satisfies the above conditions, all second data of the next link in the second data table is deleted.
[0142] For example, the first data table of an 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 initiates a withdrawal operation on the approval link to which it belongs. Based on the second data table, the operation state of the second data corresponding to the next link of the link to be withdrawn is all in the state of to-be-reviewed, satisfying the fifth target condition. Then, as shown in Table 20, all the second data corresponding to the next link of the link to be withdrawn is deleted.
[0143] Table 20
[0144]
[0145] In step 503, the operation state of all the second data of the link is modified to be withdrawn, and second data of the number of objects of the link is inserted into the second data table, and the operation state of the second data is set to be to-be-approved.
[0146] Meanwhile, the operation of all the second data of the withdrawn link is also modified to be withdrawn, and second data of the number of objects of the withdrawn link is inserted into the second data table, and the operation state of the second data is set to be to-be-approved.
[0147] In the above example, as shown in Table 21, the operation state of the second data corresponding to R001 and R1002 is set to be withdrawn, and second data with the operation state of to-be-reviewed corresponding to R001 and R1002 is re-inserted.
[0148] Table 21
[0149]
[0150] In the above scheme, when the object initiates a withdrawal operation on the link to which it belongs, the next approval link (i.e., the current approval link) of the link is identified. If the current approval link satisfies the condition that the approval rule is single-person approval and the operation state of all the corresponding second data is to-be-approved, or the approval rule is multi-person approval and there is at least one second data with the operation state of to-be-approved, all the second data of the current approval link is immediately deleted. Meanwhile, the operation state of all the second data of the link to be withdrawn is modified to be withdrawn, and second data with the number of objects of the link to be withdrawn is re-generated. By deleting the second data of the useless current approval link, the original second data operation state of the link to be withdrawn is modified to be withdrawn to leave withdrawal information, which realizes the withdrawal operation and avoids data redundancy caused by process rollback.
[0151] In an example of the present application, a process approval method is also provided, and the method further comprises:
[0152] If the initiating object is detected to initiate a deletion operation on the approval and it is determined that the approval state of the first data is draft, the operation state of the second data in the second data table is modified from to-be-approved modification to deleted, and the approval state of the first data is modified to deleted.
[0153] The initiating object can initiate a deletion operation on the approval initiated by the object, but the approval state of the first data of the approval needs to be draft. If the approval state of the first data of the approval is draft, the operation state of all second data in the second data table of the approval is modified to deleted, and the approval state of the first data is modified to deleted.
[0154] For example, the first data table of an approval is shown in Table 10, and the second data table is shown in Table 11. The initiating object with a role ID of 1005 initiates a deletion operation on the approval. Based on the first data table, it can be known that the approval state of the approval is draft. Therefore, as shown in Table 22, the operation state of the second data with an application number of 0001 in the second data table is modified to deleted, and as shown in Table 23, the operation state of the first data with an application number of 0001 in the first data table is modified to deleted.
[0155] Table 22
[0156]
[0157] Table 23
[0158]
[0159] In the above scheme, when the initiating object initiates a deletion operation on the approval belonging to the object, the operation state of the related second data in the second data table is modified to deleted, and the approval state of the related first data in the first data table is modified to deleted. Instead of directly deleting the data, the deletion operation record is retained by modifying the state, and the quick deletion of the draft approval is realized on the premise of ensuring the integrity of the data.
[0160] To implement the above process approval method, as shown in Table 1, Figure 6 An example of the present application provides a process approval device, which comprises:
[0161] The computing module 601 is 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 initiated by an object, the first data at least including an approval state and an approval type of the approval, the specified number being determined based on at least two third data corresponding to the approval type in a third data table, the third data corresponding to a link of the approval type, the third data at least including at least one object corresponding to the link, the second data corresponding to an object, the second data at least including an operation state of the object on the link, the object including the initiating object and an approval object, and the link including an initiating link and an approval link.
[0162] The processing module 602 is configured to detect an approval operation of the approval object on a 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 is passed, and the first target condition is that a final approval link of the approval is determined as passed by the approval operation.
[0163] The processing module 602 is further configured to detect that the initiating object submits a form of the approval, obtain an approval type of the approval, and insert a first data into the first data table and a second data into the second data table based on the approval type, the approval state of the first data being set as a draft, the second data corresponding to the initiating object, and the operation state of the second data being set as to be reviewed.
[0164] The processing module 602 is further configured to detect that the initiating object performs an initiating completion operation on the approval, and determine third data corresponding to a first approval link of the approval type in the third data table.
[0165] The computing module 601 is further configured to determine a number of approval objects of the first approval link based on the third data, and insert the number of second data into the second data table, the operation state of the second data being set as to be reviewed.
[0166] The processing module 602 is further configured to modify the operation state of the second data corresponding to the initiating object to passed, and modify the approval state of the first data to to be reviewed.
[0167] 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 state of the second data corresponding to the approval object to passed.
[0168] The computing module 601 is also configured to: determine that the current approval link meets a second target condition and a third target condition, insert second data of an approval object quantity of a next approval link into the second data table, update the first data to the next approval link, set an operation state of the second data to be under review, and obtain the next approval link and the approval object quantity from the third data table, wherein the second target condition is that an 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 operation states of second data corresponding to other approval objects are all passed, and the third target condition is that the current approval link is not a final approval link of the approval.
[0169] The processing module 602 is also configured to: determine that the approval operation indicates that the current approval link is passed, and modify the operation state of the second data corresponding to the approval object to be passed.
[0170] The processing module 602 is also configured to: determine that the current approval link meets a second target condition and a fourth target condition, and modify an approval state of the first data of the approval to be passed, wherein the second target condition is that an approval rule of the current approval link is single-person approval and the current approval link is a final approval link of the approval, or the approval rule of the current approval link is multi-person approval and operation states of second data corresponding to other approval objects are all passed, and the fourth target condition is that the current approval link is a final approval link of the approval.
[0171] The processing module 602 is also configured to: determine that the approval operation indicates that the current approval link is not passed, modify the operation state of the second data corresponding to the approval object to be not passed, and modify the approval state of the first data of the approval to be not passed.
[0172] The processing module 602 is also configured to: detect a withdrawal operation of an object with respect to a link to which the object belongs, and obtain a next link of the link from the third data table.
[0173] The processing module 602 is also configured to: determine that the next link meets a fifth target condition, and delete all second data of the next link in the second data table, wherein the fifth target condition is that an approval rule of the next link is single-person approval and operation states of all second data of the next link are all under review, or the approval rule of the next link is multi-person approval and there is at least one piece of second data of the next link with an operation state of being under review.
[0174] The computing module 601 is further configured to modify the operation state of all the second data of the link to be withdrawn, and insert second data of the number of objects of the link into the second data table, and set the operation state of the second data to be under review.
[0175] The processing module 602 is further configured to, when detecting that the initiating object is directed to a deletion operation of the review and determining that the review state of the first data is a draft, modify the operation state of the second data of the review in the second data table from under review to deleted, and modify the review state of the first data to be deleted.
[0176] According to embodiments of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0177] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present disclosure described and / or claimed in this document.
[0178] As shown in Figure 7 The device 700 includes a computing unit 701 that can perform various appropriate actions and processes according to computer programs stored in a read-only memory (ROM) 702 or loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for operation of the device 700 can also be stored in the RAM 703. 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.
[0179] Various 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, a speaker, 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.
[0180] The computing unit 701 can be various general 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 specialized 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 performs various methods and processes described above, such as the flow approval method. For example, in some embodiments, the flow 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 onto the RAM 703 and executed by the computing unit 701, one or more steps of the flow approval method described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to perform the flow approval method by any other suitable means, such as by means of firmware.
[0181] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0182] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0183] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, 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 disk, 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.
[0184] To provide for interaction with a user, the systems and techniques described here 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 be used to provide for interaction with a user as well; for example, 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, speech, or tactile input.
[0185] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end 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.
[0186] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0187] It should be understood that the various forms of flow shown above can be used to reorder, add, or delete steps. For example, the steps described in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present disclosure can be achieved, which are not limited herein.
[0188] In addition, the terms "first", "second", are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "a plurality of" is two or more, unless otherwise specifically limited.
[0189] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A process approval method, characterized by, The method comprises: based on the approval application of the initiator object, inserting a first data into a first data table and inserting a specified number of second data into a second data table, the first data at least including the approval state and the approval type of the approval, the specified number being determined based on at least two third data corresponding to the approval type in a third data table, the third data table including third data of each link of the approval type, the third data corresponding to the link of the approval type, the third data at least including at least one object corresponding to the link, the second data corresponding to the object, the second data at least including the operation state of the corresponding object on the link, the object including the initiator object and the approval object, and the link including the initiator link and the approval link; detecting the approval operation of the approval object on the current approval link, and modifying and / or adding the first data and the 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, and the first target condition is that the final approval link of the approval is determined as passed by the approval operation; wherein, based on the approval application of the initiator object, inserting a first data into a first data table and inserting a specified number of second data into a second data table, comprising: detecting that the initiator object submits a form of the approval, obtaining the approval type of the approval, and inserting a first data into a first data table based on the approval type; querying the third data of the initiator link of the approval type from the third data table based on the approval type, and inserting a second data into a second data table based on the third data, the approval state of the first data being set as draft, the second data corresponding to the initiator object, and the operation state of the second data being set as pending approval; detecting that the initiator object completes the operation of the approval, determining the third data corresponding to the first approval link of the approval type in the third data table; determining the number of approval objects of the first approval link based on the third data, and inserting the number of second data of the approval object into the second data table, the operation state of the second data being set as pending approval; modifying the operation state of the second data corresponding to the initiator object to passed, and modifying the approval state of the first data to pending approval; wherein, detecting the approval operation of the approval object on the approval link of the approval, and modifying and / or adding the first data and the second data of the approval based on the approval operation, comprises: determining that the approval operation indicates that the current approval link is passed, and modifying the operation state of the second data corresponding to the approval object to passed. determining that the current approval link meets the second target condition and the third target condition, determining the number of approval objects of the next approval link based on the third data, inserting the number of approval objects of the next approval link as the second data of the second data table, updating the current link of the first data to the next approval link, the first data further comprising the current link, setting the operation state of the second data to be under review, and obtaining the next approval link and the number of approval objects from the third data table, the second target condition being 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 states of the second data corresponding to other approval objects are all passed, and the third target condition being that the current approval link is not the final approval link of the approval.
2. The method of claim 1, wherein, detecting an approval operation of the approval object on the approval link of the approval, and modifying and / or adding the first data and the second data of the approval based on the approval operation, comprising: determining that the approval operation indicates that the current approval link is passed, and modifying the operation state of the second data corresponding to the approval object to be passed; determining that the current approval link meets the second target condition and the fourth target condition, modifying the approval state of the first data of the approval to be passed, the second target condition being that the approval rule of the current approval link is single-person approval and the approval link is the final approval link of the approval, or the approval rule of the current approval link is multi-person approval and the operation states of the second data corresponding to other approval objects are all passed, and the fourth target condition being that the current approval link is the final approval link of the approval.
3. The method of claim 1, wherein, detecting an approval operation of the approval object on the approval link of the approval, and modifying and / or adding the first data and the second data of the approval based on the approval operation, comprising: determining that the approval operation indicates that the current approval link is not passed, modifying the operation state of the second data corresponding to the approval object to be not passed, and modifying the approval state of the first data of the approval to be not passed.
4. The method of claim 1, wherein, The method further comprises: detecting a withdrawal operation of an object on a link to which the object belongs, obtaining the next link of the link from the third data table; determining that the next link meets the fifth target condition, deleting all second data of the next link in the second data table, the fifth target condition being that the approval rule of the next link is single-person approval and the operation states of all second data of the next link are all under review, 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 state of under review; modifying the operation states of all second data of the link to be withdrawn, and inserting the number of objects of the link as the second data in the second data table, and setting the operation state of the second data to be under review.
5. The method of claim 1, wherein, The method further comprises: If it is detected that the initiator object is directed to a deletion operation of the approval and it is determined that the approval state of the first data is draft, the operation state of the second data in the second data table is modified from to-be-approved to deleted, and the approval state of the first data is modified to deleted.
6. A process approval device characterized by comprising: The apparatus comprises: The computing module is configured to insert one 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 initiator object, the first data at least comprising an approval state and an approval type of the approval, the specified number being determined based on at least two third data corresponding to the approval type in a third data table, the third data table comprising third data of each link of the approval type, the third data corresponding to a link of the approval type, the third data at least comprising at least one object corresponding to the link, the second data corresponding to an object, the second data at least comprising an operation state of a link to which the object belongs, the object comprising the initiator object and an approval object, and the link comprising an initiator link and an approval link. The processing module is configured to detect an approval operation of the approval object directed to a 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 is passed, and the first target condition is that a final approval link of the approval is determined as passed by the approval operation. The computing module is configured to insert one 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 initiator object, the first data at least comprising an approval state and an approval type of the approval, the specified number being determined based on at least two third data corresponding to the approval type in a third data table, the third data table comprising third data of each link of the approval type, the third data corresponding to a link of the approval type, the third data at least comprising at least one object corresponding to the link, the second data corresponding to an object, the second data at least comprising an operation state of a link to which the object belongs, the object comprising the initiator object and an approval object, and the link comprising an initiator link and an approval link. The processing module is configured to detect an approval operation of the approval object directed to a 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 is passed, and the first target condition is that a final approval link of the approval is determined as passed by the approval operation. The computing module is configured to insert one 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 initiator object, the first data at least comprising an approval state and an approval type of the approval, the specified number being determined based on at least two third data corresponding to the approval type in a third data table, the third data table comprising third data of each link of the approval type, the third data corresponding to a link of the approval type, the third data at least comprising at least one object corresponding to the link, the second data corresponding to an object, the second data at least comprising an operation state of a link to which the object belongs, the object comprising the initiator object and an approval object, and the link comprising an initiator link and an approval link. The processing module is configured to detect an approval operation of the approval object directed to a 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 is passed, and the first target condition is that a final approval link of the approval is determined as passed by the approval operation. determining that the current approval link meets the second target condition and the third target condition, determining the number of approval objects of the next approval link based on the third data, inserting the number of approval objects of the next approval link into the second data of the second data table, updating the current link of the first data to the next approval link, the first data further comprising the current link, setting the operation state of the second data to be under review, and obtaining the next approval link and the number of approval objects from the third data table, the second target condition being 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 states of the second data corresponding to other approval objects are all passed, and the third target condition being that the current approval link is not the final approval link of the approval.
7. An electronic device, comprising: comprising: a processor, 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 of any one of claims 1-5.
8. 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 of any one of claims 1-5.
Citation Information
Patent Citations
Service processing method and device
CN111897815A