Determine the calling method and interface for the approval process direction
By setting up the call interface in the approval process, the number of parameters of the business scenario in real time, determining the direction of the approval process, solving the problem that cannot support dynamic parameters in the existing technology, and achieved more flexible and extensive approval business scenarios support.
Patent Information
- Application Number
- CN202211439270.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-11-17
AI Technical Summary
The existing technology cannot support dynamic parameters when implementing the pre-approval process for patent cases, resulting in the inability to effectively determine the direction of the approval process in some complex scenarios.
Set up a call interface between the nodes of each two preset process in the approval process, obtain the current business scenario parameters in real time, and determine the current business scenario parameters according to the pre -configured business scenario parameters and the approval process direction. The approval process is directed to find the approval process section node to deal with the current business.
The real -time interface call determines the approval process direction, interfaces with complex business logic, meets more approval business scenarios, and solves the problem that cannot support dynamic parameters in existing technologies.
Smart Images

Figure CN115759983B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a calling method and interface for determining the direction of an approval process. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] At present, the pre-approval of patent cases is implemented based on the activiti workflow engine. When designing the process, activiti supports writing judgment conditions on the routing line (such as "yes", "no", "qualified" or "unqualified" on the routing route, etc.) to achieve the purpose of different judgment logics going through different approval process links. For example, when the mutual inspection conclusion of the case is unqualified, the routing judgment of the mutual inspection return link is followed. However, there are some scenarios that activiti itself cannot support. For example, when a patent case has been replied to for review twice and has not passed, the default conclusion is that the pre-examination is unqualified. The reason is that the number of replies to be reviewed is a dynamic parameter, not a fixed parameter. Summary of the invention
[0004] The embodiment of the present invention provides a calling method for determining the direction of an approval process, which can be used to implement real-time interface calling to determine the direction of the approval process, thereby converting complex business interfaces to meet more approval business scenarios. The method is applied to a calling interface, which is set between every two preset process link nodes of the approval process. The method includes:
[0005] When determining the direction of the current approval process, it is necessary to call the interface to obtain the current business scenario parameters;
[0006] According to the current business scenario parameters and the relationship between the pre-configured business scenario parameters and the approval process direction, determine the approval process direction corresponding to the current business scenario parameters;
[0007] Determine the routing line according to the approval process direction corresponding to the current business scenario parameters; find the approval process link node for processing the current business based on the determined routing line.
[0008] The embodiment of the present invention further provides a calling interface for determining the direction of the approval process, which can be used to implement real-time interface calling to determine the direction of the approval process, thereby converting complex business interfaces to meet more approval business scenarios. The calling interface is set between every two preset process link nodes of the approval process, and the interface includes:
[0009] The acquisition unit is used to obtain the current business scenario parameters when determining the direction of the current approval process needs to be judged by calling the interface;
[0010] A processing unit, configured to determine the approval process direction corresponding to the current business scenario parameters according to the current business scenario parameters and the relationship between the pre-configured business scenario parameters and the approval process direction;
[0011] The determination unit is used to determine the routing line according to the approval process direction corresponding to the current business scenario parameters; according to the determined routing line, find the approval process link node for processing the current business.
[0012] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned calling method for determining the direction of the approval process when executing the computer program.
[0013] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the calling method for determining the direction of the approval process is implemented.
[0014] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the calling method for determining the direction of the approval process is implemented.
[0015] In the embodiment of the present invention, the calling scheme for determining the direction of the approval process is compared with the technical scheme in the prior art that determines the direction of the approval process according to fixed parameters, the business call is complex, and it cannot meet more approval business scenarios. This scheme is applied to the calling interface, and the calling interface is set between every two preset process link nodes of the approval process. The calling interface: when determining that the current approval process direction needs to be judged by calling the interface, obtain the current business scenario parameters; according to the current business scenario parameters, the relationship between the pre-configured business scenario parameters and the approval process direction, determine the approval process direction corresponding to the current business scenario parameters; according to the approval process direction corresponding to the current business scenario parameters, determine the routing line; according to the determined routing line, find the approval process link node that processes the current business. Therefore, this scheme can realize the real-time interface call to determine the direction of the approval process, thereby interface-izing complex business and meeting more approval business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0017] Figure 1 A flowchart of a calling method for determining the direction of an approval process in an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of pre-configuring business scenario parameters in an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of some process steps for determining the direction of the approval process in an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of the structure of a calling interface for determining the direction of an approval process in an embodiment of the present invention;
[0021] Figure 5 The figure is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0023] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0024] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0025] In the description of this specification, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps is not limited and can be appropriately adjusted as needed.
[0026] Figure 1 FIG. 1 is a flow chart of a calling method for determining the direction of an approval process in an embodiment of the present invention. Figure 1 As shown, the method is applied to a calling interface, which is set between every two preset process link nodes of the approval process. The method includes the following steps:
[0027] Step 101: When determining that the direction of the current approval process needs to be determined by calling an interface, obtain the current business scenario parameters;
[0028] Step 102: Determine the approval process direction corresponding to the current business scenario parameters according to the current business scenario parameters and the relationship between the pre-configured business scenario parameters and the approval process direction;
[0029] Step 103: Determine a routing line according to the approval process direction corresponding to the current business scenario parameters; and find the approval process link node for processing the current business according to the determined routing line.
[0030] The calling method for determining the direction of an approval process provided by an embodiment of the present invention is applied to a calling interface, and the calling interface is set between every two preset process link nodes of the approval process. When the calling interface works: when determining that the current approval process direction needs to be judged by calling the interface, the current business scenario parameters are obtained; based on the current business scenario parameters, the relationship between the pre-configured business scenario parameters and the approval process direction, the approval process direction corresponding to the current business scenario parameters is determined; based on the approval process direction corresponding to the current business scenario parameters, a routing line is determined; based on the determined routing line, the approval process link node for processing the current business is found.
[0031] Compared with the technical solution in the prior art that determines the direction of the approval process based on fixed parameters, the business call is complex and cannot meet more approval business scenarios, the calling method for determining the direction of the approval process provided by the embodiment of the present invention can realize real-time interface calling to determine the direction of the approval process, thereby making the complex business interface and meeting more approval business scenarios. The calling method for determining the direction of the approval process is described in detail below.
[0032] In one embodiment, in the above step 101, the above calling method for determining the direction of the approval process may further include: determining whether the current direction of the approval process needs to be judged by calling an interface according to a preset identifier control expression.
[0033] In specific implementation, whether the current approval process direction needs to be judged by calling the interface is determined according to the preset identifier control expression, which further improves the flexibility of calling the approval process direction.
[0034] In one embodiment, the preset identifier control character expression is: ${url:interface address =='1'}, wherein url indicates that the direction of the approval process at this point needs to be determined by calling the interface, and the interface address is configured after url:, and the determination is made based on the return result of the interface address.
[0035] In specific implementation, the preset identifier control expression of ${url: interface address =='1'} is used to determine whether the current approval process direction needs to be judged by calling the interface, which further improves the flexibility and accuracy of calling the approval process direction.
[0036] In the above step 101, the business scenario may be a mutual inspection business scenario in the approval business, a scenario of whether there is a claim mode in quality inspection, a scenario of whether there is a claim mode in mutual inspection, a priority allocation scenario, and the like.
[0037] In one embodiment, in the above step 102, regarding the business scenario parameters, for example, the business scenario parameters corresponding to the priority allocation scenario can be the "assign_first" mentioned below, and the relationship between the business scenario parameters and the approval process direction can be a pre-configured table, which contains a full amount of business scenario parameters and the approval process direction corresponding to each business scenario parameter.
[0038] In one embodiment, the above-mentioned calling method for determining the direction of the approval process may also include pre-configuring the relationship between the business scenario parameters and the direction of the approval process according to the following method:
[0039] According to each approval business requirement, determine the business scenario where the direction of the approval process needs to be determined by calling the interface;
[0040] Assign corresponding business scenario parameters to each business scenario that needs to determine the direction of the approval process by calling the interface;
[0041] Configure the relationship between different business scenario parameters and different approval process directions.
[0042] In specific implementation, the above-mentioned implementation method of pre-configuring the relationship between the business scenario parameters and the approval process direction further improves the flexibility of calling the approval process direction.
[0043] In the above step 103, the routing line is determined according to the determined approval process trend, for example Figure 3 Fill in the routing line between the case information node and the node to be assigned, and find the approval process link node for processing the current business based on the determined routing line, such as Figure 3 The "To be allocated" node in .
[0044] In order to further understand how the present invention is implemented, Figures 2 to 4 Provide detailed explanation.
[0045] The embodiment of the present invention abstractly forms a method for determining the direction of a process by real-time interface calls to solve the problem of real-time judgment of business values. This method introduces interface judgment to determine the direction of process routing, which can replace the traditional variable method and expand the problems that the variable method cannot solve, thereby making complex business interfaces and simplifying them to meet more approval business scenarios. The following is a detailed introduction.
[0046] The calling method for determining the direction of the approval process provided by the embodiment of the present invention is a text marking method that reduces the complexity of code logic; the process is initiated, there are process variables, and the variables are applied on the branch to get this value. The way in which the universal symbol controls the process branching, how to form the specification, and the wildcard writing method reduce the amount of code; based on the branch direction judgment rules of the activiti workflow engine itself, it is controlled by means of process variables. However, in the actual working process, some parameters are not solidified at the time of initialization, but are dynamically variable. Based on such a scenario, the embodiment of the present invention requires a set of real-time calling interface to judge the direction mechanism, so the embodiment of the present invention abstractly forms a set of process direction judgment mechanism: ${url: interface address =='1'} syntax to solve the impact of real-time changing data on the process direction.
[0047] According to the approval business needs, different parameter configurations determine different approval directions of the process. Therefore, the direction of the process here will read the content of the parameter configuration table, but the workflow engine itself does not provide a mechanism to read the business table to determine the direction. Therefore, according to business needs, the embodiment of the present invention abstracts the expression language that supports the business interface to determine the direction of the process: ${url:interface address == '1'}; wherein, url indicates that the interface method is to be used for judgment, and the interface address is configured after url:. The return result of the interface address is used for judgment, and true or false is returned. If the return result is true, when the subsequent process direction is determined, the corresponding routing line will be automatically found, and the process link corresponding to the routing line will be finally determined, thereby solving the judgment of the complex approval business process direction. Next, combined with Figures 2 to 4 Give an example.
[0048] The process direction is determined according to the configuration content of the configuration center, for example: Figure 2 As shown in , if the configuration center checks the priority allocation (that is, the business scenario parameters of priority allocation), then Figure 3As shown, after the application is initiated, the process should automatically go to the stage to be assigned. It can be seen that the existing solution is to fill in the case information process stage node and the stage node to be assigned with fixed parameters, such as "yes", "no", "qualified" or "unqualified", etc., while the embodiment of the present invention sets a call interface to determine the direction of the approval process between every two preset process stage nodes, and the judgment condition is a real-time call interface, such as Figure 3 Fill in the "priority allocation and number release mode or no appointment mode and no claim" between the case information process link node and the process link node to be allocated. The interface calling implementation method can be: ${'url:xxx'='assign_first'}, where "xxx" is the interface address, which determines the direction of the approval process, and "assign_first" is the business scenario parameter. At this time, the business scenario is priority allocation.
[0049] In another example, the process direction is determined according to the configuration content of the configuration center. For example, if the quality inspection includes the claim mode (business scenario) in the configuration center, when it comes to the quality inspection stage, it will automatically flow to the quality inspection claim stage. For detailed implementation methods, please refer to the implementation of the priority allocation scenario above.
[0050] In summary, the embodiments of the present invention realize the interface-based operation of complex business logic, which makes the business logic flexible and controllable and achieves the purpose of easy maintenance.
[0051] The embodiment of the present invention also provides a calling interface for determining the direction of the approval process, as described in the following embodiment. Since the principle of solving the problem by the interface is similar to the calling method for determining the direction of the approval process, the implementation of the interface can refer to the implementation of the calling method for determining the direction of the approval process, and the repeated parts will not be repeated.
[0052] Figure 4 FIG. 1 is a schematic diagram of a structure of a calling interface for determining the direction of an approval process in an embodiment of the present invention. The calling interface is set between every two preset process link nodes of the approval process. Figure 4 As shown, the calling interface includes:
[0053] Acquisition unit 01 is used to acquire current business scenario parameters when determining that the direction of the current approval process needs to be judged by calling an interface;
[0054] Processing unit 02, used to determine the approval process direction corresponding to the current business scenario parameters according to the current business scenario parameters and the relationship between the pre-configured business scenario parameters and the approval process direction;
[0055] The determination unit 03 is used to determine a routing line according to the approval process trend corresponding to the current business scenario parameters; and find the approval process link node for processing the current business according to the determined routing line.
[0056] In one embodiment, the calling interface for determining the direction of the approval process may further include: a configuration unit for pre-configuring the relationship between the business scenario parameters and the direction of the approval process according to the following method:
[0057] According to the approval business requirements, determine the business scenarios that require determining the direction of the approval process by calling the interface;
[0058] Assign corresponding business scenario parameters to business scenarios that need to determine the direction of the approval process by calling interfaces;
[0059] Configure the relationship between different business scenario parameters and different approval process directions.
[0060] In one embodiment, the calling interface for determining the direction of the approval process may further include: a judgment unit for determining whether the direction of the current approval process needs to be judged by calling the interface according to a preset identifier control expression.
[0061] In one embodiment, the preset identifier control expression can be: ${url:interface address =='1'}, where url indicates that the direction of the approval process at this point needs to be judged by calling the interface, and the interface address is configured after url:, and the judgment is made based on the return result of the interface address.
[0062] Based on the above invention concept, Figure 5 As shown, the present invention also proposes a computer device 500, including a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520, wherein the processor 520 implements the aforementioned fund information processing method when executing the computer program 530.
[0063] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the calling method for determining the direction of the approval process is implemented.
[0064] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the calling method for determining the direction of the approval process is implemented.
[0065] In an embodiment of the present invention, a calling scheme for determining the direction of the approval process is compared with the technical scheme in the prior art that determines the direction of the approval process based on fixed parameters, has complex business calls, and cannot meet more approval business scenarios. This scheme is applied to a calling interface, and the calling interface is set between every two preset process link nodes of the approval process. The calling interface: when determining that the current approval process direction needs to be judged by calling the interface, obtains the current business scenario parameters; determines the approval process direction corresponding to the current business scenario parameters based on the current business scenario parameters and the relationship between the pre-configured business scenario parameters and the approval process direction; determines the routing line based on the approval process direction corresponding to the current business scenario parameters; and finds the approval process link node that processes the current business based on the determined routing line. Therefore, the present invention provides a method for determining the direction of the approval process by real-time interface calling, thereby making complex business interfaces and meeting more approval business scenarios.
[0066] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0067] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0070] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A calling method for determining the direction of an approval process, characterized in that: The method is applied to a calling interface, which is set between every two preset process link nodes of the approval process, and the judgment condition between every two preset process link nodes is a real-time calling interface. The method includes: When determining the direction of the current approval process, it is necessary to call the interface to obtain the current business scenario parameters; According to the current business scenario parameters and the relationship between the pre-configured business scenario parameters and the approval process direction, determine the approval process direction corresponding to the current business scenario parameters; Determine the routing line according to the approval process direction corresponding to the current business scenario parameters; find the approval process link node for processing the current business according to the determined routing line, so as to realize real-time calling interface to determine the process direction; The calling method for determining the direction of the approval process also includes pre-configuring the relationship between business scenario parameters and the direction of the approval process in accordance with the following method: according to each approval business requirement, determine the business scenario that needs to determine the direction of the approval process by calling the interface; assign corresponding business scenario parameters to each business scenario that needs to determine the direction of the approval process by calling the interface; configure the relationship between different business scenario parameters corresponding to different approval process directions, so as to realize different approval directions of the process according to different business scenario parameter configurations based on the approval business requirements.
2. The calling method for determining the direction of the approval process according to claim 1, characterized in that: Also includes: Determine whether the current approval process direction needs to be judged by calling the interface based on the preset identifier control expression.
3. The calling method for determining the direction of the approval process as claimed in claim 2, characterized in that: The preset identifier control character expression is: ${url:interface address =='1'}, wherein url indicates that the direction of the approval process at this location needs to be judged by calling the interface, and the interface address is configured after url:, and the judgment is made based on the return result of the interface address.
4. A calling interface for determining the direction of the approval process, characterized in that: The calling interface is set between every two preset process link nodes of the approval process. The judgment condition between every two preset process link nodes is a real-time calling interface. The calling interface includes: The acquisition unit is used to obtain the current business scenario parameters when determining the direction of the current approval process needs to be judged by calling the interface; A processing unit, configured to determine the approval process direction corresponding to the current business scenario parameters according to the current business scenario parameters and the relationship between the pre-configured business scenario parameters and the approval process direction; The determination unit is used to determine the routing line according to the approval process direction corresponding to the current business scenario parameters; according to the determined routing line, the approval process link node for processing the current business is found to realize real-time calling interface to determine the process direction; The calling interface for determining the direction of the approval process also includes a configuration unit, which is used to pre-configure the relationship between business scenario parameters and the direction of the approval process according to the following method: according to each approval business requirement, determine the business scenario that needs to determine the direction of the approval process by calling the interface; assign corresponding business scenario parameters to each business scenario that needs to determine the direction of the approval process by calling the interface; configure the relationship between different business scenario parameters corresponding to different approval process directions, so as to realize different approval directions of the process determined by different business scenario parameter configurations according to the approval business requirements.
5. The calling interface for determining the direction of the approval process as claimed in claim 4, characterized in that: Also includes: The judgment unit is used to determine whether the current approval process needs to be judged by calling the interface according to the preset identification control character expression.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 3 is implemented.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
8. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method and device for determining approval process, and equipment
CN113506035A