Examination method, device and system, electronic equipment and examination process creation method

By introducing an environment identification mechanism into the credit card approval process, the target server obtains an approval process consistent with its environment identification upon restart, which solves the problem of excessively long process time caused by process restart in the existing technology and achieves stable and efficient canary release.

CN115082033BActive Publication Date: 2025-11-18INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210751812.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-11-18
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The existing credit card approval process is prone to switching between multiple servers when the server restarts, resulting in excessively long processing times and making it impossible to effectively implement canary releases.

Method used

By introducing an environment identification mechanism, the target server retrieves an approval process from the approval process pool that matches its environment identification when it restarts, and executes the process, thus avoiding the process from flowing between multiple servers.

Benefits of technology

It enables the target server to determine the approval process to be executed after the process is restarted, avoiding the process from flowing between multiple servers, improving the stability and efficiency of the approval process, and supporting canary release.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115082033B_ABST
    Figure CN115082033B_ABST
Patent Text Reader

Abstract

The application discloses an approval method, device and system, electronic equipment and an approval process creation method. The method comprises the following steps: a target server obtains a first target approval process to be restarted from an approval process pool; an environment identifier recorded in a schedule table of the first target approval process is determined, wherein the environment identifier is an environment identifier of a server creating the first target approval process; the environment identifier of the target server is compared with the environment identifier recorded in the schedule table, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server is obtained from the approval process pool according to the environment identifier of the target server, and the second target approval process is executed. The application solves the technical problem of long approval process time caused by the fact that the approval process is transferred to several servers when the approval process is interrupted and restarted in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of financial technology, in particular to an approval method, device, system, electronic equipment and approval process creation method. BACKGROUND

[0002] Now the credit card approval system deploys multiple servers, which are used for automatic approval of different products such as digital credit cards, e-loans, automobile joint loans, home decoration installment, etc. These servers are connected to the same data instance, and the configuration data is in the same table, which is distinguished by the business type field, and each large type may also exist multiple small type automatic approval processes. Taking the server where the home decoration installment is located as an example, the approval process of a installment card includes four stages of calculation, credit, approval and loan, and the four stages are four independent approval processes.

[0003] However, the existing process gray scale plan only distinguishes according to the business type, so when releasing each time, all servers will execute the same plan for any business. Therefore, when implementing gray release, it must be ensured that all servers can support the completion of the process plan. Therefore, similar to the function of adding an approval process node, it cannot be implemented by gray release. And even if no node is added, because the approval process exists in the scene of interrupting and restarting, the approval of a credit card often flows through several servers, so it cannot guarantee that the approval meeting the gray distribution rules, and it leads to the approval process time being too long.

[0004] At present, no effective solution has been proposed for the above problems. SUMMARY

[0005] The embodiments of the present application provide an approval method, device, system, electronic equipment and approval process creation method, which at least solve the technical problem of the approval process time being too long caused by the fact that the approval process will flow through several servers when the approval process is interrupted and restarted in the prior art.

[0006] According to an aspect of the embodiments of the present application, there is provided an approval method, comprising: obtaining, by a target server, a first target approval process to be restarted from an approval process pool, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; determining an environment identifier recorded in a schedule table of the first target approval process, wherein the environment identifier is an environment identifier of a server creating the first target approval process, and the environment identifier is an identifier determined based on a configuration parameter of the server; comparing the environment identifier of the target server with the environment identifier recorded in the schedule table, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, obtaining, according to the environment identifier of the target server, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool, and executing the second target approval process.

[0007] Optionally, obtaining, according to the environment identifier of the target server, the second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool comprises: interrupting, by the target server, the first target approval process, and writing the environment identifier recorded in the schedule table of the first target approval process and a process identifier of the first target approval process into a target table; obtaining, according to the target table and the environment identifier of the target server, the second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool, and executing the second target approval process.

[0008] Optionally, obtaining, according to the target table and the environment identifier of the target server, the second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool comprises: creating a target thread pool, and writing the environment identifier of the target server into the target thread pool; determining, according to the environment identifier of the target server, a process identifier corresponding to the environment identifier of the target server from the target table using the target thread pool; obtaining, according to the process identifier, the second target approval process from the approval process pool using the target thread pool.

[0009] Optionally, after comparing the environment identifier of the target server with the environment identifier recorded in the schedule table, the approval method further comprises: when the environment identifier of the target server is consistent with the environment identifier recorded in the schedule table, executing, by the target server, the first target approval process.

[0010] Optionally, before obtaining, by the target server, the first target approval process to be restarted from the approval process pool, the approval method further comprises: obtaining an approval process submitted to the target server; determining a version number corresponding to the approval process; reading and executing an approval process plan corresponding to the version number.

[0011] Optionally, determining the version corresponding to the approval process comprises: detecting version number configuration information corresponding to the approval process, and in a case where the version number configuration information is detected, determining a version number corresponding to the approval process according to the version number configuration information; and in a case where the version number configuration information is not detected, taking the largest version number among the multiple version numbers associated with the approval process as the version number corresponding to the approval process.

[0012] According to another aspect of the embodiments of the present application, an approval process creation method is further provided, comprising: determining a version number of an approval process; determining a server for executing the approval process, and writing an environment identifier of the server into a schedule table of the approval process, wherein the environment identifier is used to reflect configuration parameters of the server.

[0013] According to another aspect of the embodiments of the present application, an approval system is further provided, comprising a processor and multiple servers, wherein the processor is configured to create an approval process and determine a version number of the approval process; determine a server for executing the approval process, and write an environment identifier of the server into a schedule table of the approval process, wherein the environment identifier is used to reflect configuration parameters of the server; each of the multiple servers is configured to, when the approval process is restarted, acquire a first target approval process to be restarted from an approval process pool, wherein the approval process pool contains at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; determine an environment identifier recorded in a schedule table of the first target approval process, wherein the environment identifier is an environment identifier of a server for creating the first target approval process, and the environment identifier is used to reflect configuration parameters of the server; compare an environment identifier of a target server with the environment identifier recorded in the schedule table, and in a case where the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, interrupt the first target approval process by the target server, and write the environment identifier recorded in the schedule table of the first target approval process and a process identifier of the first target approval process into a target table; acquire a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool according to the target table and the environment identifier of the target server, and execute the second target approval process.

[0014] According to another aspect of the embodiments of the present application, there is also provided an approval device, comprising: an obtaining module, configured to obtain, by a target server, a first target approval process to be restarted from an approval process pool when an approval process is restarted, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; a processing module, configured to determine an environment identifier recorded in a schedule table of the first target approval process, wherein the environment identifier is an environment identifier of a server creating the first target approval process, and the environment identifier is used to reflect configuration parameters of the server; and an executing module, configured to compare the environment identifier of the target server with the environment identifier recorded in the schedule table, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, obtain, from the approval process pool, a second target approval process whose environment identifier recorded in a schedule table is consistent with the environment identifier of the target server according to the environment identifier of the target server, and execute the second target approval process.

[0015] According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium comprising a stored program, wherein the program, when executed, controls a device in which the non-volatile storage medium is located to perform the approval method.

[0016] According to another aspect of the embodiments of the present application, there is also provided an electronic device comprising one or more processors and a memory, the memory configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the approval method.

[0017] In the embodiment of the present application, the target server obtains a first target approval process to be restarted from an approval process pool, wherein the approval process pool contains at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; the environment identifier recorded in the schedule table of the first target approval process is determined, wherein the environment identifier is the environment identifier of the server creating the first target approval process, and the environment identifier is an identifier determined based on the configuration parameters of the server; the environment identifier of the target server and the environment identifier recorded in the schedule table are compared, and when the environment identifier of the target server and the environment identifier recorded in the schedule table are inconsistent, the second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server is obtained from the approval process pool according to the environment identifier of the target server, and the second target approval process is executed. Through recording the environment identifier in the schedule table of the approval process, the purpose of enabling the target server to determine the approval process to be executed by the target server based on the environment identifier after the process is restarted is achieved, thereby realizing the technical effect of avoiding the flow of an approval process between multiple servers, and further solving the technical problem of long approval process time caused by the flow of an approval process between several servers when the approval process is interrupted and restarted in the prior art. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings, which are included to provide a further understanding of the present application and constitute a part of this application, illustrate certain illustrative embodiments of the present application and show details of how they are made and used. In the drawings:

[0019] Figure 1 is a flowchart of an approval method according to an embodiment of the present application;

[0020] Figure 2 is a flowchart of an approval process creation method according to an embodiment of the present application;

[0021] Figure 3 is a flowchart of an approval process according to an embodiment of the present application;

[0022] Figure 4 is a structural schematic diagram of an approval device according to an embodiment of the present application;

[0023] Figure 5 is a structural schematic diagram of an approval system according to an embodiment of the present application;

[0024] Figure 6 is a structural schematic diagram of an electronic device according to an embodiment of the present application;

[0025] Figure 7 is a structural schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] Currently, in the credit card approval process, in order to reduce the bad rate of credit cards or to meet regulatory requirements, the credit card approval process will be frequently adjusted. In order to avoid the possible omissions of the credit card approval process in the process of frequent adjustment, the present application provides a gray release method of credit card approval process. Before a certain credit card approval process is applied specifically, a part of credit card applications can be routed to a gray approval plan for pilot according to preset rules, and after it is confirmed to be correct, the latest approval process is promoted to all servers to replace the old approval process.

[0027] In order to enable personnel in the art to better understand the present application, 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 a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] According to the embodiments of the present application, a method embodiment of an approval method is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.

[0030] Figure 1 is an approval method according to the embodiments of the present application, as shown in Figure 1 the method comprises the following steps:

[0031] Step S102, the target server obtains a first target approval process to be restarted from an approval process pool, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted;

[0032] In some embodiments of the present application, before the target server obtains a first target approval process to be restarted from an approval process pool, the approval method further comprises: obtaining an approval process submitted to the target server; determining a version number corresponding to the approval process; reading and executing an approval process plan corresponding to the version number.

[0033] In some embodiments of the present application, determining the version corresponding to the approval process comprises: detecting version number configuration information corresponding to the approval process, and in the case of detecting the version number configuration information, determining the version number corresponding to the approval process according to the version number configuration information; and in the case of not detecting the version number configuration information, taking the largest version number of a plurality of version numbers associated with the approval process as the version number corresponding to the approval process.

[0034] Specifically, when a set of approval processes is newly created, a configuration table and a new field version number of the process plan can be set, and the default value is v1. In order to support multi-version plan configuration, a field reflecting version information can be added to the joint primary key of the table, so that when a new version plan is added, the field reflects different version numbers according to the format of v+year-month-date. For example, March 27, the gray version is v20210327. In this way, the plan with the largest version number is always the latest. In addition, platform variables can be added to configure the version numbers of each business type and its corresponding approval process, separated by commas, supporting the configuration of multiple business types (platform variables will be synchronized to the configuration file of each server at the time of release, and it can be selected which server to configure which value). When the approval application enters the process engine, first read the parameters synchronized by the platform variable, check whether the business to which the application belongs has configured a gray plan, if not, read the approval process plan with the largest version number, if there is a configuration parameter, read the approval process plan with the corresponding version number, and start automatic approval.

[0035] Step S104, determining the environment identifier recorded in the schedule table of the first target approval process, wherein the environment identifier is the environment identifier of the server creating the first target approval process, and the environment identifier is an identifier determined based on the configuration parameters of the server;

[0036] In some embodiments of the present application, all servers of the gray release have a special identifier of an environment variable, and an instance of the process engine reads the variable during initialization to confirm which environment the current instance is in, and the environment identifier is valid during the program running. After the above reading process plan is completed, the process engine writes the identifier into the approval process schedule to determine whether the process is a gray process or a non-gray process.

[0037] In step S106, the environment identifier of the target server is compared with the environment identifier recorded in the schedule, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule, a second target approval process whose environment identifier recorded in the schedule is consistent with the environment identifier of the target server is obtained from the approval process pool according to the environment identifier of the target server, and the second target approval process is executed.

[0038] In some embodiments of the present application, obtaining the second target approval process whose environment identifier recorded in the schedule is consistent with the environment identifier of the target server from the approval process pool according to the environment identifier of the target server includes interrupting the first target approval process by the target server, and writing the environment identifier recorded in the schedule of the first target approval process and the process identifier of the first target approval process into a target table; obtaining the second target approval process whose environment identifier recorded in the schedule is consistent with the environment identifier of the target server from the approval process pool according to the target table and the environment identifier of the target server, and executing the second target approval process.

[0039] In some embodiments of the present application, obtaining the second target approval process whose environment identifier recorded in the schedule is consistent with the environment identifier of the target server from the approval process pool according to the target table and the environment identifier of the target server includes creating a target thread pool, and writing the environment identifier of the target server into the target thread pool; determining the process identifier corresponding to the environment identifier of the target server from the target table using the target thread pool according to the environment identifier of the target server; obtaining the second target approval process from the approval process pool using the target thread pool according to the process identifier.

[0040] In some embodiments of the present application, after comparing the environment identifier of the target server with the environment identifier recorded in the schedule, the approval method further includes: when the environment identifier of the target server is consistent with the environment identifier recorded in the schedule, executing the first target approval process by the target server.

[0041] Specifically, during the entire approval cycle, various abnormal scenarios inevitably occur, and therefore the process engine needs to support fixing these abnormal scenarios and restarting the approval process in a timely manner. In the prior art, the process engines of all servers obtain the approval process to be restarted in the same pool, which causes non-gray servers to obtain the approval process created by gray servers during the gray release period (and vice versa), which may cause errors during execution, thus entering the state to be restarted again, thereby causing the average time of the overall approval to be lengthened. After the application is adopted, when the restarted approval process enters the engine, the engine first judges whether the identifier of the engine and the identifier registered in the schedule at the beginning of the creation of the approval process are consistent. If they are consistent, the process is performed as usual, and if they are inconsistent, the approval process is still interrupted, and the unique identifier of the process and the corresponding environment identifier are written into a target table (hereinafter referred to as a recovery table). When the process engine is initialized, a separate thread pool is created to pass the environment identifier of the process engine as an attribute into the thread pool to obtain the approval process in the recovery table that is consistent with the environment identifier of the process engine. In this way, it can be ensured that during the gray period, the gray approval is always performed in the gray environment, and the non-gray approval is always performed in the non-gray environment, while also trying not to affect the efficiency. When the content of the gray release is converted to normal, that is, when the gray and non-gray environment programs are consistent, the judgment of the environment identifier is no longer performed, that is, no data is written into the recovery table. At this time, the credit card application request is approved according to the latest approval process in any server, and therefore it is not necessary to force the entire approval process to be performed in the same environment.

[0042] In some embodiments of the application, after the approval method provided in the application is adopted, a complete approval process as shown in Figure 3 includes the following steps: in step S302, the version configuration information of the approval process is determined; in step S304, the environment identifier in the schedule of the approval process is determined; in step S306, the server determines whether the environment identifier in the schedule is the same as the environment identifier of the server itself. If they are the same, the approval process is executed, and if they are different, step S308 is executed; in step S308, the process identifier and the environment identifier of the approval process are written into the recovery table.

[0043] The process involves obtaining a first target approval process to be restarted from the approval process pool, where the approval process pool contains at least one approval process to be restarted, and the first target approval process is any one of these at least one. The process then determines the environment identifier recorded in the progress table of the first target approval process, where the environment identifier is the environment identifier of the server that created the first target approval process, and the environment identifier is determined based on the server's configuration parameters. The process compares the environment identifier of the target server with the environment identifier recorded in the progress table. If the environment identifier of the target server and the environment identifier recorded in the progress table are inconsistent, the process then obtains a second target approval process from the approval process pool whose environment identifier matches the environment identifier of the target server, and executes the second target approval process. By recording the environment identifier in the approval process's progress table, the process achieves the goal of allowing the target server to determine which approval process it is responsible for executing after the process restarts based on the environment identifier. This avoids the technical effect of an approval process flowing between multiple servers, thus solving the technical problem of excessively long approval process times caused by the approval process flowing between several servers when it is interrupted and restarted in existing technologies.

[0044] Furthermore, this application introduces environmental identifiers to trace the source of each approval process, ensuring that approval processes never overlap during the gray-scale release period, thus guaranteeing the stability of the approval system and the accuracy of approval results. At the same time, the optimized parameter configuration table supports separate gray-scale release mechanisms for each business, laying a solid foundation for the bank card approval system to quickly and stably meet business needs.

[0045] Figure 2 This is an approval process creation method provided according to an embodiment of the present invention. For example... Figure 2 As shown, the method includes the following steps:

[0046] Step S202: Determine the version number of the approval process;

[0047] Step S204: Determine the server to execute the approval process and write the server's environment identifier into the progress table of the approval process. The environment identifier is used to reflect the server's configuration parameters.

[0048] According to an embodiment of the present invention, an embodiment of an approval device is provided. Figure 4 This is an approval device provided according to an embodiment of the present invention, such as... Figure 4As shown in the embodiments of the application, the approval device comprises: an acquisition module 40, configured to, when the approval process is restarted, acquire, by the target server, a first target approval process to be restarted from an approval process pool, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; a processing module 42, configured to determine an environment identifier recorded in a schedule table of the first target approval process, wherein the environment identifier is an environment identifier of a server creating the first target approval process, and the environment identifier is used to reflect configuration parameters of the server; and an execution module 44, configured to compare the environment identifier of the target server with the environment identifier recorded in the schedule table, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, acquire, according to the environment identifier of the target server, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool, and execute the second target approval process.

[0049] It should be noted that, Figure 4 The approval device shown in the embodiments of the application can be used to execute the approval method shown in the embodiments of the application, and therefore, the relevant explanations and descriptions of the approval method shown in the embodiments of the application are also applicable to the approval device shown in the embodiments of the application, and will not be repeated here. Figure 1 The approval method shown in the embodiments of the application can be executed by the approval device shown in the embodiments of the application, and therefore, the relevant explanations and descriptions of the approval method shown in the embodiments of the application are also applicable to the approval device shown in the embodiments of the application, and will not be repeated here. Figure 1 The approval method shown in the embodiments of the application can be executed by the approval device shown in the embodiments of the application, and therefore, the relevant explanations and descriptions of the approval method shown in the embodiments of the application are also applicable to the approval device shown in the embodiments of the application, and will not be repeated here. Figure 4 The approval device shown in the embodiments of the application can be used to execute the approval method shown in the embodiments of the application, and therefore, the relevant explanations and descriptions of the approval method shown in the embodiments of the application are also applicable to the approval device shown in the embodiments of the application, and will not be repeated here.

[0050] According to the embodiments of the application, an embodiment of a non-volatile storage medium is provided. The non-volatile storage medium comprises a stored program, wherein when the program is executed, the device in which the non-volatile storage medium is located is controlled to execute the following approval method: a target server acquires a first target approval process to be restarted from an approval process pool, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; an environment identifier recorded in a schedule table of the first target approval process is determined, wherein the environment identifier is an environment identifier of a server creating the first target approval process, and the environment identifier is an identifier determined based on configuration parameters of the server; the environment identifier of the target server is compared with the environment identifier recorded in the schedule table, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server is acquired from the approval process pool according to the environment identifier of the target server, and the second target approval process is executed.

[0051] According to the embodiments of the application, an embodiment of an approval system is provided. Figure 5The approval system 50 provided by the embodiment of the present application comprises a processor 502 and a plurality of servers 504. The processor 502 is configured to create an approval process and determine a version number of the approval process; determine a server 504 for executing the approval process, and write an environment identifier of the server 504 into a schedule table of the approval process, wherein the environment identifier is used to represent configuration parameters of the server 504. Each of the plurality of servers 504 is configured to, when the approval process is restarted, acquire a first target approval process to be restarted from an approval process pool, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; determine an environment identifier recorded in a schedule table of the first target approval process, wherein the environment identifier is an environment identifier of a server 504 for creating the first target approval process, and the environment identifier is used to represent configuration parameters of the server 504; compare an environment identifier of a target server 504 with the environment identifier recorded in the schedule table, and when the environment identifier of the target server 504 is inconsistent with the environment identifier recorded in the schedule table, interrupt the first target approval process by the target server 504, and write the environment identifier recorded in the schedule table of the first target approval process and a process identifier of the first target approval process into a target table; and acquire, according to the target table and the environment identifier of the target server 504, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server 504 from the approval process pool, and execute the second target approval process.

[0052] According to the embodiment of the present application, an embodiment of an electronic device is provided. Figure 6 As shown in FIG. 6, the electronic device 60 comprises one or more processors 602 and a memory 604 configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors 602, the one or more processors 602 implement an approval method as follows: a target server acquires a first target approval process to be restarted from an approval process pool, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; determines an environment identifier recorded in a schedule table of the first target approval process, wherein the environment identifier is an environment identifier of a server for creating the first target approval process, and the environment identifier is an identifier determined based on configuration parameters of the server; compares an environment identifier of a target server with the environment identifier recorded in the schedule table, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, acquires, according to the environment identifier of the target server, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool, and executes the second target approval process. Figure 6 As shown in FIG. 6, the electronic device 60 comprises one or more processors 602 and a memory 604 configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors 602, the one or more processors 602 implement an approval method as follows: a target server acquires a first target approval process to be restarted from an approval process pool, wherein the approval process pool comprises at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; determines an environment identifier recorded in a schedule table of the first target approval process, wherein the environment identifier is an environment identifier of a server for creating the first target approval process, and the environment identifier is an identifier determined based on configuration parameters of the server; compares an environment identifier of a target server with the environment identifier recorded in the schedule table, and when the environment identifier of the target server is inconsistent with the environment identifier recorded in the schedule table, acquires, according to the environment identifier of the target server, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server from the approval process pool, and executes the second target approval process.

[0053] According to the embodiment of the present application, an embodiment of a computer terminal is also provided. Figure 7 FIG. 7 is a structural schematic diagram of a computer device 700 according to an embodiment of the present application.

[0054] In the exemplary embodiment, a computer readable storage medium including instructions, such as the memory 604 including instructions, is also provided. The instructions can be executed by the processor 702 of the apparatus 700 to complete the following approval method: a target server obtains a first target approval process to be restarted from an approval process pool, wherein the approval process pool contains at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; an environment identifier recorded in a schedule table of the first target approval process is determined, wherein the environment identifier is an environment identifier of a server creating the first target approval process, and the environment identifier is an identifier determined based on a configuration parameter of the server; the environment identifier of the target server and the environment identifier recorded in the schedule table are compared, and when the environment identifier of the target server and the environment identifier recorded in the schedule table are inconsistent, a second target approval process with the environment identifier recorded in the schedule table consistent with the environment identifier of the target server is obtained from the approval process pool according to the environment identifier of the target server, and the second target approval process is executed. Optionally, the storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0055] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.

[0056] In the above-mentioned embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0057] In the several embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. Of course, the unit described as the division in the above device embodiment is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, units or modules, and can be electrical or other forms.

[0058] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0059] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0060] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical scheme of the present application or the part of the present application which contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes various media that can store program codes, such as a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0061] The above is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.

Claims

1. An approval method, characterized in that, include: The target server obtains a first target approval process to be restarted from the approval process pool, wherein the approval process pool contains at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted. The environment identifier recorded in the progress table of the first target approval process is determined, wherein the environment identifier is the environment identifier of the server that created the first target approval process, and the environment identifier is an identifier determined based on the configuration parameters of the server. The environment identifier is used to determine whether the first target approval process belongs to the gray-scale test process. Compare the environment identifier of the target server with the environment identifier recorded in the progress table. If the environment identifier of the target server and the environment identifier recorded in the progress table are inconsistent, retrieve a second target approval process from the approval process pool based on the environment identifier of the target server, whose environment identifier in the progress table matches the environment identifier of the target server, and execute the second target approval process, including: The target server interrupts the first target approval process and writes the environment identifier and process identifier of the first target approval process recorded in the progress table of the first target approval process into the target table; Create a target thread pool and write the environment identifier of the target server into the target thread pool. The target thread pool is a separate thread pool used to store the environment identifier of the process engine as an attribute in the thread pool. The target thread is dedicated to retrieving the approval process in the target table that matches the environment identifier. Based on the environment identifier of the target server, the process identifier corresponding to the environment identifier of the target server is determined from the target table using the target thread pool; Based on the process identifier, the second target approval process is obtained from the approval process pool using the target thread pool.

2. The approval method according to claim 1, characterized in that, After comparing the environment identifier of the target server with the environment identifier recorded in the progress table, the approval method further includes: When the environment identifier of the target server matches the environment identifier recorded in the progress table, the target server executes the first target approval process.

3. The approval method according to claim 1, characterized in that, Before the target server retrieves a first target approval process to be restarted from the approval process pool, the approval method further includes: Obtain the approval process submitted to the target server; Determine the version number corresponding to the approval process; Read and execute the approval process plan corresponding to the version number.

4. The approval method according to claim 3, characterized in that, Determining the version corresponding to the approval process includes: The version number configuration information corresponding to the approval process is detected, and if the version number configuration information is detected, the version number corresponding to the approval process is determined based on the version number configuration information; and, If the version number configuration information is not detected, the largest version number among the multiple version numbers associated with the approval process will be used as the version number corresponding to the approval process.

5. A method for creating an approval process, characterized in that, include: Determine the version number of the approval process; The server executing the approval process is determined, and its environment identifier is written into the approval process's progress table. The environment identifier reflects the server's configuration parameters and determines whether the approval process is a gray-scale testing process. The server compares its environment identifier with the environment identifier recorded in the progress table. If the server's environment identifier and the environment identifier recorded in the progress table are inconsistent, a second target approval process matching the environment identifier recorded in the progress table is retrieved from the approval process pool based on the server's environment identifier, and the second target approval process is executed. This includes: the server interrupting the first target approval flow. The process involves: writing the environment identifier and the process identifier of the first target approval process recorded in the progress table of the first target approval process into a target table; creating a target thread pool and writing the environment identifier of the server into the target thread pool, wherein the target thread pool is a separate thread pool used to store the environment identifier of the process engine as an attribute in the thread pool, and the target thread is dedicated to obtaining the approval process in the target table that matches the environment identifier; determining the process identifier corresponding to the environment identifier of the server from the target table using the target thread pool based on the environment identifier of the server; and obtaining the second target approval process from the approval process pool using the target thread pool based on the process identifier.

6. An approval system, characterized in that, Includes processors and multiple servers, among which, The processor is used to create an approval process and determine the version number of the approval process; determine the server to execute the approval process and write the environment identifier of the server into the progress table of the approval process, wherein the environment identifier is used to reflect the configuration parameters of the server and to determine whether the approval process belongs to the gray-scale test process. Each of the plurality of servers is configured to, upon restarting the approval process, retrieve a first target approval process to be restarted from the approval process pool, wherein the approval process pool contains at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted; determine the environment identifier recorded in the progress table of the first target approval process, wherein the environment identifier is the environment identifier of the server that created the first target approval process, and the environment identifier is used to reflect the configuration parameters of the server; compare the environment identifier of the target server with the environment identifier recorded in the progress table, and if the environment identifier of the target server and the environment identifier recorded in the progress table are inconsistent, the target server interrupts the first target approval process, and writes the environment identifier recorded in the progress table of the first target approval process and the process identifier of the first target approval process into a target table; based on the target table and the environment identifier of the target server, retrieve a second target approval process from the approval process pool whose environment identifier recorded in the progress table is consistent with the environment identifier of the target server, and execute the second target approval process, including: The first target approval process is interrupted by the target server, and the environment identifier and process identifier of the first target approval process recorded in the progress table are written into the target table; a target thread pool is created, and the environment identifier of the target server is written into the target thread pool, wherein the target thread pool is a separate thread pool used to store the environment identifier of the process engine as an attribute in the thread pool, and the target thread is dedicated to obtaining the approval process in the target table that matches the environment identifier; based on the environment identifier of the target server, the process identifier corresponding to the environment identifier of the target server is determined from the target table using the target thread pool; based on the process identifier, the second target approval process is obtained from the approval process pool using the target thread pool.

7. An approval device, characterized in that, include: The acquisition module is used to acquire a first target approval process to be restarted from the approval process pool when the approval process is restarted. The approval process pool contains at least one approval process to be restarted, and the first target approval process is any one of the at least one approval process to be restarted. The processing module is used to determine the environment identifier recorded in the progress table of the first target approval process, wherein the environment identifier is the environment identifier of the server that created the first target approval process, and the environment identifier is an identifier determined based on the configuration parameters of the server, and the environment identifier is used to determine whether the first target approval process belongs to the gray-scale test process. An execution module is configured to compare the environment identifier of the target server with the environment identifier recorded in the progress table, and when the environment identifier of the target server and the environment identifier recorded in the progress table are inconsistent, to obtain a second target approval process from the approval process pool based on the environment identifier of the target server, wherein the environment identifier recorded in the progress table is consistent with the environment identifier of the target server, and to execute the second target approval process, including: The first target approval process is interrupted by the target server, and the environment identifier and process identifier of the first target approval process recorded in the progress table are written into the target table; a target thread pool is created, and the environment identifier of the target server is written into the target thread pool, wherein the target thread pool is a separate thread pool used to store the environment identifier of the process engine as an attribute in the thread pool, and the target thread is dedicated to obtaining the approval process in the target table that matches the environment identifier; based on the environment identifier of the target server, the process identifier corresponding to the environment identifier of the target server is determined from the target table using the target thread pool; based on the process identifier, the second target approval process is obtained from the approval process pool using the target thread pool.

8. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the non-volatile storage medium to perform the approval method according to any one of claims 1 to 4.

9. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the approval method of any one of claims 1 to 4.

Citation Information

Patent Citations

  • Continuous integration method, apparatus and device, and readable storage medium

    CN109062789A

  • Task execution method and device, electronic equipment and storage medium

    CN113127172A