Examination and approval method and system suitable for multiple approval platforms and electronic equipment

Through unified approval flow interface and adapter, different approval platforms are quickly connected, which solves the problems of low approval accuracy and low efficiency, and realizes an efficient and accurate approval process, reducing development costs and work burdens.

CN119576610AActive Publication Date: 2025-03-07BEIJING QINGSONG YIKANG INFORMATION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202510145299.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-03-07
Estimated Expiration
2045-02-10

AI Technical Summary

Technical Problem

The existing multiple approval platforms have led to low approval accuracy and low efficiency, mainly due to the different interface specifications and call protocols of different third-party approval systems, which lead to time-consuming and error-prone system integration, and complex data exchange and synchronization, affecting data consistency and the accuracy of enterprise decision-making.

Method used

Through unified approval flow interface and adapter, we can quickly connect to different approval platforms, reduce the cost of repeated development and reduce the work burden of developers. Use approval templates to generate notification content to reduce the complexity of data exchange and synchronization, and improve approval accuracy and efficiency.

Benefits of technology

It has achieved rapid connection between different approval platforms, reduced development costs and work burdens, improved approval accuracy and efficiency, and ensured data consistency and enterprise decision-making accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576610A_ABST
    Figure CN119576610A_ABST
Patent Text Reader

Abstract

The invention discloses an examination and approval method and system suitable for multiple examination and approval platforms and electronic equipment, and the method comprises the steps: determining an examination and approval platform for processing an examination and approval initiation request according to an obtained examination and approval initiation request; calling an adapter of the approval platform to create an approval instance of the approval initiation request through the unified approval flow interface; generating notification content for the examination and approval instance according to an examination and approval template corresponding to the examination and approval initiation request; and sending the notification content to the approval service associated person, and returning an approval result of the approval service associated person. According to the method, the unified approval flow interface and the adapter are adopted, different approval platforms can be quickly connected, the repeated development cost can be reduced, the workload of developers can be reduced, the notification content is generated for the approval instance through the approval template, the complexity of data exchange and synchronization can be reduced, and the approval accuracy and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an approval method, system and electronic equipment applicable to multiple approval platforms. Background Art

[0002] In the context of enterprise informatization and digital transformation, enterprises are facing increasingly complex business processes and approval requirements. This complexity comes not only from the diversity of the business itself, but also from the coordination and integration between different departments and systems within the enterprise. In this case, the importance of approval process systems has become increasingly prominent. These systems can significantly improve the efficiency, transparency and traceability of business processes.

[0003] However, as the scale of enterprises expands and business processes increase, a single approval system often cannot meet all the needs of enterprises. Therefore, enterprises often need to introduce multiple third-party approval systems to cover different business scenarios, but the environment where multiple systems coexist has the following problems: First, different third-party approval systems, such as DingTalk, WeChat for Enterprise, SAP, Oracle, etc., usually have their own interface specifications and calling protocols. When developers are integrating systems, they need to be familiar with and adapt the interfaces of each system, which is not only time-consuming and error-prone, but also increases the workload of developers. Second, data exchange and synchronization between different approval systems become very complicated, which will lead to problems that affect data consistency and thus affect the accuracy of corporate decision-making. It can be seen that the current approval system has problems with low approval accuracy and low efficiency. Summary of the invention

[0004] The embodiments of the present invention provide an approval method, system and electronic device applicable to multiple approval platforms, so as to solve the problems of low approval accuracy and low efficiency caused by the existing multiple approval platforms.

[0005] In a first aspect, an embodiment of the present invention provides an approval method applicable to a multi-approval platform, the method comprising: Determine the approval platform for processing the approval initiation request according to the obtained approval initiation request; Through the unified approval flow interface, calling the adapter of the approval platform to create an approval instance of the approval initiation request; Generating notification content for the approval instance according to the approval template corresponding to the approval initiation request; The notification content is sent to the approval business associated person, and the approval result of the approval business associated person is returned.

[0006] Furthermore, the step of calling the adapter of the approval platform through the unified approval flow interface to create the approval instance of the approval initiation request includes: Routing the approval initiation request to the adapter of the approval platform according to the approval type and / or configuration identifier carried in the approval initiation request through a unified approval flow interface; The approval initiation request in a unified format is converted into an interface call and data format corresponding to the approval platform by using the adapter of the approval platform, so as to obtain an approval instance of the approval initiation request.

[0007] Further, if the approval platform is a system built-in approval system, the adapter of the approval platform includes a process orchestration engine; The adapter for routing the approval initiation request to the approval platform through the unified approval flow interface according to the approval type and / or configuration identifier carried in the approval initiation request includes: Through the unified approval flow interface, the approval initiation request is routed to the process orchestration engine of the built-in approval system of the system according to the approval type and / or configuration identifier carried in the approval initiation request.

[0008] Further, generating notification content for the approval instance according to the approval template corresponding to the approval initiation request includes: The approval information in the approval instance is mapped and replaced with the placeholder in the approval template corresponding to the approval initiation request to generate notification content.

[0009] Furthermore, the returning of the approval result to the approval business associated person includes: When it is identified that the approval process of the approval initiation request has entered the end state, the approval result callback mechanism is triggered to asynchronously push the approval result of the approval business associated person to the callback interface of the approval initiation request; Authenticating the approval result using a pre-saved identity authentication token; If the authentication is successful, the approval result is returned through the callback interface.

[0010] Furthermore, before determining the approval platform for processing the approval initiation request according to the acquired approval initiation request, the method further includes: Assemble the parameters obtained in the approval initiation request into a preCommit object; By calling the pre-check interface, the preCommit object is pre-checked using the predefined business rule service; If the pre-verification passes, an approval process is created for the approval initiation request.

[0011] Furthermore, sending the notification content to the approval business associated person and returning the approval result to the approval business associated person includes: The message queue is used to send the notification content to the approval business associated person, and the approval result of the approval business associated person is returned.

[0012] Furthermore, the method is applied to an approval system, and the approval system is deployed in a single form or in a cluster form.

[0013] In a second aspect, an embodiment of the present invention provides an approval system applicable to multiple approval platforms, the system comprising: A determination module, used to determine the approval platform for processing the approval initiation request according to the acquired approval initiation request; A processing module, used to call the adapter of the approval platform to create an approval instance of the approval initiation request through a unified approval flow interface; and generate notification content for the approval instance according to the approval template corresponding to the approval initiation request; The notification module is used to send the notification content to the approval business associated person and return the approval result of the approval business associated person.

[0014] Furthermore, the processing module is specifically used to route the approval initiation request to the adapter of the approval platform through a unified approval flow interface according to the approval type and / or configuration identifier carried by the approval initiation request; and use the adapter of the approval platform to convert the approval initiation request in a unified format into an interface call and data format corresponding to the approval platform to obtain an approval instance of the approval initiation request.

[0015] Further, if the approval platform is a system built-in approval system, the adapter of the approval platform includes a process orchestration engine; The processing module is specifically used to route the approval initiation request to the process orchestration engine of the built-in approval system of the system through a unified approval flow interface according to the approval type and / or configuration identifier carried by the approval initiation request.

[0016] Furthermore, the processing module is specifically used to map and replace the approval information in the approval instance with the placeholder in the approval template corresponding to the approval initiation request to generate notification content.

[0017] Furthermore, the notification module is specifically used to trigger the approval result callback mechanism when it is identified that the approval process of the approval initiation request has entered the end state, and asynchronously push the approval result of the approval business associated person to the callback interface of the approval initiation request; use the pre-saved identity authentication token to authenticate the approval result; if the authentication is successful, return the approval result through the callback interface.

[0018] Furthermore, it also includes a pre-verification module, which is used to assemble the parameters in the obtained approval initiation request into a preCommit object; by calling the pre-verification interface, the preCommit object is pre-verified using the predefined business rule service; if the pre-verification passes, an approval process is created for the approval initiation request.

[0019] Furthermore, the notification module is specifically used to use a message queue to send the notification content to the approval business associated person, and return the approval result of the approval business associated person.

[0020] Furthermore, the approval system is deployed in a single unit or in a cluster.

[0021] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to implement the steps of the above-mentioned approval method applicable to multiple approval platforms when executing the computer program stored in the memory.

[0022] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-mentioned approval method applicable to multiple approval platforms.

[0023] In the embodiment of the present invention, the approval platform for processing the approval initiation request is determined according to the acquired approval initiation request; the adapter of the approval platform is called through the unified approval flow interface to create an approval instance of the approval initiation request; notification content is generated for the approval instance according to the approval template corresponding to the approval initiation request; the notification content is sent to the approval business associated person, and the approval result of the approval business associated person is returned. The invention adopts a unified approval flow interface and adapter, which can quickly connect to different approval platforms, reduce repeated development costs, and reduce the workload of developers. In addition, the notification content is generated for the approval instance through the approval template, which can reduce the complexity of data exchange and synchronization, thereby improving the accuracy and efficiency of approval. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 paying creative labor.

[0025] Figure 1 A schematic diagram of a process of an approval method applicable to multiple approval platforms provided by an embodiment of the present invention; Figure 2A schematic diagram of the structure of an approval system applicable to multiple approval platforms provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] In order to solve the problems of low approval accuracy and low efficiency caused by multiple existing approval platforms, the embodiments of the present invention provide an approval method, system and electronic device applicable to multiple approval platforms.

[0028] Embodiment 1: Figure 1 A schematic diagram of a process of an approval method applicable to a multi-approval platform provided in an embodiment of the present invention, the process includes the following steps: S101: Determine an approval platform for processing the approval initiation request based on the acquired approval initiation request.

[0029] S102: Through the unified approval flow interface, call the adapter of the approval platform to create an approval instance for the approval initiation request.

[0030] S103: Generate notification content for the approval instance according to the approval template corresponding to the approval initiation request.

[0031] S104: Send the notification content to the approval business associated person, and return the approval result to the approval business associated person.

[0032] Since a unified approval flow interface and adapter are used in the embodiment of the present invention, different approval platforms can be quickly connected, the cost of repeated development can be reduced, the workload of developers can be reduced, and notification content is generated for approval instances through approval templates, which can reduce the complexity of data exchange and synchronization, thereby improving approval accuracy and efficiency.

[0033] The approval method applicable to multiple approval platforms provided in the embodiment of the present invention is applied to the approval system. The approval system can be connected to third-party approval platforms, such as DingTalk, Enterprise WeChat, SAP (a software for enterprise management solutions), Oracle (an information management software) and other approval platforms, or can have a built-in approval system. That is, the embodiment of the present invention can provide a high-availability multi-platform approval process integration service, which is suitable for an enterprise environment where multiple platforms and multiple systems coexist.

[0034] The approval initiation request obtained in the above S101 may be an approval initiation request that is passed in when the business system (such as a CRM (Customer Relationship Management) system) or an external interface calls this approval service (i.e., the approval system). The approval initiation request may include the following parameter information: approval type, initiator information, business parameters, and callback configuration information (optional). The approval type may be, for example, a performance information appeal, a performance re-recording appeal, etc. The initiator information may include, for example, a user ID (IDentity, identifier), department, etc. The business parameters are used to describe the key fields required for this approval, such as amount, quantity, time, etc. The callback configuration information may be used to identify security information, such as indicating the target interface address to which the result needs to be called back after the approval is completed, and security information such as Token (authentication token).

[0035] This approval service provides an approval flow adapter. (1) When encapsulating the adapter, you can write independent adapter classes for different third-party approval platforms. Each adapter implements a set of uniformly defined methods to ensure consistent calling processes. The adapter can adapt and encapsulate third-party API (Application Programming Interface) parameters, authentication methods, and message formats. (2) When dynamically loading and configuring the adapter, you can record the approval type, business scenario, and calling method corresponding to the adapter through the configuration center or database. When the system receives an approval request, it queries the corresponding configuration and automatically routes the request to the specified adapter without hard coding at the code level. (3) In an example, if DingTalk approval is used, the adapter needs to convert the unified request structure into the DingTalk Request format, fill in the fields required by the DingTalk API, and then call its interface for creating an approval form. When the approval status is updated, the adapter is also responsible for extracting the status code from the DingTalk callback parsing and converting it into a unified approval status identifier of this system. In this example, S101 can determine the approval platform that handles the request based on the business type in the approval initiation request, and then route it to the corresponding adapter.

[0036] In one possible implementation, adaptation to multiple approval platforms can be achieved through approval flow adapter selection and unified interface processing. For example, in the above S102, the approval initiation request can be routed to the adapter of the approval platform through the unified approval flow interface according to the approval type and / or configuration identifier carried by the approval initiation request; the approval initiation request in a unified format can be converted into the interface call and data format corresponding to the approval platform using the adapter of the approval platform to obtain the approval instance of the approval initiation request.

[0037] In this implementation, through the unified approval flow interface, the system will route to the corresponding third-party approval platform adapter (such as DingTalk, WeChat for Enterprise, SAP, etc.) according to the approval type or configuration identifier, or use the built-in approval engine of this system. The adapter is responsible for converting the approval request in the internal unified format into the interface call and data format required by the third-party platform. If it is a self-developed approval module of this system, the local process orchestration engine is called directly. In one example, if the approval platform is a built-in approval system of the system, the adapter of the approval platform includes a process orchestration engine. When the approval initiation request is routed to the adapter of the approval platform through the unified approval flow interface according to the approval type and / or configuration identifier carried by the approval initiation request, the approval initiation request can be routed to the process orchestration engine of the built-in approval system of the system through the unified approval flow interface according to the approval type and / or configuration identifier carried by the approval initiation request.

[0038] In this implementation, the approval service also provides a unified approval flow interface. (1) When designing the API gateway, the unified approval flow interface can provide a unified HTTP (Hypertext Transfer Protocol) or RPC (Remote Procedure Call) entry, supporting multiple request methods (GET, POST, PUT, DELETE) and data formats (JSON, XML, form-urlencoded, etc.); distributed to specific adapters through fields in the request header or query parameters. (2) When performing routing and authentication, the unified approval flow interface can use the routing configuration of the gateway layer to help the system achieve decoupling from third-party platforms; if the system provides external services, unified authentication and authorization must be performed at the gateway layer to avoid direct exposure of internal services.

[0039] After the approval instance is successfully created in the above 102, the system will call the "notification and template management function" to select the corresponding notification template according to the approval type and / or configuration information in the approval initiation request. In one implementation, in the above S103, the approval information in the approval instance can be mapped and replaced with the placeholder in the approval template corresponding to the approval initiation request to generate the notification content.

[0040] In this implementation, the approval service also provides notification and template management functions. (1) This function can realize template management and matching. For example, in the database or configuration center, corresponding notification templates, channels, and placeholder rules can be configured for different approval types or subtypes. After receiving the approval process creation event, the appropriate notification template is matched according to the approval type and business parameters (such as amount, department). (2) This function can realize dynamic data filling. The notification template often contains placeholders. After obtaining the approval request data, the system calls the template engine for dynamic replacement. If it is connected to the internal data extraction service of the enterprise, it can declare in the configuration file where more fields need to be extracted, and then write the extraction results into the template together to generate a complete notification message. (3) This function can realize multi-channel notification. The module can configure the sending channel as needed, such as: 1. Enterprise WeChat / DingTalk internal IM (instant messaging) message; 2. Email; 3. SMS; 4. Webhook or custom push; the system maintains an independent sending submodule for each channel to ensure flexibility; if the sending fails, the log is recorded and retry or downgrade processing is performed according to the configuration. (4) This function can realize the association process, and the notification and approval process status are kept synchronized: remind the approver when it is created, notify the applicant (i.e. the initiator) when it is rejected, and notify the finance or downstream system when it is passed; each notification has a unique ID or log record to facilitate subsequent tracking and auditing.

[0041] Map and replace the approval initiation request with the placeholder in the template, generate notification content, and send it to the relevant approvers or followers through the specified channel (such as email, SMS, IM). If multi-channel parallel or failure retry strategy is configured, the notification operation is performed sequentially or in parallel. Optionally, in the above S103, if the required notification template is not hit or there is no suitable notification template, the system administrator and corresponding business personnel will be informed through system notification to supplement the template.

[0042] After the notification content is sent to the approval business related persons (including the approver and other related persons such as supervisors) in S104, the approver can approve, reject or transfer the application based on business rules on the third-party platform or local approval engine; the approval operation of each node in the process is synchronized back to this system (or actively queried by this system at a fixed time), the process status is updated and the operation log is written, so as to realize the approval flow and status maintenance.

[0043] In the above S104, the approval completion and result callback can also be realized. For example, when the approval result of the approval business associate is returned, the approval result callback mechanism can also be triggered when the approval process of the approval initiation request enters the end state, and the approval result of the approval business associate is asynchronously pushed to the callback interface of the approval initiation request; the approval result is authenticated using the pre-saved identity authentication token; if the authentication is passed, the approval result is returned through the callback interface. In this example, when the approval process enters the end state (including pass, rejection, revocation, etc.), the system will trigger the "approval result callback mechanism"; if the caller or business system configures the callback address when initiating, the system will asynchronously push the key information such as the approval result, approval time, and approval form ID to the corresponding interface, and use the Token or security token pre-saved in the database for authentication; after the callback call is successful, the relevant response will be recorded in the log. If it fails, it will continue to try according to the configured retry strategy, or finally record the failure status for subsequent investigation.

[0044] This approval service also provides an approval result callback mechanism. (1) It can realize callback information registration. When the approval is initiated, if the caller passes the callback address (callbackUrl) and security token (token, etc.), the system will save it together with the approval form ID in the database; if the configuration center specifies a callback interface for the approval type, the registration can also be completed automatically. (2) It can realize asynchronous call process. When the approval is completed in the third-party system or local engine, the system will trigger an end event; the callback mechanism module listens to the event, reads the callback information previously recorded in the database, and assembles the callback parameters, including: approval result (approved, rejected, revoked, etc.), approval form ID, approver list, approval time, etc., custom fields (if required by the template or rules) use security information such as tokens to send callback requests to the target interface via HTTPS or signature. (3) Security and retry can be achieved. The callback can use a signature mechanism or token verification to avoid forgery or interception. If the callback fails (network failure, timeout, abnormality of the other party), the system will make multiple attempts based on the configured retry strategy (retry interval, maximum number of times, etc.). If the retry still fails, it will be recorded in the callback failure table for subsequent manual or automatic compensation.

[0045] In a possible implementation, a pre-verification may be performed before the above S101. For example, the parameters in the obtained approval initiation request may be assembled into a preCommit object; by calling the pre-verification interface, the preCommit object is pre-verified using the predefined business rule service; if the pre-verification passes, an approval process is created for the approval initiation request. In this implementation, if the system configuration has turned on the "pre-verification function" and the corresponding approval type requires pre-verification, the pre-verification interface will be called before the approval process is formally created: the system assembles the necessary parameters in this approval request into a preCommit object; by calling the "verification interface" recorded in the configuration center or database, the preCommit object is sent to the predefined business rule service; if the verification fails, the system immediately returns an error message and interrupts the process; if the verification passes, the subsequent operations continue.

[0046] In this implementation, the approval service also provides a pre-verification function. (1) It can realize triggering and interface calling. When the system detects that the approval type needs pre-verification, or the caller explicitly declares "enable pre-verification" when initiating a request, the system will first assemble the preCommit object; call the configured "verification interface" URL (Uniform Resource Locator) and send the core business parameters for verification. (2) It can realize the processing of the verification results. If the verification returns "failed", the system terminates the process creation and returns the corresponding error code and error information to the caller; if the verification is "passed", the approval process is created normally and subsequent operations such as notification and callback are triggered. (3) It can prevent the process from being wasted and inconsistent with the context. Through pre-verification, it can prevent the situation where the approval is rejected due to business logic not being met, thereby improving system efficiency; the system will completely retain all operation logs and process context records to ensure that the introduction of the pre-verification function does not affect the accuracy and consistency of the existing operation history.

[0047] In addition, this approval service can provide follow-up operations and high availability support. If subsequent business operations need to be triggered after approval (such as automatically generating a complaint form, updating the CRM approval form status, etc.), they can be performed during the notification or callback stage.

[0048] When designing for high availability, the entire system can be deployed in a single form or support clustering and load balancing to ensure stable operation in high-concurrency and high-availability scenarios, and improve the system's fault tolerance through mechanisms such as distributed caching and message queues. (1) Implementing single- and cluster support. The approval system applied by this method is deployed in a single form or in a cluster form. The system can be deployed as a single application in small and medium-sized scenarios, or it can distribute requests to multiple nodes through load balancing when the business volume is high; each node shares the same database or distributed cache to ensure that the process status is consistent with the callback information. (2) Implementing message queues and asynchronous processing. For easily blocked links such as notification sending and callback processing, message queues can be used to achieve asynchronization to improve system throughput; if a node failure causes the notification task to be unprocessed, the remaining tasks can be transferred to healthy nodes through message retry or consumer switching mechanisms. For example, in the above S104, a message queue can be used to send the notification content to the approval business associate and return the approval result to the approval business associate. (3) Implement the configuration center and the rule engine. Key information such as notification templates, callback addresses, and pre-verification interfaces can be placed in the distributed configuration center and dynamically updated through the monitoring mechanism. For complex business rules, a script engine or rule engine can be used to achieve dynamic adjustments without frequently modifying the system code.

[0049] At present, there are the following technical problems in the environment where multiple systems coexist: 1. Interface diversity: Different third-party approval systems (such as DingTalk, WeChat for Enterprise, SAP, Oracle, etc.) usually have their own interface specifications and calling protocols. When developers are integrating systems, they need to be familiar with and adapt the interfaces of each system, which is not only time-consuming and error-prone, but also increases the workload of developers. 2. Complex data exchange: Data exchange and synchronization between approval systems have become very complicated. The lack of effective standards and tools will lead to data consistency problems and affect the accuracy of corporate decision-making. 3. Cross-system process integration: In the case of multiple systems coexisting, it is a major challenge to achieve end-to-end business process automation and integration. The approval status and results between different systems need to be coordinated uniformly, which is usually achieved through human intervention or complex code in existing technologies, increasing the difficulty of maintenance. 4. Maintenance and upgrade difficulties: With the changes in corporate business and the updates of third-party systems, developers need to frequently adjust and upgrade the system. This ever-changing environment increases the complexity of system operation and maintenance. 5. Lack of standardization: Due to the lack of a unified approval interface standard, the interoperability between systems is poor. This limits the flexibility of enterprises in selecting and replacing systems, further increasing the cost of digital transformation. In this context, the market is in urgent need of a solution that can provide a unified approval interface standard, achieve high integration and flexible configuration between different systems, thereby reducing development and maintenance costs and improving enterprise operational efficiency and responsiveness.

[0050] Based on this, the embodiment of the present invention provides an approval method and system applicable to multiple approval platforms, and proposes the following processing methods: 1. Approval flow adapter: Provide corresponding adapters for different third-party approval platforms (such as DingTalk approval, enterprise WeChat approval, etc.), and encapsulate the interfaces of different platforms into a unified interface specification. 2. Unified approval flow interface: Provide a unified API interface for CRM system calls to simplify the integration and development of approval processes. The interface supports multiple HTTP request methods (GET, POST, PUT, DELETE) and data formats (JSON, XML, POST, form-urlencoded), which is convenient for developers to call flexibly. 3. Notification and template management: Support the configuration of different approval flows and message notification templates. Through the abstract template engine, notification content can be dynamically generated according to different approval types and data. If a data extraction service already exists, it can be directly configured for reuse without additional development. 4. Approval result callback mechanism: Support asynchronous callback mechanism to push the approval result to the specified callback interface. In order to realize cross-system callback, the system will save the callback interface address and the token information required for the call, and use the token associated with the creator for callback to avoid destroying the interface logic of the original system. 5. Pre-verification function: supports pre-verification function before approval. When pre-verification is enabled, the system will call the predefined verification interface before submitting for approval, and pass the pre-verification parameters (preCommit) to the interface. The verification interface can determine whether to allow submission for approval based on business logic and return the verification result. If the verification fails, the subsequent approval process will be interrupted. The callback interface needs to be modified accordingly to receive the pre-verification parameters. 6. Context integrity: The operation log executed after approval is passed is consistent with that before adding approval, and there will be no errors in operation records and other records due to adding approval.

[0051] Through the above implementation methods, this solution can achieve the following effects in an enterprise environment where multiple platforms and systems coexist: Unified interface and adaptation: Quickly connect to approval platforms such as DingTalk, Enterprise WeChat, SAP, Oracle, etc., and add and delete adapters as needed to reduce duplicate development costs. Notification and template management: Flexibly configure message content and multi-channel push strategies to significantly improve the notification efficiency of approval nodes. Approval result callback: Through asynchronous callback and retry mechanisms, it is ensured that approval information can be obtained by external business systems in a timely manner. Pre-verification function: Effectively reduce the creation of invalid approval processes, improve the approval success rate and maintain context consistency. High availability and scalability: The use of technical means such as cluster deployment, message queues and distributed configuration can cope with high concurrency and high reliability requirements and ensure the stable operation of enterprise-level systems.

[0052] Embodiment 2: Based on the above embodiments, Figure 2A schematic diagram of a structure of an approval system applicable to multiple approval platforms provided in an embodiment of the present invention includes: The determination module 201 is used to determine the approval platform for processing the approval initiation request according to the acquired approval initiation request; Processing module 202 is used to call the adapter of the approval platform to create an approval instance of the approval initiation request through a unified approval flow interface; generate notification content for the approval instance according to the approval template corresponding to the approval initiation request; The notification module 203 is used to send the notification content to the approval business associated person and return the approval result to the approval business associated person.

[0053] Furthermore, the processing module 202 is specifically used to route the approval initiation request to the adapter of the approval platform through a unified approval flow interface according to the approval type and / or configuration identifier carried by the approval initiation request; and use the adapter of the approval platform to convert the approval initiation request in a unified format into an interface call and data format corresponding to the approval platform to obtain an approval instance of the approval initiation request.

[0054] Further, if the approval platform is a system built-in approval system, the adapter of the approval platform includes a process orchestration engine; The processing module 202 is specifically configured to route the approval initiation request to the process orchestration engine of the built-in approval system of the system through a unified approval flow interface according to the approval type and / or configuration identifier carried in the approval initiation request.

[0055] Furthermore, the processing module 202 is specifically configured to map and replace the approval information in the approval instance with the placeholder in the approval template corresponding to the approval initiation request to generate notification content.

[0056] Furthermore, the notification module 203 is specifically used to trigger the approval result callback mechanism when it is identified that the approval process of the approval initiation request has entered the end state, and asynchronously push the approval result of the approval business associated person to the callback interface of the approval initiation request; use the pre-saved identity authentication token to authenticate the approval result; if the authentication is successful, return the approval result through the callback interface.

[0057] Furthermore, it also includes a pre-verification module, which is used to assemble the parameters in the obtained approval initiation request into a preCommit object; by calling the pre-verification interface, the preCommit object is pre-verified using the predefined business rule service; if the pre-verification passes, an approval process is created for the approval initiation request.

[0058] Furthermore, the notification module 203 is specifically configured to use a message queue to send the notification content to the approval business associated person, and return the approval result to the approval business associated person.

[0059] Furthermore, the approval system is deployed in a single unit or in a cluster.

[0060] Embodiment 3: Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Based on the above embodiments, an electronic device is further provided in an embodiment of the present invention, including a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304; The memory 303 stores a computer program. When the program is executed by the processor 301, the processor 301 executes the steps of implementing the approval method applicable to multiple approval platforms in the above embodiment.

[0061] For the specific implementation process, please refer to the above embodiment, and the similarities are not repeated here.

[0062] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0063] The communication interface 302 is used for communication between the electronic device and other devices.

[0064] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0065] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processing processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0066] Embodiment 4: Based on the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the steps of the approval method applicable to multiple approval platforms as in the above embodiments.

[0067] For the specific implementation process, please refer to the above embodiment, and the similarities are not repeated here.

[0068] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt 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 codes.

[0069] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. 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.

[0070] 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.

[0071] 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.

[0072] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An approval method applicable to multiple approval platforms, characterized in that: The method comprises: Determine the approval platform for processing the approval initiation request according to the obtained approval initiation request; Through the unified approval flow interface, calling the adapter of the approval platform to create an approval instance of the approval initiation request; Generating notification content for the approval instance according to the approval template corresponding to the approval initiation request; The notification content is sent to the approval business associated person, and the approval result of the approval business associated person is returned.

2. The method according to claim 1, characterized in that The step of calling the adapter of the approval platform through the unified approval flow interface to create the approval instance of the approval initiation request includes: Routing the approval initiation request to the adapter of the approval platform through a unified approval flow interface according to the approval type and / or configuration identifier carried in the approval initiation request; The approval initiation request in a unified format is converted into an interface call and data format corresponding to the approval platform by using the adapter of the approval platform, so as to obtain an approval instance of the approval initiation request.

3. The method according to claim 2, characterized in that If the approval platform is a system built-in approval system, the adapter of the approval platform includes a process orchestration engine; The adapter for routing the approval initiation request to the approval platform through the unified approval flow interface according to the approval type and / or configuration identifier carried in the approval initiation request includes: Through the unified approval flow interface, the approval initiation request is routed to the process orchestration engine of the system's built-in approval system according to the approval type and / or configuration identifier carried in the approval initiation request.

4. The method according to claim 1, characterized in that Generating notification content for the approval instance according to the approval template corresponding to the approval initiation request includes: The approval information in the approval instance is mapped and replaced with the placeholder in the approval template corresponding to the approval initiation request to generate notification content.

5. The method according to claim 1, characterized in that The approval result returned to the approval business associated person includes: When it is identified that the approval process of the approval initiation request has entered the end state, the approval result callback mechanism is triggered to asynchronously push the approval result of the approval business associated person to the callback interface of the approval initiation request; Authenticating the approval result using a pre-saved identity authentication token; If the authentication is successful, the approval result is returned through the callback interface.

6. The method according to claim 1, characterized in that Before determining the approval platform for processing the approval initiation request according to the acquired approval initiation request, the method further includes: Assemble the parameters obtained in the approval initiation request into a preCommit object; By calling the pre-check interface, the preCommit object is pre-checked using the predefined business rule service; If the pre-verification passes, an approval process is created for the approval initiation request.

7. The method according to claim 1, characterized in that The sending of the notification content to the approval business associated person and returning the approval result to the approval business associated person includes: The message queue is used to send the notification content to the approval business associated person, and the approval result of the approval business associated person is returned.

8. The method according to any one of claims 1 to 7, characterized in that: The method is applied to an approval system, and the approval system is deployed in a single body form or in a cluster form.

9. An approval system applicable to multiple approval platforms, characterized in that: The system comprises: A determination module, used to determine the approval platform for processing the approval initiation request according to the acquired approval initiation request; A processing module, used to call the adapter of the approval platform to create an approval instance of the approval initiation request through a unified approval flow interface; and generate notification content for the approval instance according to the approval template corresponding to the approval initiation request; The notification module is used to send the notification content to the approval business associated person and return the approval result of the approval business associated person.

10. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory is used to store program instructions, and the processor is used to implement the steps of the approval method applicable to multiple approval platforms as described in any one of claims 1 to 8 when executing the computer program stored in the memory.

Citation Information

Patent Citations

  • Automatic collaborative approval system and method based on workflow

    CN111553663A

  • Service approval processing method and device, computer equipment and storage medium

    CN117422396A

  • General data flow approval system, method, equipment and medium

    CN117522319A

  • Request approval processing method and device

    CN118211928A

  • Cross-platform approval form generation method and system, electronic equipment and storage medium

    CN118428908A

Cited By

  • Cross-system approval data processing method and device

    CN121073411A