CN111683066A - Heterogeneous system integration method and device, computer equipment and storage medium - Google Patents

Heterogeneous system integration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111683066A
CN111683066A CN202010461051.XA CN202010461051A CN111683066A CN 111683066 A CN111683066 A CN 111683066A CN 202010461051 A CN202010461051 A CN 202010461051A CN 111683066 A CN111683066 A CN 111683066A
Authority
CN
China
Prior art keywords
message
field
protocol
model
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010461051.XA
Other languages
Chinese (zh)
Other versions
CN111683066B (en
Inventor
卢俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Pension Insurance Corp
Original Assignee
Ping An Pension Insurance Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN202010461051.XA priority Critical patent/CN111683066B/en
Publication of CN111683066A publication Critical patent/CN111683066A/en
Application granted granted Critical
Publication of CN111683066B publication Critical patent/CN111683066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to the technical field of big data, and provides a heterogeneous system integration method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring an external protocol message corresponding to a heterogeneous system; analyzing the external protocol message to obtain message data; sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in the built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator; receiving a matching field pair fed back by a first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair; determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model; and storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner. The method can improve the integration efficiency.

Description

Heterogeneous system integration method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data, and in particular, to a heterogeneous system integration method, apparatus, computer device, and storage medium.
Background
With the development of computer technology, heterogeneous systems are complex and complementary to each other, and more diverse business processing can be realized through interactive cooperation among the heterogeneous systems. At present, in order to realize the interaction between heterogeneous systems, a customized program is generally required to be configured to realize the communication and the message parsing. In the integration process of the heterogeneous system, repeated operations of product, research and development, test and operation and maintenance manpower are required to be continuously input, a large amount of manpower and material resources are consumed, the integration cost of the heterogeneous system is increased, and the integration efficiency is reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a heterogeneous system integration method, apparatus, computer device and storage medium capable of improving integration efficiency.
A heterogeneous system integration method, the method comprising:
acquiring an external protocol message corresponding to a heterogeneous system to be integrated;
analyzing the external protocol message to obtain message data;
sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator;
receiving a matching field pair fed back by the first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair;
determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model;
and storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner.
In one embodiment, the analyzing the external protocol packet to obtain packet data includes:
inquiring a target protocol conversion function according to an external protocol corresponding to the external protocol message;
when the target protocol conversion function is inquired, calling the target protocol conversion function to convert the external protocol into an internal protocol, and converting the external protocol message into an internal protocol message coded according to the internal protocol;
and analyzing the internal protocol message to obtain message data.
In one embodiment, the analyzing the external protocol packet to obtain packet data further includes:
when the target protocol conversion function is not inquired, sending a protocol conversion configuration request carrying the external protocol and the internal protocol to a second terminal;
receiving a configuration file fed back by the second terminal aiming at the protocol conversion configuration request;
configuring a protocol conversion function corresponding to the external protocol according to the configuration file;
and calling the configured protocol conversion function to convert the external protocol into an internal protocol, and converting the external protocol message into an internal protocol message coded according to the internal protocol.
In one embodiment, the determining, according to the data dictionary, the packet data, and the built-in model, a field type conversion function corresponding to each packet field in the packet data includes:
determining a corresponding relation between a message field type corresponding to each message field in the message data and a model field type corresponding to a corresponding model field in the built-in model according to the data dictionary, the message data and the built-in model;
inquiring a pre-configured field type conversion function according to the message field type corresponding to each message field and the corresponding model field type;
and associating each message field with the corresponding queried field type conversion function.
In one embodiment, the determining, according to the data dictionary, the packet data, and the built-in model, a correspondence between a packet field type corresponding to each packet field in the packet data and a model field type corresponding to a corresponding model field in the built-in model includes:
traversing each message field and the corresponding message field type in the message data;
determining a model field corresponding to a currently traversed message field according to the data dictionary;
and obtaining the model field type corresponding to the determined model field from the built-in model, and establishing the corresponding relation between the obtained model field type and the currently traversed message field type.
In one embodiment, the building step of the built-in model includes:
acquiring demand information of a target service;
determining the object, the attribute and the object relation corresponding to the target service according to the requirement information;
calling a modeling tool to construct a built-in model corresponding to the target service according to the object, the attribute and the object relation; the model fields of the built-in model comprise fields corresponding to the object and the attribute respectively.
In one embodiment, the integrated processing steps of the heterogeneous system in the application phase include:
acquiring a target external protocol message sent by the heterogeneous system through an external protocol;
analyzing the target external protocol message to obtain target message data;
mapping message fields in the target message data into target fields according to the data dictionary;
calling a field type conversion function corresponding to each message field in the target message data, and converting the message field type corresponding to the corresponding message field into the target field type;
determining a target message according to the target field and the corresponding target field type, and transmitting the target message according to an internal protocol;
and uploading the target message data to a block chain.
A heterogeneous system integration apparatus, the apparatus comprising:
the acquisition module is used for acquiring an external protocol message corresponding to the heterogeneous system to be integrated;
the analysis module is used for analyzing the external protocol message to obtain message data;
the matching module is used for sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator;
the receiving module is used for receiving the matching field pair fed back by the first terminal and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair;
the determining module is used for determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model;
and the association module is used for associating and storing the system identifier corresponding to the heterogeneous system with the data dictionary and the field type conversion function corresponding to each message field in the message data.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring an external protocol message corresponding to a heterogeneous system to be integrated;
analyzing the external protocol message to obtain message data;
sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator;
receiving a matching field pair fed back by the first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair;
determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model;
and storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an external protocol message corresponding to a heterogeneous system to be integrated;
analyzing the external protocol message to obtain message data;
sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator;
receiving a matching field pair fed back by the first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair;
determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model;
and storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner.
After the external protocol message corresponding to the heterogeneous system to be integrated is obtained and analyzed to obtain corresponding message data, a field matching request carrying a message field in the message data and a model field in a built-in model is sent to the first terminal, so that the first terminal visually and manually pairs the message field and the model field through a configurator, a data dictionary corresponding to the heterogeneous system is constructed according to a matching field pair fed back by the first terminal, a field type conversion function corresponding to each message field in the message data is determined based on the data dictionary, and then a system identifier and a data dictionary corresponding to the heterogeneous system and a field type conversion function corresponding to each message field in the message data are stored in an associated manner, so that the external protocol message sent by the heterogeneous system is received in the application process, and after the corresponding message data is obtained through analysis, the message fields in the message data can be converted according to the preconfigured data dictionary, and the message field types corresponding to the corresponding message fields are converted according to the field type conversion function, so that the fields and the field types suitable for internal transmission and processing are obtained. Therefore, the matching field pairs are configured through the first terminal, the corresponding data dictionary is constructed, each message field is further associated with the corresponding field type conversion function, a large amount of manpower and material resources are consumed for writing, testing, debugging, operation and maintenance customized programs for each heterogeneous system to be integrated, the integration cost can be reduced, and the integration efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for heterogeneous system integration in one embodiment;
FIG. 2 is a flow diagram illustrating a method for heterogeneous system integration in one embodiment;
FIG. 3 is a flow diagram illustrating a method for heterogeneous system integration in another embodiment;
FIG. 4 is a block diagram of an integrated device of a heterogeneous system in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The heterogeneous system integration method provided by the application can be applied to the application environment shown in fig. 1. The first terminal 102 and the heterogeneous system 106 are respectively in communication with the main system 104 through a network. The main system 104 obtains an external protocol message corresponding to the heterogeneous system to be integrated, analyzes the external protocol message to obtain message data, and sends a field matching request carrying a message field in the message data and a model field in a pre-configured built-in model to the first terminal 102, so that the first terminal 102 matches the message field and the model field in the field matching request through a configurator. Further, the main system 104 receives a matching field pair fed back by the first terminal 102, constructs a data dictionary corresponding to the heterogeneous system 106 according to the matching field pair, determines a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model, and stores a system identifier corresponding to the heterogeneous system 106 and the corresponding data dictionary in association with the field type conversion function corresponding to each message field in the message data. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the main system 104 and the heterogeneous system 106 may be implemented by independent servers or a server cluster composed of a plurality of servers.
In one embodiment, the heterogeneous system 106 shown in fig. 1 may also serve as a host system, and perform a similar heterogeneous system integration procedure as described above for other heterogeneous systems to be integrated into the heterogeneous system 106. It is understood that there may be multiple heterogeneous systems 106 of fig. 1, and the host system 104 performs the above-described heterogeneous system integration procedure for each heterogeneous system 106 to be integrated.
In one embodiment, as shown in fig. 2, a heterogeneous system integration method is provided, which is described by taking the method as an example applied to the host system 104 in fig. 1, and includes the following steps:
s202, obtaining an external protocol message corresponding to the heterogeneous system to be integrated.
The heterogeneous system to be integrated is a system which needs to realize interactive communication with a main system and provides more complete business processing for users through interactive cooperation with the main system. The integration of the heterogeneous system means that the interactive communication between the heterogeneous system and the main system is realized by an agreed communication protocol, a message analysis mode and the like. The external protocol message is a message encoded according to an external protocol. The external protocol is a communication protocol supported by the heterogeneous system to be integrated and used for communication with the main system.
Specifically, the main system obtains an external protocol message corresponding to a heterogeneous system to be integrated, where the external protocol message is a message encoded according to an external protocol corresponding to the heterogeneous system. It can be understood that the external protocol packet may be a packet transmitted by the heterogeneous system through the external protocol, or a packet obtained by the main system according to the external protocol code corresponding to the heterogeneous system.
In one embodiment, the main system encodes service data preconfigured by the heterogeneous system for a target service according to an external protocol corresponding to the heterogeneous system to be integrated, and uses a virtual message obtained by encoding as an external protocol message corresponding to the heterogeneous system.
In one embodiment, a heterogeneous system to be integrated acquires service data preconfigured for a target service, encodes the service data through an external protocol to obtain an external protocol message, and sends the external protocol message to a main system through the external protocol.
S204, the external protocol message is analyzed to obtain message data.
The message data is obtained by analyzing a message, and may specifically include a message field and a corresponding message field type. The message field is a field in the service data transmitted by the message, such as name and age. The message field type refers to a field type corresponding to the message field, such as a character string, text, numbers, and the like.
Specifically, after acquiring an external protocol packet corresponding to the heterogeneous system, the main system converts the external protocol packet into an internal protocol packet encoded according to an internal protocol, and parses the internal protocol packet to obtain corresponding packet data. The internal protocol corresponds to an external protocol, and the internal protocol refers to a communication protocol for communication inside the host system. External protocols such as HTTP (HyperText Transfer Protocol). Internal protocols such as the T3 protocol (also known as rich sockets, a multiplexed bi-directional and asynchronous protocol), and ESG protocols (also known as AMESBX, asynchronous Enterprise message Bus Extension).
In one embodiment, the host system calls a target protocol conversion function corresponding to the external protocol to analyze the external protocol message to obtain corresponding message data.
In one embodiment, the external protocol message is parsed to obtain message data in a key-value pair format. Each message field in the message data exists in a key value pair format, and the message data comprises the message field and a field value corresponding to each message field.
In one embodiment, the main system internally comprises a plurality of subsystems or a plurality of computer devices, and the subsystems or the computer devices communicate with each other through an internal protocol pre-configured in the main system.
S206, sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for instructing the first terminal to pair the message field and the model field through a configurator.
The field matching request is a request for triggering field matching operation, and is used for instructing the first terminal to pair the message field in the message data with the model field in the built-in model. The match field pair includes a message field and a paired model field, such as including a customer name in a built-in model and a name in the message data.
Specifically, after the main system analyzes the external protocol message to obtain message data, a message field is extracted from the message data, a model field is extracted from a pre-configured built-in model, a field matching request is generated according to the extracted message field and the model field, and the generated field matching request is sent to the first terminal. The first terminal analyzes the received field matching request to obtain a message field to be paired and a model field, and displays the message field and the model field obtained by analysis to configuration personnel. The method comprises the steps that a first terminal detects pairing operation of a configurator for a displayed message field and a displayed model field, pairs the message field and the model field according to the detected pairing operation, obtains a matching field pair according to the paired message field and the model field when configuration storage triggering operation of the configurator is detected, and feeds back the obtained matching field pair to a main system.
In one embodiment, the first terminal is an operating terminal, and the configurator is an operator. The operation terminal displays the model field and the message field to an operator through an operation interface, the operator establishes a mapping relation between the model field and the message field in the operation interface in a connection line matching mode, and the operation terminal determines a matching field pair based on the mapping relation. Therefore, research personnel do not need to write customized programs to automatically match the model fields and the message fields, field matching and conversion are achieved, and research and development cost can be reduced. Moreover, when the model field in the built-in model or the message field in the message data is updated, conversion and pairing of the updated field can be realized through pairing operation of the first terminal without updating a conversion program.
And S208, receiving the matching field pair fed back by the first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair.
The data dictionary is a basis for converting message fields in the message data into corresponding target fields.
Specifically, the main system receives a matching field pair fed back by the first terminal according to the field matching request, constructs a data dictionary comprising the matching field pair, uses the data dictionary as a data dictionary corresponding to the heterogeneous system, and configures the data dictionary locally.
S210, determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model.
The field type conversion function is a function for converting the message field type corresponding to the message field. The field type conversion function corresponding to the message field can be used for converting the message field type of the message field into the model field type of the model field matched with the message field.
Specifically, the host system determines a model field type corresponding to the message field type of each message field in the message data according to the corresponding relationship between the message field and the model field in the constructed data dictionary, the message field type of each message field in the message data and the model field type of each model field in the built-in model, queries a pre-configured field type conversion function according to the message field type of each message field and the corresponding model field type, and determines the queried field type conversion function as the field type conversion function corresponding to the message field.
In one embodiment, since field types are enumerable, a corresponding type conversion function may be preconfigured for type conversion between any two field types. In the heterogeneous system integration process, the main system can inquire the pre-configured type conversion function according to the message field type and the corresponding model field type. Field types such as character strings, text, numbers, etc.
In one embodiment, step S210 includes: determining the corresponding relation between the message field type corresponding to each message field in the message data and the model field type corresponding to the corresponding model field in the built-in model according to the data dictionary, the message data and the built-in model; inquiring a pre-configured field type conversion function according to the message field type corresponding to each message field and the corresponding model field type; and associating each message field with the corresponding queried field type conversion function.
Specifically, the main system determines a corresponding relationship between a message field in the message data and a model field in the built-in model according to the data dictionary, acquires a message field type corresponding to the message field from the message data, acquires a model field type corresponding to the model field from the built-in model, and establishes a corresponding relationship between the message field type and the model field type of each message field according to the corresponding relationship between the message field and the model field. The main system locally inquires a pre-configured field type conversion function according to the message field type corresponding to each message field in the message data and the corresponding model field type, uses the inquired field type conversion function as the field type conversion function corresponding to the message field, and associates the field type conversion function with the corresponding message field.
In the above embodiment, the model field type corresponding to the message field type of each message field is determined based on the correspondence between the message field and the model field in the data dictionary, and further, the field type conversion function corresponding to each message field is determined, so that the corresponding field type conversion function can be quickly located based on the message field in the application process, and the message field is converted based on the located field type conversion function.
In one embodiment, determining a correspondence between a message field type corresponding to each message field in the message data and a model field type corresponding to a corresponding model field in the built-in model according to the data dictionary, the message data, and the built-in model includes: traversing each message field and the corresponding message field type in the message data; determining a model field corresponding to a currently traversed message field according to the data dictionary; and obtaining the model field type corresponding to the determined model field from the built-in model, and establishing the corresponding relation between the obtained model field type and the currently traversed message field type.
In one embodiment, the host system determines the type conversion function corresponding to each message field in the message data in a recursive manner. The main system traverses the message fields in the message data according to a recursion mode and determines the field type conversion function corresponding to the currently traversed message fields according to the mode. Because the message fields in the message data may be nested fields, the message fields need to be traversed layer by layer in a recursive manner, and the next message field is continuously traversed until all the nested fields under the currently traversed message field are traversed. Traversing the message fields in a recursive manner means traversing layer by layer according to the nested form of the message fields.
In the above embodiment, the field type conversion function corresponding to each message field is determined by traversing the message data, and the field type conversion function corresponding to each message field in the message data can be accurately determined.
S212, the system identification corresponding to the heterogeneous system is stored in association with the data dictionary and the field type conversion function corresponding to each message field in the message data.
Specifically, after a data dictionary corresponding to the heterogeneous system is constructed and obtained by the main system, and a field type conversion function corresponding to each message field in the message data is determined, a system identifier corresponding to the heterogeneous system and the data dictionary are correspondingly stored locally, and an association relation between each message field and the field type conversion function in the corresponding message data is correspondingly stored locally, so that in the application process, after an external protocol message sent by the heterogeneous system through an external protocol is received, a preconfigured data dictionary and the field type conversion function corresponding to each message field can be quickly positioned according to the system identifier, further, the message field is quickly converted based on the data dictionary, and the field type conversion function is called to quickly and accurately realize the conversion of the message field type.
After acquiring and analyzing the external protocol message corresponding to the heterogeneous system to be integrated to obtain corresponding message data, sending a field matching request carrying a message field in the message data and a model field in a built-in model to a first terminal so that the first terminal visually and manually pairs the message field and the model field through a configurator, constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair fed back by the first terminal, determining a field type conversion function corresponding to each message field in the message data based on the data dictionary, and further storing a system identifier corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in a correlation manner so as to receive the external protocol message sent by the heterogeneous system in the application process, and after the corresponding message data is obtained through analysis, the message fields in the message data can be converted according to the preconfigured data dictionary, and the message field types corresponding to the corresponding message fields are converted according to the field type conversion function, so that the fields and the field types suitable for internal transmission and processing are obtained. Therefore, the matching field pairs are configured through the first terminal, the corresponding data dictionary is constructed, each message field is further associated with the corresponding field type conversion function, a large amount of manpower and material resources are consumed for writing, testing, debugging, operation and maintenance customized programs for each heterogeneous system to be integrated, the integration cost can be reduced, and the integration efficiency is improved.
In one embodiment, step S204 includes: inquiring a target protocol conversion function according to an external protocol corresponding to the external protocol message; when a target protocol conversion function is inquired, calling the target protocol conversion function to convert an external protocol into an internal protocol, and converting an external protocol message into an internal protocol message coded according to the internal protocol; and analyzing the internal protocol message to obtain message data.
The target protocol conversion function is a computer program that can be used to convert a protocol, and may specifically be a function that is pre-configured to convert an external protocol into an internal protocol and convert an external protocol packet encoded according to the external protocol into an internal protocol packet encoded according to the internal protocol.
Specifically, the host system determines an external protocol corresponding to the acquired external protocol packet, and locally queries a target protocol conversion function corresponding to the external protocol. When a target protocol conversion function pre-configured for the external protocol is inquired, the inquired target protocol conversion function is called to convert the external protocol into an internal protocol of a main system, and an external protocol message is converted into an internal protocol message coded according to the internal protocol. The main system calls a target protocol conversion function to analyze the external protocol message according to the external protocol, and codes the analyzed external protocol message according to the internal protocol to obtain the internal protocol message coded according to the internal protocol. The main system analyzes the internal protocol message to obtain corresponding message data.
In one embodiment, the host system calls a target protocol conversion function to analyze the internal protocol message according to the message syntax corresponding to the internal protocol so as to extract each key value pair in the internal protocol message, and then obtains message data in a key value pair format.
In one embodiment, the host system locally pre-configures the corresponding protocol conversion function for the open-source standard protocol. And when the external protocol corresponding to the heterogeneous system to be integrated is an open-source standard protocol, determining a corresponding protocol conversion function pre-configured for the standard protocol as a target protocol conversion function.
In the above embodiment, a target protocol conversion function preconfigured for an external protocol corresponding to the heterogeneous system is called, the external protocol is converted into an internal protocol of the main system, and an external protocol message is converted into an internal protocol message, so that the protocol and protocol message conversion efficiency can be improved.
In one embodiment, step S204 further includes: when the target protocol conversion function is not inquired, sending a protocol conversion configuration request carrying an external protocol and an internal protocol to a second terminal; receiving a configuration file fed back by a second terminal aiming at the protocol conversion configuration request; configuring a protocol conversion function corresponding to an external protocol according to the configuration file; and calling the configured protocol conversion function to convert the external protocol into the internal protocol and convert the external protocol message into the internal protocol message coded according to the internal protocol.
Wherein the protocol conversion configuration request is a request for triggering a protocol conversion configuration operation for instructing the second terminal to configure a protocol conversion function for converting the external protocol into the internal protocol.
Specifically, when a target protocol conversion function corresponding to the external protocol is not queried locally, the main system triggers and generates a protocol conversion configuration request carrying the external protocol and the internal protocol, and sends the generated protocol conversion configuration request to the second terminal. The second terminal analyzes the protocol conversion configuration request to obtain an external protocol and an internal protocol, and displays the external protocol and the internal protocol obtained by analysis to research personnel to instruct the research personnel to configure a protocol conversion function for converting the external protocol into the internal protocol. And when detecting that the configuration of the research and development personnel completes the triggering operation, the second terminal acquires the configured protocol conversion function, triggers to generate a configuration file carrying the protocol conversion function, and feeds the configuration file back to the main system. The main system analyzes the received configuration file to obtain a protocol conversion function corresponding to the external protocol, and configures the protocol conversion function corresponding to the external protocol locally. Correspondingly, the main system calls a currently configured protocol conversion function to convert the external protocol into the internal protocol, and converts the external protocol message coded according to the external protocol into the internal protocol message coded according to the internal protocol.
In the above embodiment, when the protocol conversion function corresponding to the external protocol is not configured locally, the protocol conversion function for converting the external protocol into the internal protocol is dynamically configured through the second terminal, and the external protocol packet is converted into the internal protocol packet through the configured protocol conversion function. The protocol conversion function is configured locally, so that when an external protocol message sent by the heterogeneous system through an external protocol is received again, the preconfigured protocol conversion function can be called to convert the external protocol message, or when other heterogeneous systems supporting the external protocol are subsequently integrated, the preconfigured protocol conversion function can be directly called to convert the external protocol message corresponding to the other heterogeneous systems, and the protocol conversion function does not need to be configured again through a second terminal.
In one embodiment, the building step of the built-in model comprises: acquiring demand information of a target service; determining the object, the attribute and the object relation corresponding to the target service according to the requirement information; calling a modeling tool to construct a built-in model corresponding to the target service according to the object, the attribute and the object relation; the model fields of the built-in model include fields corresponding to each of the objects and the attributes.
The requirement information refers to a maximum function point corresponding to the target service, and may also be understood as a maximum boundary of the target service, and is used to specify an entity relationship logic that can be processed by the host system. The object and attribute are fields extracted from the requirement information, and the object relationship is a relationship extracted from the requirement information and used for representing the object. The attributes may include base attributes and object attributes. The basic attribute refers to the inherent attribute of the object, such as the name, age and sex of the user, and the object attribute refers to the attribute having an object relationship with the object in a specific case, such as an address. A Modeling tool such as a UML-like tool (Unified Modeling Language, or standard Modeling Language).
Specifically, the main system acquires the requirement information of the target service, extracts the object, the attribute and the object relation corresponding to the target service from the acquired requirement information, and invokes a modeling tool to construct a built-in model corresponding to the target service according to the extracted object, attribute and object relation. It can be understood that the modeling tool is called to build a built-in model according to the fields corresponding to the object and the attribute respectively and the object relation. The fields corresponding to the object and the attribute are used as model fields in the built-in model, the field types of the fields corresponding to the object and the attribute are used as model field types of the corresponding model fields in the built-in model, and the object relationship is embodied through the nesting relationship of the model fields.
In one embodiment, the built-in model describes the connection relationships between objects, attributes, and object relationships in the form of an ER graph (graph Entity-contact graph). The built-in model is a universal standard data dictionary pre-configured locally by the host system.
In one embodiment, corresponding demand information is obtained according to business dimensions, and a built-in model corresponding to a corresponding business is built based on the demand information. In this way, the main system is locally pre-configured with a corresponding built-in model for each service, and in the service system integration process, integration processing is performed based on the built-in model corresponding to the service corresponding to the heterogeneous system.
In one embodiment, in the development stage, the main system obtains test data provided by a product worker, tests the built-in model, and dynamically adjusts the built-in model according to a test result. Specifically, the host system extracts the test object, the test attribute and the corresponding test object relationship from the test data, determines the respective corresponding fields of the test object and the test attribute and the field types corresponding to the fields, and compares the determined fields and field types with the fields and field types corresponding to the corresponding objects/attributes in the built-in model. And if the judgment result is inconsistent, dynamically adjusting the built-in model based on the test data.
In the embodiment, the built-in model is pre-constructed according to the requirement information of the target service, so that the heterogeneous system is integrated based on the built-in model in the process of integrating the heterogeneous system, and the integration accuracy can be improved.
In one embodiment, the processing steps of the integrated heterogeneous system in the application phase include: acquiring a target external protocol message sent by a heterogeneous system through an external protocol; analyzing the target external protocol message to obtain target message data; mapping message fields in the target message data into target fields according to the data dictionary; calling a field type conversion function corresponding to each message field in target message data, and converting the message field type corresponding to the corresponding message field into a target field type; determining a target message according to the target field and the corresponding target field type, and transmitting the target message according to an internal protocol; and uploading the target message data to the block chain.
Specifically, after the integration operation for the heterogeneous system to be integrated is completed, the main system obtains a target external protocol message sent by the integrated heterogeneous system through an external protocol, calls a preconfigured target protocol conversion function according to the external protocol, and converts the obtained target external protocol message into a target internal protocol message encoded according to an internal protocol of the main system. The main system analyzes the target internal protocol message to obtain corresponding target message data. The main system inquires a data dictionary pre-configured for the heterogeneous system, and maps each message field in the target message data into a corresponding target field according to the corresponding relation between the message field in the data dictionary and the model field. The main system inquires a corresponding field type conversion function which is pre-configured according to each message field in the target message data, and calls the inquired field type conversion function to convert the message field type of the corresponding message field to obtain the target field type of the target field corresponding to the message field. After obtaining the target field corresponding to each message field in the target message data and the target field type corresponding to the message field type of each message field, the main system encodes according to the obtained target field and the corresponding target field type and according to the internal protocol to obtain the target message corresponding to the target message data, and transmits the target message through the internal protocol. Further, after the main system analyzes the target external protocol message to obtain target message data, the main system uploads the analyzed target message data to the block chain.
In one embodiment, the host system traverses the target message data in a recursive manner, maps the currently traversed message field into a target field according to the data dictionary, and invokes a field type conversion function corresponding to the currently traversed message field to convert the message field type of the message field into a corresponding target field type.
In one embodiment, the master system is a blockchain node in a blockchain network. The main system broadcasts the target message data to other block chain nodes in the block chain network so as to write the target message data into the corresponding block chain through the block chain network.
In one embodiment, the host system sends the target packet data to any one of the blockchain nodes in the blockchain network to indicate the blockchain link node that received the target packet data, broadcasts the received target packet data to other blockchain nodes in the blockchain network, and writes the target packet data into the corresponding blockchain through the blockchain network.
In one embodiment, the step of writing the target packet data into the blockchain via the blockchain network includes: and acquiring corresponding abstract information based on the target message data through the block chain network, and uploading the abstract information to the corresponding block chain. Specifically, the digest information is obtained by hashing the target message data, for example, using sha256 (a hash algorithm/hash function) algorithm to process the target message data to obtain the corresponding digest information. Therefore, the abstract information corresponding to the target message data is uploaded to the block chain, and the safety of the abstract information and/or the target message data and the public transparency of the user can be guaranteed. Also, the user equipment may download the digest information from the blockchain, so as to verify whether the corresponding target message data is falsified based on the downloaded digest information.
In one embodiment, the blockchain involved in one or more of the above embodiments is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In the above embodiment, in the application process of the integrated heterogeneous system, the mapping of the message field is directly performed based on the preconfigured data dictionary, the preconfigured field type conversion function is directly called to convert the message field type of the corresponding message field, the target message encoded according to the internal protocol is obtained based on the target field obtained by conversion and the corresponding target field type, and the target message is transmitted through the internal protocol, so that the communication and data interaction between the heterogeneous system and the main system is realized, and the reliability and efficiency of the interaction can be improved. And the target message data obtained by analyzing the target external protocol message is uploaded to the block chain, so that whether the target message data is falsified or not is checked on the basis of the target message data recorded in the block chain, and the safety, the non-falsification property and the open transparency of the target message data can be ensured.
As shown in fig. 3, in one embodiment, there is provided a heterogeneous system integration method, the method comprising:
s302, obtaining an external protocol message corresponding to the heterogeneous system to be integrated.
S304, the target protocol conversion function is inquired according to the external protocol corresponding to the external protocol message.
S306, when the target protocol conversion function is inquired, the target protocol conversion function is called to convert the external protocol into the internal protocol, and the external protocol message is converted into the internal protocol message coded according to the internal protocol.
And S308, when the target protocol conversion function is not inquired, sending a protocol conversion configuration request carrying the external protocol and the internal protocol to the second terminal.
And S310, receiving a configuration file fed back by the second terminal according to the protocol conversion configuration request.
And S312, configuring a protocol conversion function corresponding to the external protocol according to the configuration file.
S314, calling the configured protocol conversion function to convert the external protocol into the internal protocol, and converting the external protocol message into the internal protocol message coded according to the internal protocol.
S316, the internal protocol message is analyzed to obtain message data.
S318, sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for instructing the first terminal to pair the message field and the model field through a configurator.
And S320, receiving the matching field pair fed back by the first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair.
S322, traversing each message field and the corresponding message field type in the message data.
And S324, determining the model field corresponding to the currently traversed message field according to the data dictionary.
S326, obtaining the model field type corresponding to the determined model field from the built-in model, and establishing the corresponding relation between the obtained model field type and the currently traversed message field type.
And S328, inquiring the pre-configured field type conversion function according to the message field type corresponding to each message field and the corresponding model field type.
S330, associating each message field with the corresponding queried field type conversion function.
S332, storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner.
In the above embodiment, after the external protocol packet of the heterogeneous system to be integrated is obtained, if a target protocol conversion function corresponding to the external protocol is preconfigured locally, the target protocol conversion function is directly called to convert the external protocol packet into the internal protocol packet, otherwise, the target protocol conversion function is dynamically configured by the second terminal, the dynamically configured target protocol conversion function is called to convert the external protocol packet into the internal protocol packet, and the internal protocol packet is analyzed to obtain packet data. Further, the message fields in the message data are paired with the model fields in the pre-configured built-in model through the first terminal, the data dictionary is built according to the obtained matching field pairs, the field type conversion function corresponding to each message field in the message data is determined according to the data dictionary, the message data and the built-in model, and the field type conversion function is correspondingly configured locally, so that in the application process, based on the pre-configured data dictionary and the field type conversion function, the conversion between the message fields and the message field types can be rapidly and accurately realized, and the data interaction between the heterogeneous system and the main system is realized.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 4, there is provided a heterogeneous system integration apparatus 400, comprising: an obtaining module 402, a parsing module 404, a matching module 406, a receiving module 408, a determining module 410, and an associating module 412, wherein:
an obtaining module 402, configured to obtain an external protocol packet corresponding to a heterogeneous system to be integrated;
an analyzing module 404, configured to analyze an external protocol packet to obtain packet data;
a matching module 406, configured to send a field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator;
a receiving module 408, configured to receive the matching field pair fed back by the first terminal, and construct a data dictionary corresponding to the heterogeneous system according to the matching field pair;
a determining module 410, configured to determine, according to the data dictionary, the message data, and the built-in model, a field type conversion function corresponding to each message field in the message data;
the association module 412 is configured to associate and store the system identifier corresponding to the heterogeneous system with the data dictionary and the field type conversion function corresponding to each message field in the message data.
In an embodiment, the parsing module 404 is further configured to query the target protocol conversion function according to an external protocol corresponding to the external protocol packet; when a target protocol conversion function is inquired, calling the target protocol conversion function to convert an external protocol into an internal protocol, and converting an external protocol message into an internal protocol message coded according to the internal protocol; and analyzing the internal protocol message to obtain message data.
In an embodiment, the parsing module 404 is further configured to send a protocol conversion configuration request carrying an external protocol and an internal protocol to the second terminal when the target protocol conversion function is not queried; receiving a configuration file fed back by a second terminal aiming at the protocol conversion configuration request; configuring a protocol conversion function corresponding to an external protocol according to the configuration file; and calling the configured protocol conversion function to convert the external protocol into the internal protocol and convert the external protocol message into the internal protocol message coded according to the internal protocol.
In an embodiment, the determining module 410 is further configured to determine, according to the data dictionary, the message data, and the built-in model, a correspondence between a message field type corresponding to each message field in the message data and a model field type corresponding to a corresponding model field in the built-in model; inquiring a pre-configured field type conversion function according to the message field type corresponding to each message field and the corresponding model field type; and associating each message field with the corresponding queried field type conversion function.
In one embodiment, the determining module 410 is further configured to traverse each message field and the corresponding message field type in the message data; determining a model field corresponding to a currently traversed message field according to the data dictionary; and obtaining the model field type corresponding to the determined model field from the built-in model, and establishing the corresponding relation between the obtained model field type and the currently traversed message field type.
In an embodiment, the above-mentioned heterogeneous system integration apparatus 400 further includes: a model building module;
the model building module is used for acquiring the demand information of the target service; determining the object, the attribute and the object relation corresponding to the target service according to the requirement information; calling a modeling tool to construct a built-in model corresponding to the target service according to the object, the attribute and the object relation; the model fields of the built-in model include fields corresponding to each of the objects and the attributes.
In an embodiment, the above-mentioned heterogeneous system integration apparatus 400 further includes: the device comprises a mapping module, a conversion module and a transmission module;
the obtaining module 402 is further configured to obtain a target external protocol packet sent by the heterogeneous system through an external protocol; the parsing module 404 is further configured to parse the target external protocol packet to obtain target packet data; the mapping module is used for mapping the message field in the target message data into a target field according to the data dictionary; the conversion module is used for calling a field type conversion function corresponding to each message field in the target message data and converting the message field type corresponding to the corresponding message field into the target field type; the transmission module is used for determining a target message according to the target field and the corresponding target field type and transmitting the target message according to the internal protocol; and uploading the target message data to the block chain.
For specific limitations of the heterogeneous system integration apparatus, reference may be made to the above limitations of the heterogeneous system integration method, which is not described herein again. The various modules in the heterogeneous system integration apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server running a host system, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing a built-in model and a data dictionary corresponding to the heterogeneous system and a field type conversion function corresponding to each message field in the message data of the heterogeneous system. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a heterogeneous system integration method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring an external protocol message corresponding to a heterogeneous system to be integrated; analyzing the external protocol message to obtain message data; sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator; receiving a matching field pair fed back by a first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair; determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model; and storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner.
In one embodiment, the processor, when executing the computer program, further performs the steps of: inquiring a target protocol conversion function according to an external protocol corresponding to the external protocol message; when a target protocol conversion function is inquired, calling the target protocol conversion function to convert an external protocol into an internal protocol, and converting an external protocol message into an internal protocol message coded according to the internal protocol; and analyzing the internal protocol message to obtain message data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the target protocol conversion function is not inquired, sending a protocol conversion configuration request carrying an external protocol and an internal protocol to a second terminal; receiving a configuration file fed back by a second terminal aiming at the protocol conversion configuration request; configuring a protocol conversion function corresponding to an external protocol according to the configuration file; and calling the configured protocol conversion function to convert the external protocol into the internal protocol and convert the external protocol message into the internal protocol message coded according to the internal protocol.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the corresponding relation between the message field type corresponding to each message field in the message data and the model field type corresponding to the corresponding model field in the built-in model according to the data dictionary, the message data and the built-in model; inquiring a pre-configured field type conversion function according to the message field type corresponding to each message field and the corresponding model field type; and associating each message field with the corresponding queried field type conversion function.
In one embodiment, the processor, when executing the computer program, further performs the steps of: traversing each message field and the corresponding message field type in the message data; determining a model field corresponding to a currently traversed message field according to the data dictionary; and obtaining the model field type corresponding to the determined model field from the built-in model, and establishing the corresponding relation between the obtained model field type and the currently traversed message field type.
In one embodiment, the processor, when executing the computer program, further performs the building step of the built-in model, including: acquiring demand information of a target service; determining the object, the attribute and the object relation corresponding to the target service according to the requirement information; calling a modeling tool to construct a built-in model corresponding to the target service according to the object, the attribute and the object relation; the model fields of the built-in model include fields corresponding to each of the objects and the attributes.
In one embodiment, the processor, when executing the computer program, further performs the processing steps of the integrated heterogeneous system in the application phase, including: acquiring a target external protocol message sent by a heterogeneous system through an external protocol; analyzing the target external protocol message to obtain target message data; mapping message fields in the target message data into target fields according to the data dictionary; calling a field type conversion function corresponding to each message field in target message data, and converting the message field type corresponding to the corresponding message field into a target field type; determining a target message according to the target field and the corresponding target field type, and transmitting the target message according to an internal protocol; and uploading the target message data to the block chain.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring an external protocol message corresponding to a heterogeneous system to be integrated; analyzing the external protocol message to obtain message data; sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator; receiving a matching field pair fed back by a first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair; determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model; and storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner.
In one embodiment, the computer program when executed by the processor further performs the steps of: inquiring a target protocol conversion function according to an external protocol corresponding to the external protocol message; when a target protocol conversion function is inquired, calling the target protocol conversion function to convert an external protocol into an internal protocol, and converting an external protocol message into an internal protocol message coded according to the internal protocol; and analyzing the internal protocol message to obtain message data.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the target protocol conversion function is not inquired, sending a protocol conversion configuration request carrying an external protocol and an internal protocol to a second terminal; receiving a configuration file fed back by a second terminal aiming at the protocol conversion configuration request; configuring a protocol conversion function corresponding to an external protocol according to the configuration file; and calling the configured protocol conversion function to convert the external protocol into the internal protocol and convert the external protocol message into the internal protocol message coded according to the internal protocol.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the corresponding relation between the message field type corresponding to each message field in the message data and the model field type corresponding to the corresponding model field in the built-in model according to the data dictionary, the message data and the built-in model; inquiring a pre-configured field type conversion function according to the message field type corresponding to each message field and the corresponding model field type; and associating each message field with the corresponding queried field type conversion function.
In one embodiment, the computer program when executed by the processor further performs the steps of: traversing each message field and the corresponding message field type in the message data; determining a model field corresponding to a currently traversed message field according to the data dictionary; and obtaining the model field type corresponding to the determined model field from the built-in model, and establishing the corresponding relation between the obtained model field type and the currently traversed message field type.
In one embodiment, the computer program when executed by the processor further implements build-in model building steps comprising: acquiring demand information of a target service; determining the object, the attribute and the object relation corresponding to the target service according to the requirement information; calling a modeling tool to construct a built-in model corresponding to the target service according to the object, the attribute and the object relation; the model fields of the built-in model include fields corresponding to each of the objects and the attributes.
In one embodiment, the computer program when executed by the processor further performs the processing steps of the integrated heterogeneous system in the application phase, including: acquiring a target external protocol message sent by a heterogeneous system through an external protocol; analyzing the target external protocol message to obtain target message data; mapping message fields in the target message data into target fields according to the data dictionary; calling a field type conversion function corresponding to each message field in target message data, and converting the message field type corresponding to the corresponding message field into a target field type; determining a target message according to the target field and the corresponding target field type, and transmitting the target message according to an internal protocol; and uploading the target message data to the block chain.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile memory may include Read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A heterogeneous system integration method, the method comprising:
acquiring an external protocol message corresponding to a heterogeneous system to be integrated;
analyzing the external protocol message to obtain message data;
sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator;
receiving a matching field pair fed back by the first terminal, and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair;
determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model;
and storing the system identification corresponding to the heterogeneous system, the data dictionary and the field type conversion function corresponding to each message field in the message data in an associated manner.
2. The method according to claim 1, wherein the parsing the external protocol packet to obtain packet data comprises:
inquiring a target protocol conversion function according to an external protocol corresponding to the external protocol message;
when the target protocol conversion function is inquired, calling the target protocol conversion function to convert the external protocol into an internal protocol, and converting the external protocol message into an internal protocol message coded according to the internal protocol;
and analyzing the internal protocol message to obtain message data.
3. The method according to claim 2, wherein the parsing the external protocol packet to obtain packet data further comprises:
when the target protocol conversion function is not inquired, sending a protocol conversion configuration request carrying the external protocol and the internal protocol to a second terminal;
receiving a configuration file fed back by the second terminal aiming at the protocol conversion configuration request;
configuring a protocol conversion function corresponding to the external protocol according to the configuration file;
and calling the configured protocol conversion function to convert the external protocol into an internal protocol, and converting the external protocol message into an internal protocol message coded according to the internal protocol.
4. The method of claim 1, wherein determining a field type conversion function corresponding to each packet field in the packet data according to the data dictionary, the packet data, and the built-in model comprises:
determining a corresponding relation between a message field type corresponding to each message field in the message data and a model field type corresponding to a corresponding model field in the built-in model according to the data dictionary, the message data and the built-in model;
inquiring a pre-configured field type conversion function according to the message field type corresponding to each message field and the corresponding model field type;
and associating each message field with the corresponding queried field type conversion function.
5. The method of claim 4, wherein determining a correspondence between a packet field type corresponding to each packet field in the packet data and a model field type corresponding to a corresponding model field in the built-in model according to the data dictionary, the packet data, and the built-in model comprises:
traversing each message field and the corresponding message field type in the message data;
determining a model field corresponding to a currently traversed message field according to the data dictionary;
and obtaining the model field type corresponding to the determined model field from the built-in model, and establishing the corresponding relation between the obtained model field type and the currently traversed message field type.
6. The method of claim 1, wherein the building step of the built-in model comprises:
acquiring demand information of a target service;
determining the object, the attribute and the object relation corresponding to the target service according to the requirement information;
calling a modeling tool to construct a built-in model corresponding to the target service according to the object, the attribute and the object relation; the model fields of the built-in model comprise fields corresponding to the object and the attribute respectively.
7. The method according to any one of claims 1 to 6, wherein the integrated processing steps of the heterogeneous system in the application stage comprise:
acquiring a target external protocol message sent by the heterogeneous system through an external protocol;
analyzing the target external protocol message to obtain target message data;
mapping message fields in the target message data into target fields according to the data dictionary;
calling a field type conversion function corresponding to each message field in the target message data, and converting the message field type corresponding to the corresponding message field into the target field type;
determining a target message according to the target field and the corresponding target field type, and transmitting the target message according to an internal protocol;
and uploading the target message data to a block chain.
8. An apparatus for heterogeneous system integration, the apparatus comprising:
the acquisition module is used for acquiring an external protocol message corresponding to the heterogeneous system to be integrated;
the analysis module is used for analyzing the external protocol message to obtain message data;
the matching module is used for sending the field matching request to the first terminal; the field matching request carries a message field in the message data and a model field in a pre-configured built-in model; the field matching request is used for indicating the first terminal to pair the message field and the model field through a configurator;
the receiving module is used for receiving the matching field pair fed back by the first terminal and constructing a data dictionary corresponding to the heterogeneous system according to the matching field pair;
the determining module is used for determining a field type conversion function corresponding to each message field in the message data according to the data dictionary, the message data and the built-in model;
and the association module is used for associating and storing the system identifier corresponding to the heterogeneous system with the data dictionary and the field type conversion function corresponding to each message field in the message data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010461051.XA 2020-05-27 2020-05-27 Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium Active CN111683066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010461051.XA CN111683066B (en) 2020-05-27 2020-05-27 Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010461051.XA CN111683066B (en) 2020-05-27 2020-05-27 Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111683066A true CN111683066A (en) 2020-09-18
CN111683066B CN111683066B (en) 2023-06-23

Family

ID=72452875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010461051.XA Active CN111683066B (en) 2020-05-27 2020-05-27 Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111683066B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181414A (en) * 2020-09-28 2021-01-05 广州博冠信息科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112667721A (en) * 2020-12-28 2021-04-16 平安普惠企业管理有限公司 Data analysis method, device, equipment and storage medium
CN112835889A (en) * 2021-01-12 2021-05-25 杨飞 Heterogeneous system data integration method, system and equipment
CN113726781A (en) * 2021-08-31 2021-11-30 平安养老保险股份有限公司 Message information processing method and device, computer equipment and storage medium
CN114363412A (en) * 2022-01-07 2022-04-15 中国工商银行股份有限公司 Message data processing method and device, computer equipment and storage medium
CN114553757A (en) * 2022-01-29 2022-05-27 阿里巴巴(中国)有限公司 Protocol message processing method, device and equipment based on programmable switch
CN115002236A (en) * 2022-05-27 2022-09-02 杭州电子科技大学 Edge soft gateway for visual configuration of data protocol

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001080092A2 (en) * 2000-04-13 2001-10-25 Accenture Llp Method for a health care solution framework
CN104778243A (en) * 2015-04-09 2015-07-15 天脉聚源(北京)教育科技有限公司 Method and device for converting character data into numerical data
WO2017027868A1 (en) * 2015-08-13 2017-02-16 PositiveEdge Solutions LLC Configurable development platform integrating heterogeneous persistence systems
CN107045534A (en) * 2017-01-20 2017-08-15 中国航天系统科学与工程研究院 The heterogeneous database based on HBase is exchanged and shared system online under big data environment
CN107122428A (en) * 2017-04-12 2017-09-01 南京南瑞集团公司 A kind of database isomeric data Format Painter conversion method
CN109889553A (en) * 2019-04-18 2019-06-14 中国电子科技集团公司第二十九研究所 A kind of structuring message self-adaptive conversion method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001080092A2 (en) * 2000-04-13 2001-10-25 Accenture Llp Method for a health care solution framework
CN104778243A (en) * 2015-04-09 2015-07-15 天脉聚源(北京)教育科技有限公司 Method and device for converting character data into numerical data
WO2017027868A1 (en) * 2015-08-13 2017-02-16 PositiveEdge Solutions LLC Configurable development platform integrating heterogeneous persistence systems
CN107045534A (en) * 2017-01-20 2017-08-15 中国航天系统科学与工程研究院 The heterogeneous database based on HBase is exchanged and shared system online under big data environment
CN107122428A (en) * 2017-04-12 2017-09-01 南京南瑞集团公司 A kind of database isomeric data Format Painter conversion method
CN109889553A (en) * 2019-04-18 2019-06-14 中国电子科技集团公司第二十九研究所 A kind of structuring message self-adaptive conversion method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
栗华军;宋顺林;: "异构数据库集成系统的研究与实现", 计算机工程与设计 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181414A (en) * 2020-09-28 2021-01-05 广州博冠信息科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112667721A (en) * 2020-12-28 2021-04-16 平安普惠企业管理有限公司 Data analysis method, device, equipment and storage medium
CN112835889A (en) * 2021-01-12 2021-05-25 杨飞 Heterogeneous system data integration method, system and equipment
CN112835889B (en) * 2021-01-12 2023-12-29 杨飞 Heterogeneous system data integration method, system and equipment
CN113726781A (en) * 2021-08-31 2021-11-30 平安养老保险股份有限公司 Message information processing method and device, computer equipment and storage medium
CN113726781B (en) * 2021-08-31 2023-05-16 平安养老保险股份有限公司 Message information processing method, device, computer equipment and storage medium
CN114363412A (en) * 2022-01-07 2022-04-15 中国工商银行股份有限公司 Message data processing method and device, computer equipment and storage medium
CN114553757A (en) * 2022-01-29 2022-05-27 阿里巴巴(中国)有限公司 Protocol message processing method, device and equipment based on programmable switch
CN115002236A (en) * 2022-05-27 2022-09-02 杭州电子科技大学 Edge soft gateway for visual configuration of data protocol
CN115002236B (en) * 2022-05-27 2024-02-09 杭州电子科技大学 Edge soft gateway for visual configuration of data protocol

Also Published As

Publication number Publication date
CN111683066B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111683066B (en) Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN107766190B (en) Interface testing method and device, computer equipment and storage medium
CN109768970B (en) Configurable universal protocol generation method
WO2020258655A1 (en) Data verification method and apparatus, and computer device and storage medium
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
CN109787974B (en) Message data stream generation method and device, computer equipment and storage medium
CN107168971B (en) Data processing method and device for webpage application
CN114500690B (en) Interface data processing method and device, electronic equipment and storage medium
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN111274268A (en) Internet of things data transmission method, device, medium and electronic equipment
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
CN109067732A (en) Internet of things equipment and data insertion system, method and computer readable storage medium
CN109871289A (en) A kind of remote procedure call service creation method and device
CN112887451B (en) Domain name resolution method and device and computer equipment
CN111369237B (en) Data processing method and device and computer storage medium
CN112671734A (en) Message processing method facing multiple data sources and related equipment thereof
CN110275703B (en) Method and device for assigning key value to data, computer equipment and storage medium
CN113360300B (en) Interface call link generation method, device, equipment and readable storage medium
CN109218131B (en) Network monitoring method and device, computer equipment and storage medium
CN105094787B (en) Method and device for processing enterprise internet application
CN113037820A (en) Thing networking device communication module
CN112685115A (en) International cue language generating method, system, computer equipment and storage medium
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN111722938A (en) AT instruction processing method, AT instruction processing device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant