Method and device for converting heterogeneous form into standardized format document and medium

By using the data conversion engine and heterogeneous data adapter to process heterogeneous form data and generate standardized format documents in a low-code platform, the problem of heterogeneous form data being difficult to convert into standardized format documents is solved, and efficient data sharing and archiving is achieved.

CN119849432AInactive Publication Date: 2025-04-18CHINA TELECOM CLOUD TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411629920.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-04-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In a low-code platform based on the Activiti process engine, heterogeneous form data is difficult to convert into standardized format documents, resulting in difficulty in sharing and archiving, and data leakage and format errors.

Method used

The heterogeneous form data is processed using the data conversion engine and the heterogeneous data adapter, and the processed data is filled into the preset document style template to generate a standardized format document.

Benefits of technology

It effectively avoids the problem of format errors during the conversion process, improves data processing efficiency, simplifies user operations, and improves the convenience of data sharing and archiving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119849432A_ABST
    Figure CN119849432A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of emerging information, in particular to a method and device for converting a heterogeneous form into a standardized format document and a medium. The method is applied to a data conversion engine and comprises the following steps: acquiring heterogeneous form data to be converted; processing the heterogeneous form data by adopting a heterogeneous data adapter to obtain processed data; and filling the processed data into a preset document style template, and generating a standardized format document. According to the method and the device, the heterogeneous data adapter is adopted to process the heterogeneous form data based on the data conversion engine, and the processed data is filled into the preset document style template, so that various format error problems occurring in the conversion process are avoided, and the standardized format document can be automatically output; and the data processing efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of emerging information technology, and in particular to a method, device and medium for converting heterogeneous forms into standardized format documents. Background Art

[0002] In the low-code platform based on the Activiti process engine, users can design a variety of heterogeneous forms for collecting data information by dragging and dropping different types of controls. The data saved in these forms only exists in this system. If people outside the system need to view it, they can only view it by logging into the system. It is difficult to share or archive data in a standardized format. Allowing people outside the system to view the data will lead to security risks such as data leakage. In addition, if some data needs to be archived and saved in the form of paper documents, it is also difficult to achieve. Therefore, it is often necessary to provide a function to convert form data into a standardized format document.

[0003] General data document generation can only convert some basic form elements, such as text, pictures and other data into documents. However, the data on the low-code platform includes various types of complex heterogeneous data such as sub-tables, related forms, calculation formulas, rich text, etc. These data cannot be directly converted into data that is convenient for users to view through the native template engine. Various types of problems will also be encountered during the conversion process, such as format errors and inability to generate usable documents. Summary of the invention

[0004] In view of this, the present invention provides a method, device and medium for converting heterogeneous forms into standardized format documents, so as to solve the problem that format errors are prone to occur when converting heterogeneous data into table conversion format documents in the prior art.

[0005] In a first aspect, the present invention provides a method for converting heterogeneous forms into standardized format documents, which is applied to a data conversion engine. The method includes: obtaining heterogeneous form data to be converted; using a heterogeneous data adapter to process the heterogeneous form data to obtain processed data; filling the processed data into a preset document style template and generating a standardized format document.

[0006] In the present invention, based on the data conversion engine, a heterogeneous data adapter is used to process heterogeneous form data, and the processed data is filled into a preset document style template. This not only avoids various format error problems that occur during the conversion process, but also can automatically output standardized format documents, effectively improving the efficiency of data processing.

[0007] In an optional implementation, a heterogeneous data adapter is used to process heterogeneous form data to obtain processed data, including: using an image control processor to process image data in the heterogeneous form data; using a personnel department control processor to process personnel department data in the heterogeneous form data; using a sub-table control processor to process sub-table data in the heterogeneous form data; using a map control processor to process map data in the heterogeneous form data; using an associated form processor to process associated form data in the heterogeneous form data; using a system control processor to process system control data in the heterogeneous form data.

[0008] In the present invention, different types of sub-processors are used to process different types of data, thereby achieving accurate conversion of the data and avoiding various format error problems that occur during the conversion process.

[0009] In an optional embodiment, before using a data conversion engine to fill the processed data into a preset document style template, the method also includes: determining the document style according to user needs; determining the form data location based on the document style, and filling in the code of the form control at the form data location to obtain a preset document style template.

[0010] In the present invention, by constructing a document style code including a form control code, it is convenient to fill the form data into the corresponding position.

[0011] In an optional implementation, the processed data is filled into a preset document style template and a standardized format document is generated, including: using a document template parser to parse and verify the preset document style template; when the verification passes, converting the preset document style template into structured data; using a data addresser to locate and match the processed data and the form control encoding in the structured data to obtain matched data; using a standardized document generator to convert the matched data into a standardized format document.

[0012] In the present invention, a document template parser is used to parse and verify the preset document style template, and structured data is generated to facilitate data matching and document generation; at the same time, a data addresser is used to perform data matching, and a standardized document generator is used to generate standardized format documents, thereby avoiding the original method of copying and pasting form data into the document, reducing the user's workload, and improving the user's work efficiency and usage experience.

[0013] In an optional implementation, heterogeneous form data, preset document style templates, and standardized format documents are stored in a database of a low-code platform based on the Activiti process engine.

[0014] In an optional implementation, the method further includes: downloading the standardized format document for sharing or archiving.

[0015] In an optional implementation, the method further includes: when the heterogeneous form data to be converted includes multiple data, executing the step of generating a standardized format document based on a sharding technology or a message queue technology.

[0016] In the present invention, through sharding technology or message queue technology, the concurrent execution of multiple users and multiple forms is realized, so that the system can be used in scenarios with a larger number of users, effectively improving the scale of platform use, bringing greater benefits to the platform, and can be used for business system docking of large companies.

[0017] In a second aspect, the present invention provides a device for converting heterogeneous forms into standardized format documents, the device includes a data conversion engine, and the data conversion engine includes: a data acquisition module, used to acquire heterogeneous form data to be converted; a data processing module, used to process the heterogeneous form data using a heterogeneous data adapter to obtain processed data; a conversion module, used to fill the processed data into a preset document style template and generate a standardized format document.

[0018] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of converting heterogeneous forms into standardized format documents according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0019] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for converting heterogeneous forms into standardized format documents according to the first aspect or any corresponding embodiment thereof.

[0020] In a fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute the method of converting heterogeneous forms into standardized format documents according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1is a flow chart of a method for converting heterogeneous forms into standardized format documents according to an embodiment of the present invention;

[0023] Figure 2 is a flowchart of a method for converting another heterogeneous form into a standardized format document according to an embodiment of the present invention;

[0024] Figure 3 is a flowchart of another method for converting heterogeneous forms into standardized format documents according to an embodiment of the present invention;

[0025] Figure 4 is a structural block diagram of an apparatus for converting heterogeneous forms into standardized format documents according to an embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] As mentioned in the background technology, the customized heterogeneous form data designed by the user is difficult to share with other members outside the system, and difficult to archive and save in physical form. In the prior art, when facing the problem of document sharing or archiving, it is necessary to first create a document, design the field style of the form, and then copy the data in the form into the document one by one, save it, and then share or archive the document with the copied data. This makes the sharing or archiving process more cumbersome.

[0028] In view of this, the present invention provides a method for converting heterogeneous forms into standardized format documents. In this method, users only need to simply design a document template to convert the data that needs to be shared or saved in the heterogeneous forms into standardized format documents. And by converting and adapting various types of heterogeneous data, various format errors that occur during the conversion process are avoided, and the usability of the system is effectively improved. Through this method, users can conveniently share and archive the form data of the system, effectively improving the efficiency of data processing.

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0030] According to an embodiment of the present invention, a method embodiment for converting heterogeneous forms into standardized format documents is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0031] In this embodiment, a method for converting heterogeneous forms into standardized format documents is provided, which is applied to a data conversion engine. Figure 1 is a flow chart of a method for converting heterogeneous forms into standardized format documents according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0032] Step S101, obtain heterogeneous form data to be converted. Specifically, heterogeneous form data refers to form data from different sources and with different structures and formats. In this embodiment, the heterogeneous form data to be converted can be data that needs to be shared or archived in a low-code platform based on the Activiti process engine, that is, the heterogeneous form data to be converted can be obtained from the database of the low-code platform based on the Activiti process engine. When obtaining the heterogeneous form data, the one-key export function of the platform can be used to read the corresponding heterogeneous form data from the database.

[0033] The heterogeneous form data includes but is not limited to text, pictures, rich text, sub-tables, associated forms and other data. Text refers to ordinary text data, pictures refer to image files, rich text refers to text data that may contain formatting information, such as font style, color and links, etc., sub-tables refer to nested table data, and associated forms refer to data associated with other forms.

[0034] Step S102, using a heterogeneous data adapter to process the heterogeneous form data to obtain processed data. Specifically, a heterogeneous data adapter can be set in the data conversion engine to achieve automatic format conversion of the heterogeneous form data. Among them, the heterogeneous data adapter can be used for data format conversion, that is, converting one data format into another data format. In practical applications, corresponding data adapters can be used to perform data conversion for different data types in the heterogeneous form data.

[0035] Step S103, fill the processed data into the preset document style template, and generate a standardized format document. Specifically, the preset document style template can be a template formed after the document style is designed according to user needs, wherein the document style includes the field style design of the form, etc. Thus, based on the preset document sample template, the processed data can be matched with the field style of the form in the template, and the matched data can be directly converted into a standardized format document. In addition, the filling process and the conversion of the standardized format document can be automatically implemented by the data conversion engine, that is, the data conversion engine realizes the matching of data and the output of the standardized format document.

[0036] The method for converting heterogeneous forms into standardized format documents provided in an embodiment of the present invention processes heterogeneous form data using a heterogeneous data adapter based on a data conversion engine, and fills the processed data into a preset document style template, thereby not only avoiding various format error problems that occur during the conversion process, but also automatically outputting standardized format documents, effectively improving the efficiency of data processing.

[0037] In actual applications, through this custom data conversion engine, users only need to design a document template to convert the data that needs to be shared or saved in heterogeneous forms into a standardized format document. Through this conversion engine, users can easily share and archive the system's form data, effectively improving the efficiency of data processing.

[0038] In this embodiment, a method for converting heterogeneous forms into standardized format documents is provided, and the process includes the following steps:

[0039] Step S201, determine the document style according to user needs; determine the form data location based on the document style, and fill in the code of the form control at the form data location to obtain a preset document style template. Specifically, after determining the document style according to user needs, it is necessary to plan the location of the form data in the document. For example, based on the document style, some data may be located at the top of the document, while other data may be located in the middle or bottom. Then, according to these positions, the codes corresponding to different controls in the heterogeneous form data are filled in the corresponding positions for subsequent matching with the corresponding data. In addition, the obtained preset document style template can be imported into the database of the low-code platform for storage.

[0040] Step S202: Obtain the heterogeneous form data to be converted. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0041] Step S203, use a heterogeneous data adapter to process the heterogeneous form data to obtain processed data. In this embodiment, the heterogeneous form data can be generated by the user in a low-code platform based on the Activiti process engine by dragging different types of controls. Therefore, sub-processors corresponding to different control types can be set in the heterogeneous data adapter, and the sub-processors process different types of controls. Among them, the sub-processor can be determined according to the control type contained in the heterogeneous form data. In this embodiment, the heterogeneous form data includes sub-processors such as image control processors, personnel department control processors, sub-table control processors, map control processors, associated form processors, and system control processors.

[0042] When using a heterogeneous data adapter to process heterogeneous form data, different sub-processors can be set in advance according to the control types of the heterogeneous form data, and then an adapter class is created that calls different sub-processors for different types of control data according to the control types in the heterogeneous form data.

[0043] Specifically, the above step S203 includes:

[0044] Step S2031: Use an image control processor to process the image data in the heterogeneous form data.

[0045] Step S2032: Use the personnel department control processor to process the personnel department data in the heterogeneous form data.

[0046] Step S2033: Use a sub-table control processor to process the sub-table data in the heterogeneous form data.

[0047] Step S2034: using a map control processor to process the map data in the heterogeneous form data.

[0048] Step S2035: Use the associated form processor to process the associated form data in the heterogeneous form data.

[0049] Step S2036: Use the system control processor to process the system control data in the heterogeneous form data.

[0050] When the above sub-processor is used to process data, the data needs to be converted according to the type of the corresponding data, so as to achieve formatting or standardization of the data, so that the data can be displayed normally in a standardized format document.

[0051] Step S204, filling the processed data into a preset document style template and generating a standardized format document;

[0052] Specifically, the above step S204 includes:

[0053] Step S2041: Use a document template parser to parse and verify the preset document style template.

[0054] Step S2042: after verification, convert the preset document style template into structured data.

[0055] Specifically, when it is necessary to convert heterogeneous form data, the pre-generated document style template can be read and then input into the document template parser for parsing. The parser will verify the legality of the document template and analyze the document content, converting the document format content into structured data, that is, converting the preset document style template into an operable object or data structure for subsequent data matching and document generation. Among them, the document template parser can use a parsing tool that can parse documents of corresponding formats. When analyzing the document content, the form control encoding filled therein can be analyzed so as to match the subsequent and processed heterogeneous form data.

[0056] Step S2043, using a data addresser to locate and match the processed data and the form control codes in the structured data to obtain matched data. Specifically, for the data processed by the heterogeneous data adapter and the structured data parsed by the document template parser, they are input into the data addresser. When the data addresser performs location matching, it can first define the mapping relationship between the processed data and the form control codes in the structured data, and then obtain data from the processed data and fill the obtained data into the position of the corresponding form control code according to the mapping relationship, so as to obtain matched data.

[0057] Step S2044, using a standardized document generator to convert the matched data into a standardized format document. Specifically, the structured data that has been matched will enter the standardized document generator, convert the structured data into a standardized format document, and provide it to the user for downloading. Among them, the format requirements for the standardized format document can be defined in advance in the standardized document generator to ensure that the generated standardized format document meets specific standards and specifications. The standardized format document in this embodiment can be a universal standard formatted document that can be shared and viewed across platforms and systems, such as doc, docx formats, etc.

[0058] In this embodiment, a method for converting heterogeneous forms into standardized format documents is provided, and the method includes the following steps:

[0059] Step S301, obtain the heterogeneous form data to be converted; see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0060] Step S302: Use a heterogeneous data adapter to process the heterogeneous form data to obtain processed data; see Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0061] Step S303: Fill the processed data into a preset document style template and generate a standardized format document; see Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0062] Step S304, download the standardized format document for sharing or archiving. Specifically, the generated standardized format document can be saved in the database of the low-code platform. When the user needs to share or archive it, it can be directly downloaded from the database for sharing or archiving.

[0063] In an optional embodiment, when there are multiple heterogeneous form data to be converted, the step of generating a standardized format document is performed based on the sharding technology or the message queue technology. Specifically, when there are multiple heterogeneous form data to be converted, the standardized format document can be generated based on the sharding technology, or the message queue technology can be used to generate a standardized format document. Among them, when the sharding technology is used, multiple heterogeneous form data to be converted can be distributed on multiple servers, and each server executes the above steps S301 to S303 to generate a corresponding standardized format document. When the message queue technology is used, multiple heterogeneous form data to be converted can be placed in a message queue, and the data conversion engine sequentially obtains the heterogeneous form data to be converted from the message queue, and executes the steps S301 to S303 to generate a corresponding standardized format document.

[0064] Therefore, through sharding technology and message queue technology, the present invention can support data conversion and export operations of more than tens of millions, and support concurrent execution of multiple users and multiple forms, so that the system can be used in scenarios with a larger number of users, effectively improving the scale of platform use, bringing greater benefits to the platform, and can be used for docking with the business systems of large companies.

[0065] As a specific application example of the embodiment of the present invention, Figure 2 As shown, the method for converting the heterogeneous forms into a standardized format document can be implemented according to the following process:

[0066] Step 11: The user designs the document style according to his / her needs, and fills in the code of the corresponding form control where the form data needs to be displayed.

[0067] Step 12: Import the designed document style template into the system and save it on the form design page.

[0068] Step 13, on the exported form page, click the Export button, the data conversion engine will automatically fill the data in the form into the corresponding form control code position, and generate a document in a standardized format for the user to download.

[0069] Step 14: The user shares or archives the downloaded standardized format document.

[0070] In an alternative embodiment, Figure 3 As shown, the data conversion engine can process data according to the following process:

[0071] Step 21, after the user clicks on one-key export, the corresponding form data and document style template are read from the database respectively;

[0072] Step 22, the read form data enters the heterogeneous data adapter for processing. The heterogeneous data adapter includes sub-processors such as an image control processor, a personnel department control processor, a sub-table control processor, a map control processor, an associated form processor, and a system control processor, which process and format various special data in the form respectively so that they can be displayed normally in a standardized format document;

[0073] Step 23, the read document style template enters the document template parser for parsing, which verifies the legality of the document template and analyzes the document content, converting the document format content into structured data for subsequent data matching and document generation.

[0074] Step 24, the form data processed by the heterogeneous data adapter and the structured data processed by the document template parser enter the data addresser to match the form data with the set position of the document template.

[0075] Step 25, the matched structured data will enter the standardized document generator, convert the structured data into a document in a standardized format, and provide it to the user for downloading.

[0076] By implementing the present invention, the low-code platform based on the Activiti process engine can support users to customize document templates, and realize one-click export of forms containing various types of heterogeneous data into standardized format documents. Users only need to simply design a document template to convert the data that needs to be shared or saved in heterogeneous forms into standardized format documents, replacing the original method of copying and pasting form data into documents, reducing the user's workload, improving the user's work efficiency and usage experience, facilitating data interaction in various scenarios, and suitable for using the platform's functions on public clouds.

[0077] In this embodiment, a device for converting heterogeneous forms into standardized format documents is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0078] This embodiment provides a device for converting heterogeneous forms into standardized format documents, such as Figure 4 As shown, the device includes a data conversion engine, and the data conversion engine includes:

[0079] The data acquisition module 41 is used to acquire the heterogeneous form data to be converted;

[0080] The data processing module 42 is used to process the heterogeneous form data using a heterogeneous data adapter to obtain processed data;

[0081] The conversion module 43 is used to fill the processed data into a preset document style template and generate a standardized format document.

[0082] In an optional implementation, the data processing module is specifically used to: use an image control processor to process image data in heterogeneous form data; use a personnel department control processor to process personnel department data in heterogeneous form data; use a sub-table control processor to process sub-table data in heterogeneous form data; use a map control processor to process map data in heterogeneous form data; use an associated form processor to process associated form data in heterogeneous form data; use a system control processor to process system control data in heterogeneous form data.

[0083] In an optional embodiment, the device also includes: a template determination module, which is used to determine the document style according to user needs; determine the form data location based on the document style, and fill in the code of the form control at the form data location to obtain a preset document style template.

[0084] In an optional embodiment, the conversion module is specifically used to: use a document template parser to parse and verify a preset document style template; when the verification passes, convert the preset document style template into structured data; use a data addresser to locate and match the processed data and the form control encoding in the structured data to obtain matched data; use a standardized document generator to convert the matched data into a standardized format document.

[0085] In an optional implementation, heterogeneous form data, preset document style templates, and standardized format documents are stored in a database of a low-code platform based on the Activiti process engine.

[0086] In an optional implementation, the device further includes: a download processing module, which is used to download documents in a standardized format for sharing or archiving operations.

[0087] In an optional embodiment, the device further includes: a concurrent module, which is used to execute the step of generating a standardized format document based on a sharding technology or a message queue technology when the heterogeneous form data to be converted includes multiple ones.

[0088] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0089] The embodiment of the present invention also provides a computer device having the above Figure 4 The device shown converts heterogeneous forms into documents in a standardized format.

[0090] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.

[0091] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0092] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0093] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0094] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0095] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0096] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0097] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0098] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for converting heterogeneous forms into standardized format documents, characterized in that: Applied to a data conversion engine, the method comprises: Get the heterogeneous form data to be converted; Using a heterogeneous data adapter to process the heterogeneous form data to obtain processed data; The processed data is filled into a preset document style template, and a standardized format document is generated.

2. The method according to claim 1, characterized in that: The heterogeneous form data is processed using a heterogeneous data adapter to obtain processed data, including: Use the image control processor to process the image data in the heterogeneous form data; The personnel department control processor is used to process the personnel department data in the heterogeneous form data; Use the sub-table control processor to process the sub-table data in the heterogeneous form data; Use map control processor to process map data in heterogeneous form data; Adopting the associated form processor to process the associated form data in the heterogeneous form data; A system control processor is used to process the system control data in the heterogeneous form data.

3. The method according to claim 1, characterized in that Before using the data conversion engine to fill the processed data into a preset document style template, the method further includes: Determine the document style based on user needs; The form data position is determined based on the document style, and the code of the form control is filled in the form data position to obtain a preset document style template.

4. The method according to claim 3, characterized in that: Fill the processed data into a preset document style template and generate a standardized format document, including: Using a document template parser to parse and verify the preset document style template; When the verification is passed, the preset document style template is converted into structured data; Using a data addresser to locate and match the processed data and the form control codes in the structured data to obtain matched data; A standardized document generator is used to convert the matched data into a standardized format document.

5. The method according to claim 1, characterized in that The heterogeneous form data, preset document style templates and the standardized format documents are stored in the database of a low-code platform based on the Activiti process engine.

6. The method according to claim 1, characterized in that The method further comprises: Download the standardized format document for sharing or archiving.

7. The method according to claim 1, characterized in that The method further comprises: When the heterogeneous form data to be converted includes multiple data, the step of generating a standardized format document is performed based on the sharding technology or the message queue technology.

8. A device for converting heterogeneous forms into standardized format documents, characterized in that: The device includes a data conversion engine, and the data conversion engine includes: A data acquisition module is used to acquire heterogeneous form data to be converted; A data processing module, used to process the heterogeneous form data using a heterogeneous data adapter to obtain processed data; The conversion module is used to fill the processed data into a preset document style template and generate a standardized format document.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for converting heterogeneous forms into standardized format documents as described in any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for converting heterogeneous forms into standardized format documents according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and system for quickly generating files in open formats

    CN102103573A

  • Method and system for converting structural data into layout form file

    CN105488052A

  • Document generation method and device, electronic equipment and nonvolatile storage medium

    CN115481615A

  • Document format conversion method and device, storage medium and electronic equipment

    CN116795780A