Examination list generation method and device, equipment, storage medium and program product
By obtaining test requirements and utilizing the preset approval form database and process flow parser service, approval forms that meet test needs can be quickly generated, solving the problem of low efficiency in manually creating approval forms in existing technologies and achieving efficient and standardized approval form generation.
Patent Information
- Application Number
- CN202511112382.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-08
- Publication Date
- 2025-09-19
AI Technical Summary
In the prior art, approval forms are manually created and user logins are switched step by step for flow approval, which is time-consuming, has low testing efficiency, and is prone to errors, resulting in low efficiency in generating approval forms.
This paper provides an approval form generation method. By obtaining test requirements, determining process information, and querying or generating target approval forms based on the process information, it uses the preset approval form database and process flow parser service to quickly construct an approval form that meets test needs.
It improves the efficiency of approval form generation, reduces manual operation steps and potential errors, and enhances the standardization and correctness of the approval process.
Smart Images

Figure CN120670320A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of approval testing technology, and in particular to an approval form generation method, apparatus, device, storage medium and program product. Background Art
[0002] With the advancement of digital information technology, many organizations are using online, workflow-based administrative office systems to review and approve various business processes. Each organization's approval processes are diverse, with numerous approval steps, and these steps can change over time. Testing the approval processes of such systems requires constructing a large number of test approval forms for each approval process type and at each target approval step. Testers face the challenge of quickly constructing a large number of test approval forms for each approval step, ensuring testing is straightforward.
[0003] At present, the main method used is manual: use the applicant's account to log in to the system, fill out the approval form manually, combine the process definition tool with the actual business approval needs, submit the approval application through the system page to transfer to the next processing link, and then log in to the next processing link processor account for approval, transfer to the next processing link, until it flows to the target approval link.
[0004] However, manually creating approval forms and switching user logins for each step to conduct flow approval is time-consuming, has low testing efficiency, and is prone to errors, resulting in low efficiency in generating approval forms. Summary of the Invention
[0005] The present application provides an approval form generation method, apparatus, equipment, storage medium and program product, which are used to solve the problem that the existing approval form generation relies too much on manually creating approval forms and switching user logins one by one for flow approval, which is time-consuming, has low testing efficiency and is prone to errors, thereby leading to low efficiency in approval form generation.
[0006] In a first aspect, the present application provides a method for generating an approval form, comprising:
[0007] Obtain test requirements;
[0008] Determine the corresponding process information according to the test requirements;
[0009] Determine whether a new process needs to be created based on process information;
[0010] If it is determined that a new process is not needed, the target approval form is generated based on the process information and the preset approval form database;
[0011] If it is determined that a new process needs to be created, a target approval form is created based on the process information and saved to the preset approval form database;
[0012] Call the process approval service based on the target approval form.
[0013] In a possible design, the process information includes a process code and a target approval link number.
[0014] In one possible design, a target approval form is generated based on process information and a preset approval form database, including:
[0015] Search the preset approval form database based on the process code and target approval link number;
[0016] If an approval document that matches the process code and target approval link number is found, the approval document that matches the process code and target approval link number will be determined as the target approval document;
[0017] If no approval form matching the process code and target approval link number is found, the closest approval form is determined in the preset approval form database based on the process code, target approval link number and approval path step increment rule, and the target approval form is generated based on the closest approval form.
[0018] In a possible design, a target approval form is established based on process information, including:
[0019] Call the process flow parser service based on the process code and target approval link number;
[0020] Generate multiple alternative approval paths corresponding to the process code and target approval link number based on the return results of the process flow parser service;
[0021] According to the alternative circulation approval paths, the target circulation approval path is screened and obtained;
[0022] The target flow approval path, process code and target approval link number are used to generate the target approval form.
[0023] In one possible design, before obtaining test requirements, the following is also included:
[0024] Configure the process flow parser service; the process flow parser service is used to output the flow approval path based on the input process code and target approval link number.
[0025] In a possible design, whether a new process needs to be created is determined based on process information, including:
[0026] Based on the process information and the preset approval form database, a query is performed in the preset approval form database to determine whether there is an approval form that matches any of the process code and the target approval link number;
[0027] If there is an approval document that matches either the process code or the target approval link number, there is no need to create a new process.
[0028] If it is determined that there is no approval form that matches either the process code or the target approval link number, a new process needs to be created.
[0029] In a possible design, the process information also includes key flow approval link numbers and / or approval path steps.
[0030] In a second aspect, the present application provides an approval form generation device, comprising:
[0031] Acquisition module, used to obtain test requirements;
[0032] The first determination module is used to determine the corresponding process information according to the test requirements;
[0033] The second determination module is used to determine whether a new process needs to be created based on the process information;
[0034] The first generation module is used to generate a target approval form based on the process information and a preset approval form database if it is determined that a new process is not needed;
[0035] The second generation module is used to create a target approval form based on the process information if it is determined that a new process needs to be created, and save the target approval form to a preset approval form database;
[0036] The calling module is used to call the process approval service based on the target approval form.
[0037] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0038] Memory stores computer-executable instructions;
[0039] The processor executes the computer-executable instructions stored in the memory to implement a method for generating an approval form as described in the first aspect of the invention.
[0040] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement an approval form generation method as described in the first aspect of the invention.
[0041] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements a method for generating an approval form according to the invention content of the first aspect.
[0042] The present application provides an approval form generation method, device, equipment, storage medium and program product, including: obtaining test requirements; determining the corresponding process information based on the test requirements; determining whether a new process needs to be created based on the process information; if it is determined that a new process does not need to be created, generating a target approval form based on the process information and a preset approval form database; if it is determined that a new process needs to be created, establishing a target approval form based on the process information, and saving the target approval form to a preset approval form database; calling the process approval service based on the target approval form. Compared with the existing technology, which mainly adopts manual methods to create approval forms and switches user logins for each link to perform flow approval, this method is time-consuming, has low testing efficiency and is prone to errors, resulting in low approval form generation efficiency. In combination with test needs, the present application uses existing approval forms in the database, or quickly constructs multiple approval forms that meet test needs and are in the target approval link, thereby improving the approval form generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 A schematic diagram of the system architecture of a method for generating an approval form provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 1 ;
[0046] Figure 3 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 2 ;
[0047] Figure 4 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 3 ;
[0048] Figure 5 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 4 ;
[0049] Figure 6 A schematic diagram of the structure of an approval form generation device provided in an embodiment of the present application;
[0050] Figure 7 A schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0051] Figure 8 This is an example diagram of the process definition of an approval form generation method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0053] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be interpreted as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more.
[0054] It should be noted that the phrase "at the time of" in the embodiments of the present application can refer to the instant a certain situation occurs or a period of time after the situation occurs, and the embodiments of the present application do not specifically limit this. Furthermore, the method for generating an approval form provided in the embodiments of the present application is merely an example, and the method for generating an approval form may include more or less content.
[0055] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0056] To facilitate a clear description of the technical solutions of the embodiments of the present application, some of the terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0057] Process Definition Tool: A process definition tool manages process definitions. It graphically displays and manipulates complex process definitions. It interacts with the workflow execution service, providing a graphical user interface for designers. Designers can use the tool to create new processes or modify existing ones. During process definition, they can specify the types of participants in each activity, the relationships between activities, and the delivery rules.
[0058] Workflow engine: A workflow engine is a software module that provides a running environment for process instances and interprets and executes process instances, that is, a software module responsible for process processing.
[0059] Workflow Execution Service: The workflow execution service is the core module of the workflow system. Its functions include creating and managing process definitions, and creating, managing, and executing process instances. While performing these functions, applications may interact with the workflow execution service through programming interfaces. A workflow execution service may include multiple distributed workflow engines. This module also maintains an activity list for each user, indicating the tasks they currently must complete.
[0060] A test case is a description of a test task for a specific software product, embodying the test plan, methods, techniques, and strategies. It includes test objectives, test environment, input data, step descriptions, expected results, test scripts, and other aspects, ultimately resulting in documentation. Simply put, a test case is a set of test inputs, execution conditions, and expected results compiled for a specific purpose, used to verify that a specific software requirement is met.
[0061] With the advancement of digital information technology, many organizations are using online, workflow-based administrative office systems to review and approve various business processes. Each organization's approval processes are diverse, with numerous approval steps, and these steps can change over time. Testing the approval processes of such systems requires constructing a large number of test approval forms for each approval process type and at each target approval step. Testers face the challenge of quickly constructing a large number of test approval forms for each approval step, ensuring testing is straightforward.
[0062] In the existing technology, the main method is manual: use the applicant's account to log in to the system, and then manually fill out the approval form; combine the process definition tool with the actual business approval needs, and then submit the approval application through the system page to transfer to the next processing link; then log in to the next processing link processor account for approval, transfer to the next processing link, until it flows to the target approval link.
[0063] Among them, the method of manually creating approval forms and switching user logins for process approval at each step has some obvious problems:
[0064] On the one hand, during the approval process testing, multiple transfer approval test cases may need to be executed for the same target approval link to verify the transfer approval results. For example, test case 1 needs to transfer to the next processing link A, and test case 2 needs to transfer to the next processing link B. After the test case execution, the current approval link of the approval form will be changed. For example, after the execution of test case 1, the current approval link of the approval form will become A. In this case, using a manual construction method requires repeated construction and transfer of test approval forms to ensure that the test approval form remains in the target approval link. This results in a large consumption of testing resources, a long test time, and low testing efficiency.
[0065] On the other hand, manual transfers are prone to errors, requiring rework. For example, if the expected next processing step is A, a manual transfer may incorrectly select the next processing step B, requiring the current test approval form to be abandoned and a new one to be re-transferred, or the process may need to be re-transferred to processing step A through another transfer approval path.
[0066] Based on this, the embodiments of the present application provide an approval form generation method, device, equipment, storage medium and program product, which can be used in the field of approval testing technology, aiming to solve the above technical problems of the prior art.
[0067] The inventive concept of this application is that, in response to the aforementioned issues, the inventors, while researching the efficiency of approval form generation, discovered that existing approval form generation relies primarily on manual creation, followed by manual switching of user logins for approval at each stage. This method requires significant testing resources, is time-consuming, and has low testing efficiency. Furthermore, manual processing is prone to errors, requiring rework.
[0068] Based on this, the inventors combined testing needs and used existing approval forms in the database, or quickly constructed multiple approval forms that met the testing requirements and were within the target approval process. This enabled efficient and accurate approval form generation. Based on this, this application proposes a method for generating approval forms to further improve the efficiency of approval form generation.
[0069] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0070] Figure 1A schematic diagram of the system architecture of a method for generating an approval form provided in an embodiment of the present application. Figure 1 In the above architecture, the above architecture includes at least one of a data acquisition device 101, a processing device 102 and a display device 103.
[0071] It is understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the architecture of the approval form generation system. In other feasible implementations of this application, the above architecture may include more or fewer components than shown, or combine or split certain components, or arrange the components differently. The specific configuration can be determined based on the actual application scenario and is not limited here. Figure 1 The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0072] In the specific implementation process, the data acquisition device 101 may include an input / output interface and a communication interface. The data acquisition device 101 may be connected to the processing device through the input / output interface or the communication interface to obtain data corresponding to multiple test requirements.
[0073] The processing device 102 can determine corresponding process information based on the data corresponding to the test requirements, determine whether a new process needs to be created based on the process information, and generate target approval forms for different situations.
[0074] The display device 103 may also be a touch screen display or a screen of a terminal device, which is used to store data while displaying the above content to achieve interaction with the user.
[0075] It should be understood that the above-mentioned processing device can be implemented by a processor reading instructions in a memory and executing the instructions, or it can be implemented by a chip circuit.
[0076] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0077] The technical solution of this application is described in detail below with reference to specific embodiments:
[0078] Figure 2 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 1 ,like Figure 2 As shown, the method includes:
[0079] S201. Obtain test requirements.
[0080] Among them, the test requirements include: module name, process name, target approval link name, whether a new process needs to be created, key flow approval link name (if any, 1 or more), etc.
[0081] It should be noted that, before step S201, the following steps are also included:
[0082] Configure the process flow parser service.
[0083] Among them, the process flow parser service is used to output the flow approval path based on the input process code and target approval link number.
[0084] Among them, the process flow parser service is combined with the process definition tool, which can return the process code, approval path step, starting approval link and flow approval path set based on the input process name / code, target approval link name / number, key flow approval link name / number and approval path step information.
[0085] Optional, the input content includes: process name / code (required), target approval link name / number (required), key flow approval link name / number (optional, 1 or more), approval path step (optional).
[0086] Optionally, the output content includes: process code, approval path step, starting approval link and flow approval path set.
[0087] Among them, the approval process is represented by name (number).
[0088] In one possible embodiment, Figure 8 This is an example diagram of a process definition of an approval form generation method provided in an embodiment of the present application, such as Figure 8 As shown, the process code of the administrative document issuance process is OA_GW_XZFW, which includes 4 approval links, with the names and numbers as follows: drafting N1, review N2, document circulation N3, and person in charge approval N4.
[0089] Furthermore, the process flow parser service is called and input: process code: OA_GW_XZFW and target approval link number: N4.
[0090] Furthermore, the output is:
[0091] {(OA_GW_XZFW,1,Document Circulation (N3),(Document Circulation (N3),Person in Charge Approval (N4));
[0092] (OA_GW_XZFW, 2, drafting (N1), (drafting (N1), document circulation (N3), person in charge approval (N4));
[0093] (OA_GW_XZFW, 2, Review (N2), (Review (N2), Document Circulation (N3), Person in Charge Approval (N4));
[0094] (OA_GW_XZFW,3,Drafting (N1),(Drafting (N1), Review (N2), Document Circulation (N3), Approval by Person in Charge (N4))}.
[0095] Specifically, configuring the process flow parser service includes initializing the process configuration information table, which is implemented by calling the process definition parser service.
[0096] Among them, the process configuration information table contains all the process information in the system.
[0097] Among them, the process definition parser service combines the process definition tool to maintain the process configuration information table. Based on the input process name, it can return the process name / code and all approval link names / numbers of the process.
[0098] Specifically, the process definition parser service is called to maintain all process information in the system into the process configuration information table, including the process code, process name, module to which the process belongs, the name of each approval link in the process, and the approval link number.
[0099] It should be noted that using the process definition parser service to maintain process configuration information ensures the accuracy and consistency of the process, reduces human errors, and improves the reliability of the approval process.
[0100] S202: Determine corresponding process information according to test requirements.
[0101] In this embodiment, according to the test requirements, the process definition parser service is called to query the corresponding process information.
[0102] The process information includes the process code and the target approval link number.
[0103] The process information also includes the key flow approval link number and / or approval path step length.
[0104] S203: Determine whether a new process needs to be created based on the process information.
[0105] S204: If it is determined that a new process does not need to be created, a target approval form is generated based on the process information and a preset approval form database.
[0106] S205: If it is determined that a new process needs to be created, a target approval form is created according to the process information, and the target approval form is saved in a preset approval form database.
[0107] S206. Call the process approval service according to the target approval form.
[0108] This embodiment provides a method for generating an approval form, including: obtaining test requirements; determining corresponding process information based on the test requirements; determining whether a new process needs to be created based on the process information; if it is determined that a new process does not need to be created, generating a target approval form based on the process information and a preset approval form database; if it is determined that a new process needs to be created, establishing a target approval form based on the process information, and saving the target approval form to a preset approval form database; calling a process approval service based on the target approval form. Compared with the prior art, which mainly uses manual methods to create approval forms and switches user logins for each link to perform flow approval, this method is time-consuming, has low testing efficiency, and is prone to errors, resulting in low approval form generation efficiency. This application combines test needs, uses existing approval forms in the database, or quickly constructs multiple approval forms that meet test needs and are in the target approval link, thereby improving the efficiency of approval form generation.
[0109] Figure 3 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 2 ,like Figure 3 As shown, the specific implementation steps of the above S204 include:
[0110] S301. Search the preset approval form database according to the process code and the target approval link number.
[0111] In this embodiment, the queried process code and target approval link number are used to query a preset approval form database to see whether there is an approval form with a matching process code and the current approval link being the target approval link.
[0112] S302: If an approval form that matches the process code and the target approval link number is found, the approval form that matches the process code and the target approval link number is determined as the target approval form.
[0113] S303. If no approval form matching the process code and the target approval link number is found, the closest approval form is determined in the preset approval form database according to the process code, the target approval link number and the approval path step increment rule, and the target approval form is generated based on the closest approval form.
[0114] For example, if no approval form matching the process code and target approval link number is found, based on the test requirements, the process flow parser service is called with the found process code and target approval link number, incrementing the approval path step by 1. This step and starting approval link are obtained. The starting approval link is then compared with the current approval link of the process found in the database to obtain the closest approval form. This is the approval form with the shortest approval path step in the database, where the current approval link matches the returned starting approval link. This approval form information and the approval path are saved, and the approval flow service is called, passing in the saved approval form information and path. The approval form is then transferred to the target approval link and returned.
[0115] Among them, the flow approval service combines with the process definition tool to call the background flow approval interface and workflow execution service. According to the input approval form information and flow approval path, the approval form can be transferred in the order of the flow approval path.
[0116] In this embodiment, the approval form is quickly called and generated based on the preset approval form database. According to different testing requirements, the approval form in the target approval link is quickly constructed, which enhances flexibility, reduces manual intervention and human errors, and thus improves the efficiency of approval form generation.
[0117] Figure 4 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 3 ,like Figure 4 As shown, the specific implementation steps of the above S205 include:
[0118] S401. Call the process flow parser service according to the process code and the target approval link number.
[0119] Specifically, the process definition parser service is used to query the process coding information, target approval link number, and key flow approval link name / number (if any), and then the process flow parser service is called based on the process coding information, target approval link number, and key flow approval link name / number (if any).
[0120] Furthermore, the process flow parser service selects and saves the flow approval path with the shortest step length and the initial approval link being the drafting link.
[0121] S402: Generate multiple alternative flow approval paths corresponding to the process code and the target approval link number through the return result of the process flow parser service.
[0122] S403. Filter and obtain a target circulation approval path based on the alternative circulation approval paths.
[0123] Specifically, the process flow parser service selects the flow approval path with the shortest step length and the starting approval link being the drafting link as the target flow approval path and saves it.
[0124] Furthermore, the background interface is called to create a new approval form corresponding to the process code and save the approval form information.
[0125] Among them, the approval path with the shortest step length is selected to reduce the circulation links of approval forms in the process, shorten the approval cycle, and speed up business processing; reduce system resource usage and reduce computing and storage overhead during process execution.
[0126] Among them, the mandatory starting approval stage is the drafting stage, which avoids the process from starting from the wrong node and ensures the standardization and correctness of the approval process.
[0127] The system automatically creates approval forms through a backend interface, replacing the traditional manual entry method, reducing manual steps and potential errors. The system automatically associates process codes with approval form information, avoiding data inconsistencies caused by manual entry.
[0128] S404: Generate a target approval form based on the target flow approval path, process code, and target approval link number.
[0129] In this embodiment, a target approval form is generated according to the target flow approval path, process code and target approval link number in the approval form information.
[0130] In this embodiment, based on a flow approval path with the shortest steps and the initial approval stage being the drafting stage, the number of steps in the approval process is reduced, ensuring the standardization and accuracy of the approval process. Furthermore, automated creation of approval forms through a backend interface replaces the traditional manual entry method. The system automatically associates process codes with approval form information, avoiding data inconsistencies caused by manual entry and reducing manual steps and potential errors. This enables the rapid and accurate generation of target approval forms, improving the efficiency of approval form generation.
[0131] Figure 5 A schematic diagram of a method for generating an approval form provided in an embodiment of the present application Figure 4 ,like Figure 5 As shown, the specific implementation steps of the above S203 include:
[0132] S501. Based on the process information and the preset approval form database, a query is performed in the preset approval form database to determine whether there is an approval form that matches any one of the process code and the target approval link number.
[0133] The system automatically identifies reusable existing approval forms through its approval form database query mechanism, avoiding the waste of computing resources (such as server load and storage space usage) caused by repeatedly creating new processes. A unified matching of process codes and approval link numbers prevents process anomalies (such as incorrect approval links or missing permissions) caused by incorrect parameter entry during manual creation.
[0134] S502: If it is determined that there is an approval form that matches any one of the process code and the target approval link number, there is no need to create a new process.
[0135] Among them, when there is a matching approval form, it can be directly reused, skipping the time-consuming operation of creating a new process, thereby improving business processing speed, shortening the processing cycle, and accelerating business flow.
[0136] S503: If it is determined that there is no approval form that matches any of the process code and the target approval link number, a new process needs to be created.
[0137] Among them, the triggering conditions for new processes are clear, ensuring that all processes comply with preset specifications, facilitating subsequent centralized management through the process definition parser, and realizing standardized process control.
[0138] In this embodiment, the database query results are used as the sole basis for decision-making on new processes, avoiding duplicate process creation due to temporary failures, improving system robustness, and enhancing system fault tolerance and stability. Through quick and simple judgment, it can be determined whether a new process is needed, thereby improving the efficiency of approval form generation.
[0139] Figure 6 This is a schematic diagram of the structure of an approval form generation device provided in an embodiment of the present application, such as Figure 6 As shown, the device includes: an acquisition module 61, a first determination module 62, a second determination module 63, a first generation module 64, a second generation module 65 and a calling module 66.
[0140] An acquisition module 61 is used to acquire test requirements;
[0141] A first determination module 62 is used to determine corresponding process information according to test requirements;
[0142] The second determining module 63 is used to determine whether a new process needs to be created based on the process information;
[0143] The first generating module 64 is configured to generate a target approval form based on the process information and a preset approval form database if it is determined that a new process is not required;
[0144] The second generation module 65 is used to create a target approval form according to the process information if it is determined that a new process needs to be created, and save the target approval form to a preset approval form database;
[0145] The calling module 66 is used to call the process approval service according to the target approval form.
[0146] In a possible design, the process information includes a process code and a target approval link number.
[0147] In one possible design, a target approval form is generated based on process information and a preset approval form database, including:
[0148] The first generating module 64 is further used to query the preset approval form database according to the process code and the target approval link number;
[0149] If an approval document that matches the process code and target approval link number is found, the approval document that matches the process code and target approval link number will be determined as the target approval document;
[0150] If no approval form matching the process code and target approval link number is found, the closest approval form is determined in the preset approval form database based on the process code, target approval link number and approval path step increment rule, and the target approval form is generated based on the closest approval form.
[0151] In a possible design, a target approval form is established based on process information, including:
[0152] The second generation module 65 is further used to call the process flow parser service according to the process code and the target approval link number;
[0153] Generate multiple alternative approval paths corresponding to the process code and target approval link number based on the return results of the process flow parser service;
[0154] According to the alternative circulation approval paths, the target circulation approval path is screened and obtained;
[0155] The target flow approval path, process code and target approval link number are used to generate the target approval form.
[0156] In one possible design, before obtaining test requirements, the following is also included:
[0157] Configure the process flow parser service; the process flow parser service is used to output the flow approval path based on the input process code and target approval link number.
[0158] In a possible design, whether a new process needs to be created is determined based on process information, including:
[0159] The second determining module 63 is further configured to query the preset approval form database based on the process information and the preset approval form database to determine whether there is an approval form that matches any one of the process code and the target approval link number;
[0160] If there is an approval document that matches either the process code or the target approval link number, there is no need to create a new process.
[0161] If it is determined that there is no approval form that matches either the process code or the target approval link number, a new process needs to be created.
[0162] In a possible design, the process information also includes key flow approval link numbers and / or approval path steps.
[0163] The present embodiment provides an approval form generation device that can execute an approval form generation method of the above embodiment. Its implementation principle and technical effects are similar, and are not described in detail in this embodiment.
[0164] In a specific implementation of the aforementioned approval form generation method, each module may be implemented as a processor, and the processor may execute computer-executable instructions stored in a memory, so that the processor executes the aforementioned approval form generation method.
[0165] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 70 includes: at least one processor 71 and a memory 72. The electronic device 70 also includes a communication component 73. 71, the memory 72 and the communication component 73 are connected via a second bus 74.
[0166] In a specific implementation process, at least one processor 71 executes the computer-executable instructions stored in the memory 72 , so that at least one processor 71 executes an approval form generation method as executed by the electronic device side above.
[0167] The specific implementation process of the processor 71 can be found in the above-mentioned method embodiment. Its implementation principle and technical effects are similar, and will not be repeated here in this embodiment.
[0168] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.
[0169] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.
[0170] The second bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified as address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0171] The above-mentioned functions implemented by the electronic device and the main control device have introduced the solutions provided by the embodiments of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of the various examples described in the embodiments disclosed in the embodiments of the present invention, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present invention.
[0172] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the computer-readable storage medium is used to implement the above-mentioned method for generating an approval form.
[0173] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0174] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.
[0175] The present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0176] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0177] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the scope of protection of the present application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solution of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solution to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating an approval form, characterized in that: include: Obtain test requirements; Determine the corresponding process information according to the test requirements; Determine whether a new process needs to be created based on the process information; If it is determined that a new process is not needed, a target approval form is generated based on the process information and the preset approval form database; If it is determined that a new process needs to be created, a target approval form is created according to the process information, and the target approval form is saved in the preset approval form database; Based on the target approval form, the process approval service is called.
2. The method according to claim 1, characterized in that The process information includes a process code and a target approval step number.
3. The method according to claim 2, characterized in that Generating a target approval form according to the process information and a preset approval form database includes: According to the process code and the target approval link number, query in the preset approval form database; If an approval form that matches the process code and the target approval link number is found, the approval form that matches the process code and the target approval link number is determined as the target approval form; If no approval form matching the process code and the target approval link number is found, the closest approval form is determined in the preset approval form database based on the process code, the target approval link number and the approval path step increment rule, and the target approval form is generated based on the closest approval form.
4. The method according to claim 2, characterized in that The step of establishing a target approval form based on the process information includes: Calling the process flow parser service according to the process code and the target approval link number; Generate multiple alternative flow approval paths corresponding to the process code and the target approval link number through the return result of the process flow parser service; According to the alternative circulation approval paths, a target circulation approval path is screened and obtained; The target flow approval path, the process code and the target approval link number are used to generate a target approval form.
5. The method according to claim 4, characterized in that Before obtaining the test requirements, the following steps are also included: Configure a process flow parser service; wherein, the process flow parser service is used to output a flow approval path based on the input process code and target approval link number.
6. The method according to any one of claims 2 to 5, characterized in that The step of determining whether a new process needs to be created based on the process information includes: According to the process information and the preset approval form database, query the preset approval form database to determine whether there is an approval form that matches any one of the process code and the target approval link number; If it is determined that there is an approval form that matches any of the process code and target approval link number, there is no need to create a new process; If it is determined that there is no approval form that matches any of the process code and target approval link number, a new process needs to be created.
7. The method according to any one of claims 2 to 5, characterized in that The process information also includes key flow approval link numbers and / or approval path steps.
8. An approval form generation device, characterized in that: include: Acquisition module, used to obtain test requirements; A first determining module is used to determine corresponding process information according to the test requirements; A second determining module is used to determine whether a new process needs to be created based on the process information; A first generating module is configured to generate a target approval form based on the process information and a preset approval form database if it is determined that a new process is not required; A second generation module is configured to, if it is determined that a new process needs to be created, create a target approval form based on the process information and save the target approval form to the preset approval form database; The calling module is used to call the process approval service according to the target approval form.
9. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.