A heterogeneous system adaptation method, device and medium based on business data
Through the heterogeneous system adaptation method based on business data, the mapping relationship library and interface maintenance database is used to solve the problem that heterogeneous system integration requires the development of multiple API interfaces in the existing technology, and efficient adaptation and integration of heterogeneous systems are achieved, reducing costs.
Patent Information
- Application Number
- CN202310364426.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2043-03-31
AI Technical Summary
Each heterogeneous system in the prior art requires an API interface for each integrated system, which cannot be reused and has high development costs, which cannot meet the needs of enterprise users.
A heterogeneous system adaptation method based on business data is provided. By determining the system information and adaptation requests of the heterogeneous system to be adapted, the request information corresponding to the adaptation request is obtained, the pre-set mapping relationship library and interface maintenance database is used to generate adaptation data templates and interface services, and the adaptation of heterogeneous systems is realized.
The adaptation between different systems can be achieved without developing multiple service interfaces, reducing integration costs, improving integration convenience and efficiency, and meeting the needs of enterprise users.
Smart Images

Figure CN116383293B_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of computer technology, and in particular to a heterogeneous system adaptation method, device and medium based on business data. Background Art
[0002] With the rapid development of computer technology, enterprises pay more and more attention to information construction, but many enterprises lack overall planning and design in information construction. Although the information system has brought convenience to enterprises for a while, with the increase of information systems, the various information systems cannot form a system and are independent of each other, which makes it difficult to connect data between systems, making it difficult to transfer data across systems and making integration between systems very difficult.
[0003] The existing heterogeneous system integration generally develops a set of API interfaces when integrating one system, and develops another set of API interfaces when integrating another system. The API interfaces are not universal and cannot be reused. In addition, the high cost of API interface integration makes enterprise system integration a major obstacle. Therefore, each heterogeneous system in the existing technology requires a set of API interfaces for each system integration, which cannot be reused, has a high development cost, and cannot meet the needs of enterprise users. Summary of the invention
[0004] One or more embodiments of the present specification provide a heterogeneous system adaptation method, device and medium based on business data, which are used to solve the following technical problems: each heterogeneous system in the prior art requires a set of API interfaces for each integrated system, which cannot be reused, has high development costs, and cannot meet the needs of enterprise users.
[0005] One or more embodiments of this specification adopt the following technical solutions:
[0006] One or more embodiments of the present specification provide a heterogeneous system adaptation method based on business data, characterized in that the method includes: determining a heterogeneous system to be adapted to a current heterogeneous system, and obtaining system information of the heterogeneous system to be adapted, wherein the system information includes business data information and interface information; determining an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtaining request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and business data information to be transmitted; when the adaptation request is When the data is sent down, based on the system identifier of the heterogeneous system to be adapted, an adaptation data template corresponding to the heterogeneous system to be adapted is determined in a pre-set first mapping relationship library, wherein the first mapping relationship library includes multiple heterogeneous systems and a data template corresponding to each heterogeneous system; according to the business data information to be transmitted, in the current heterogeneous system, current business data corresponding to the business data information to be transmitted is determined; and the business data to be transmitted is generated through the adaptation data template corresponding to the heterogeneous system to be adapted and the current business data, so as to transmit the business data to be transmitted and realize the adaptation of the heterogeneous system.
[0007] Furthermore, when the adaptation request is the data reception request, the method also includes: based on the system identifier of the heterogeneous system to be adapted, obtaining the adaptation interface service corresponding to the system to be adapted in a pre-set interface maintenance database; according to the business data information to be transmitted, obtaining the specified business data in the heterogeneous system to be adapted through the adaptation interface service; converting the specified business data into the business data to be transmitted, so as to realize the reception of the business data to be transmitted and realize the adaptation of the heterogeneous system.
[0008] Furthermore, based on the system identifier of the heterogeneous system to be adapted, before determining the adaptation data template corresponding to the heterogeneous system to be adapted in a pre-set first mapping relationship library, the method also includes: obtaining the system identifier and business data information of each heterogeneous system among multiple heterogeneous systems; constructing a data template corresponding to each heterogeneous system according to the business data information of each of the heterogeneous systems, wherein the data template includes multiple form fields and multiple sub-form fields corresponding to each form field; establishing a correspondence between each data template and the system identifier, and storing the correspondence in the first mapping relationship library.
[0009] Furthermore, according to the business data information to be transmitted, in the current heterogeneous system, current business data corresponding to the business data information to be transmitted is determined, specifically including: obtaining multiple form information in the business data information to be transmitted and multiple form field information corresponding to each form information; according to each form information in the business data information to be transmitted, in the current heterogeneous system, current form information corresponding to each form information is determined; based on each form field information corresponding to each form information, current form field information corresponding to each form field is determined in the current form information corresponding to the form information; based on the current form information and the current form field information, the current business data corresponding to the business data information to be transmitted is determined.
[0010] Furthermore, based on the current form information and the current form field information, the current business data corresponding to the business data information to be transmitted is determined, specifically including: obtaining a preset data retrieval SQL statement; establishing a form mapping relationship based on multiple form information and the current form information corresponding to each form information; establishing a form field mapping relationship based on multiple form fields and the current form field information corresponding to each form field; performing a data retrieval operation according to the form mapping relationship and the form field mapping relationship through the data retrieval SQL statement to generate the current business data corresponding to the business data information to be transmitted.
[0011] Furthermore, based on the system identifier of the heterogeneous system to be adapted, before obtaining the adaptation interface service corresponding to the system to be adapted in a pre-set interface maintenance database, the method also includes: obtaining the system identifier of each of the multiple heterogeneous systems to be adapted and the interface information of multiple interface services; based on the interface information of the multiple interface services, constructing multiple interface services corresponding to the heterogeneous system to be adapted, and generating an interface service identifier, wherein the interface service identifier is used to represent the business data information corresponding to each interface service; generating an interface maintenance database according to the system identifier of each heterogeneous system to be adapted and the interface service identifier.
[0012] Furthermore, converting the designated business data into business data to be transmitted specifically includes: obtaining multiple designated form information in the designated business data and multiple designated form field information corresponding to each designated form information; determining the current designated form information corresponding to each designated form information in the current heterogeneous system according to the multiple designated form information in the designated business data and a pre-built data form comparison table; determining the current designated form field information corresponding to each designated form field information in the current heterogeneous system according to each designated form field information and a pre-built data field comparison table; generating the business data to be transmitted based on the current designated form information and the current designated form field information.
[0013] Furthermore, after obtaining multiple specified form information in the specified business data and multiple specified form field information corresponding to each specified form information, the method also includes: constructing a data form comparison table based on the specified form information and the corresponding form information in the current heterogeneous system; establishing a data field comparison table based on each of the specified form field information corresponding to the specified form information and the corresponding form field information in the current heterogeneous system.
[0014] One or more embodiments of this specification provide a heterogeneous system adaptation device based on service data, including:
[0015] at least one processor; and,
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0018] Determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted, wherein the system information includes service data information and interface information; determine an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtain request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and service data information to be transmitted; when the adaptation request is the data sending request, based on the system identifier of the heterogeneous system to be adapted, determine an adaptation data template corresponding to the heterogeneous system to be adapted in a pre-set first mapping relationship library, wherein the first mapping relationship library includes multiple heterogeneous systems and a data template corresponding to each heterogeneous system; according to the service data information to be transmitted, determine, in the current heterogeneous system, current service data corresponding to the service data information to be transmitted; generate service data to be transmitted through the adaptation data template corresponding to the heterogeneous system to be adapted and the current service data, so as to transmit the service data to be transmitted and realize adaptation of the heterogeneous system.
[0019] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0020] Determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted, wherein the system information includes service data information and interface information; determine an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtain request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and service data information to be transmitted; when the adaptation request is the data sending request, based on the system identifier of the heterogeneous system to be adapted, determine an adaptation data template corresponding to the heterogeneous system to be adapted in a pre-set first mapping relationship library, wherein the first mapping relationship library includes multiple heterogeneous systems and a data template corresponding to each heterogeneous system; according to the service data information to be transmitted, determine, in the current heterogeneous system, current service data corresponding to the service data information to be transmitted; generate service data to be transmitted through the adaptation data template corresponding to the heterogeneous system to be adapted and the current service data, so as to transmit the service data to be transmitted and realize adaptation of the heterogeneous system.
[0021] At least one of the above-mentioned technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: through the above-mentioned technical solution, according to the adaptation request of the current heterogeneous system and the heterogeneous system to be adapted, the request information corresponding to the adaptation request is obtained, and when the data is sent, the current business data is converted according to the data template of the heterogeneous system to generate the business data to be transmitted, so as to realize the adaptation of the heterogeneous system. There is no need to develop multiple sets of service interfaces to realize the adaptation between different systems, and the integration with heterogeneous systems is more convenient and faster. In addition, it uses 0-code or low-code development, with good scalability, good portability and good reusability; it greatly reduces the integration cost, truly realizes the cost reduction and efficiency improvement of the enterprise, and meets the needs of enterprise users. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0023] Figure 1 A flowchart of a heterogeneous system adaptation method based on business data provided in an embodiment of this specification;
[0024] Figure 2 A schematic diagram of an application for data delivery provided in an embodiment of this specification;
[0025] Figure 3 A schematic diagram of a data receiving application provided in an embodiment of this specification;
[0026] Figure 4 A schematic diagram of a data template provided in an embodiment of this specification;
[0027] Figure 5 A schematic diagram of the structure of a heterogeneous system adaptation device based on business data provided in an embodiment of this specification. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0029] With the rapid development of computer technology, enterprises pay more and more attention to information construction, but many enterprises lack overall planning and design in information construction. Although the information system has brought convenience to enterprises for a while, with the increase of information systems, the various information systems cannot form a system and are independent of each other, which makes it difficult to connect data between systems, making it difficult to transfer data across systems and making integration between systems very difficult.
[0030] The existing heterogeneous system integration generally develops a set of API interfaces when integrating one system, and develops another set of API interfaces when integrating another system. The API interfaces are not universal and cannot be reused. In addition, the high cost of API interface integration makes enterprise system integration a major obstacle. Therefore, each heterogeneous system in the existing technology requires a set of API interfaces for each system integration, which cannot be reused, has a high development cost, and cannot meet the needs of enterprise users.
[0031] The embodiments of this specification provide a heterogeneous system adaptation method based on business data. It should be noted that the execution subject in the embodiments of this specification can be a server or any device with data processing capabilities, which can be applied in the current heterogeneous system. Figure 1 A flow chart of a heterogeneous system adaptation method based on business data provided in an embodiment of this specification, such as Figure 1 As shown, it mainly includes the following steps:
[0032] Step S101: determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted.
[0033] Wherein, the system information includes business data information and interface information;
[0034] In one embodiment of the present specification, when the current heterogeneous system is adapted to other heterogeneous systems, the other heterogeneous systems are used as heterogeneous systems to be adapted, and system information of the heterogeneous systems to be adapted, such as service data information and interface information, is obtained.
[0035] Step S102: determining the adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtaining request information corresponding to the adaptation request.
[0036] In one embodiment of the present specification, the adaptation request between the current heterogeneous system and the heterogeneous system to be adapted is determined, and the adaptation request includes a data reception request and a data sending request. The request information corresponding to the adaptation request is obtained, and the request information includes the system identifier of the heterogeneous system to be adapted and the service data information to be transmitted. It should be noted that the data sending request here refers to sending the data in the current heterogeneous system to the heterogeneous system, and the heterogeneous system provides an application programming interface for this system to call. The application programming interface (Application Programming Interface, API) is a set of predefined functions, the purpose of which is to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism. Figure 2 A schematic diagram of an application of data delivery provided in an embodiment of this specification, such as Figure 2 As shown, the current heterogeneous system, that is, the system in the figure, calls the API of heterogeneous system A to generate data of heterogeneous system A. The data reception request refers to the current heterogeneous system receiving data from the heterogeneous system to be adapted, and the system provides an application programming interface for the heterogeneous system to be adapted to call. Figure 3 A schematic diagram of a data receiving application provided in an embodiment of this specification, such as Figure 3 As shown, through the application program interface of this system, that is, the current heterogeneous system, the data in the heterogeneous system A is called, and the data of this system is generated according to the obtained data.
[0037] Step S103: when the adaptation request is a data delivery request, based on the system identifier of the heterogeneous system to be adapted, an adaptation data template corresponding to the heterogeneous system to be adapted is determined in a preset first mapping relationship library.
[0038] The first mapping relationship library includes a plurality of heterogeneous systems and a data template corresponding to each heterogeneous system;
[0039] Based on the system identifier of the heterogeneous system to be adapted, before determining the adaptation data template corresponding to the heterogeneous system to be adapted in a pre-set first mapping relationship library, the method also includes: obtaining the system identifier and business data information of each heterogeneous system among multiple heterogeneous systems; constructing a data template corresponding to each heterogeneous system according to the business data information of each of the heterogeneous systems, wherein the data template includes multiple form fields and multiple sub-form fields corresponding to each form field; establishing a correspondence between each data template and the system identifier, and storing the correspondence in the first mapping relationship library.
[0040] In one embodiment of the present specification, a system identifier and business data information of each heterogeneous system in multiple heterogeneous systems are obtained, where the system identifier can be a system name or a system code, and the business data information refers to the relevant information of the business data in the heterogeneous system. According to the business data information of each heterogeneous system, a data template corresponding to each heterogeneous system is constructed. Figure 4 A schematic diagram of a data template provided in an embodiment of this specification, such as Figure 4 As shown, the data template includes multiple form fields and multiple sub-form fields corresponding to each form field, and there are differences between the data templates of different heterogeneous systems. A corresponding relationship between each data template and the system identifier is established, and the corresponding relationship is stored in the first mapping relationship library.
[0041] In one embodiment of the present specification, when the adaptation request is a data delivery request, an adaptation data template corresponding to the heterogeneous system to be adapted is determined in a first mapping relationship library according to a system identifier of the heterogeneous system to be adapted.
[0042] Step S104: According to the service data information to be transmitted, current service data corresponding to the service data information to be transmitted is determined in the current heterogeneous system.
[0043] According to the business data information to be transmitted, in the current heterogeneous system, current business data corresponding to the business data information to be transmitted is determined, specifically including: obtaining multiple form information in the business data information to be transmitted and multiple form field information corresponding to each form information; according to each form information in the business data information to be transmitted, in the current heterogeneous system, current form information corresponding to each form information is determined; based on each form field information corresponding to each form information, current form field information corresponding to each form field is determined in the current form information corresponding to the form information; based on the current form information and the current form field information, the current business data corresponding to the business data information to be transmitted is determined.
[0044] Based on the current form information and the current form field information, the current business data corresponding to the business data information to be transmitted is determined, specifically including: obtaining a preset data retrieval SQL statement; establishing a form mapping relationship according to multiple form information and current form information corresponding to each form information; establishing a form field mapping relationship according to multiple form fields and current form field information corresponding to each form field; performing a data retrieval operation according to the form mapping relationship and the form field mapping relationship through the data retrieval SQL statement to generate the current business data corresponding to the business data information to be transmitted.
[0045] In one embodiment of the present specification, multiple form information and multiple form field information corresponding to each form information in the business data information to be transmitted are obtained, and a form mapping relationship is established according to the multiple form information and the current form information corresponding to each form information. For example, the document type number of the fund payment order in the current heterogeneous system is: bf5212ce-a724-4a61-8dea-5bd27b1e25fe; the document type number of the fund payment order in the heterogeneous system A is: JGJT005, then the established form mapping relationship is shown in the following table:
[0046]
[0047] According to the multiple form fields and the current form field information corresponding to each form field, a form field mapping relationship is established, as shown in the following table, where the current system in the table refers to the current heterogeneous system, and heterogeneous system A refers to the heterogeneous system to be adapted.
[0048]
[0049] Get the pre-set data retrieval SQL statement. Structured Query Language (SQL) is a special-purpose programming language. It is a database query and programming language used to access data and query, update and manage relational database systems. Through the data retrieval SQL statement, according to the form mapping relationship and the form field mapping relationship, perform data retrieval operations to generate current business data corresponding to the business data information to be transmitted. Establish data retrieval SQL, and the data to be sent is retrieved through the data retrieval SQL query. The data retrieval SQL example is as follows:
[0050]
[0051]
[0052] Step S105, generating the service data to be transmitted by using the adaptation data template corresponding to the heterogeneous system to be adapted and the current service data, so as to transmit the service data to be transmitted and realize the adaptation of the heterogeneous system.
[0053] In one embodiment of the present specification, the current business data is converted into the format of the heterogeneous system to be adapted through the adaptation data template corresponding to the heterogeneous system to be adapted and the current business data, and the business data to be transmitted is generated to transmit the business data to achieve adaptation of the heterogeneous system.
[0054] When the adaptation request is the data reception request, the method also includes: based on the system identifier of the heterogeneous system to be adapted, obtaining the adaptation interface service corresponding to the system to be adapted in a preset interface maintenance database; according to the business data information to be transmitted, obtaining the specified business data in the heterogeneous system to be adapted through the adaptation interface service; converting the specified business data into the business data to be transmitted, so as to realize the reception of the business data to be transmitted and realize the adaptation of the heterogeneous system.
[0055] Based on the system identifier of the heterogeneous system to be adapted, before obtaining the adaptation interface service corresponding to the system to be adapted in a preset interface maintenance database, the method also includes: obtaining the system identifier of each of the multiple heterogeneous systems to be adapted and the interface information of multiple interface services; based on the interface information of the multiple interface services, constructing multiple interface services corresponding to the heterogeneous system to be adapted, and generating an interface service identifier, wherein the interface service identifier is used to represent the business data information corresponding to each interface service; and generating an interface maintenance database according to the system identifier of each heterogeneous system to be adapted and the interface service identifier.
[0056] In one embodiment of the present specification, the system identifier of each heterogeneous system to be adapted and the interface information of multiple interface services are obtained. Based on the interface information of the multiple interface services, multiple interface services corresponding to the heterogeneous systems to be adapted are constructed, and an interface service identifier is generated, which is used to represent the business data information corresponding to each interface service. Based on the system identifier of each heterogeneous system to be adapted and the interface service identifier, an interface maintenance database is generated. It should be noted that the interface maintenance database is stored in this system and can also be called an API information maintenance dictionary, as shown in the following table:
[0057] This system API JSON root node Remark Zjf GSDATA
[0058] In addition, the dictionary is used to store API service names and JSON related information. JavaScript Object Notation (JSON) is a lightweight data exchange format. It is based on a subset of the js specification (European Computer Manufacturers Association, ECMAScript) developed by the European Computer Association. It uses a text format that is completely independent of the programming language to store and represent data. The concise and clear hierarchical structure makes JSON an ideal data exchange language. It is easy for people to read and write, and it is also easy for machines to parse and generate, and effectively improves network transmission efficiency.
[0059] Converting the designated business data into business data to be transmitted specifically includes: obtaining multiple designated form information in the designated business data and multiple designated form field information corresponding to each designated form information; determining the current designated form information corresponding to each designated form information in the current heterogeneous system according to the multiple designated form information in the designated business data and a pre-built data form comparison table; determining the current designated form field information corresponding to each designated form field information in the current heterogeneous system according to each designated form field information and a pre-built data field comparison table; generating the business data to be transmitted based on the current designated form information and the current designated form field information.
[0060] After obtaining multiple specified form information in the specified business data and multiple specified form field information corresponding to each specified form information, the method also includes: constructing a data form comparison table based on the specified form information and the corresponding form information in the current heterogeneous system; establishing a data field comparison table based on each specified form field information corresponding to the specified form information and the corresponding form field information in the current heterogeneous system.
[0061] In one embodiment of the present specification, multiple specified form information in the specified business data and multiple specified form field information corresponding to each specified form information are obtained, and a data form comparison table is constructed according to the specified form information and the corresponding form information in the current heterogeneous system. That is to say, what data in the heterogeneous system corresponds to the data in the current system. An example of the data form comparison table is as follows:
[0062]
[0063] After the data form comparison table is established, a data field comparison table is established based on the information of each specified form field corresponding to the specified form information and the corresponding form field information in the current heterogeneous system. That is, what field of the system field corresponds to which field of the heterogeneous system, establish a mapping association, and generate a data field comparison table. An example of a data field comparison table is as follows. The mandatory verification, foreign key verification, and default value generation methods of some fields are all maintained here.
[0064]
[0065]
[0066] After completing the above configuration, the heterogeneous system calls the API of this system to implement data reception of this system.
[0067] Through the above technical solution, according to the adaptation request of the current heterogeneous system and the heterogeneous system to be adapted, the request information corresponding to the adaptation request is obtained. When the data is sent, the current business data is converted according to the data template of the heterogeneous system to generate the business data to be transmitted, so as to realize the adaptation of the heterogeneous system. There is no need to develop multiple sets of service interfaces to achieve adaptation between different systems, and the integration with heterogeneous systems is more convenient and faster. In addition, the use of 0-code or low-code development has good scalability, portability and reusability, which greatly reduces the integration cost, truly realizes cost reduction and efficiency improvement for enterprises, and meets the needs of enterprise users.
[0068] The embodiment of this specification also provides a heterogeneous system adaptation device based on business data, such as Figure 5 As shown, the device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0069] Determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted, wherein the system information includes business data information and interface information; determine an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtain request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and business data information to be transmitted; when the adaptation request is the data sending request, based on the system identifier of the heterogeneous system to be adapted, determine an adaptation data template corresponding to the heterogeneous system to be adapted in a pre-set first mapping relationship library, wherein the first mapping relationship library includes multiple heterogeneous systems and a data template corresponding to each heterogeneous system; according to the business data information to be transmitted, determine the current business data corresponding to the business data information to be transmitted in the current heterogeneous system; generate business data to be transmitted through the adaptation data template corresponding to the heterogeneous system to be adapted and the current business data, so as to transmit the business data to be transmitted and realize the adaptation of the heterogeneous system.
[0070] The embodiment of the present specification also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0071] Determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted, wherein the system information includes business data information and interface information; determine an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtain request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and business data information to be transmitted; when the adaptation request is the data sending request, based on the system identifier of the heterogeneous system to be adapted, determine an adaptation data template corresponding to the heterogeneous system to be adapted in a pre-set first mapping relationship library, wherein the first mapping relationship library includes multiple heterogeneous systems and a data template corresponding to each heterogeneous system; according to the business data information to be transmitted, determine the current business data corresponding to the business data information to be transmitted in the current heterogeneous system; generate business data to be transmitted through the adaptation data template corresponding to the heterogeneous system to be adapted and the current business data, so as to transmit the business data to be transmitted and realize the adaptation of the heterogeneous system.
[0072] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0073] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0074] The devices and media provided in the embodiments of this specification correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0075] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0076] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0080] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0081] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0082] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0083] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A heterogeneous system adaptation method based on business data, characterized in that: The method comprises: Determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted, wherein the system information includes service data information and interface information; Determine an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtain request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and service data information to be transmitted; When the adaptation request is the data delivery request, based on the system identifier of the to-be-adapted heterogeneous system, determining an adaptation data template corresponding to the to-be-adapted heterogeneous system in a pre-set first mapping relationship library, wherein the first mapping relationship library includes a plurality of heterogeneous systems and a data template corresponding to each heterogeneous system; According to the service data information to be transmitted, determining, in the current heterogeneous system, current service data corresponding to the service data information to be transmitted; The business data to be transmitted is generated by using the adaptation data template corresponding to the heterogeneous system to be adapted and the current business data, so as to transmit the business data to be transmitted and realize the adaptation of the heterogeneous system.
2. A heterogeneous system adaptation method based on business data according to claim 1, characterized in that: When the adaptation request is the data reception request, the method further includes: Based on the system identifier of the heterogeneous system to be adapted, acquiring the adaptation interface service corresponding to the system to be adapted in a preset interface maintenance database; According to the service data information to be transmitted, obtaining the specified service data in the heterogeneous system to be adapted through the adaptation interface service; The designated service data is converted into service data to be transmitted, so as to receive the service data to be transmitted and achieve adaptation of heterogeneous systems.
3. The heterogeneous system adaptation method based on business data according to claim 1, characterized in that: Based on the system identifier of the heterogeneous system to be adapted, before determining the adaptation data template corresponding to the heterogeneous system to be adapted in a preset first mapping relationship library, the method further includes: Obtaining system identification and business data information of each heterogeneous system in multiple heterogeneous systems; Constructing a data template corresponding to each of the heterogeneous systems according to the business data information of each of the heterogeneous systems, wherein the data template includes a plurality of form fields and a plurality of sub-form fields corresponding to each form field; A corresponding relationship between each data template and the system identifier is established, and the corresponding relationship is stored in a first mapping relationship library.
4. The heterogeneous system adaptation method based on business data according to claim 1, characterized in that: According to the service data information to be transmitted, in the current heterogeneous system, determining current service data corresponding to the service data information to be transmitted specifically includes: Acquire multiple form information in the business data information to be transmitted and multiple form field information corresponding to each form information; According to each of the form information in the service data information to be transmitted, in the current heterogeneous system, determining the current form information corresponding to each of the form information; Based on each of the form field information corresponding to each of the form information, in the current form information corresponding to the form information, determine the current form field information corresponding to each of the form fields; Based on the current form information and the current form field information, current business data corresponding to the business data information to be transmitted is determined.
5. A heterogeneous system adaptation method based on business data according to claim 4, characterized in that: Determining the current business data corresponding to the business data information to be transmitted based on the current form information and the current form field information specifically includes: Get the preset data retrieval SQL statement; Establishing a form mapping relationship according to the plurality of form information and the current form information corresponding to each of the form information; Establishing a form field mapping relationship according to the multiple form fields and current form field information corresponding to each of the form fields; The data retrieval SQL statement is used to perform a data retrieval operation according to the form mapping relationship and the form field mapping relationship to generate current business data corresponding to the business data information to be transmitted.
6. A heterogeneous system adaptation method based on business data according to claim 2, characterized in that: Based on the system identifier of the heterogeneous system to be adapted, before acquiring the adaptation interface service corresponding to the system to be adapted in a preset interface maintenance database, the method further includes: Obtaining a system identifier of each of the multiple heterogeneous systems to be adapted and interface information of multiple interface services; Based on the interface information of the multiple interface services, construct multiple interface services corresponding to the heterogeneous system to be adapted, and generate interface service identifiers, wherein the interface service identifiers are used to represent the business data information corresponding to each interface service; An interface maintenance database is generated according to the system identifier of each heterogeneous system to be adapted and the interface service identifier.
7. A heterogeneous system adaptation method based on business data according to claim 2, characterized in that: Converting the specified service data into service data to be transmitted specifically includes: Acquire multiple pieces of specified form information in the specified business data and multiple pieces of specified form field information corresponding to each piece of specified form information; Determine, according to the plurality of designated form information in the designated business data and the pre-built data form comparison table, the current designated form information corresponding to each designated form information in the current heterogeneous system; Determine, according to each of the designated form field information and a pre-built data field comparison table, current designated form field information corresponding to each of the designated form field information in the current heterogeneous system; Based on the currently specified form information and the currently specified form field information, business data to be transmitted is generated.
8. A heterogeneous system adaptation method based on business data according to claim 7, characterized in that: After acquiring a plurality of designated form information in the designated business data and a plurality of designated form field information corresponding to each designated form information, the method further includes: Constructing a data form comparison table according to the specified form information and the corresponding form information in the current heterogeneous system; A data field comparison table is established according to each of the designated form field information corresponding to the designated form information and the corresponding form field information in the current heterogeneous system.
9. A heterogeneous system adaptation device based on business data, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted, wherein the system information includes service data information and interface information; Determine an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtain request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and service data information to be transmitted; When the adaptation request is the data delivery request, based on the system identifier of the to-be-adapted heterogeneous system, determining an adaptation data template corresponding to the to-be-adapted heterogeneous system in a pre-set first mapping relationship library, wherein the first mapping relationship library includes a plurality of heterogeneous systems and a data template corresponding to each heterogeneous system; According to the service data information to be transmitted, determining, in the current heterogeneous system, current service data corresponding to the service data information to be transmitted; The business data to be transmitted is generated by using the adaptation data template corresponding to the heterogeneous system to be adapted and the current business data, so as to transmit the business data to be transmitted and realize the adaptation of the heterogeneous system.
10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Determine a heterogeneous system to be adapted to the current heterogeneous system, and obtain system information of the heterogeneous system to be adapted, wherein the system information includes service data information and interface information; Determine an adaptation request between the current heterogeneous system and the heterogeneous system to be adapted, and obtain request information corresponding to the adaptation request, wherein the adaptation request includes a data receiving request and a data sending request, and the request information includes a system identifier of the heterogeneous system to be adapted and service data information to be transmitted; When the adaptation request is the data delivery request, based on the system identifier of the to-be-adapted heterogeneous system, determining an adaptation data template corresponding to the to-be-adapted heterogeneous system in a pre-set first mapping relationship library, wherein the first mapping relationship library includes a plurality of heterogeneous systems and a data template corresponding to each heterogeneous system; According to the service data information to be transmitted, determining, in the current heterogeneous system, current service data corresponding to the service data information to be transmitted; The business data to be transmitted is generated by using the adaptation data template corresponding to the heterogeneous system to be adapted and the current business data, so as to transmit the business data to be transmitted and realize the adaptation of the heterogeneous system.
Citation Information
Patent Citations
Distributed isomerous data resource integration and management system
CN107844378A
Heterogeneous data processing method and device and computer equipment
CN111611441A