Examination and approval process processing method and device, equipment and storage medium
By obtaining application and business services, accessing the approval process processing interface, and using the general approval process to build components, the problems of waste and inefficiency in the development of approval process in the existing technology are solved, and efficient and low-cost approval process construction and integration are achieved.
Patent Information
- Application Number
- CN202411742252.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-05-06
AI Technical Summary
When building approval processes, the existing technology requires separate development and maintenance for each business service, resulting in waste of development resources and inefficiency.
By obtaining target applications and business services, creating application instances and determining approval configuration information, accessing multiple approval process processing interfaces, and using common approval process construction components to build target approval processes.
It has achieved efficiency improvement and cost reduction in approval process construction, supported the integration and management of cross-business services, and personalized approval process construction that meets different business needs.
Smart Images

Figure CN119938177A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to an approval process processing method, device, equipment and storage medium. Background Art
[0002] Currently, an application can provide multiple business services, and each business service generally involves the construction and execution of an approval process. For example, for a financial application, it can provide business services such as virtual resource investment order service, virtual resource order modification service, and exercise collection order service. The completion of these business services requires approval.
[0003] However, in the relevant approval process construction solutions, different designs and implementation methods are generally used to develop and maintain each business service separately, which leads to waste of development resources and low development efficiency. Summary of the invention
[0004] The present application provides an approval process processing method, device, equipment and storage medium, which can improve the construction efficiency of the approval process and reduce the construction cost of the approval process.
[0005] In a first aspect, the present application provides an approval process processing method, including: obtaining a target application and a target business service of the target application; creating a target application instance of the target application, the target application instance being used to identify the target application; determining the approval configuration information of the target approval flow corresponding to the target business service; determining and connecting multiple approval process processing interfaces based on the target application instance and the approval configuration information; and constructing a target approval process for the target business service based on a general approval process construction component and multiple approval process processing interfaces.
[0006] In the second aspect, the present application provides an approval process processing device, including: a first acquisition module, used to acquire a target application and a target business service of the target application; a first creation module, used to create a target application instance of the target application, the target application instance is used to identify the target application; a first determination module, used to determine the approval configuration information of the target approval flow corresponding to the target business service; a second determination module, used to determine and access multiple approval process processing interfaces based on the target application instance and the approval configuration information; a first construction module, used to construct a target approval process for the target business service based on a general approval process construction component and multiple approval process processing interfaces.
[0007] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the method in the first aspect or its various implementations.
[0008] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the method in the first aspect or its various implementations.
[0009] In a fifth aspect, the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute the method in the first aspect or its various implementations.
[0010] In a sixth aspect, the present application provides a computer program, which enables a computer to execute the method in the first aspect or its various implementations.
[0011] Through the technical solution of the present application, the electronic device can first determine the target application and the target business service of the target application; then, it can create a target application instance for identifying the target application, and determine the approval configuration information of the target approval flow corresponding to the target business service; then, it can determine and access multiple approval process processing interfaces based on the approval configuration information and the target application instance, and finally, it can build components and multiple approval process processing interfaces based on the general approval process to build the target approval process of the target business service. In the above process, there is no need to adopt different designs and implementation methods to develop and maintain the approval process of each business service separately. Instead, the approval process can be constructed using a general approval process construction component, so that the approval process construction component can be reused, avoiding the use of different development methods to develop different approval processes, saving the approval process construction cost and improving the approval process construction efficiency; moreover, since the construction method of the approval process of each business service is unified (that is, they can all be implemented and reused according to the above technical solution, namely, the general approval process construction component), therefore, the approval process integration and management across business services can be realized more conveniently and quickly, reducing the complexity of system integration; at the same time, since the relevant information of the target business service and its corresponding application (that is, the target application instance and approval configuration information) is taken into account when constructing the approval process, therefore, the approval process construction under different business needs can be met, so that the personalized business needs of the approval process of different business services can be met on the basis of ensuring the universality of the approval process construction method of different business services. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for describing the embodiments are briefly introduced below.
[0013] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0014] Figure 2A flowchart of an approval process processing method provided in an embodiment of the present application;
[0015] Figure 3 A schematic diagram of an approval process processing method provided in an embodiment of the present application;
[0016] Figure 4 A schematic diagram of another approval process processing method provided in an embodiment of the present application;
[0017] Figure 5 A schematic diagram of another approval process processing method provided in an embodiment of the present application;
[0018] Figure 6 A schematic diagram of another approval process processing method provided in an embodiment of the present application;
[0019] Figure 7 A schematic diagram of another approval process processing method provided in an embodiment of the present application;
[0020] Figure 8 A schematic diagram of an approval process processing device 800 provided in an embodiment of the present application;
[0021] Fig. 9 A schematic diagram of an electronic device 900 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] As mentioned above, since the relevant approval process construction solutions use different implementation methods to separately develop and maintain each business service, it leads to waste of development resources and low development efficiency.
[0024] In order to solve the above technical problems, the inventive concept of this application is: to build a target approval process for the target business service based on a general approval process building component and multiple approval process processing interfaces determined based on the approval configuration information of the target application instance and the target approval flow corresponding to the target business service.
[0025] It should be understood that the technical solution of the present application can be applied to the following scenarios, but is not limited to:
[0026] In one embodiment, the present application can be applied to approval process construction scenarios under various business services of various applications. For example, it can be applied to approval process construction scenarios under business services such as leave, purchase orders, and reimbursement, and is suitable for approval scenarios such as leave applications, purchase order processing, and reimbursement processes.
[0027] In one embodiment, Figure 1 As shown, the application scenario may include a terminal device 110 and a server 120, and the terminal device 110 and the server 120 may be connected via a wired network or a wireless network.
[0028] Exemplarily, the client installed on the terminal device 110 can obtain the target application and the target business service of the target application based on the user input information; then, it can create a target application instance of the target application and determine the approval configuration information of the target approval flow corresponding to the target business service; thereafter, through interaction with the server 120, according to the target application instance and the approval configuration information, multiple approval process processing interfaces can be determined and connected; finally, the client on the terminal device 110 can, based on user operations, build components and multiple approval process processing interfaces according to the general approval process (the call of the interface can be implemented through the server 120, which will be introduced later in this application), and build the target approval process of the target business service.
[0029] The server 120 may be a server, a server cluster consisting of multiple servers, or a cloud platform control center, but is not limited thereto. The terminal device 110 may be a mobile phone, a tablet computer, a laptop computer, or a desktop computer, but is not limited thereto.
[0030] It should be noted that Figure 1 The terminal devices and servers are merely exemplary. Specifically, other numbers or types of terminal devices or servers may also be included.
[0031] After introducing the application scenarios of the embodiments of the present application, the technical solution of the present application will be described in detail below:
[0032] Figure 2 This is a flowchart of an approval process processing method provided in an embodiment of the present application. The method can be executed by a terminal device in the above application scenario, but is not limited thereto. Figure 2 As shown, the method may include the following steps:
[0033] S210: Acquire a target application and a target business service of the target application;
[0034] S220: creating a target application instance of the target application, where the target application instance is used to identify the target application;
[0035] S230: Determine the approval configuration information of the target approval flow corresponding to the target business service;
[0036] S240: Determine and access multiple approval process processing interfaces according to the target application instance and approval configuration information;
[0037] S250: Construct a target approval process for a target business service according to a general approval process construction component and multiple approval process processing interfaces.
[0038] In one embodiment, the target application can be understood as a business system that can provide at least one business service.
[0039] For example, the target application can be an institutional business system (a system for managing the corresponding business of an investment institution) or a WebPortal (portal website) business system; the business service can be an order business service (a service that provides order transactions), an order modification business service, or an exercise collection order business service. Correspondingly, the approval processes corresponding to the above business services can be: order approval process, order modification approval process, and exercise collection approval process.
[0040] Specifically, approval flow administrators and other approval flow developers can input or select the target application and the target business service of the target application based on the terminal device, so that the terminal device can obtain the target application and the target business service to determine the subsequent target application instance and approval configuration information, and then determine the approval process of the target business service, that is, the target approval process.
[0041] After determining the target application and the target business service, the approval flow administrator and other approval flow developers can create an application instance of the target application, namely the target application instance, based on the device they are using, and determine the approval configuration information of the target approval flow corresponding to the target business service, namely, execute S220 and S230. This application does not restrict the execution order of S220 and S230, and its execution content is introduced below.
[0042] In one embodiment, the above-mentioned creation of the target application instance of the target application may include the following steps:
[0043] S220-1: Acquire an application keyword of a target application, where the application keyword is used to specify the target application during the process of connecting the target application and the approval process processing interface;
[0044] Specifically, the application keyword (app-key) can uniquely identify the target application and can include at least one of the following, but not limited to: the application name of the target application and the application identification of the target application. The application identification of the target application can be determined based on at least one of the application name, development version, development time, developer, and programming language used for development of the target application.
[0045] Exemplarily, the application name, development version, development time, developer, and programming language used for development can be digitized to obtain multiple digitized results. For example, the digitized result of the application name can be the ASCII code or Unicode code sequence corresponding to the application name, the digitized result of the development version can be the digital sequence corresponding to the version number, the digitized result of the development time can be the timestamp corresponding to the development time, the digitized result of the developer can be the digital representation of the developer name, and the digitized result of the programming language used for development can be the digital representation of the language name of the programming language. Then, at least one of the digitized results can be spliced, for example, spliced end to end, to obtain a digitized splicing result; then, the digitized splicing result can be converted into a string using a hash algorithm such as MD5, SHA-1, or SHA-2 to obtain the application identifier of the target application.
[0046] S220-2: Generate an application key for the target application, where the application key is used to authenticate the target application;
[0047] Specifically, the application key (app-secret) of the target application can be used to authenticate the target application during the process of connecting the target application to the approval process processing interface in subsequent steps.
[0048] Exemplarily, a random string may be generated by a random number generator, such as Python's secrets module, to obtain the application key of the target application.
[0049] In addition, the application key and application keyword can be sent to the device used by the business developer (which can be the same device as the device used by the above-mentioned approval flow developer, or a different device), so that the business developer can identify and authenticate the target application based on the device used by the business developer according to the application key and application keyword (this application will introduce this in the embodiment corresponding to S240, and will not be repeated here), so as to determine multiple approval process processing interfaces and connect the target application and the approval process processing interface.
[0050] S220 - 3: Create a target application instance according to the application keyword and the application key.
[0051] Among them, an application instance refers to an executable copy of an application that runs in different environments or configurations and meets different business scenarios. Specifically, a target application instance refers to an executable copy that is used to identify a target application and can run on a target application. The target application instance may include: an application keyword of the target application, an application key of the target application, and the execution steps of the docking approval process processing interface. To avoid redundancy, this application will introduce this in the embodiment corresponding to S240.
[0052] Specifically, the approval flow developer can determine the instance name, instance description information and resource usage information of the target application instance based on the device used, where the instance name can be "target application instance", the instance description information can be the function and specific content of the target application instance (as shown in the above embodiment), and the resource usage information can refer to the resources required for the target application instance to run, such as the memory, storage space and network bandwidth required; then, based on the above instance name, instance description information and resource usage information, the target application instance can be created and parameters (for example, connections to databases and network communications, etc.) can be configured; finally, the target application instance can be integrated into the target application for subsequent docking with the approval process processing interface, etc.
[0053] In one embodiment, the above-mentioned determination of the approval configuration information of the target approval flow corresponding to the target business service may include the following steps:
[0054] The target approval process may include at least one approval flow. The target approval flow is any approval flow of the target approval process and is a link of the target approval process.
[0055] The approval configuration information may include at least one of the following, but is not limited to: the business keyword of the target business service, the approval callback address, the approval object interface address, the content field of the approval content corresponding to the target approval flow, and the condition field of the corresponding approval condition. The specific content and acquisition process of the approval configuration information are introduced below:
[0056] S230-1: Obtain a business keyword of a target business service, where the business keyword is used to specify the target business service in the process of connecting the target application program and the approval process processing interface;
[0057] Specifically, the business keyword (business key) can uniquely identify the target business service, and can include at least one of the following, but not limited to: the business name of the target business service, the business identifier of the target business service. The business identifier of the target business service can be determined based on at least one of the business name of the target business service, the business application scenario, the service launch time, and the business developer.
[0058] Similarly, a method similar to that for determining the application identifier of the target application in S220-1 above can be used to determine the business identifier of the target business service based on at least one of the business name, business application scenario, business launch time, and business developer. This application does not impose any restrictions on this.
[0059] S230-2: Determine the approval result callback address and the approval object interface address of the corresponding approval object according to the business keyword;
[0060] The approval result callback address refers to the address where the approval result is returned, which may include, but is not limited to: the address corresponding to the approval object of the approval result and the address corresponding to the approval applicant who submitted the approval. The address may be a corresponding email address or a page address for viewing the approval content, approval progress or approval result, but is not limited to this. The approval result callback address may be used to create and connect to the approval result callback interface.
[0061] The approval object may be an approver, an approval department, or an approval group. This application does not impose any restrictions on this.
[0062] The approval object interface address refers to the address of the approval object query interface. The approval object query interface can be created and connected based on the approval object interface address.
[0063] In addition, the approval result callback address may include the approval result callback addresses corresponding to different approval flows (specifically, they may be the approval result callback addresses corresponding to the approval objects or approval applicants corresponding to the different approval flows); the approval object interface address may include the approval object interface addresses corresponding to different approval flows (specifically, they may be the approval object interface addresses corresponding to the approval objects or approval applicants corresponding to the different approval flows).
[0064] It is understandable that, since the business keyword identifies the target business service, the approval result callback address and approval object interface address determined according to the business keyword are both related to the target business service, that is, they are both involved in and required by the target business service.
[0065] S230-3: Determine the content field of the approval content corresponding to the target approval flow and the condition field of the corresponding approval condition.
[0066] Specifically, the approval content may include, but is not limited to: the content submitted by the approval applicant, the approval results or approval opinions corresponding to the previous approval nodes / links, the approval deadline and other content that can be displayed during the approval process. Correspondingly, the inner word fields of the approval content may be: the field "application content" corresponding to the content submitted by the approval applicant, the field "approval result" or "approval opinion" corresponding to the approval results or approval opinions corresponding to the previous approval nodes / links, and the field "approval deadline" corresponding to the approval deadline.
[0067] The approval condition corresponding to the target approval flow may include at least one of the following, but is not limited to: the approval result corresponding to the previous approval node / link is passed. Accordingly, the condition field of the approval condition may be "the approval result of the previous approval node".
[0068] It should be noted that the content field of the approval content and the condition field of the corresponding approval condition corresponding to the above target approval flow can be used in the process of constructing the target approval process of the target business service, that is, S250. Specifically, in the process of constructing the target approval process, the approval content and approval conditions can be filled and configured according to the above content field and condition field to achieve normal rendering and display of the subsequent target approval process on the approval page.
[0069] After determining the target application instance and approval configuration information, the business developer can obtain the target application instance and approval configuration information based on the device used by the business developer, and determine and connect multiple approval flow processing interfaces according to the target application instance and approval configuration information to build a target approval flow based on the multiple approval flow processing interfaces. This application introduces this in the following embodiments:
[0070] Among them, multiple approval process processing interfaces are connected, specifically, multiple approval process processing interfaces are connected with the target application and the target business service respectively, so that the corresponding information (for example, the approval object and the approval result callback address, etc.) and requests (for example, the approval process initiation request and the approval process withdrawal request, etc.) can be obtained in the process of building or running the target approval process.
[0071] In one embodiment, the above-mentioned determining and accessing multiple approval process processing interfaces according to the target application instance and the approval configuration information may include the following steps:
[0072] Among them, the approval process processing interface includes any of the following, but is not limited to: approval result callback interface, approval object query interface, approval order submission interface and approval order withdrawal interface.
[0073] S240-1: Create an approval result callback interface according to the approval result callback address. The approval result callback interface is used to return the approval result to the business system corresponding to the target business service;
[0074] The business system corresponding to the target business service refers to a system that can view the approval results, for example, it can be a system used by the approval object or the approval applicant. Specifically, the approval result callback interface can obtain the approval result and send the approval result to the business system according to the approval result callback address; the business system can display the approval result on the page or area indicated by the approval result callback address.
[0075] For example, the approval result callback interface can store the correspondence between the approval result and the approval result callback address, specifically, the correspondence between the sender (for example, the approval object) and the receiver (for example, the approval applicant) of the approval result and the approval result callback address; after obtaining the approval result, the approval result callback interface can determine the approval result callback address based on the sender corresponding to the approval result and the receiver indicated by the approval result, as well as the above correspondence; and send the approval result callback address and the approval result to the business system, so that the business system can display the approval result according to the approval result callback address.
[0076] S240-2: Create an approval object query interface according to the approval object interface address. The approval object query interface is used to obtain the approval object corresponding to the target approval process;
[0077] Specifically, in combination with the above content, it can be known that the approval object interface address refers to the address of the approval object query interface. According to the approval object interface address, the interface call address of the approval object query interface can be defined and configured, so that the approval object query interface can be called through the approval object interface address, and then the approval object corresponding to the target approval process can be displayed and obtained based on the approval object query interface.
[0078] S240-3: Create an approval order submission interface and an approval order withdrawal interface. The approval order submission interface is used to obtain an approval process initiation request submitted by the business system corresponding to the target business service. The approval order withdrawal interface is used to obtain an approval process withdrawal request submitted by the business system corresponding to the target business service.
[0079] The approval process initiation request may be a request submitted by the approval applicant based on the business system. The approval order submission interface may obtain the request and respond to the request so that the target approval process enters the next approval node.
[0080] The approval process withdrawal request can be a request submitted by the approval applicant or the approval object based on the business system. The approval order withdrawal interface can obtain the request and respond to the request to make the target approval process enter the end node.
[0081] S240-4: According to the target application instance and business keywords, the approval result callback interface, the approval object query interface, the approval order submission interface and the approval order withdrawal interface are connected to the target application program and the target business service respectively.
[0082] Specifically, the target application instance can be executed first to obtain the application keyword, application key and execution steps of the docking approval process processing interface in the target application instance; then, the approval process processing interface can be docked according to the execution steps: the target application and the target business service indicated by the application keyword and the business keyword can be determined respectively; the target application can be authenticated using the application key (specifically, after the application key is generated, the application key can be stored in the target application instance to obtain the first application key, and the generated application key can be sent to the device used by the developer of the business party, i.e., the device or system used to execute S240 to obtain the second application key; then, the first application key and the second application key are compared, and if the first application key corresponds to the second application key, it is determined that the authentication is passed, otherwise it is determined that the authentication is not passed); then, in response to determining that the authentication is passed, the docking between the above-mentioned multiple approval process processing interfaces and the target application and the target business service can be established, i.e., a communication connection. The above content is also the execution step of docking the approval process processing interface.
[0083] After executing the above S210-S240, the business administrator can build the target approval process of the target business service based on the device used by him (which can be the same device as the device used by the above approval flow developer or a different device) through the general approval process construction component and multiple approval process processing interfaces. This process can be specifically carried out based on a visual approval process construction page, which can display the general approval process construction component. The business approver can build the target approval process based on the device used by dragging or clicking on the general approval process construction component. In this process, multiple approval process processing interfaces can provide / obtain the information and requests required to build the target approval process. At the same time, the above approval configuration information (specifically, it can be content fields and condition fields) can fill in the approval content and approval conditions and other information, and complete the construction operation of the target approval process. That is, the target approval process of the target business service can be built according to the approval configuration information, the general approval process construction component and multiple approval process processing interfaces.
[0084] In one embodiment, the general approval process building component includes: a plurality of approval nodes, a plurality of flow gateways for determining flow paths between the approval nodes, and directed lines for connecting and indicating the flow directions between the approval nodes and the flow gateways;
[0085] Among them, Figure 3 As shown, approval nodes refer to nodes that can be operated in the approval process, including start nodes, end nodes, and intermediate nodes. The start node is the start node of the approval process. There can be one and only one start node in an approval process, which will automatically flow to the next node. The start node can correspond to the approval applicant submitting an approval process initiation request. The intermediate node refers to the node that requires approval by the approval object, and is configured with approval operations, approval methods, and target approval objects. The end node refers to the end node of the approval process. There can be one and only one end node in an approval process. The end node can correspond to the withdrawal of the approval process request or the approval result of the approval failure.
[0086] like Figure 4 As shown, multiple flow gateways include: mutually exclusive gateways, compatible gateways and parallel gateways. Approval node 1 and approval node 2 are both intermediate nodes. The arrows connecting the flow directions between each approval node and each flow gateway represent directed lines. Directed lines represent the execution order in the approval process. Directed lines are divided into direct directed lines and conditional directed lines. Direct directed lines represent that it is possible to flow directly and unconditionally from the current approval node / flow gateway to the connected downstream approval node / flow gateway. Conditional directed lines represent that it is possible to flow from the current approval node / flow gateway to the connected downstream approval node / flow gateway only when the approval conditions are met. Condition 1 and Condition 2 are approval conditions.
[0087] Mutually exclusive gateway, also known as exclusive gateway, is used to select and flow to one downstream approval node from multiple corresponding downstream approval nodes according to multiple corresponding approval conditions. It can be used to handle the situation where only one path can be executed in an approval process, that is, it can only flow to one downstream approval node. When multiple conditions are met at the same time, only one of the paths is allowed to be executed, and the rest will be automatically ignored. Mutually exclusive gateway is usually used to represent decision or selection.
[0088] For example, Figure 4 As shown, if condition 1 is met, the approval process can be controlled to flow to approval node 1 through the mutually exclusive gateway; if condition 2 is met, the approval process can be controlled to flow to approval node 2 through the mutually exclusive gateway.
[0089] A compatible gateway, also known as an inclusive gateway, is used to flow to multiple corresponding downstream approval nodes according to multiple corresponding approval conditions, and aggregate the execution results of multiple corresponding downstream approval nodes. It is used to handle situations where multiple conditions can be executed at the same time. When multiple branches are executed in parallel, the compatible gateway aggregates all the execution results before entering the next node. Compatible gateways are usually used for parallel operations or situations where multiple paths need to converge.
[0090] For example, Figure 4 As shown, if conditions 1 and 2 are met, the approval process can be controlled to flow to approval node 1 and approval node 2 through the compatible gateway; thereafter, the corresponding approval results of approval node 1 and approval node 2 can be aggregated through the compatible gateway.
[0091] Parallel gateways are used to flow directly to the corresponding multiple downstream approval nodes, and flow to other downstream approval nodes after all the corresponding multiple downstream approval nodes are executed. It is used to indicate that multiple tasks in a process can be executed at the same time. When all branches are completed, the next node will be entered. Parallel gateways are usually used in processes where multiple operations need to be executed simultaneously, such as when multiple approvers approve the same application.
[0092] For example, Figure 4 As shown, the parallel gateway can be used to control the approval process to flow directly from the start node to the approval node 1 and the approval node 2; thereafter, after the approval node 1 and the approval node 2 are both executed, the parallel gateway can be used to flow to the end node.
[0093] Specifically, the above-mentioned construction of the target approval process of the target business service based on the general approval process construction component and multiple approval process processing interfaces may include the following steps:
[0094] S250-1: Obtain a target mobile gateway from multiple mobile gateways;
[0095] Specifically, the target mobile gateway may be at least one of the above-mentioned mutually exclusive gateways, compatible gateways and parallel gateways.
[0096] S250-2: Obtain a start node, an end node, and at least one intermediate node from multiple approval nodes;
[0097] It should be noted that the intermediate node is not configured at this time, that is, the corresponding approval operation, approval method and target approval object node are not set.
[0098] S250-3: Determine the approval operation and approval method corresponding to at least one intermediate node;
[0099] Specifically, approval operations refer to the operations performed by the approval object on the approval content, which may include: approval (the corresponding target approval process can flow to the downstream intermediate node, and the corresponding approval result is: approval passed), rejection (the corresponding target approval process can flow to the end node, and the corresponding approval result is: approval rejection), and withdrawal (the corresponding target approval process can flow to the end node, and the corresponding approval result is: approval withdrawal).
[0100] The approval method refers to the method of performing the approval operation. For example, the approval method may be a method of selecting an approval result from multiple approval results, or a method of directly inputting an approval result, but is not limited thereto.
[0101] S250-4: Determine at least one approval condition, where the at least one approval condition is used to restrict the flow between each approval node and each flow gateway connected to each other;
[0102] Specifically, the approval condition may include at least one of the following, but is not limited to: the approval result corresponding to the current approval node is approval passed, the applicant condition corresponding to the approval applicant, and the approval object condition corresponding to the approval object. For example, the applicant condition and the approval object condition may specifically be their corresponding rank or authority, but are not limited thereto.
[0103] S250-5: Obtaining the target approval object corresponding to each of at least one intermediate node according to the approval process processing interface;
[0104] The target approval object refers to the object that performs approval operations on the corresponding intermediate node and makes approval results.
[0105] S250-6: configuring the approval operation, the approval method, and the target approval object for at least one intermediate node;
[0106] Specifically, according to the approval method, multiple virtual buttons corresponding to the approval operation performed at the intermediate node can be determined: an approval approval button, an approval rejection button, and an approval withdrawal button; then, the corresponding operation logic is configured for each virtual button: in response to the trigger operation on the approval approval button, the approval result is determined to be approval passed, and the target approval process is controlled to flow to the downstream approval node; in response to the trigger operation on the approval rejection button, the approval result is determined to be approval rejection, and the target approval process is controlled to flow to the end node; in response to the trigger operation on the approval withdrawal button, the approval result is determined to be approval withdrawal, and the target approval process is controlled to flow to the end node.
[0107] S250-7: Connect the target flow gateway, the start node, the end node and at least one intermediate node through directed lines and at least one approval condition to obtain a target approval process.
[0108] Specifically, the business administrator can, based on the device he is using, connect the target flow gateway, start node, end node and at least one intermediate node through trigger operations such as clicking, sliding, scrolling, dragging or dropping based on directed lines and at least one approval condition to obtain the target approval process.
[0109] In the above process, the use threshold of approval process construction can be lowered and the user experience can be improved by providing a graphical process design tool (i.e., a general approval process construction component) and an intuitive operation interface (i.e., an approval process construction page). Moreover, since the general approval process construction components (including flow gateways, approval nodes, and directed lines, etc.) are modular and reusable, the approval process can be flexibly and quickly configured according to the needs of the target business services and target applications. Among them, various types of flow gateways, such as mutually exclusive gateways, compatible gateways, and parallel gateways, can be used to design complex decision logic and parallel processing processes according to business needs. In addition, each approval node can set specific approval rules and operation permissions (i.e., approval conditions, approval methods, approval objects, approval operations), etc., so the compliance and accuracy of approval operations and approval permissions can be ensured.
[0110] In one embodiment, the target flow gateway, the start node, the end node and at least one intermediate node are connected through directed lines and at least one approval condition to obtain the target approval process, and also includes: obtaining approval requirement information and business requirement information of the target business service; deleting or modifying at least one intermediate node according to the approval requirement information and the business requirement information.
[0111] The approval requirement information refers to the information required in the approval process corresponding to the target approval process, such as the number of approval objects, approval conditions, etc. The business requirement information refers to the information related to the target business service required in the approval process corresponding to the target approval process, such as the target business service requiring at least two approval objects to approve at the same time.
[0112] Accordingly, assuming that the approval requirement information indicates that the number of approval objects is 2, it can be determined that the number of intermediate nodes is 2. If the original number of intermediate nodes is 3, one of the intermediate nodes can be deleted. Assuming that the approval requirement information indicates that there are approval conditions, it can be determined that at least one mutually exclusive gateway or compatible gateway is required, and at least one mutually exclusive gateway or compatible gateway can be added. Assuming that the business requirement information indicates that at least two approval objects need to be approved at the same time, it can be determined that at least one parallel gateway is required, and at least one parallel gateway can be added.
[0113] In the above content, you can customize the approval process according to specific needs, such as adding, deleting, and modifying nodes, to improve the flexibility of approval process construction to adapt to business changes.
[0114] In one embodiment, the created target approval process can be integrated into the architecture or system corresponding to the target business service, such as HRM (human resource management), CRM (customer relationship management) and ERP (enterprise resource planning), through an integration interface.
[0115] In one embodiment, the approval operations and approval status involved in the target approval process can be tracked and managed in real time to monitor the efficiency of the approval process and find potential problems. For example, the approval operations can be recorded to obtain audit logs to ensure the security, confidentiality and traceability of the approval process. The submission of the approval process request, the approval progress and the approval results can be recorded and called back to ensure the transparency, efficiency, compliance inspection and historical review of the approval process.
[0116] Through the technical solution of the present application, there is no need to use different designs and implementation methods to separately develop and maintain the approval process of each business service. Instead, a general approval process building component can be used to build the approval process, thereby achieving the reuse of the approval process building component and avoiding the use of different development methods to develop different approval processes. This can save the cost of building the approval process and improve the efficiency of building the approval process. Therefore, a general approval flow service can be implemented, which can provide an efficient, flexible and scalable approval management solution for various business systems (i.e., various applications).
[0117] Moreover, since the construction method of the approval process of each business service is unified (that is, they can all be implemented according to the above technical solution and reuse the same component, namely the general approval process construction component), it is also possible to more conveniently and quickly realize the integration and management of approval processes across business services, reduce the complexity of system integration, and unify the approval process, whether it is internal operation or cross-departmental collaboration, to ensure the consistency and transparency of the approval process.
[0118] The technical solution of this application is introduced below through a schematic diagram:
[0119] In one embodiment, Figure 5As shown, the approval process developer can first create the target application instance of the target application based on the application keyword and application key based on the device he uses; and determine the approval configuration information of the target business service based on the business keyword, the approval result callback address and the approval object interface address, as well as the content field of the approval content and the condition field of the approval condition. After that, the business developer can create and access the approval process processing interface based on the device he uses, based on the above target application instance and approval configuration information. Finally, the business administrator can build the target approval process based on the device he uses, based on the above approval process processing interface and the general approval process building components (including mobile gateways, approval nodes, and directed lines), including selecting approval nodes and mobile gateways, configuring approval objects, approval methods and approval objects for approval nodes, and connecting the configured approval nodes and mobile gateways according to approval conditions and directed lines.
[0120] Accordingly, the system architecture involved in this application is as follows Figure 6 As shown, it can specifically include a business layer, an approval flow configuration layer, and an approval flow engine layer. Specifically, the approval flow configuration layer is used to determine the target application instance and approval configuration information, and based on the flow gateway and directed lines (i.e. directed lines) provided by the approval flow engine layer, according to the approval nodes, approval operations, approval objects (e.g., approvers), business configurations (i.e., approval process processing interfaces), and business fields (i.e., content fields and condition fields) in the approval configuration information, build a target approval process. Finally, the business layer can perform the approval process of orders based on the created target approval process, view the orders that need to be approved, i.e., approval orders, and view the approval progress of approval orders, i.e., order nodes, and recorded approval operations, i.e., operation records.
[0121] In one embodiment, Figure 7 As shown, this application involves two systems: the approval flow system and the business system, and involves two processes: the construction process of the target approval process (including Figure 7 S11 and S12 in the target approval process) and the use of the target approval process (including Figure 7S21-S24 in the approval flow system). Specifically, the approval flow management background (specifically, it can be a front-end page) in the approval flow system can obtain the target application and target business service through the approval flow service, and create the target application instance and determine the approval configuration information, as well as determine and connect multiple approval process processing interfaces; afterwards, the business system can configure the approval process through the approval flow service, that is, create a target approval process. After the target approval process is created, the business system can implement the use process of the target approval process through the target approval process and the interaction with the approval flow service. Specifically, business services such as the order service in the business system can submit pending orders through the approval flow service according to the target approval process, that is, initiate a request for the approval process of the pending order; then, the approval service can query the pending order through the approval flow service, and perform approval operations to obtain the approval results; afterwards, the approval flow service can call back the approval results to the order service, and the order service can perform subsequent operations.
[0122] It should be noted that all the above technical solutions can be combined in any way to form optional embodiments of the present application, which will not be described one by one here.
[0123] It should be noted that in the specific implementation of this application, relevant data such as approval configuration information, approval process, approval requirement information and business requirement information are involved. When the embodiments of this application are applied to specific products or technologies, user permission, consent or authorization is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0124] Figure 8 Schematic diagram of an approval process processing device 800 provided in an embodiment of the present application. Figure 8 As shown, the device 800 includes: a first acquisition module 810, a first creation module 820, a first determination module 830, a second determination module 840, a first construction module 850, a second acquisition module 860, and a node processing module 870.
[0125] In one embodiment, a first acquisition module 810 is used to acquire a target application and a target business service of the target application; a first creation module 820 is used to create a target application instance of the target application, and the target application instance is used to identify the target application; a first determination module 830 is used to determine the approval configuration information of the target approval flow corresponding to the target business service; a second determination module 840 is used to determine and access multiple approval process processing interfaces based on the target application instance and the approval configuration information; a first construction module 850 is used to construct a target approval process for the target business service based on a general approval process construction component and multiple approval process processing interfaces.
[0126] In one embodiment, the first creation module 820 is specifically used to: obtain an application keyword of the target application, the application keyword is used to specify the target application during the process of connecting the target application and the approval process processing interface; generate an application key of the target application, the application key is used to authenticate the target application; and create a target application instance based on the application keyword and the application key.
[0127] In one embodiment, the first determination module 830 is specifically used to: obtain the business keywords of the target business service, the business keywords are used to specify the target business service in the process of connecting the target application and the approval process processing interface; determine the approval result callback address and the approval object interface address of the corresponding approval object according to the business keywords; determine the content field of the approval content corresponding to the target approval flow and the condition field of the corresponding approval condition.
[0128] In one embodiment, the second determination module 840 is specifically used to: create an approval result callback interface according to the result callback address, the approval result callback interface is used to return the approval result to the business system corresponding to the target business service; create an approval object query interface according to the approval object interface address, the approval object query interface is used to obtain the approval object corresponding to the target approval process; create an approval order submission interface and an approval order withdrawal interface, the approval order submission interface is used to obtain the approval process initiation request submitted by the business system corresponding to the target business service, and the approval order withdrawal interface is used to obtain the approval process withdrawal request submitted by the business system corresponding to the target business service; according to the target application instance and business keywords, the approval result callback interface, the approval object query interface, the approval order submission interface and the approval order withdrawal interface are respectively connected with the target application and the target business service.
[0129] In one embodiment, the general approval process construction component includes: multiple approval nodes, multiple flow gateways that determine the flow paths between each approval node, and directed lines that connect and indicate the flow direction between each approval node and each flow gateway; the first construction module 850 is specifically used to: obtain the target flow gateway from the multiple flow gateways; obtain the start node, the end node and at least one intermediate node from the multiple approval nodes; determine the approval operation and approval method corresponding to each of the at least one intermediate node; determine at least one approval condition, at least one approval condition is used to limit the flow between each approval node and each flow gateway that are connected to each other; obtain the target approval object corresponding to each of the at least one intermediate node according to the approval process processing interface; configure the approval operation, approval method and target approval object for at least one intermediate node respectively; connect the target flow gateway, the start node, the end node and at least one intermediate node through directed lines and at least one approval condition to obtain the target approval process.
[0130] In one embodiment, multiple flow gateways include: mutually exclusive gateways, compatible gateways and parallel gateways; the mutually exclusive gateways are used to select and flow to one downstream approval node from the corresponding multiple downstream approval nodes according to the corresponding multiple approval conditions; the compatible gateways are used to flow to the corresponding multiple downstream approval nodes according to the corresponding multiple approval conditions, and aggregate the execution results of the corresponding multiple downstream approval nodes; the parallel gateways are used to flow directly to the corresponding multiple downstream approval nodes, and flow to other downstream approval nodes after the corresponding multiple downstream approval nodes are all executed.
[0131] In one embodiment, the second acquisition module 860 is used to obtain approval requirement information and business requirement information of the target business service; the node processing module 870 is used to delete or modify at least one intermediate node according to the approval requirement information and business requirement information.
[0132] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Figure 8 The device 800 shown can execute the above method embodiments, and the above and other operations and / or functions of each module in the device 800 are respectively for implementing the corresponding processes in the above methods, which will not be repeated here for the sake of brevity.
[0133] The above describes the device 800 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0134] Fig. 9 Schematic diagram of an electronic device 900 provided in an embodiment of the present application. Fig. 9As shown, the electronic device 900 may include: a memory 910 and a processor 920, wherein the memory 910 is used to store a computer program and transmit the program code to the processor 920. In other words, the processor 920 may call and run the computer program from the memory 910 to implement the method in the embodiment of the present application. For example, the processor 920 may be used to execute the above method embodiment according to the instructions in the computer program.
[0135] In some embodiments of the present application, the processor 920 may include but is not limited to:
[0136] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0137] In some embodiments of the present application, the memory 910 includes but is not limited to:
[0138] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus random access memory (DR RAM).
[0139] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 910 and executed by the processor 920 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0140] like Fig. 9 As shown, the electronic device may further include: a transceiver 930 , which may be connected to the processor 920 or the memory 910 .
[0141] The processor 920 may control the transceiver 930 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 930 may include a transmitter and a receiver. The transceiver 930 may further include an antenna, and the number of antennas may be one or more.
[0142] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0143] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0144] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instruction is loaded and executed on a computer, the computer can be made to perform the corresponding flow in each method in the embodiment of the present application in whole or in part, and generate the functions that can be realized by each method in the embodiment of the present application. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disk (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0145] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0146] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0147] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
Claims
1. A method for processing an approval process, characterized in that: include: Obtaining a target application and a target business service of the target application; Creating a target application instance of the target application, wherein the target application instance is used to identify the target application; Determine the approval configuration information of the target approval flow corresponding to the target business service; Determine and access multiple approval process processing interfaces according to the target application instance and the approval configuration information; A target approval process for the target business service is constructed according to a general approval process construction component and the plurality of approval process processing interfaces.
2. The method according to claim 1, characterized in that The step of creating a target application instance of the target application program includes: Acquire an application keyword of the target application, where the application keyword is used to specify the target application during the process of connecting the target application and the approval process processing interface; Generate an application key for the target application, where the application key is used to authenticate the target application; The target application instance is created according to the application keyword and the application key.
3. The method according to claim 2, characterized in that The determining of the approval configuration information of the target approval flow corresponding to the target business service includes: Acquire a business keyword of the target business service, where the business keyword is used to specify the target business service during the process of connecting the target application program and the approval process processing interface; Determine the approval result callback address and the approval object interface address of the corresponding approval object according to the business keyword; Determine the content field of the approval content corresponding to the target approval flow and the condition field of the corresponding approval condition.
4. The method according to claim 3, characterized in that Determining and accessing multiple approval process processing interfaces according to the target application instance and the approval configuration information includes: Creating an approval result callback interface according to the approval result callback address, wherein the approval result callback interface is used to return the approval result to the business system corresponding to the target business service; Creating an approval object query interface according to the approval object interface address, wherein the approval object query interface is used to obtain the approval object corresponding to the target approval process; Create an approval order submission interface and an approval order withdrawal interface, wherein the approval order submission interface is used to obtain an approval process initiation request submitted by the business system corresponding to the target business service, and the approval order withdrawal interface is used to obtain an approval process withdrawal request submitted by the business system corresponding to the target business service; According to the target application instance and the business keyword, the approval result callback interface, the approval object query interface, the approval order submission interface and the approval order withdrawal interface are connected to the target application program and the target business service respectively.
5. The method according to any one of claims 1 to 4, characterized in that: The general approval process building component includes: a plurality of approval nodes, a plurality of flow gateways for determining the flow paths between the approval nodes, and directed lines for connecting and indicating the flow directions between the approval nodes and the flow gateways; The step of constructing a target approval process for the target business service according to the general approval process construction component and the plurality of approval process processing interfaces includes: Acquire a target mobile gateway from the plurality of mobile gateways; Acquire a start node, an end node, and at least one intermediate node from the multiple approval nodes; Determining the approval operation and approval method corresponding to each of the at least one intermediate node; Determine at least one approval condition, wherein the at least one approval condition is used to restrict the flow between each of the approval nodes and each of the flow gateways connected to each other; Acquire the target approval object corresponding to each of the at least one intermediate node according to the approval process processing interface; The at least one intermediate node is respectively configured with the approval operation, the approval method and the target approval object; The target flow gateway, the start node, the end node and the at least one intermediate node are connected through the directed line and the at least one approval condition to obtain the target approval process.
6. The method according to claim 5, characterized in that The plurality of mobile gateways include: mutually exclusive gateways, compatible gateways and parallel gateways; The mutually exclusive gateway is used to select and flow to a downstream approval node from the corresponding multiple downstream approval nodes according to the corresponding multiple approval conditions; The compatible gateway is used to flow to the corresponding multiple downstream approval nodes according to the corresponding multiple approval conditions, and aggregate the execution results of the corresponding multiple downstream approval nodes; The parallel gateway is used to flow directly to the corresponding multiple downstream approval nodes, and flow to other downstream approval nodes after the corresponding multiple downstream approval nodes are all executed.
7. The method according to claim 6, characterized in that Before the target flow gateway, the start node, the end node and the at least one intermediate node are connected through the directed line and the at least one approval condition to obtain the target approval process, the method further includes: Obtaining approval requirement information and business requirement information of the target business service; The at least one intermediate node is deleted or modified according to the approval requirement information and the business requirement information.
8. An approval process processing device, characterized in that: include: A first acquisition module, used to acquire a target application and a target business service of the target application; A first creation module, used for creating a target application instance of the target application, wherein the target application instance is used for identifying the target application; A first determination module is used to determine the approval configuration information of the target approval flow corresponding to the target business service; A second determination module, used to determine and access multiple approval process processing interfaces according to the target application instance and the approval configuration information; The first construction module is used to construct a target approval process of the target business service according to a general approval process construction component and the plurality of approval process processing interfaces.
9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.