Packaging method and program product for data delivery packages
By acquiring delivery task information and metadata change information, matching delivery rule objects to generate a material requirement list, and automating the processing of data delivery materials, the problem of low data delivery efficiency and poor standardization in existing technologies is solved, achieving efficient and standardized data delivery.
Patent Information
- Application Number
- CN202611631587.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-27
AI Technical Summary
The existing data delivery material packaging process is time-consuming, inefficient, and prone to problems such as missing files, inconsistent versions, non-standard naming, conflicting document content, and non-compliant delivery package structure.
By acquiring delivery task information, reading metadata change information, and matching it with delivery rule objects in the preset data delivery rule base, a delivery material requirement list is generated. Candidate files are obtained from the material source system based on the material acquisition method. The target delivery file is determined according to the screening and retrieval conditions, and a file compressed package and its corresponding delivery package identifier are generated.
It achieves automated data delivery material identification, document collection, and compression packaging, reducing manual intervention, minimizing human error, ensuring the standardization of delivery materials, and improving data delivery efficiency and quality.
Smart Images

Figure CN123178461A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method and program product for packaging data delivery packages. Background Technology
[0002] As digital business operations continue to be implemented, enterprises generate massive amounts of scattered data from multiple business systems. With the expansion of data scale, issues such as diverse data sources, inconsistent standards, and fragmented metadata have become prominent. The lack of unified descriptions of the source, timeliness, structure, and quality of this scattered data leads to difficulties in metadata collection, association, and maintenance, increasing the costs of asset inventory, lineage tracing, and quality verification, and hindering the advancement of data governance. Data packaging, as a fundamental means of data governance, encapsulates business data and metadata in an integrated manner, packaging field definitions, sources, time stamps, quality tags, and verification information along with the business data. Based on unified packaging specifications, metadata and business data can flow synchronously and be stored uniformly, preventing metadata from becoming disconnected from entity data, supporting end-to-end data tracking, unifying data definitions, and improving data traceability and manageability.
[0003] Currently, data delivery materials are typically obtained by staff from different systems or directories, and then manually checked, named, cataloged, and compressed according to delivery requirements. This method is not only time-consuming and inefficient in data packaging, but also prone to problems such as missing files, version inconsistencies, non-standard naming, conflicting document content, and delivery package structures that do not meet requirements. Summary of the Invention
[0004] This invention provides a method and program product for packaging data delivery packages to solve the problem of low data packaging efficiency.
[0005] According to one aspect of the present invention, a method for packaging a data delivery package is provided, the method comprising: Obtain delivery task information, which includes at least the project identifier, model version, and change type; Based on the project identifier and the model version, read the metadata change information associated with the delivery task information. The metadata change information includes at least the object of the change, the object identifier of the object of the change, and the change type. The delivery task information is matched with delivery rule objects in the preset data delivery rule base to obtain a set of delivery rule objects that meet the current scenario. Based on the metadata change information and the set of delivery rule objects, output the material requirement list for this delivery and determine the material acquisition method corresponding to the object to be changed in the metadata change information; Candidate files are obtained from the material source system based on the material acquisition method. Screening and retrieval conditions are constructed based on the project identifier, the object identifier, the model version, and the file type of the material requirements list for this delivery. Multiple target delivery files are determined based on the screening and retrieval conditions. Based on the multiple target delivery files, package information corresponding to the delivery task information is generated, and the package information includes a file compressed package and its corresponding delivery package identifier.
[0006] According to another aspect of the present invention, a data delivery package packaging device is provided, the device comprising: The delivery task information acquisition module is used to acquire delivery task information, which includes at least project identifier, model version, and change type. The metadata change information acquisition module is used to read the metadata change information associated with the delivery task information based on the project identifier and the model version. The metadata change information includes at least the object of the change, the object identifier of the object of the change, and the change type. The delivery rule object set determination module is used to match the delivery task information with the delivery rule objects in the preset data delivery rule library to obtain a set of delivery rule objects that meet the current scenario. The material acquisition method determination module is used to output a list of material requirements for this delivery based on the metadata change information and the set of delivery rule objects, and to determine the material acquisition method corresponding to the object to be changed in the metadata change information; The target delivery document determination module is used to obtain candidate documents from the material source system based on the material acquisition method, construct filtering and retrieval conditions based on the project identifier, the object identifier, the model version, and the file type of the material requirement list for this delivery, and determine multiple target delivery documents based on the filtering and retrieval conditions; The packaging information generation module is used to generate packaging information corresponding to the delivery task information based on multiple target delivery files. The packaging information includes a file compressed package and its corresponding delivery package identifier.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data delivery package packaging method according to any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the data delivery package packaging method according to any embodiment of the present invention.
[0009] According to another aspect of the present invention, embodiments of the present disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements a data delivery package packaging method as described in any of the embodiments of the present disclosure.
[0010] The technical solution of this invention obtains delivery task information and reads metadata change information associated with the delivery task information based on the project identifier and model version. It matches the delivery task information with delivery rule objects in a preset data delivery rule base to obtain a set of delivery rule objects that meet the current scenario. Based on the metadata change information and the set of delivery rule objects, it outputs a material requirement list for this delivery and determines the material acquisition method corresponding to the object to be changed in the metadata change information. Based on the material acquisition method, it obtains candidate files from the material source system, determines multiple target delivery files based on filtering and retrieval conditions, and generates packaging information corresponding to the delivery task information based on the multiple target delivery files. This technical solution can automatically generate a material requirement list by combining the delivery scenario and business change type, ensuring the completeness of essential delivery documents. It can automatically realize material identification, file collection, and compression packaging, reducing manual intervention, mitigating human error and material omissions, ensuring the standardization of delivery materials, and effectively improving data delivery efficiency and quality.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 A flowchart of a data delivery package packaging method is provided in Embodiment 1 of the present invention; Figure 2 This is a flowchart of a data delivery package packaging method provided in Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of a data delivery package packaging device provided in Embodiment 3 of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements the data delivery package packaging method of the present invention. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0017] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0018] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0019] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0020] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0021] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0022] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0023] Example 1 Figure 1 The flowchart below provides a data delivery package packaging method according to Embodiment 1 of the present invention. This embodiment is applicable to data processing situations. The method can be executed by a data delivery package packaging device, which can be implemented in hardware and / or software. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.
[0024] like Figure 1 As shown, the method may specifically include: S101. Obtain delivery task information, which includes at least project identifier, model version, and change type.
[0025] Delivery task information can be understood as the basic information of all tasks corresponding to initiating a data or material delivery activity. Specifically, delivery task information can be used to uniquely identify this delivery behavior. Delivery task information includes, but is not limited to, project identifier, model version, change type, database name, delivery stage, and delivery unit. Further, project identifier can be understood as an identification code or identification information used to distinguish different business projects.
[0026] Model version can be understood as version information used to identify different iteration states of the same model. Specifically, model version can record one or more attributes such as iterative changes, update time, person making the changes, and baseline information. Change type can be understood as a classification identifier used to distinguish the category to which a business change belongs. Specifically, change type can be used to characterize the reason for the business change corresponding to this delivery.
[0027] In one embodiment, a delivery trigger instruction is received, the delivery task information corresponding to this delivery is read, and the delivery task information is extracted, including but not limited to the project identifier, model version, and change type.
[0028] S102. Based on the project identifier and the model version, read the metadata change information associated with the delivery task information. The metadata change information includes at least the object of the change, the object identifier of the object of the change, and the change type.
[0029] Metadata change information can be understood as information used to record adjustments to metadata. Specifically, metadata change information includes, but is not limited to, the object of this change, the object identifier of the object of this change, and the change type. The object of this change can be understood as the target entity in the current delivery task that has undergone metadata or business content changes. Further, the object identifier can be understood as coded information used to uniquely identify the object of this change. The object identifier can locate the target entity that has undergone the change. The change type can be used to characterize the specific change action performed on the object of this change.
[0030] In one embodiment, based on the parsed project identifier and model version, data records associated with the current delivery task information are retrieved, the corresponding metadata change information is read, and the object of this change, as well as the change type and object identifier of the object of this change, are obtained.
[0031] S103. Match the delivery task information with the delivery rule objects in the preset data delivery rule base to obtain a set of delivery rule objects that meet the current scenario.
[0032] The preset data delivery rule base can be understood as a set of rules that are pre-configured and stored. Specifically, the preset data delivery rule base stores, but is not limited to, delivery material matching rules corresponding to different projects, model versions, and change types. A delivery rule object can be understood as the smallest rule entity stored in the preset data delivery rule base.
[0033] The current scenario can be understood as the business application scenario information corresponding to this delivery task. Specifically, the current scenario can be used to characterize the business environment, delivery purpose, and constraints of this data delivery. The delivery rule object set can be understood as the set of all delivery rule objects that meet the matching conditions and are obtained from the preset data delivery rule base.
[0034] As an optional technical solution in an embodiment of the present invention, the process of establishing the preset data delivery rule base includes: structurally encapsulating delivery constraint information to generate an executable delivery rule object; configuring corresponding applicable conditions and execution priorities based on the delivery rule object; wherein the delivery constraint information includes at least one of the following: delivery scenario, project type, model change type, delivery stage, required files, optional files, file format, naming rules, directory rules, and verification requirements; and constructing the preset data delivery rule base based on the delivery rule object, the applicable conditions, and the execution priority.
[0035] Delivery constraint information can be understood as the constraints that limit the data delivery. Specifically, delivery constraint information includes, but is not limited to, delivery scenario, project type, model change type, delivery stage, required files, optional files, file format, naming rules, directory rules, and validation requirements. Structured encapsulation can be understood as organizing and assembling business data and related metadata according to preset specifications to generate a data package with a fixed structure.
[0036] Applicable conditions can be understood as the matching criteria built into the delivery rule object. Execution priority can be understood as the weight identifier configured in the delivery rule object. Specifically, execution priority can be used to determine the execution order and selection logic when multiple delivery rule objects simultaneously match the applicable conditions. Delivery scenario is a classification identifier used to characterize the business purpose of this data delivery. Project type is an identifier used to categorize and classify business projects.
[0037] Model change type can be understood as a specific category identifier representing a change to the model. Delivery stage can be understood as an identifier representing the current delivery stage in the project or model lifecycle. Required documents can be understood as documents that must be submitted for the current delivery task as specified by the delivery rule object. Optional documents can be understood as non-mandatory submission document resources defined in the delivery rule object. Optional documents are supplementary materials for this delivery task.
[0038] File format can be understood as the file type requirements specified by the delivery rule object. Naming rules can be understood as the file naming conventions defined in the delivery rule object. Directory rules can be understood as the data packet directory hierarchy and storage path specifications defined by the delivery rule object. Verification requirements can be understood as the file verification specifications defined in the delivery rule object.
[0039] In one embodiment, the structured encapsulation of delivery constraint information to generate an executable delivery rule object includes: reading the delivery constraint information, and according to a preset object structure definition, structured encapsulating one or more types of information such as delivery constraint information, applicable conditions, execution priority, required files, optional files, file format, naming rules, directory rules, and verification requirements to generate an executable delivery rule object.
[0040] In one embodiment, delivery constraint information is extracted, mapped to corresponding attributes according to a preset object model, and encapsulated to generate an executable delivery rule object.
[0041] In one embodiment, configuring the corresponding applicable conditions and execution priority based on the delivery rule object includes: receiving applicable condition configuration parameters and execution priority parameters; entering one or more items such as project type, delivery scenario, delivery stage, and model change type into the applicable condition field; configuring the execution priority value of the delivery rule object; and binding the applicable conditions and execution priority to the corresponding attributes of the delivery rule object.
[0042] In one embodiment, constructing the preset data delivery rule library based on the delivery rule object, the applicable conditions, and the execution priority includes: traversing the configured delivery rule objects, associating and aggregating each delivery rule object with its bound applicable conditions and execution priority; sorting all delivery rule objects according to execution priority, storing them uniformly in the rule storage module, and constructing the preset data delivery rule library.
[0043] In one embodiment, matching the delivery task information with delivery rule objects in a preset data delivery rule base includes: parsing the delivery task information, using the delivery task information as a retrieval condition, and comparing it one by one with the applicable conditions of each delivery rule object in the preset data delivery rule base.
[0044] In one embodiment, obtaining a set of delivery rule objects that meet the current scenario includes: filtering out delivery rule objects whose applicable conditions match the delivery task information to obtain a set of delivery rule objects.
[0045] S104. Based on the metadata change information and the delivery rule object set, output the material requirement list for this delivery, and determine the material acquisition method corresponding to the object to be changed in the metadata change information.
[0046] The "Material Requirements List for This Delivery" can be understood as a set of material items generated based on the current delivery task. Specifically, the Material Requirements List for This Delivery specifies all delivery materials that must be submitted or are optional for this task. "Objects to be Changed" can be understood as the target business entities for which changes are to be implemented in this delivery task. "Material Acquisition Method" can be understood as the methods for obtaining delivery documents as specified in the delivery rule object.
[0047] In one embodiment, based on the metadata change information and the delivery rule object set, outputting the material requirement list for this delivery includes: determining the scope of change according to the metadata change information, filtering and trimming the material items in the delivery rule object set, merging and deduplicating the material constraint information, and outputting the material requirement list for this delivery.
[0048] In one embodiment, determining the material acquisition method corresponding to the object to be changed in the metadata change information includes: extracting the object to be changed from the metadata change information, retrieving the corresponding delivery rule object from the delivery rule object set, reading the material acquisition method in the delivery constraint information, and determining the material acquisition method corresponding to the object to be changed.
[0049] S105. Based on the material acquisition method, candidate files are obtained from the material source system. Screening and retrieval conditions are constructed according to the project identifier, the object identifier, the model version, and the file type of the material requirement list for this delivery. Multiple target delivery files are determined based on the screening and retrieval conditions.
[0050] The material source system can be understood as a business system that stores raw materials to be delivered. Specifically, the material source system can be used to extract delivery documents corresponding to the object to be changed based on the material acquisition method. The material source system includes, but is not limited to, a metadata management platform, a model management platform, a document generation module, a database script directory, and a file management system. File type can be understood as an identifier used to characterize the file data storage format.
[0051] Candidate documents can be understood as documents to be screened, obtained from the material source system or uploaded manually. Screening and retrieval criteria can be understood as the set of retrieval parameters for locating candidate documents in the material source system. Target delivery documents can be understood as documents that meet the delivery constraints after compliance verification of the candidate documents.
[0052] In one embodiment, obtaining candidate files from the material source system based on the material acquisition method includes: calling the material source system interface to obtain candidate files according to the material acquisition method corresponding to the object to be changed.
[0053] In one embodiment, filtering and retrieval conditions are constructed based on the project identifier, the object identifier, the model version, and the file types in the current delivery material requirements list. This includes extracting the project identifier, object identifier, and model version, and simultaneously reading the corresponding file types from the current delivery material requirements list. These four pieces of information are then bound and combined as retrieval fields to generate multi-field joint query parameters. All query parameters are then formatted and encapsulated to form complete filtering and retrieval conditions.
[0054] In one embodiment, determining multiple target delivery documents based on the filtering and retrieval criteria includes: querying the material source system using the filtering and retrieval criteria to obtain a set of candidate documents; verifying each candidate document one by one according to the verification requirements in the delivery constraint information; and determining the candidate documents that pass the verification as target delivery documents, thereby obtaining multiple target delivery documents.
[0055] S106. Generate packaging information corresponding to the delivery task information based on the multiple target delivery files. The packaging information includes a file compressed package and its corresponding delivery package identifier.
[0056] Packaging information can be understood as the complete set of supporting information used to assemble the delivery data package. Specifically, packaging information includes, but is not limited to, compressed file packages and their corresponding delivery package identifiers. A compressed file package can be understood as a single compressed file carrier formed by organizing the target delivery file and packaging information according to directory rules and then compressing them using a compression algorithm. Furthermore, the delivery package identifier can be understood as an identification code that identifies the compressed file package.
[0057] In one embodiment, multiple target delivery files are read to generate a delivery package identifier. Delivery task information and file indexes are organized to form packaging information. The target delivery files are compressed to obtain a file compressed package, and the file compressed package and delivery package identifier are included in the packaging information.
[0058] The technical solution of this invention obtains delivery task information and reads metadata change information associated with the delivery task information based on the project identifier and model version. It matches the delivery task information with delivery rule objects in a preset data delivery rule base to obtain a set of delivery rule objects that meet the current scenario. Based on the metadata change information and the set of delivery rule objects, it outputs a material requirement list for this delivery and determines the material acquisition method corresponding to the object to be changed in the metadata change information. Based on the material acquisition method, it obtains candidate files from the material source system, determines multiple target delivery files based on filtering and retrieval conditions, and generates packaging information corresponding to the delivery task information based on the multiple target delivery files. This technical solution can automatically generate a material requirement list by combining the delivery scenario and business change type, ensuring the completeness of essential delivery documents. It can automatically realize material identification, file collection, and compression packaging, reducing manual intervention, mitigating human error and material omissions, ensuring the standardization of delivery materials, and effectively improving data delivery efficiency and quality.
[0059] Example 2 Figure 2 This is a flowchart illustrating a data delivery package packaging method according to Embodiment 2 of the present invention. The technical solution of this embodiment can be combined with the technical features of any embodiment of the present invention. Detailed implementation methods can be found in the description of this embodiment. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here.
[0060] S201. Obtain delivery task information, which includes at least project identifier, model version, and change type.
[0061] S202. Based on the project identifier and the model version, read the metadata change information associated with the delivery task information. The metadata change information includes at least the object of the change, the object identifier of the object of the change, and the change type.
[0062] S203. Match the delivery task information with the delivery rule objects in the preset data delivery rule base to obtain a set of delivery rule objects that meet the current scenario.
[0063] S204. Based on the metadata change information and the delivery rule object set, output the material requirement list for this delivery and determine the material acquisition method corresponding to the object to be changed in the metadata change information.
[0064] S205. Based on the material acquisition method, candidate files are obtained from the material source system. Screening and retrieval conditions are constructed according to the project identifier, the object identifier, the model version, and the file type of the material requirement list for this delivery. Multiple target delivery files are determined based on the screening and retrieval conditions.
[0065] S206. Write the target delivery file into the delivery directory according to the file type, calculate the file digest value for each target delivery file in the delivery directory, and determine the delivery file list based on the target delivery file and the corresponding file digest value.
[0066] The delivery directory can be understood as a pre-defined hierarchical folder path structure. Specifically, the delivery directory is used to store target delivery files categorized by file type. The file digest value can be understood as a fixed-length character sequence calculated from the entire binary content of the target delivery file. Specifically, the file digest value is a verification indicator corresponding to the verification requirements. The delivery file list can be understood as a structured collection of entries recording all target delivery files for this delivery.
[0067] In one embodiment, writing the target delivery file to the delivery directory according to the file type includes: obtaining the target delivery file and its file type; querying a preset subpath in the delivery directory corresponding to the file type; locating or creating a corresponding directory in the delivery directory; and writing the target delivery file to that path.
[0068] As an optional technical solution of this invention, multi-level verification is performed on each of the target delivery files to obtain the verification result of the target delivery file. The multi-level verification includes file existence verification, file format verification, file naming verification, file content integrity verification, and cross-file consistency verification. If the verification result of the target delivery file meets the preset packaging conditions, the target delivery file is written to the delivery directory according to the file type.
[0069] Multi-layered verification can be understood as a multi-dimensional, progressive compliance verification mechanism that sequentially performs checks on delivered materials. Specifically, multi-layered verification includes, but is not limited to, document existence verification, document format verification, document naming verification, document content integrity verification, and cross-document consistency verification. Multi-layered verification is used to characterize whether the target delivered document meets delivery constraints. The verification result can be understood as a set of judgment information output after performing multi-layered verification.
[0070] Document existence verification can be understood as checking the delivery material requirements list to see if the required and optional documents listed exist in the delivery catalog. Document format verification can be understood as checking the file extension and header characteristics of the target delivery documents against the file types in the delivery constraint information to determine if the actual file format meets the preset requirements. Document naming verification can be understood as verifying whether the names of the target delivery documents conform to the preset specifications according to the naming rules.
[0071] File content integrity verification can be understood as checking whether the content of the target delivered file has been tampered with or damaged by comparing the file digest value. Specifically, the file digest value of the target delivered file is calculated according to the digest algorithm specified in the delivery constraint information, and the calculated digest value is compared with the expected digest value to see if they are consistent. Cross-file consistency verification can be understood as verifying whether the association information between multiple files is consistent.
[0072] In one embodiment, multi-level verification is performed on each target delivery file to obtain the verification result of the target delivery file. This includes: traversing each target delivery file and sequentially performing each verification item in the multi-level verification. All individual verification information is then summarized and combined to form the complete verification result of the target delivery file.
[0073] As an optional technical solution of this embodiment of the invention, all the target delivery documents are compared based on the material requirement list for this delivery to obtain the verification result of the document existence verification; if the verification result of the document existence verification is successful, file extension verification, file size verification, and file format verification are performed on each target delivery document sequentially based on the material type configuration rules in the preset data delivery rule base to obtain the verification result of the file naming verification; if the verification result of the file naming verification is successful, the filename of each target delivery document is parsed based on the delivery file naming configuration rules in the preset data delivery rule base to verify the format of each field of the filename; if the file If the validation results for each field format are passed, the key content in the delivery file is parsed to check the completeness of required chapters, key fields, and object information. If the required chapters, key fields, and object information are all complete, the primary key is determined based on the object's unique identifier, a cross-file association index is constructed, and the associated objects are located based on the cross-file association index. The corresponding business objects in the physical model file and database script are found based on the object's unique identifier. Furthermore, the newly added fields in the metadata change list and the field definitions of the associated objects are compared one by one to verify the consistency of field names, data types, field lengths, and change actions, thereby obtaining the validation result of the cross-file consistency check.
[0074] The material type configuration rules can be understood as a set of configuration constraints within the delivery rule object used to define the attributes of various delivery materials. File extension verification can be understood as comparing the actual extension of the target delivery file with the preset extension to determine if the extension conforms to the delivery constraints. File size verification can be understood as comparing the actual byte size of the target delivery file with a preset threshold range to determine if the file size conforms to the delivery constraints. File format verification can be understood as verifying whether the actual data format of the target delivery file meets the delivery constraints through file header features. Delivery file naming configuration rules can be understood as a set of naming conventions used to define the target delivery files.
[0075] Field format can be understood as the format constraints set for the fields that make up the filename in the delivery file naming configuration rules. Key content can be understood as the set of elements within the target delivery file that carry core business information. Specifically, key content includes the physical model, metadata change list, data accountability matrix, and database scripts. Required sections can be understood as the sections that must be included in the document as specified by the delivery constraints. Key fields can be understood as the data fields that carry core business information as specified by the delivery constraints. Object information can be understood as a set of structured information describing business objects. Object unique identifier can be understood as a code used to uniquely identify business objects globally.
[0076] A primary key can be understood as a field or combination of fields that uniquely identifies a business data record. A cross-file relational index can be understood as index information used to establish business relationships between different delivery files. A related object can be understood as other business objects that have a business relationship with the current business object. A physical model file can be understood as a delivery file that stores physical model data. A database script can be understood as a delivery file that records database operation instructions. A business object can be understood as an entity in the business system that has independent business meaning.
[0077] Field name consistency refers to whether the field names of data items with the same business meaning are consistent across multiple related files. Data type consistency refers to whether the data type definition of the same key field is consistent across multiple related files. Field length consistency refers to whether the length constraints of the same key field are consistent across multiple related files. Change action consistency refers to whether the change action information corresponding to the same business object recorded in multiple related files is consistent.
[0078] In one embodiment, comparing all the target delivery documents based on the current delivery material requirement list to obtain the document existence verification result includes: according to the current delivery material requirement list, traversing all target delivery documents one by one, comparing the actual document items with the list requirements item by item, summarizing the comparison conclusions, and outputting the document existence verification result.
[0079] In one embodiment, when the file existence verification passes, the material type configuration rule in the data delivery rule base is read. For each target delivery file, file extension, file size, and file format are verified sequentially. The status of each individual verification item is collected, and the verification result corresponding to the file naming verification is generated.
[0080] In one embodiment, the file name verification result is parsed. If the verification result is successful, the delivery file naming configuration rule is read. The filename of the target delivery file is extracted and broken down into its constituent fields. Each field is verified one by one according to the field format constraints in the delivery file naming configuration rule; the verification status is recorded, and the verification result corresponding to the field format is obtained.
[0081] In one embodiment, the validation results of each field in the filename are parsed to determine if the validation passed. The internal business content of the target delivery file is read, and the required sections are checked against the delivery constraints to ensure they are not missing. Key fields and object information are extracted, and their completeness is verified. The validation status is recorded, and validation results corresponding to the key content are generated.
[0082] As an optional technical solution in an embodiment of the present invention, the key contents include a physical model, the metadata change list, the data accountability matrix, and the database script. The physical model checks whether it contains tables, fields, primary keys, and index information. The metadata change list checks whether it contains the changed object, change type, content before the change, and content after the change. The data accountability matrix checks whether it contains the responsible subject and responsibility type. The database script checks whether it contains creation or modification statements corresponding to the changed content.
[0083] The physical model can be understood as a digital model obtained by abstracting and modeling a physical object. The data accountability matrix can be understood as a two-dimensional constraint matrix defining the responsible parties and types of rights and responsibilities corresponding to the delivered data. Specifically, the data accountability matrix can be used to define the data management responsibilities of each role. Index information can be understood as a set of identification information used to locate business objects and associated delivery documents.
[0084] The responsible entity can be understood as the entity or role defined in the data accountability matrix that bears relevant management responsibility for business data. The responsibility type can be understood as the responsibility category constraint defined in the data accountability matrix. Specifically, the responsibility type is used to verify whether the rights and responsibilities corresponding to the responsible entity are compliant.
[0085] In one embodiment, when the verification results of required chapters, key fields, and object information all indicate complete content, the unique identifier of the object in the target delivery file is extracted and set as the primary key. Combined with project identifiers, model versions, and other related information, a cross-file association index is generated.
[0086] In one embodiment, associated objects are located based on cross-file association indexes, and unique object identifiers are extracted. These unique object identifiers are then used to search for corresponding business objects in the physical model file and database script.
[0087] In one embodiment, the newly added fields in the metadata change list are traversed, and each field definition of the associated object is compared. The consistency of the field name, data type, field length, and change action is verified sequentially. All mismatches and exceptions are recorded, the comparison results are integrated, and the cross-file consistency verification result is output.
[0088] As an optional technical solution of this invention, in response to the file existence verification result being a missing or duplicate file, the packaging operation is stopped and an exception message is output; in response to the target delivery file being corrupted or having a file format error, the packaging operation is stopped and an exception message is output; in response to the file naming verification result being a file name not conforming to the specification, the target delivery file with the non-standard file name is renamed according to the delivery file naming configuration rules, and the renamed target delivery file is written into the delivery directory for classification and storage according to the file type; in response to the cross-file consistency verification result being a failure, the model version corresponding to the target delivery file is determined according to the verification result, and the exception type is determined, wherein the exception type includes at least one of the following: missing object, attribute conflict, or inconsistent changed content.
[0089] Among these, "missing document" can be understood as an abnormal result in the document existence check output. Specifically, a missing document refers to a required or specified document in the current delivery material requirements list that was not collected, failed to be collected successfully, or was missed in the collection, making it impossible to retrieve the target document. "Duplicate document" can be understood as an abnormal result in the document existence check. Specifically, it refers to multiple documents that have completely identical core business elements such as object unique identifiers, file names, and material types. Anomaly information can be understood as a collection of information generated when a check item fails verification, recording the anomaly type and related details.
[0090] File corruption can be understood as an abnormal state identified during file content integrity verification. Specifically, file corruption indicates that the internal data of a file has been damaged. File format errors can be understood as an abnormal state identified during file format verification. Specifically, file format errors indicate that the actual internal data format of a file does not meet delivery constraints. File naming non-compliance can be understood as an abnormal state identified during file naming verification. Specifically, non-compliance with naming conventions indicates that the filename of the target delivery file does not meet the naming configuration rule constraints.
[0091] A renaming operation can be understood as a rectification operation that modifies the name of the target delivery file according to the delivery file naming configuration rules. Anomaly types can be understood as category identifiers that classify non-compliance issues identified during the file verification process. Missing objects can be understood as an abnormal state identified during file content or cross-file consistency checks. Specifically, missing objects refer to the absence of relevant identifiers and attribute information for a business object. Attribute conflicts can be understood as contradictions in the attribute information recorded for the same business object in multiple related files. Inconsistent change content can be understood as inconsistent change information for the same business object recorded in multiple related files.
[0092] In one embodiment, if the file existence check results in a missing or duplicate file, all subsequent check steps are terminated, and packaging-related operations are no longer performed. Information such as the anomaly type, the target deliverable file to which the anomaly belongs, and the anomaly details are extracted, assembled into an anomaly message, output, and the current deliverable packaging process is aborted.
[0093] In one embodiment, if the file content integrity verification result indicates that the file is corrupted or has an incorrect format, all subsequent verification steps are terminated, and packaging-related operations are no longer performed. Information such as the anomaly type, the target delivery file to which the anomaly belongs, and the anomaly details are extracted from the verification. This information is then assembled into an anomaly message, which is output, and the current delivery packaging process is terminated.
[0094] In one embodiment, if the file name verification result is determined to be non-compliant, the non-compliant target delivery file is automatically renamed according to the delivery file naming configuration rules, and the renamed target delivery file is written to the delivery directory for categorized storage according to file type.
[0095] In one embodiment, if the cross-file consistency check fails, key fields in the target delivery file are read to determine the corresponding model version. The anomaly type is then determined based on the issues discovered during the check.
[0096] In one embodiment, file existence verification, file format verification, file naming verification, and file content integrity verification are initiated sequentially according to a preset hierarchical order, and cross-file consistency verification is performed in multi-file scenarios; the verification status of each sub-verification item is collected, and the verification result corresponding to the target delivery file is generated.
[0097] In one embodiment, if the verification result of the target delivery file meets the preset packaging conditions, the target delivery file is written to the delivery directory according to the file type, including: parsing the verification result of the target delivery file to determine whether the preset packaging conditions are met; if the verification is qualified, obtaining the file type of the target delivery file and matching the corresponding directory path under the delivery directory; and writing the target delivery file to the matched subdirectory in the delivery directory.
[0098] As an optional technical solution of this invention, after obtaining the verification result of the target delivery document, the method further includes: classifying the verification result according to a preset severity level to obtain a classification result, performing a response operation corresponding to the classification result and outputting a verification report, wherein the preset severity level includes at least one of the following: blocking level, warning level, and prompt level.
[0099] The preset severity level can be understood as a predefined hierarchical identifier representing the degree of impact of a verification anomaly. Specifically, the preset severity levels include, but are not limited to, blocking level, warning level, and alert level. The hierarchical determination can be understood as the process of determining the severity level of a verification anomaly based on the preset severity level and anomaly information. Furthermore, the hierarchical determination result can be understood as the conclusion information obtained after performing the hierarchical determination based on the preset severity level and anomaly information.
[0100] A response operation can be understood as a business action taken in response to a verification anomaly. A verification report can be understood as a report document summarizing all verification conclusions, anomaly information, and handling records of the delivered documents. A blocking level can be understood as the highest level among the preset severity levels. A warning level can be understood as the anomaly level among the preset severity levels. A notification level can be understood as the anomaly level among the preset severity levels. Specifically, a notification level indicates that the problem found during verification only provides a notification-like message.
[0101] In one embodiment, the verification results are classified and judged according to a preset severity level to obtain a classification judgment result, including: retrieving the verification results, classifying and judging according to the preset severity level configuration rules and the abnormal information, determining the severity level corresponding to each abnormality, summarizing the judgment conclusions, and obtaining the classification judgment result.
[0102] In one embodiment, executing the response operation corresponding to the classification judgment result and outputting a verification report includes: reading the classification judgment result, matching the corresponding response operation and executing it; summarizing the verification conclusions, anomaly information, severity levels, and response operation records of all verification items; integrating the above information to generate a verification report and outputting the verification report.
[0103] In one embodiment, calculating a file digest value for each target delivery file in the delivery directory includes: traversing the target delivery files in the delivery directory, reading the binary data of each file one by one, calculating the corresponding file digest value according to a preset verification algorithm, and obtaining a set of file digest values for all target delivery files.
[0104] In one embodiment, the target delivery file in the delivery directory is read, the binary content of the file is obtained, and the MD5 hash algorithm is called to perform a operation on the binary data of the file to generate a 128-bit character sequence as the file digest value of the target delivery file.
[0105] In one embodiment, the target delivery file in the delivery directory is read, the binary content of the file is obtained, and the SHA1 hash algorithm is called to perform operations on the binary data of the file to generate a 160-bit character sequence as the file digest value of the target delivery file.
[0106] In one embodiment, the target delivery file in the delivery directory is read, the binary content of the file is obtained, and the SHA256 hash algorithm is called to perform operations on the binary data of the file to generate a 256-bit character sequence as the file digest value of the target delivery file.
[0107] In one embodiment, the target delivery file in the delivery directory is read, the binary content of the file is obtained, and the SHA512 hash algorithm is called to perform operations on the binary data of the file to generate a 512-bit character sequence as the file digest value of the target delivery file.
[0108] In one embodiment, determining a delivery document list based on the target delivery document and its corresponding document digest value includes: establishing a one-to-one mapping relationship between each target delivery document and its corresponding document digest value, and combining them to generate a single list item. All items are then summarized and formatted to generate a delivery document list containing document information and digest values.
[0109] S207. Based on the storage path rules of the preset data delivery rule library, package the delivery file list and the target delivery file into a compressed file package, and generate a delivery package identifier corresponding to the compressed file package according to the delivery file naming configuration rules of the preset data delivery rule library.
[0110] Storage path rules can be understood as path configuration constraint rules defined in the preset data delivery rule library. File archives can be understood as compressed files formed by packaging and encapsulating validated target delivery files. Specifically, file archives are used for the unified archiving and distribution of deliverables. Delivery file naming configuration rules can be understood as a set of naming constraint rules in the preset data delivery rule library. Specifically, delivery file naming configuration rules define the overall structure of the target delivery file name, its constituent fields, field names, field formats, and field value rules. Delivery package identifiers can be understood as unique identifiers used to identify delivery package packages.
[0111] In one embodiment, packaging the delivery file list and the target delivery file into a compressed file package according to the storage path rules of the preset data delivery rule base includes: retrieving the storage path rules of the preset data delivery rule base, reading the delivery file list and matching the corresponding target delivery file; constructing a directory structure according to the storage path rules, placing the target delivery file into the corresponding directory; and compressing and packaging all files in the directory to generate a compressed file package.
[0112] As an optional technical solution in this embodiment of the invention, the file digest value of the target delivery file in the file compressed package is recalculated; the recalculated file digest value is compared with the file digest value of the corresponding target delivery file in the delivery file list; if the comparison results are consistent, a verification result that the compressed package has not been modified is output, and the compressed package is archived as a trusted delivery package; if the comparison results are inconsistent, an abnormal message that the compressed package has been modified is output, the archive of the compressed package as a trusted delivery package is prohibited, and an abnormal prompt message is generated.
[0113] In this context, a trusted delivery package can be understood as a compressed delivery package with a delivery package identifier, generated after all verification items have passed. Anomaly messages can be understood as a collection of explanatory messages generated during file verification.
[0114] In one embodiment, recalculating the file digest value for the target delivery file within the compressed file package includes: decompressing the compressed file package and extracting the target delivery file; reading the binary data of the target delivery file; and calculating the file digest value by invoking a preset digest algorithm.
[0115] In one embodiment, comparing the recalculated file digest value with the file digest value of the corresponding target delivery document in the delivery document list includes: retrieving the baseline file digest value of the corresponding target delivery document in the delivery document list, and comparing the recalculated file digest value with the baseline file digest value item by item.
[0116] In one embodiment, if the comparison results are consistent, a verification result indicating that the compressed package has not been modified is output, and the compressed package is archived as a trusted delivery package. This includes: determining that the comparison results of the two sets of file digest values are consistent, outputting a verification result indicating that the compressed package has not been modified, identifying the compressed package as a trusted delivery package, performing an archiving operation, saving the trusted delivery package, and recording the archiving information.
[0117] In one embodiment, if the comparison results are inconsistent, an exception message indicating that the compressed package has been modified is output, and the compressed package is prohibited from being archived as a trusted delivery package. An exception message is generated, including: determining that the file digest value comparison results are inconsistent, outputting an exception message indicating that the compressed package has been modified, and prohibiting the archive of the compressed package as a trusted delivery package. The exception type, associated file, and exception details are assembled, an exception message is generated, recorded in the verification report, and the archiving process is interrupted.
[0118] In one embodiment, generating a delivery package identifier corresponding to the compressed file according to the delivery file naming configuration rules of the preset data delivery rule library includes: extracting the business object and version information corresponding to the compressed file according to the delivery file naming configuration rules of the preset data delivery rule library; assembling the information according to the field requirements of the naming configuration rules; and generating the delivery package identifier.
[0119] The technical solution of this invention obtains delivery task information and reads metadata change information associated with the delivery task information based on the project identifier and model version. It matches the delivery task information with delivery rule objects in a preset data delivery rule library to obtain a set of delivery rule objects that meet the current scenario. Based on the metadata change information and the set of delivery rule objects, it outputs a list of delivery material requirements and determines the material acquisition method corresponding to the object to be changed in the metadata change information. Based on the material acquisition method, it obtains candidate files from the material source system, determines multiple target delivery files based on filtering and retrieval conditions, stores the target delivery files in the delivery directory according to file type, calculates the summary value of each file, and generates a delivery file list by combining the file and the corresponding summary value. According to the storage path rules of the preset data delivery rule library, it packages the delivery file list and target delivery files into a file compressed package and generates a delivery package identifier corresponding to the compressed file according to the naming configuration rules. This technical solution completes cross-file verification through model version, object unique identifier, and change content, and can identify version and content conflicts between different delivery materials. By automatically following preset rules to execute file naming, directory organization, and compressed package identifier generation, it ensures the uniformity of the delivery format. Simultaneously, it records the delivery document version, verification rules, anomaly handling records, document summaries, and packaging-related information, enabling the entire delivery process to be searchable and verifiable. Before formal delivery, it automatically identifies various anomalies such as missing objects, format errors, and content inconsistencies, proactively intercepting quality defects in the delivery package and thus reducing the workload of repeated rectification and modification caused by substandard delivery package quality.
[0120] Example 3 Figure 3 This is a schematic diagram of a packaging device for a data delivery package provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a delivery task information acquisition module 301, a metadata change information acquisition module 302, a delivery rule object set determination module 303, a material acquisition method determination module 304, a target delivery document determination module 305, and a packaging information generation module 306.
[0121] The system includes: a delivery task information acquisition module 301, used to acquire delivery task information, which includes at least a project identifier, model version, and change type; a metadata change information acquisition module 302, used to read metadata change information associated with the delivery task information based on the project identifier and model version, which includes at least the object of the current change, the object identifier of the object of the current change, and the change type; a delivery rule object set determination module 303, used to match the delivery task information with delivery rule objects in a preset data delivery rule library to obtain a set of delivery rule objects that meet the current scenario; and a material acquisition method determination module 304, used to determine the material acquisition method based on the metadata change information. The data change information and the set of delivery rule objects are used to output a list of material requirements for this delivery, and to determine the material acquisition method corresponding to the object to be changed in the metadata change information; the target delivery file determination module 305 is used to obtain candidate files from the material source system based on the material acquisition method, construct filtering and retrieval conditions based on the project identifier, the object identifier, the model version and the file type of the material requirements list for this delivery, and determine multiple target delivery files based on the filtering and retrieval conditions; the packaging information generation module 306 is used to generate packaging information corresponding to the delivery task information based on the multiple target delivery files, and the packaging information includes a file compressed package and its corresponding delivery package identifier.
[0122] The technical solution of this invention obtains delivery task information and reads metadata change information associated with the delivery task information based on the project identifier and model version. It matches the delivery task information with delivery rule objects in a preset data delivery rule base to obtain a set of delivery rule objects that meet the current scenario. Based on the metadata change information and the set of delivery rule objects, it outputs a material requirement list for this delivery and determines the material acquisition method corresponding to the object to be changed in the metadata change information. Based on the material acquisition method, it obtains candidate files from the material source system, determines multiple target delivery files based on filtering and retrieval conditions, and generates packaging information corresponding to the delivery task information based on the multiple target delivery files. This technical solution can automatically generate a material requirement list by combining the delivery scenario and business change type, ensuring the completeness of essential delivery documents. It can automatically realize material identification, file collection, and compression packaging, reducing manual intervention, mitigating human error and material omissions, ensuring the standardization of delivery materials, and effectively improving data delivery efficiency and quality.
[0123] Optionally, the packaging information generation module 306 is used to write the target delivery file into the delivery directory according to the file type, calculate the file digest value for each target delivery file in the delivery directory, determine the delivery file list based on the target delivery file and the corresponding file digest value, package the delivery file list and the target delivery file into a file compressed package according to the storage path rules of the preset data delivery rule base, and generate the delivery package identifier corresponding to the file compressed package according to the delivery file naming configuration rules of the preset data delivery rule base.
[0124] Optionally, the packaging information generation module 306 is used to perform multi-level verification on each of the target delivery files to obtain the verification result of the target delivery file. The multi-level verification includes file existence verification, file format verification, file naming verification, file content integrity verification, and cross-file consistency verification in sequence. If the verification result of the target delivery file meets the preset packaging conditions, the target delivery file is written to the delivery directory according to the file type.
[0125] Optionally, the packaging information generation module 306 is used to classify the verification results according to a preset severity level, obtain a classification judgment result, execute a response operation corresponding to the classification judgment result, and output a verification report, wherein the preset severity level includes at least one of the following: blocking level, warning level, and prompt level.
[0126] Optionally, the packaging information generation module 306 is used to compare all the target delivery documents based on the material requirement list for this delivery to obtain the verification result of the document existence check; if the verification result of the document existence check is successful, the module performs file extension verification, file size verification, and file format verification on each target delivery document sequentially based on the material type configuration rules in the preset data delivery rule library to obtain the verification result of the file naming check; if the verification result of the file naming check is successful, the module parses the filename of each target delivery document based on the delivery file naming configuration rules in the preset data delivery rule library and verifies the format of each field of the filename; if the file... If the validation results for each field format are passed, the key content in the delivery file is parsed to check the completeness of required chapters, key fields, and object information. If the required chapters, key fields, and object information are all complete, the primary key is determined based on the object's unique identifier, a cross-file association index is constructed, and the associated objects are located based on the cross-file association index. The corresponding business objects in the physical model file and database script are found based on the object's unique identifier. Furthermore, the newly added fields in the metadata change list and the field definitions of the associated objects are compared one by one to verify the consistency of field names, data types, field lengths, and change actions, thereby obtaining the validation result of the cross-file consistency check.
[0127] Optionally, the packaging information generation module 306 is further configured to include at least one of the following: in response to the file existence check result being a missing or duplicate file, stop the packaging operation and output an exception message; in response to the target delivery file having file corruption or a file format error, stop the packaging operation and output an exception message; in response to the file naming check result being a file name not conforming to the specification, perform a renaming operation on the target delivery file with non-standard file name according to the delivery file naming configuration rules, and write the renamed target delivery file into the delivery directory for classification and storage according to the file type; in response to the cross-file consistency check result being a failure, determine the model version corresponding to the target delivery file based on the check result, and determine the exception type, wherein the exception type includes at least one of the following: missing object, attribute conflict, or inconsistent changed content.
[0128] Optionally, the packaging information generation module 306 is used to generate the key content, including the physical model, the metadata change list, the data accountability matrix, and the database script. The physical model checks whether it contains tables, fields, primary keys, and index information; the metadata change list checks whether it contains the changed object, change type, content before the change, and content after the change; the data accountability matrix checks whether it contains the responsible entity and responsibility type; and the database script checks whether it contains creation or modification statements corresponding to the changed content.
[0129] Optionally, the packaging information generation module 306 is used to package the delivery file list and the target delivery file into a compressed file package according to the storage path rules of the preset data delivery rule base, and further includes: recalculating the file digest value of the target delivery file in the compressed file package; comparing the recalculated file digest value with the file digest value of the corresponding target delivery file in the delivery file list; if the comparison result is consistent, outputting a verification result that the compressed package has not been modified, and archiving the compressed package as a trusted delivery package; if the comparison result is inconsistent, outputting an exception message that the compressed package has been modified, prohibiting the archive of the compressed package as a trusted delivery package, and generating an exception prompt message.
[0130] Optionally, the delivery rule object set determination module 303 is used to perform structured encapsulation of delivery constraint information to generate executable delivery rule objects, configure corresponding applicable conditions and execution priorities based on the delivery rule objects, wherein the delivery constraint information includes at least one of the following: delivery scenario, project type, model change type, delivery stage, required files, optional files, file format, naming rules, directory rules and verification requirements; and construct the preset data delivery rule library based on the delivery rule objects, the applicable conditions and the execution priorities.
[0131] The data delivery package packaging device provided in the embodiments of the present invention can execute the data delivery package packaging method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0132] Example 4 Figure 4This is a schematic diagram of the structure of an electronic device that implements the data delivery package packaging method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0133] like Figure 4 As shown, the electronic device 400 includes at least one processor 401 and a memory, such as a read-only memory (ROM) 402 or a random access memory (RAM) 403, communicatively connected to the at least one processor 401. The memory stores computer programs executable by the at least one processor. The processor 401 can perform various appropriate actions and processes based on the computer program stored in the ROM 402 or loaded into the RAM 403 from storage unit 408. The RAM 403 may also store various programs and data required for the operation of the electronic device 400. The processor 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0134] Multiple components in electronic device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of displays, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows electronic device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0135] Processor 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 401 performs the various methods and processes described above, such as the method of packaging data delivery packages.
[0136] In some embodiments, the data delivery packet packaging method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by processor 401, one or more steps of the data delivery packet packaging method described above may be performed. Alternatively, in other embodiments, processor 401 may be configured to perform the data delivery packet packaging method by any other suitable means (e.g., by means of firmware).
[0137] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0138] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0139] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0140] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0141] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0142] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0143] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 409, or installed from storage unit 408, or installed from ROM 402. When the computer program is executed by processor 401, it performs the functions defined in the methods of the embodiments of the present invention.
[0144] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0145] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for packaging a data delivery package, characterized in that, include: Obtain delivery task information, which includes at least the project identifier, model version, and change type; Based on the project identifier and the model version, read the metadata change information associated with the delivery task information. The metadata change information includes at least the object of the change, the object identifier of the object of the change, and the change type. The delivery task information is matched with delivery rule objects in the preset data delivery rule base to obtain a set of delivery rule objects that meet the current scenario. Based on the metadata change information and the set of delivery rule objects, output the material requirement list for this delivery and determine the material acquisition method corresponding to the object to be changed in the metadata change information; Candidate files are obtained from the material source system based on the material acquisition method. Screening and retrieval conditions are constructed based on the project identifier, the object identifier, the model version, and the file type of the material requirements list for this delivery. Multiple target delivery files are determined based on the screening and retrieval conditions. Based on the multiple target delivery files, package information corresponding to the delivery task information is generated, and the package information includes a file compressed package and its corresponding delivery package identifier.
2. The data delivery package packaging method according to claim 1, characterized in that, The step of generating packaging information corresponding to the delivery task information based on multiple target delivery files includes: The target delivery file is written into the delivery directory according to the file type. A file digest value is calculated for each target delivery file in the delivery directory. A delivery file list is determined based on the target delivery file and the corresponding file digest value. According to the storage path rules of the preset data delivery rule base, the delivery file list and the target delivery file are packaged into a file compressed package, and a delivery package identifier corresponding to the file compressed package is generated according to the delivery file naming configuration rules of the preset data delivery rule base.
3. The data delivery package packaging method according to claim 2, characterized in that, The step of writing the target delivery file to the delivery directory according to the file type includes: Perform multi-level verification on each of the target delivery files to obtain the verification result of the target delivery file. The multi-level verification includes file existence verification, file format verification, file naming verification, file content integrity verification, and cross-file consistency verification in sequence. If the verification result of the target delivery file meets the preset packaging conditions, the target delivery file is written to the delivery directory according to the file type.
4. The data delivery package packaging method according to claim 3, characterized in that, After obtaining the verification result of the target delivery document, the process also includes: The verification results are classified according to a preset severity level to obtain a classification result. The corresponding response operation is executed and a verification report is output. The preset severity level includes at least one of the following: blocking level, warning level, and prompt level.
5. The method for packaging a data delivery package according to claim 2, characterized in that, Perform multi-level validation on each of the target delivery files, including: Based on the material requirements list for this delivery, all the target delivery documents are compared to obtain the verification results of the document existence verification. If the file existence verification result is successful, file extension verification, file size verification, and file format verification are performed sequentially on each target delivery file based on the material type configuration rules in the preset data delivery rule base to obtain the file naming verification result. If the file name verification result is successful, the file name of each target delivery file is parsed based on the delivery file name configuration rules in the preset data delivery rule library, and the format of each field of the file name is verified. If the validation results of the format of each field of the file name are passed, parse the key content of the delivery file and check whether the required chapters, key fields and object information are complete; If the required chapters, key fields, and object information are all complete, the primary key is determined based on the object's unique identifier, a cross-file association index is constructed, the associated objects are located based on the cross-file association index, the corresponding business objects in the physical model file and database script are found according to the object's unique identifier, and the newly added fields in the metadata change list are compared one by one with the field definitions of the associated objects to verify the consistency of field names, data types, field lengths, and change actions, and to obtain the verification result of the cross-file consistency verification.
6. The method for packaging a data delivery package according to claim 5, characterized in that, It also includes at least one of the following: If the file existence check result is a missing or duplicate file, stop the packaging operation and output an exception message. If the target delivery file is corrupted or has an incorrect file format, the packaging operation is stopped and an error message is output. In response to the file naming verification result indicating that the file name does not conform to the specification, the target delivery file with non-standard file name is renamed according to the delivery file naming configuration rules, and the renamed target delivery file is written into the delivery directory for classification and storage according to the file type; In response to the failure of the cross-file consistency check, the model version corresponding to the target delivery file is determined based on the check result, and the exception type is determined, wherein the exception type includes at least one of the following: missing object, attribute conflict, or inconsistent changed content.
7. The method for packaging a data delivery package according to claim 5, characterized in that, The key content includes the physical model, the metadata change list, the data accountability matrix, and the database script. The physical model checks whether it contains tables, fields, primary keys, and index information. The metadata change list checks whether it contains the changed object, change type, content before the change, and content after the change. The data accountability matrix checks whether it contains the responsible entity and responsibility type. The database script checks whether it contains creation or modification statements corresponding to the changed content.
8. The method for packaging a data delivery package according to claim 2, characterized in that, The step of packaging the delivery file list and the target delivery file into a compressed file package according to the storage path rules of the preset data delivery rule base further includes: Recalculate the file digest value for the target deliverable file within the compressed file package; The recalculated file digest value is compared with the file digest value of the corresponding target delivery document in the delivery document list; If the comparison results are consistent, output the verification result that the compressed package has not been modified, and archive the compressed package as a trusted delivery package; If the comparison results are inconsistent, an error message indicating that the compressed package has been modified will be output, and the compressed package will be prohibited from being archived as a trusted delivery package. An error message will also be generated.
9. The method for packaging a data delivery package according to claim 1, characterized in that, The process of establishing the preset data delivery rule base includes: The delivery constraint information is structured and encapsulated to generate an executable delivery rule object. Based on the delivery rule object, the corresponding applicable conditions and execution priorities are configured. The delivery constraint information includes at least one of the following: delivery scenario, project type, model change type, delivery stage, required files, optional files, file format, naming rules, directory rules, and verification requirements. The preset data delivery rule library is constructed based on the delivery rule object, the applicable conditions, and the execution priority.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the packaging method for a data delivery package according to any one of claims 1-9.
