Document dynamic numbering method

Through dynamic numbering templates and distributed lock services, single point failure and system compatibility problems of existing document numbering technology are solved, efficient and secure document numbering management is realized, and cross-platform migration and seamless switching of business policies are supported.

CN120493874APending Publication Date: 2025-08-15INSPUR FINANCIAL INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510354409.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing document numbering technology has the risk of single point failure, poor horizontal scaling capability, large calculation overhead, inability to reflect business logic, need to renumber during migration, and lack of dynamic rule engine support, resulting in system compatibility damage and inconsistency in numbering.

Method used

The rule analysis module is used to load dynamic numbering templates, the metadata extractor extracts document information, the conflict detection engine uses Bloom filter and blockchain verification, and the distributed lock service realizes multi-node numbering atomicity, supports dynamic variable injection and multi-user isolation, and uses distributed lock service and version map to manage document versions.

Benefits of technology

It has achieved improvement in numbering efficiency, decoupling of storage systems, supports number consistency maintenance during cross-platform migration, reduces coding repetition rate, and enhances document traceability security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120493874A_ABST
    Figure CN120493874A_ABST
Patent Text Reader

Abstract

The invention discloses a document dynamic numbering method. The method comprises the steps that a rule analysis module loads a numbering template containing a timestamp variable timestamp and a service classification code {feature}; the metadata extractor extracts an author identifier, a creation date and a document type triple from the head of the document; the conflict detection engine adopts a Bloom filter to carry out pre-judgment re-processing; the distributed lock service realizes multi-node serial number atomicity distribution based on a Raft protocol; according to the method, the numbering efficiency can be improved, the storage system can be decoupled, the number consistency maintenance during cross-platform migration is supported, the coding repetition rate is reduced through a multi-dimensional conflict detection mechanism, seamless switching of service strategies is achieved through a rule hot loading technology, and the document tracing safety is enhanced through encryption fingerprint embedding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer information management, in particular to a document dynamic numbering method. Background Art

[0002] Existing document numbering technologies mostly use sequential coding or storage path-based coding.

[0003] For example: Sequential coding: Relying on a central database to generate incremental serial numbers, it presents a single point of failure risk and has poor horizontal scalability. Hash coding: Generates a unique identifier based on file content, but has high computational overhead and cannot reflect business logic; Storage-bound coding: For example, numbering based on the file storage path (e.g., / server1 / doc / 001) requires renumbering during document migration, disrupting inter-system compatibility. Furthermore, existing technologies generally lack support for dynamic rule engines, making it impossible to adjust numbering strategies in real time based on business scenarios. Summary of the Invention

[0004] The purpose of the present invention is to provide a method for dynamic document numbering in response to the above-mentioned problems in the prior art, thereby solving all or one of the above-mentioned problems in the prior art.

[0005] In order to solve the above technical problems, the specific technical solutions of the present invention are as follows: The present invention provides a method for dynamic document numbering, comprising: The rule parsing module loads a numbering template containing a timestamp variable timestamp and a business classification code {category}; The metadata extractor extracts the author ID, creation date, and document type triples from the document header; The conflict detection engine uses Bloom filters for pre-judgment and re-processing; The distributed lock service implements atomic allocation of multi-node numbers based on the Raft protocol.

[0006] As an improved solution, the numbering template supports dynamic variable injection, including: The geographic location variable ${geo_code} is automatically populated through the IP address resolution service; The version iteration variable ${version} is generated in the format of major version, minor version, and revision number; Random anti-collision code ${random8}, generates an 8-bit Base64 encoded string.

[0007] As an improved solution, the operations performed by the metadata extractor further include: Extract from the XMP metadata block of a PDF document <dc:creator>Field; Enable the OCR recognition module for documents without metadata to parse the issuing unit's signature on the title page; Generate metadata fingerprint in SHA-256 format and store it in an independent key-value database.

[0008] As an improved solution, the prejudgment reprocessing includes: First level validation: local Bloom filter quickly screens for potential duplications; Second level verification: distributed consistent hash ring comparison of cluster node metadata; Level 3 verification: The blockchain evidence storage service verifies the historical number records.

[0009] As an improved solution, the distributed lock service includes: The write-ahead log persists all numbered requests; The lease mechanism sets a 10-second validity period, which will be automatically released after the timeout. When a node fails, lock migration is triggered through heartbeat detection.

[0010] As an improved solution, it also includes: When the document content is updated, the original number is retained and a version suffix is appended; Establish a version graph database to record the difference hash values between versions; Automatically triggers filing number reorganization for documents with more than 5 revisions.

[0011] As an improved solution, it also includes: Call the file path redirector to map the logical number to the physical storage path; Call the storage performance monitor to dynamically adjust the number allocation strategy based on I / O latency.

[0012] As an improved solution, the method supports multi-user isolation: Generate an independent namespace through the user ID ${tenant_id}; Each user configures an independent rule cache pool; Data storage between users is isolated using logical volume encryption.

[0013] As an improved solution, it also includes: When the storage system is detected to be unreachable, the local temporary number pool is enabled; After the network is restored, two-way synchronization is performed, using the Operational Transform conflict merging algorithm; Abnormal events are recorded in the audit log in the format of timestamp|event code|affected scope.

[0014] As an improved solution, the final numbering format is: ${geo_code}-${category}-${timestamp(yyyyMMdd)}-${random8}; each field is separated by a hyphen, and a Base58-encoded metadata fingerprint is attached as a check code.

[0015] The beneficial effects of the technical solution of the present invention are: the document dynamic numbering method described in the present invention can achieve improved numbering efficiency, decoupling of storage systems, support for maintaining numbering consistency during cross-platform migration, multi-dimensional conflict detection mechanism to reduce coding repetition rate, rule hot loading technology to achieve seamless switching of business strategies, and encrypted fingerprint embedding to enhance document traceability security. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 It is a flowchart of the method for dynamic document numbering according to an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more precise definition of the protection scope of the present invention.

[0019] In the description of the present invention, it should be noted that the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all of the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of the present invention.

[0020] The terms "first," "second," and the like in the specification and claims herein and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or device comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device. Example

[0021] This embodiment provides a method for dynamic document numbering, such as Figure 1 Shown, including: The rule parsing module loads a numbering template containing a timestamp variable timestamp and a business classification code {category}; The metadata extractor extracts the author ID, creation date, and document type triples from the document header; The conflict detection engine uses Bloom filters for pre-judgment and re-processing; The distributed lock service implements atomic allocation of multi-node numbers based on the Raft protocol.

[0022] As an improved solution, the numbering template supports dynamic variable injection, including: The geographic location variable ${geo_code} is automatically populated through the IP address resolution service; The version iteration variable ${version} is generated in the format of major version, minor version, and revision number; Random anti-collision code ${random8}, generates an 8-bit Base64 encoded string.

[0023] As an improved solution, the operations performed by the metadata extractor further include: Extract from the XMP metadata block of a PDF document <dc:creator>Field; Enable the OCR recognition module for documents without metadata to parse the issuing unit's signature on the title page; Generate metadata fingerprint in SHA-256 format and store it in an independent key-value database.

[0024] As an improved solution, the prejudgment reprocessing includes: First level validation: local Bloom filter quickly screens for potential duplications; Second level verification: distributed consistent hash ring comparison of cluster node metadata; Level 3 verification: The blockchain evidence storage service verifies the historical number records.

[0025] As an improved solution, the distributed lock service includes: The write-ahead log persists all numbered requests; The lease mechanism sets a 10-second validity period, which will be automatically released after the timeout. When a node fails, lock migration is triggered through heartbeat detection.

[0026] As an improved solution, it also includes: When the document content is updated, the original number is retained and a version suffix is appended; Establish a version graph database to record the difference hash values between versions; Automatically triggers filing number reorganization for documents with more than 5 revisions.

[0027] As an improved solution, it also includes: Call the file path redirector to map the logical number to the physical storage path; Call the storage performance monitor to dynamically adjust the number allocation strategy based on I / O latency.

[0028] As an improved solution, the method supports multi-user isolation: Generate an independent namespace through the user ID ${tenant_id}; Each user configures an independent rule cache pool; Data storage between users is isolated using logical volume encryption.

[0029] As an improved solution, it also includes: When the storage system is detected to be unreachable, the local temporary number pool is enabled; After the network is restored, two-way synchronization is performed, using the Operational Transform conflict merging algorithm; Abnormal events are recorded in the audit log in the format of timestamp|event code|affected scope.

[0030] As an improved solution, the final numbering format is: ${geo_code}-${category}-${timestamp(yyyyMMdd)}-${random8}; each field is separated by a hyphen, and a Base58-encoded metadata fingerprint is attached as a check code.

[0031] It should be noted that the above examples are only for explaining the present invention and are not intended to limit the scope of protection of the present invention.

[0032] It should be understood that in the various embodiments of this document, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this document.

[0033] It should also be understood that in the embodiments herein, the term "and / or" merely describes an association between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent three possible situations: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0034] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this document.

[0035] Those skilled in the art will clearly understand that, for the sake of convenience and brevity of description, the specific logical process of the method described above can refer to the corresponding working processes of the systems, devices and units in the aforementioned method embodiments, and will not be repeated here.

[0036] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices, or units, or can be an electrical, mechanical, or other form of connection.

[0037] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments herein.

[0038] In addition, the functional units in the various embodiments herein may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0039] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this article is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of this article. The aforementioned storage medium includes: various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0040] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention's description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.< / dc:creator> < / dc:creator>

Claims

1. A method for dynamic document numbering, characterized in that: include: The rule parsing module loads a numbering template containing a timestamp variable timestamp and a business classification code {category}; The metadata extractor extracts the author ID, creation date, and document type triples from the document header; The conflict detection engine uses Bloom filters for pre-judgment and re-processing; The distributed lock service implements atomic allocation of multi-node numbers based on the Raft protocol.

2. The method for dynamic document numbering according to claim 1, wherein: The numbering template supports dynamic variable injection, including: The geographic location variable ${geo_code} is automatically populated through the IP address resolution service; The version iteration variable ${version} is generated in the format of major version, minor version, and revision number; Random anti-collision code ${random8}, generates an 8-bit Base64 encoded string.

3. The method for dynamic document numbering according to claim 2, wherein: The operations performed by the metadata extractor also include: Extract from the XMP metadata block of a PDF document <dc:creator> Field;< / dc:creator> Enable the OCR recognition module for documents without metadata to parse the issuing unit's signature on the title page; Generate metadata fingerprint in SHA-256 format and store it in an independent key-value database.

4. The method for dynamic document numbering according to claim 3, wherein: The prejudgment reprocessing includes: First level validation: local Bloom filter quickly screens for potential duplications; Second level verification: distributed consistent hash ring comparison of cluster node metadata; Level 3 verification: The blockchain evidence storage service verifies the historical number records.

5. The method for dynamic document numbering according to claim 4, wherein: The distributed lock service includes: The write-ahead log persists all numbered requests; The lease mechanism sets a 10-second validity period, which will be automatically released after the timeout. When a node fails, lock migration is triggered through heartbeat detection.

6. The method for dynamic document numbering according to claim 1, wherein: Also includes: When the document content is updated, the original number is retained and a version suffix is appended; Establish a version graph database to record the difference hash values between versions; Automatically triggers filing number reorganization for documents with more than 5 revisions.

7. The method for dynamic document numbering according to claim 6, wherein: Also includes: Call the file path redirector to map the logical number to the physical storage path; Call the storage performance monitor to dynamically adjust the number allocation strategy based on I / O latency.

8. The method for dynamic document numbering according to claim 7, wherein: The described method supports multi-user isolation: Generate an independent namespace through the user ID ${tenant_id}; Each user configures an independent rule cache pool; Data storage between users is isolated using logical volume encryption.

9. The method for dynamic document numbering according to claim 8, wherein: Also includes: When the storage system is detected to be unreachable, the local temporary number pool is enabled; After the network is restored, two-way synchronization is performed, using the Operational Transform conflict merging algorithm; Abnormal events are recorded in the audit log in the format of timestamp|event code|affected scope.

10. The method for dynamic document numbering according to any one of claims 1 to 9, characterized in that: The final numbering format is: ${geo_code}-${category}-${timestamp(yyyyMMdd)}-${random8}; each field is separated by a hyphen, and a Base58-encoded metadata fingerprint is appended as a check code.