Cross-protocol document approval method, system and device, medium and program product

By establishing a cross-protocol bidirectional connection relationship with the backend server on the application side, using WebSocket to achieve persistent connection and instant notification mechanisms, dynamically updating the status of approval documents, the problems of approval delay and cross-protocol synchronization in the traditional document approval process are solved, and the problem of approval delay and cross-protocol synchronization is realized. Efficient, real-time approval process and seamless cross-platform collaboration.

CN119420742APending Publication Date: 2025-02-11YONYOU NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411485767.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The traditional document approval process has problems such as delay in approval, inability to realize instant update of approval status, inability to synchronize document status across protocols among multiple application systems, and difficulty in performing cross-application data collection.

Method used

By establishing a cross-protocol bidirectional connection relationship with the backend server on the application side, using WebSocket to realize persistent connection and instant notification mechanism, send approval documents to the backend server, and receive document changes information pushed by the backend server, and dynamically update the status of the approval documents. .

Benefits of technology

Significantly reduces the update delay of approval status, realizes real-time response of business processes, and improves approval efficiency; through cross-protocol support of WebSocket, the problem of difficult data synchronization between different systems is solved, ensuring seamless cross-platform collaboration, and reducing The complexity of system integration and development and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420742A_ABST
    Figure CN119420742A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-protocol document approval method, system and device, a medium and a program product, and the method comprises the steps: firstly building a cross-protocol bidirectional connection relation with a rear-end server for each application end; sending the approval document to a back-end server; receipt change information pushed by the back-end server is received; and finally, dynamically updating the state of the approval document according to the document change information. The method can effectively reduce the examination and approval delay and improve the examination and approval efficiency through the persistent connection and instant notification mechanism of the WebSocket, solves the problem that different protocols or application data are difficult to synchronize through the cross-protocol support of the WebSocket, effectively reduces the cross-application data integration difficulty through the unified data interface and the WebSocket communication function, reduces the development and maintenance cost, and improves the examination and approval efficiency. By dynamically adjusting a data updating strategy and an integrated security mechanism, the reliability of data transmission updating under various network conditions is ensured, and the security and integrity of data are protected at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cross-protocol communication, and in particular to a cross-protocol document approval method, system, equipment, medium and program product. Background Art

[0002] In modern enterprises, document approval is a key part of the business process. The traditional document approval process usually relies on manual operations and scheduled updates, which has problems such as approval delays and inconsistent data between systems. These problems directly affect the operational efficiency of the enterprise, especially when the approval status needs to be synchronized between multiple systems or applications, the traditional method is particularly ineffective.

[0003] The traditional document approval process relies on a polling mechanism or timed updates. Users must manually refresh the page or wait for updates at fixed time intervals, resulting in the approval status not being reflected in real time. This delay affects the timeliness of approval and thus delays the overall business process.

[0004] At the same time, in a multi-system collaboration environment, different systems may use different data protocols (such as HTTP, FTP, SOAP, etc.). This protocol incompatibility makes it difficult to synchronize document status update information between different systems in real time, affecting the accuracy and consistency of business data.

[0005] In addition, with the improvement of enterprise informatization, the demand for collaboration between multiple applications and platforms has increased. The traditional method requires complex interfaces and protocol conversions to transfer approval data, which not only increases the complexity of system integration, but also increases development and maintenance costs.

[0006] Therefore, it is urgent to invent a cross-application document approval method to solve the problems of delays in the approval process of the prior art, inability to achieve instant update of the approval status, inability to achieve cross-protocol document status synchronization between multiple application systems, and difficulty in cross-application data collection. Summary of the invention

[0007] In view of this, embodiments of the present invention provide a cross-protocol document approval method, system, device, medium and program product, which at least partially solve the problems existing in the prior art.

[0008] Other features and advantages of the present invention will become apparent from the following detailed description, or may be learned in part by practice of the present invention.

[0009] In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:

[0010] According to a first aspect of an embodiment of the present invention, a cross-protocol document approval method is provided, the method comprising:

[0011] For each application end, establish a cross-protocol bidirectional connection relationship with the backend server;

[0012] Sending an approval document to the backend server;

[0013] Receive document change information pushed by the backend server;

[0014] The status of the approval document is dynamically updated according to the document change information.

[0015] Furthermore, a cross-protocol bidirectional connection relationship is established with the backend server, including:

[0016] The application establishes a cross-protocol bidirectional connection with the backend server through WebSocket.

[0017] Furthermore, the application establishes a cross-protocol bidirectional connection relationship with the backend server through WebSocket, including:

[0018] The application sends a WebSocket connection request and authentication information to the backend server;

[0019] Receive the identity authentication result fed back by the back-end server, and determine whether the identity authentication result is verified;

[0020] If the identity authentication result is a verification failure, try to reconnect;

[0021] If the identity authentication result is that the authentication is passed, the connection is established successfully.

[0022] Furthermore, the method further comprises:

[0023] After establishing a WebSocket connection with the backend server, a heartbeat signal is sent to the backend server to maintain the WebSocket connection.

[0024] Furthermore, the method further comprises:

[0025] When the WebSocket connection fails or is passively disconnected, automatically try to reconnect or switch to alternative data update mode.

[0026] Furthermore, the application receives the document change information pushed by the backend server, including:

[0027] Receive document change information pushed by the backend server on the application side;

[0028] The document change information is the corresponding document change information generated by the back-end server after the back-end server performs document approval processing, whenever the document status changes. The back-end server uses the WebSocket cross-protocol connection feature to push the document change information to each application end through a unified interface across protocols.

[0029] According to a second aspect of an embodiment of the present invention, a cross-protocol document approval system is provided, the system comprising:

[0030] The cross-protocol connection module is used to establish a cross-protocol bidirectional connection relationship with the back-end server for each application end;

[0031] A document sending module, used for sending the approval document to the back-end server;

[0032] The change information receiving module is used to receive the document change information pushed by the back-end server;

[0033] The document status update module is used to dynamically update the status of the approval document according to the document change information.

[0034] According to a third aspect of an embodiment of the present invention, a cross-protocol document approval device is provided, the device comprising: a processor and a memory;

[0035] The memory is used to store one or more program instructions;

[0036] The processor is used to run one or more program instructions to execute the steps of a cross-protocol document approval method as described in any one of the above items.

[0037] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a cross-protocol document approval method as described in any one of the above items are implemented.

[0038] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer implements the steps of a cross-protocol document approval method as described in any one of the above items.

[0039] The embodiments of the present invention have the following advantages:

[0040] The cross-protocol document approval method, system, device, medium and program product provided by the embodiments of the present invention can significantly reduce the update delay of the approval status through the persistent connection and instant notification mechanism of WebSocket, realize the real-time response of the business process, and improve the approval efficiency; through the WebSocket cross-protocol support, the problem of difficult synchronization of data between different systems is solved, and seamless collaboration across platforms is ensured, the complexity of system integration is reduced, and the system compatibility is improved; through the unified data interface and WebSocket communication function, the difficulty of cross-application data integration is effectively reduced, and the development and maintenance costs are reduced; through the dynamic adjustment of data update strategy and integrated security mechanism, the reliability of data transmission and update under various network conditions is ensured, while protecting the security and integrity of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0042] Figure 1 A schematic diagram of a process flow of a cross-protocol document approval method provided by an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of the structure of a cross-protocol document approval system provided by an embodiment of the present invention;

[0044] Figure 3 One of the principle schematic block diagrams of a cross-protocol document approval method provided by an embodiment of the present invention;

[0045] Figure 4 The second schematic diagram of the principle of a cross-protocol document approval method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0047] In addition, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, product, or apparatus.

[0048] Figure 1 The figure shows a flow chart of a cross-protocol document approval method according to an embodiment of the present invention.

[0049] like Figure 1 As shown, the cross-protocol document approval method according to an embodiment of the present invention may include step S100, step S200, step S300 and step S400.

[0050] refer to Figure 3 and Figure 4 In step S100, for each application terminal, a cross-protocol bidirectional connection relationship is established with the backend server.

[0051] Specifically, the above steps include:

[0052] For each application end, the application end sends a WebSocket connection request and authentication information to the backend server; receives the authentication result fed back by the backend server, and determines whether the authentication result is successful; if the authentication result is a failure, try to reconnect; if the authentication result is a successful authentication, the connection is established successfully.

[0053] The above steps also include:

[0054] When the WebSocket connection fails or is passively disconnected, it automatically attempts to reconnect or switch to the alternate data update mode to ensure the reliability and stability of data updates.

[0055] The embodiment of the present invention can achieve cross-protocol support, and utilize the cross-protocol connection characteristics of WebSocket to support the access of different types of applications (such as Web applications, mobile applications, and desktop applications), and support the access of multiple front-end application protocols, including HTTP, File, etc. This protocol adaptation function can achieve seamless data transmission across protocols, ensuring that applications on different platforms can receive and process approval status update information. In addition, the embodiment of the present invention can dynamically adjust the data update strategy according to the real-time connection status to ensure the reliability and stability of data updates, and achieve high-fault-tolerant communication management. In addition, the present invention integrates data encryption and identity authentication mechanisms to ensure the security and integrity of approval data, prevent unauthorized access and data tampering, and adopts modular design to support function expansion and system upgrades to adapt to the ever-changing business needs and technological advances in the future, and has both security and extensibility.

[0056] Next, in step S200, the approval document is sent to the backend server.

[0057] In step S300, the document change information pushed by the backend server is received.

[0058] Specifically, the above steps include:

[0059] The application side receives the document change information pushed by the back-end server, wherein the above-mentioned document change information is the corresponding document change information generated by the back-end server after the back-end server performs document approval processing on the received approval document, and each time the document status changes, the back-end server uses the WebSocket cross-protocol connection feature to push the document change information to each application side through a unified interface across protocols.

[0060] The embodiment of the present invention pushes document change information through a unified interface, thereby achieving real-time synchronization of approval status across platforms and applications without the need for complex protocol conversion.

[0061] In addition, the embodiment of the present invention also provides a cross-protocol document approval system, referring to Figure 2 , the above system specifically includes:

[0062] The cross-protocol connection module is used to establish a cross-protocol bidirectional connection relationship with the back-end server for each application end;

[0063] The document sending module is used to send approval documents to the back-end server;

[0064] The change information receiving module is used to receive the document change information pushed by the back-end server;

[0065] The document status update module is used to dynamically update the status of approval documents based on document change information.

[0066] In addition, an embodiment of the present invention also provides a cross-protocol document approval device, which includes: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a cross-protocol document approval method as described above.

[0067] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the cross-protocol document approval method described above are implemented.

[0068] In addition, an embodiment of the present invention further provides a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the steps of the cross-protocol document approval method described above are implemented.

[0069] The embodiments of the present invention are applicable to enterprise management systems, approval workflow systems, cross-platform data synchronization systems, and other business scenarios that require real-time data transmission and updating, especially occasions involving document approval processes between multiple applications or systems. The present invention can be widely used in financial management, supply chain management, customer relationship management (CRM), human resource management (HRM) and other fields, solving problems such as approval delays and difficulty in cross-platform data synchronization, and significantly improving the efficiency of business processes.

[0070] The cross-protocol document approval method, system, device, medium and program product provided by the embodiments of the present invention can significantly reduce the update delay of the approval status through the persistent connection and instant notification mechanism of WebSocket, realize the real-time response of the business process, and improve the approval efficiency; through the WebSocket cross-protocol support, the problem of difficult synchronization of data between different systems is solved, and seamless collaboration across platforms is ensured, the complexity of system integration is reduced, and the system compatibility is improved; through the unified data interface and WebSocket communication function, the difficulty of cross-application data integration is effectively reduced, and the development and maintenance costs are reduced; through the dynamic adjustment of data update strategy and integrated security mechanism, the reliability of data transmission and update under various network conditions is ensured, while protecting the security and integrity of the data.

[0071] In the embodiment of the present invention, the processor may be an integrated circuit chip with signal processing capability. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware. The storage medium may be a memory, for example, a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. 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 but 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 (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAMbus RAM (DRRAM).The storage medium described in the embodiment of the present invention is intended to include but is not limited to these and any other suitable types of memory. Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by a combination of hardware and software. When the software is applied, the corresponding function can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access. Although the present invention has been described in detail above with general descriptions and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to it on the basis of the present invention. Therefore, these modifications or improvements made on the basis of not departing from the spirit of the present invention all belong to the scope of protection claimed in the present invention.

Claims

1. A cross-protocol document approval method, characterized in that: The method comprises: For each application end, establish a cross-protocol bidirectional connection relationship with the backend server; Sending an approval document to the backend server; Receive document change information pushed by the backend server; The status of the approval document is dynamically updated according to the document change information.

2. A cross-protocol document approval method as claimed in claim 1, characterized in that: Establish a cross-protocol bidirectional connection relationship with the backend server, including: The application establishes a cross-protocol bidirectional connection with the backend server through WebSocket.

3. A cross-protocol document approval method as claimed in claim 2, characterized in that: The application establishes a cross-protocol bidirectional connection with the backend server through WebSocket, including: The application sends a WebSocket connection request and authentication information to the backend server; Receive the identity authentication result fed back by the back-end server, and determine whether the identity authentication result is verified; If the identity authentication result is a verification failure, try to reconnect; If the identity authentication result is that the authentication is passed, the connection is established successfully.

4. A cross-protocol document approval method as claimed in claim 2, characterized in that: The method further comprises: After establishing a WebSocket connection with the backend server, a heartbeat signal is sent to the backend server to maintain the WebSocket connection.

5. A cross-protocol document approval method as claimed in claim 2, characterized in that: The method further comprises: When the WebSocket connection fails or is passively disconnected, automatically try to reconnect or switch to alternative data update mode.

6. A cross-protocol document approval method as claimed in claim 1, characterized in that: Receive document change information pushed by the backend server on the application side, including: Receive document change information pushed by the backend server on the application side; The document change information is the corresponding document change information generated by the back-end server after the back-end server performs document approval processing, whenever the document status changes. The back-end server uses the WebSocket cross-protocol connection feature to push the document change information to each application end through a unified interface across protocols.

7. A cross-protocol document approval system, characterized in that: The system comprises: The cross-protocol connection module is used to establish a cross-protocol bidirectional connection relationship with the back-end server for each application end; A document sending module, used for sending the approval document to the back-end server; The change information receiving module is used to receive the document change information pushed by the back-end server; The document status update module is used to dynamically update the status of the approval document according to the document change information.

8. A cross-protocol document approval device, characterized in that: The device comprises: a processor and a memory; The memory is used to store one or more program instructions; The processor is used to run one or more program instructions to execute the steps of a cross-protocol document approval method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a cross-protocol document approval method as described in any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product includes computer program instructions, which, when executed by a processor, implement the steps of a cross-protocol document approval method as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Business document multi-person cooperation message triggering type synchronization method and system based on network

    CN120111058A