Business document multi-person cooperation message triggering type synchronization method and system based on network
Patent Information
- Application Number
- CN202510260317.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-06
AI Technical Summary
In the multi-person collaborative processing of business documents, there are problems such as in which one party modifys the latest content, in which one party cannot see the latest content, in which one party deletes the other party still stays in the original record, in which multiple people modify the coverage at the same time, and in which collaborative approval requires offline questioning, resulting in inefficient collaboration and inconsistent data.
The network-based service document multi-person collaborative message trigger synchronization method is adopted, and through WebSocket communication and TCP protocol, point-to-point lightweight message synchronization from Client to Server to Client is realized, a unique document identification ERI is generated, and a heartbeat mechanism is used to determine whether the client is online.
It realizes lightweight, high-performance, flexible and scalable message transmission, reduces network traffic load, solves data inconsistency and coverage problems in collaborative processing, improves coordination efficiency, and ensures data consistency and accuracy.
Smart Images

Figure CN120111058A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer network technology, and in particular to a network-based business document multi-person collaborative message-triggered synchronization method and system. Background Art
[0002] In the business processing of enterprises, it is often necessary for multiple people to collaborate to operate business documents. However, there are many problems in the collaborative processing of business documents. For example, after one party makes a modification, the other party still sees the content before the modification; after one party deletes, the other party still stays on the original record, causing subsequent operations to fail; when multiple people modify at the same time, the later saved content will overwrite the previously saved content without knowing it, and the previous party will mistakenly believe that the modification is invalid; when collaboratively approving information, waiting for different personnel to approve it, offline questioning is required, etc. These problems lead to low efficiency in the collaboration of business documents, and are prone to errors and data inconsistencies. Therefore, an effective method is needed to solve these problems. Summary of the invention
[0003] The problem solved by the present invention is how to solve the problem of low collaboration efficiency of business documents, and the proneness to errors and data inconsistency.
[0004] To solve the above problems, the present invention provides a network-based business document multi-person collaborative message-triggered synchronization method, comprising the steps of:
[0005] S1: Adopts a condition-triggered point-to-point lightweight message synchronization method from Client to Server to Client;
[0006] S2: Establish a WebSocket communication connection between the client and the server;
[0007] S3: Data is transmitted interactively through the TCP protocol. The structure of the protocol packet includes two parts: Header and Body. The Header part consists of the client MAC address, login user ID and timestamp; the Body part consists of the command ID and document number.
[0008] S4: Generate a unique document identifier ERI for each document;
[0009] S5: When opening or closing a document on the client side, the opening or closing information is sent to the document collaborative chain list on the server side;
[0010] S6: When the document is modified and edited on the Client side, the modification status is sent to the Server side;
[0011] S7: The server uses the heartbeat method to determine whether the client is online.
[0012] Furthermore, the step S2 comprises:
[0013] S21: WebSocket communication is a distributed event bus system based on Socket that allows processes to communicate through publish or subscribe mode.
[0014] Furthermore, the command identification in step S3 includes five events: opening a document, leaving a document, modifying a document, protecting a document, and deleting a document.
[0015] Furthermore, the document identification ERI in step S4 consists of 36 characters and is divided into 5 sections, including a Site address code, an APP Category application code, a DataBase data code, a Lifecycle life code and a Verification check code.
[0016] Furthermore, the server sends a lightweight triggered collaborative message to other clients that are opening documents at the same time.
[0017] Furthermore, the Site address code of the ERI is 1-6 digits, with the IPV6 address as the identification part.
[0018] Furthermore, the step S7 comprises:
[0019] S71: The client initiates a heartbeat;
[0020] S72: When the timer maintained by the server is equal to the preset time, the connection is actively disconnected; if the timer is greater than the preset time and the heartbeat of the client arrives, the timer is reset;
[0021] S73: Each time a message is sent or received is regarded as a heartbeat.
[0022] A network-based business document multi-person collaboration message-triggered synchronization system, including:
[0023] Synchronization module: used for point-to-point lightweight message synchronization from client to server to client using conditional triggering;
[0024] Establishing module: used to establish a WebSocket communication connection between the client and the server;
[0025] Transmission module: used for interactive data transmission through TCP protocol. The structure of the protocol packet includes two parts: Header and Body. The Header part consists of the client MAC address, login user ID and timestamp; the Body part consists of command ID and document number.
[0026] Document generation module: used to generate a unique document identifier ERI for each document;
[0027] The first sending module: when opening or closing a document on the Client side, it sends the opening or closing information to the document collaborative chain list on the Server side;
[0028] The second sending module: used to send the modification status to the server when the document is modified and edited on the client side;
[0029] Judgment module: used by the server to determine whether the client is online using the heartbeat method.
[0030] The present invention adopts the above technical solution to achieve the following beneficial effects:
[0031] The present invention realizes lightweight, high-performance, flexible and scalable message transmission by adopting the WebSocket method and protocol structure, and reduces the network traffic load. Through the message-triggered synchronization method, the problems existing in the prior art in the collaborative processing of business documents, such as one party cannot see the latest content after modification by the other party, one party remains on the original record after deletion by the other party, multiple people modify and overwrite at the same time, and the need for offline follow-up for collaborative approval, are solved, which improves the collaborative efficiency and ensures the consistency and accuracy of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A process flow of a multi-person collaborative message-triggered synchronization method for business documents based on a network provided in the first embodiment of the present invention Figure 1 ;
[0033] Figure 2 A process flow of a multi-person collaborative message-triggered synchronization method for business documents based on a network provided in the first embodiment of the present invention Figure 2 ;
[0034] Figure 3 This is a structural diagram of a network-based business document multi-person collaborative message-triggered synchronization system provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0036] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.
[0037] Embodiment 1
[0038] This embodiment provides a network-based business document multi-person collaborative message-triggered synchronization method, such as Figure 1 and Figure 2 As shown, the method comprises the steps of:
[0039] S1: Adopts a condition-triggered point-to-point lightweight message synchronization method from Client to Server to Client;
[0040] S2: Establish a WebSocket communication connection between the client and the server;
[0041] S3: Data is transmitted interactively through the TCP protocol. The structure of the protocol packet includes two parts: Header and Body. The Header part consists of the client MAC address, login user ID and timestamp; the Body part consists of the command ID and document number.
[0042] S4: Generate a unique document identifier ERI for each document;
[0043] S5: When opening or closing a document on the client side, the opening or closing information is sent to the document collaborative chain list on the server side;
[0044] S6: When the document is modified and edited on the Client side, the modification status is sent to the Server side;
[0045] S7: The server uses the heartbeat method to determine whether the client is online.
[0046] See also Figure 2 , wherein step S2 comprises:
[0047] S21: WebSocket communication is a distributed event bus system based on Socket that allows processes to communicate through publish or subscribe mode.
[0048] The command identification in step S3 includes five events: opening a document, leaving a document, modifying a document, protecting a document, and deleting a document.
[0049] The document identifier ERI in step S4 consists of 36 characters and is divided into 5 sections, including the Site address code, APPCategory application code, DataBase data code, Lifecycle life code and Verification check code.
[0050] The server sends lightweight triggered collaborative messages to other clients that are opening documents at the same time.
[0051] The site address code of ERI is 1-6 digits, with the IPV6 address as the identification part.
[0052] Wherein, step S7 comprises:
[0053] S71: The client initiates a heartbeat;
[0054] S72: When the timer maintained by the server is equal to the preset time, the connection is actively disconnected; if the timer is greater than the preset time and the heartbeat of the client arrives, the timer is reset;
[0055] S73: Each time a message is sent or received is regarded as a heartbeat.
[0056] Specifically, a conditionally triggered point-to-point lightweight message synchronization method from Client to Server to Client is adopted to reduce the network traffic load. The client and the server communicate using WebSocket, which is a lightweight, Socket-based distributed event bus system that allows processes to communicate through a publish / subscribe model without relying on external message queue services. It is lightweight, high-performance, flexible and scalable.
[0057] Specifically, data interaction is carried out through the TCP protocol, and the protocol packet structure includes Header and Body. The Header is composed of the Client's MAC + login user ID + time, and the Body is composed of command ID + document number. The command ID includes five events: Open, Exit, Modify, Save, and Del.
[0058] Specifically, the document identifier is formed by the document ERI, which consists of 36 characters and is divided into 5 sections, including the Site address code, APP Category code, DataBase code, Lifecycle code, and Verification code. When the client opens or closes a document, it sends the open or close information to the document collaboration list on the server. When the client modifies and edits a document, it sends the modification status to the server, and the server sends a lightweight triggered collaboration message to other clients that are opening the document at the same time.
[0059] Specifically, the server uses a heartbeat method to determine whether the client is online, and sends a lightweight triggered collaborative message to the C end that is opened in the collaborative chain list of the document. If it is found that a client end has disappeared, it will be changed to a closed state in the table.
[0060] Among them, the lightweight feature of the WebSocket method is that it does not rely on any external MQ service, reducing system complexity and dependence.
[0061] Among them, the high-performance characteristics of the WebSocket method are reflected in the direct communication based on Socket, which provides low-latency and high-throughput message delivery.
[0062] The flexibility of the WebSocket method is reflected in its support for custom event types and message processors, making it easy to integrate into existing systems.
[0063] Among them, the scalability feature of the WebSocket method is that it supports multiple client connections and is suitable for distributed system environments.
[0064] The Site address code of ERI is 1-6 digits, with the IPV6 address as the identification part, indicating the hardware source of the data.
[0065] Among them, ERI's APP Category application code is 7-10 digits, indicating various types of applications based on the Site, and the total number of applications that can be supported is 16777216.
[0066] Among them, the ERI DataBase data code is 11-20 digits, consisting of library number + table number + record number.
[0067] Among them, a conditionally triggered point-to-point lightweight message synchronization method from Client to Server to Client is adopted. This method can reduce network traffic load and improve synchronization efficiency. The client and server communicate using WebSocket, which allows processes to communicate through the publish / subscribe mode without relying on external message queue services. This makes the system more concise and efficient.
[0068] Among them, data interaction is carried out through the TCP protocol, and the command identifiers include five events: Open, Exit, Modify, Save, and Del, which correspond to the opening, closing, modifying, saving, and deleting operations of the document respectively.
[0069] The document identification is formed by the document ERI. ERI consists of 36 characters and is divided into 5 sections, including the Site address code, APP Category application code, DataBase data code, Lifecycle life code and Verification check code. This design can ensure the uniqueness and traceability of the document.
[0070] When the client opens or closes a document, it sends the opening or closing information to the document collaborative chain list on the server, so that the server can grasp the opening and closing status of the document in real time.
[0071] When the client modifies or edits a document, it sends the modification status to the server. After receiving the modification status, the server sends a lightweight triggered collaborative message to other clients that are opening the document at the same time, ensuring that all related clients can synchronize the latest status of the document in a timely manner.
[0072] The server uses the heartbeat method to determine whether the client is online. When sending a lightweight triggered collaborative message to the C end that is open in the collaborative chain list of the document, if it is found that a client end has disappeared, it will be changed to a closed state in the table. This mechanism can ensure the stability and reliability of the system.
[0073] Through the above steps, this method realizes a network-based business document multi-person collaborative message-triggered synchronization method, which has the advantages of lightweight, high performance, flexibility and scalability, and can meet the needs of multi-person collaborative processing of business documents in the development of enterprise informatization.
[0074] Embodiment 2
[0075] This embodiment provides a network-based business document multi-person collaborative message-triggered synchronization system, such as Figure 3 As shown, the system includes:
[0076] Synchronization module: used for point-to-point lightweight message synchronization from client to server to client using conditional triggering;
[0077] Establishing module: used to establish a WebSocket communication connection between the client and the server;
[0078] Transmission module: used for interactive data transmission through TCP protocol. The structure of the protocol packet includes two parts: Header and Body. The Header part consists of the client MAC address, login user ID and timestamp; the Body part consists of command ID and document number.
[0079] Document generation module: used to generate a unique document identifier ERI for each document;
[0080] The first sending module: when opening or closing a document on the Client side, it sends the opening or closing information to the document collaborative chain list on the Server side;
[0081] The second sending module: used to send the modification status to the server when the document is modified and edited on the client side;
[0082] Judgment module: used by the server to determine whether the client is online using the heartbeat method.
[0083] This system uses the WebSocket method and protocol structure to achieve lightweight, high-performance, flexible and scalable message transmission, reducing network traffic load. Through the message-triggered synchronization method, it solves the problems in the existing technology of collaborative processing of business documents, such as one party cannot see the latest content after modification by the other party, one party remains on the original record after deletion by the other party, multiple people modify and overwrite at the same time, and collaborative approval requires offline follow-up, which improves collaborative efficiency and ensures data consistency and accuracy.
[0084] Although the disclosure is disclosed as above, the protection scope of the disclosure is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the disclosure, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A network-based multi-person collaborative message-triggered synchronization method for business documents, characterized in that: Includes steps: S1: Adopts a condition-triggered point-to-point lightweight message synchronization method from Client to Server to Client; S2: Establish a WebSocket communication connection between the client and the server; S3: Data is transmitted interactively through the TCP protocol. The structure of the protocol packet includes two parts: Header and Body. The Header part consists of the client MAC address, login user ID and timestamp; the Body part consists of the command ID and document number. S4: Generate a unique document identifier ERI for each document; S5: When opening or closing a document on the client side, the opening or closing information is sent to the document collaborative chain list on the server side; S6: When the document is modified and edited on the Client side, the modification status is sent to the Server side; S7: The server uses the heartbeat method to determine whether the client is online.
2. The network-based multi-person collaborative message-triggered synchronization method for business documents according to claim 1, characterized in that: The step S2 comprises: S21: WebSocket communication is a distributed event bus system based on Socket that allows processes to communicate through publish or subscribe mode.
3. The network-based multi-person collaborative message-triggered synchronization method for business documents according to claim 1, characterized in that: The command identification in step S3 includes five events: opening a document, leaving a document, modifying a document, protecting a document and deleting a document.
4. The network-based multi-person collaborative message-triggered synchronization method for business documents according to claim 1, characterized in that: The document identification ERI in step S4 consists of 36 characters and is divided into 5 sections, including the Site address code, APPCategory application code, DataBase data code, Lifecycle life code and Verification check code.
5. The network-based multi-person collaborative message-triggered synchronization method for business documents according to claim 1, characterized in that: The server sends a lightweight triggered collaborative message to other clients that are opening documents at the same time.
6. The network-based multi-person collaborative message-triggered synchronization method for business documents according to claim 4, characterized in that: The Site address code of the ERI is 1-6 digits, with the IPV6 address as the identification part.
7. The network-based multi-person collaborative message-triggered synchronization method for business documents according to claim 1, characterized in that: The step S7 comprises: S71: The client initiates a heartbeat; S72: When the timer maintained by the server is equal to the preset time, the connection is actively disconnected; if the timer is greater than the preset time and the heartbeat of the client arrives, the timer is reset; S73: Each time a message is sent or received is regarded as a heartbeat.
8. A network-based business document multi-person collaborative message-triggered synchronization system, characterized in that: include: Synchronization module: used for point-to-point lightweight message synchronization from client to server to client using conditional triggering; Establishing module: used to establish a WebSocket communication connection between the client and the server; Transmission module: used for interactive data transmission through TCP protocol. The structure of the protocol packet includes two parts: Header and Body. The Header part consists of the client MAC address, login user ID and timestamp; the Body part consists of command ID and document number. Document generation module: used to generate a unique document identifier ERI for each document; The first sending module: when opening or closing a document on the Client side, it sends the opening or closing information to the document collaborative chain list on the Server side; The second sending module: used to send the modification status to the server when the document is modified and edited on the client side; Judgment module: used by the server to determine whether the client is online using the heartbeat method.
Citation Information
Patent Citations
Reliable transmission method based on UDP
CN104202414A
Multi-person collaborative test case management method and device, equipment and medium
CN115292166A
Multi-person cooperation method applied to electronic and electrical system development software
CN116028024A
Cross-protocol document approval method, system and device, medium and program product
CN119420742A
Cited By
Geological mineral exploration data analysis method and system based on cloud collaboration
CN120499170A