Interaction method and system between business system and open platform and device thereof

By deploying information interaction modules and interaction service interfaces in business systems and open platforms, the target information can be directly read and parsed, solving the problem of poor timeliness in the interaction between business systems and open platforms, and realizing fast data transmission and near real-time interaction.

CN116599975BActive Publication Date: 2025-12-16INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310553301.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2025-12-16
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

In existing technologies, the timeliness of interaction between business systems and open platforms is poor, failing to meet the requirements for near real-time interaction. Data interaction mainly occurs through host gateways or file transfer protocols, which involve cumbersome and complex steps.

Method used

Deploy an information interaction module in the business system and an interaction service interface in the open platform. Through pre-established relationships, directly read and parse the target information and realize data transmission through the interaction service interface.

Benefits of technology

It enables rapid data transmission between business systems and the open platform, meets the needs of near real-time interaction, simplifies the interaction process, and improves timeliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116599975B_ABST
    Figure CN116599975B_ABST
Patent Text Reader

Abstract

The application discloses an interactive method and system of a business system and an open platform, and an apparatus thereof, and relates to the field of cloud computing, wherein the interactive method comprises the following steps: receiving an interactive request sent by the open platform; calling an information interaction module, reading target information from a public communication area of the business system based on an information identifier by the information interaction module; analyzing a field value of the target information based on a preset data structure to obtain interactive data; and transmitting the interactive data to the open platform. The application solves the technical problem that, in the prior art, the interaction between the business system and the open platform is carried out through a host gateway or a file transmission protocol, the timeliness is poor, and the real-time interaction requirement cannot be met.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of cloud computing, in particular to an interaction method and system of a business system and an open platform, and a device thereof. BACKGROUND

[0002] The business system deployed on the host and the open platform where the application service is located are two independent systems, and the business system is relatively closed. With the growth of business demand and the advancement of platform processes under large hosts, more and more scenarios require real-time interaction between the business system and the open platform to ensure that the business processing and data processing of the host and the open platform remain synchronized. For example, when the business system is down, the open platform needs to operate certain business switches to maintain data consistency.

[0003] In related technologies, when the business system and the open platform interact, data interaction is mainly performed through a host gateway or a file transfer protocol, which needs to be completed through many steps, has poor timeliness, and is also relatively complex to implement, and cannot meet the quasi-real-time interaction requirements of application scenarios.

[0004] In view of the above problems, no effective solutions have been proposed so far. SUMMARY

[0005] The embodiments of the present application provide an interaction method and system of a business system and an open platform, and a device thereof, to at least solve the technical problem that in related technologies, the interaction between the business system and the open platform is performed through a host gateway or a file transfer protocol, which has poor timeliness and cannot meet the quasi-real-time interaction requirements.

[0006] According to an aspect of an embodiment of the present application, an interaction method of a business system and an open platform is provided, applied to the business system, the business system and the open platform pre-establishing an association relationship, and the business system pre-deploying an information interaction module. The interaction method comprises: receiving an interaction request sent by the open platform, wherein the interaction request at least comprises: an information identifier of target information requested to interact; calling the information interaction module, and reading the target information from a public communication area of the business system by the information interaction module based on the information identifier, wherein the information interaction module is pre-deployed in the business system, and the public communication area is an area accessible to each module in the business system; analyzing a field value of the target information based on a preset data structure to obtain interaction data; and transmitting the interaction data to the open platform.

[0007] Optionally, before reading the target information from the public communication area of the business system based on the information identifier by the information interaction module, the method further comprises: obtaining a memory address space of the public communication area where the connection section is located, wherein the connection section refers to a space section of the public communication area storing the target information; defining the preset data structure of the memory address space of the public communication area storing data; and writing the target information into the public communication area according to the preset data structure.

[0008] Optionally, the interaction request further comprises an interaction service address of the open platform, and the step of transmitting the interaction data to the open platform comprises: creating an interaction session, wherein the interaction session refers to a communication session opened by the pre-established association relationship between the business system and the open platform; determining a network interaction instruction based on the interaction session; assigning interaction information to the network interaction instruction, wherein the interaction information at least comprises the interaction service address of the open platform, the interaction data and the data length of the interaction data; and calling an interaction service interface based on the network interaction instruction after the assignment, and transmitting the interaction data to the open platform by the interaction service interface.

[0009] Optionally, the step of assigning interaction information to the network interaction instruction comprises: assigning the interaction service address of the open platform and the interaction data as attribute values; assigning the data length of the interaction data as an attribute length value; and generating the network interaction instruction based on the attribute values and the attribute length value.

[0010] Optionally, the information interaction module is written based on a COBOL language.

[0011] According to another aspect of the embodiments of the present application, an interaction method of a business system and an open platform is further provided, which is applied to an open platform, the open platform and the business system pre-establishing an association relationship, and an interaction service interface being pre-deployed on the open platform. The interaction method comprises: sending an interaction request to the business system, wherein the interaction request at least comprises an interaction service address of the open platform and an information identifier of target information requested for interaction; and calling the interaction service interface to receive interaction data transmitted by an information interaction module through the interaction service interface, wherein the interaction data is obtained by the information interaction module based on field values of the target information parsed according to a preset data structure.

[0012] Optionally, the step of calling the interaction service interface comprises: receiving a network interaction instruction sent by the business system; and calling the interaction service interface in response to the network interaction instruction.

[0013] Optionally, the open platform is deployed with a storage system for caching the interaction data transmitted by the interaction service interface, and after receiving the interaction data transmitted by the information interaction module through the interaction service interface, the method further comprises: storing the interaction data received by the interaction service interface into the storage system; reading the interaction data in the storage system through a distributed service framework Zookeeper; comparing the interaction data with historical interaction data; and pushing the interaction data to each application service in a case where a comparison result indicates that the interaction data is inconsistent with the historical interaction data, wherein each application service has a pre-established connection relationship with the distributed service framework Zookeeper.

[0014] According to another aspect of the embodiment of the present application, an interaction device of a business system and an open platform is also provided, which is applied to the business system, the business system has a pre-established association relationship with the open platform, and the business system is pre-deployed with an information interaction module. The interaction device comprises: a receiving unit configured to receive an interaction request sent by the open platform, wherein the interaction request at least comprises an information identifier of target information for which interaction is requested; a reading unit configured to call the information interaction module to read the target information from a public communication area of the business system based on the information identifier, wherein the information interaction module is pre-deployed in the business system, and the public communication area is an area accessible to each module in the business system; an analyzing unit configured to analyze field values of the target information based on a preset data structure to obtain interaction data; and a transmitting unit configured to transmit the interaction data to the open platform.

[0015] Optionally, the interaction device of the business system and the open platform further comprises: a first connection module configured to obtain a memory address space of a public communication area in which a connection section is located, wherein the connection section refers to a space section of the public communication area in which the target information is stored; a first definition module configured to define the preset data structure for storing data in the memory address space of the public communication area; and a first writing module configured to write the target information into the public communication area according to the preset data structure.

[0016] Optionally, the interaction request further comprises an interaction service address of the open platform, and the transmission unit comprises a first creation module configured to create an interaction session, wherein the interaction session is a communication session opened by the associated relationship pre-established between the business system and the open platform; a first determination module configured to determine a network interaction instruction based on the interaction session; a first assignment module configured to assign interaction information to the network interaction instruction, the interaction information at least comprising an interaction service address of the open platform, interaction data and a data length of the interaction data; and a first transmission module configured to call the interaction service interface based on the network interaction instruction after the assignment, and transmit the interaction data to the open platform by the interaction service interface.

[0017] Optionally, the first assignment module comprises a first assignment submodule configured to assign the interaction service address of the open platform and the interaction data as attribute values; a second assignment submodule configured to assign the data length of the interaction data as an attribute length value; and a first generation submodule configured to generate the network interaction instruction based on the attribute values and the attribute length value.

[0018] Optionally, the information interaction module is written based on a COBOL language.

[0019] According to another aspect of the embodiment of the present application, an interaction device of a business system and an open platform is further provided, and is applied to the open platform, the open platform pre-establishing an associated relationship with the business system, and an information interaction module being pre-deployed on the business system. The interaction device comprises a sending unit configured to send an interaction request to the business system, wherein the interaction request at least comprises an interaction service address of the open platform and an information identifier of target information requested for interaction; and a calling unit configured to call an interaction service interface and receive interaction data transmitted by the information interaction module through the interaction service interface, wherein the interaction data is obtained by the information interaction module based on pre-set data structure to analyze field values of the target information.

[0020] Optionally, the calling unit comprises a first receiving module configured to receive a network interaction instruction sent by the business system; and a first response module configured to respond to the network interaction instruction and call the interaction service interface.

[0021] Optionally, the open platform is deployed with a storage system for caching the interaction data transmitted by the interaction service interface, and the interaction device of the business system and the open platform further comprises: a first storage module for storing the interaction data received by the interaction service interface into the storage system; a first reading module for reading the interaction data in the storage system through a distributed service framework Zookeeper; a first comparison module for comparing the interaction data with historical interaction data; and a first pushing module for pushing the interaction data to each application service in a case where a comparison result indicates that the interaction data is inconsistent with the historical interaction data, wherein each application service has a pre-established connection relationship with the distributed service framework Zookeeper.

[0022] According to another aspect of the embodiments of the present application, an interaction system of a business system and an open platform is further provided, which comprises: a business system, wherein an information interaction module is deployed in the business system; and an open platform, wherein an interaction service interface, a storage system and a distributed service framework Zookeeper are deployed in the open platform; wherein the business system and the open platform have a pre-established connection through the information interaction module and the interaction service interface, the business system executes any one of the interaction methods of the business system and the open platform, and the open platform executes any one of the interaction methods of the business system and the open platform.

[0023] According to another aspect of the embodiments of the present application, a computer readable storage medium is further provided, which comprises a stored computer program, wherein the computer readable storage medium controls a device where the computer readable storage medium is located to execute any one of the interaction methods of the business system and the open platform when the computer program runs.

[0024] According to another aspect of the embodiments of the present application, an electronic device is further provided, which comprises one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any one of the interaction methods of the business system and the open platform.

[0025] In the present disclosure, an interaction request sent by an open platform is first received, wherein the interaction request at least comprises an information identifier of target information requested for interaction, an information interaction module is then called, the target information is read from a public communication area of a business system by the information interaction module based on the information identifier, a field value of the target information is parsed based on a preset data structure to obtain interaction data, and finally the interaction data is transmitted to the open platform.

[0026] In the present disclosure, by deploying an information interaction module in a business system, deploying an interactive service interface in an open platform, when the open platform has a business requirement, calling the information interaction module and the interactive service interface to realize online, the information interaction module directly reads and parses target information. Then actively trigger the open platform to receive interactive data, realize the rapid transmission of data, and solve the technical problems in the related art that the interaction between the business system and the open platform is carried out through the host gateway or the file transfer protocol, the timeliness is poor, and the real-time interaction requirement cannot be met. BRIEF DESCRIPTION OF DRAWINGS

[0027] The drawings described herein are used to provide further understanding of the present application, and form a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:

[0028] Figure 1 is a flowchart of an optional business system and open platform interaction method according to an embodiment of the present application;

[0029] Figure 2 is a flowchart of another optional business system and open platform interaction method according to an embodiment of the present application;

[0030] Figure 3 is an architecture diagram of an optional business system and open platform interaction system according to an embodiment of the present application;

[0031] Figure 4 is a schematic diagram of an optional business system and open platform interaction device according to an embodiment of the present application;

[0032] Figure 5 is a hardware structure block diagram of an electronic device (or mobile device) of a business system and open platform interaction method according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the person skilled in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should be within the scope of protection of the present application.

[0034] It is to be understood that the terms "first", "second", and the like in the description and in the claims of the application of the present application and the above-described accompanying drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to only those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product or device.

[0035] It should be noted that the interaction method between the business system and the open platform and the device thereof in the present disclosure can be used in the case of interaction between the business system and the open platform in the field of cloud computing, and can also be used in the case of interaction between the business system and the open platform in any field other than the field of cloud computing. The application field of the interaction method between the business system and the open platform and the device thereof in the present disclosure is not limited.

[0036] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation portal for user to choose authorization or refusal. For example, an interface is provided between the system and the relevant users or institutions, and before obtaining the relevant information, the interface needs to send an acquisition request to the aforementioned user or institution, and after receiving the consent information feedback from the aforementioned user or institution, the relevant information is acquired.

[0037] The following embodiments of the present application can be applied to various data transmission, platform interaction system / application / device. The present application constructs an information interaction module in the business system, and constructs an interaction service interface in the open platform. When there is a business demand in the business system and the open platform, the information interaction module directly reads the information of the business system and analyzes it to obtain the interaction data that needs to be interacted, and then directly calls the interaction service interface of the open platform to transmit the data to the interaction platform for calling by various application services.

[0038] The present application will be described in detail below in conjunction with various embodiments.

[0039] Embodiment one

[0040] According to the embodiment of the present application, an embodiment of a service system and an open platform interaction method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.

[0041] The service system and the open platform interaction method provided by the embodiment of the present application is described with the service system as the execution subject. The method is applied to the service system, the service system is connected with the open platform, the service system and the open platform pre-establish an association relationship, the information interaction module is deployed in the service system, and the interaction service interface is deployed on the open platform.

[0042] Figure 1 An optional flowchart of a service system and an open platform interaction method according to the embodiment of the present application is shown in FIG. 1, which includes the following steps: Figure 1

[0043] Step S101, receiving an interaction request sent by the open platform, wherein the interaction request at least includes an information identifier of a target information requested to interact;

[0044] Step S102, calling the information interaction module to read the target information from the public communication area of the service system based on the information identifier, wherein the information interaction module is pre-deployed in the service system, and the public communication area is an area accessible to each module in the service system;

[0045] Step S103, parsing the field value of the target information based on a preset data structure to obtain interaction data;

[0046] Step S104, transmitting the interaction data to the open platform.

[0047] Through the above steps, first, the interaction request sent by the open platform is received, then the information interaction module is called to read the target information from the public communication area of the service system based on the information identifier, wherein the information interaction module is pre-deployed in the service system, and the public communication area is an area accessible to each module in the service system, then the field value of the target information is parsed based on a preset data structure to obtain interaction data, and finally the interaction data is transmitted to the open platform.

[0048] ​In the embodiment, the information interaction module is deployed in the business system, the interactive service interface is deployed in the open platform, when the open platform has a business requirement, the information interaction module and the interactive service interface are called to realize online, the information interaction module directly reads and analyzes the target information. Then the open platform receives the interactive data, realizes the fast transmission of data, and solves the technical problem in the related art that the interaction between the business system and the open platform is realized through the host gateway or the file transmission protocol, the timeliness is poor, and the real-time interaction requirement cannot be met.

[0049] The embodiment of the application will be described in detail below in combination with the above steps.

[0050] In step S101, the interactive request sent by the open platform is received.

[0051] It should be noted that the open platform and the business system are two independent platforms, the business system belongs to a closed platform, and the open platform belongs to an open platform. The open platform has deployed a plurality of application services, and the application services can obtain application resource information or business data and the like through the open platform.

[0052] When the open platform needs to obtain related business data or application data, it needs to establish a connection with a specific business system, and the required data information can be obtained from the business system.

[0053] It should be noted that the business system in the embodiment of the application can be a CICS (Customer Information Control System) system.

[0054] Optionally, before the information interaction module reads the target information from the common communication area of the business system based on the information identifier, the method further includes: obtaining the memory address space of the common communication area where the connection section is located, wherein the connection section refers to the space section of the common communication area that stores the target information; defining a preset data structure of the memory address space of the common communication area that stores data; and writing the target information into the common communication area according to the preset data structure.

[0055] It should be noted that before data transmission, the data structure to be transmitted needs to be defined, so that when data analysis is performed, the byte where the business data is stored can be located according to the data structure, and the interactive data can be directly obtained.

[0056] It should be noted that when defining the data structure, the connection section for storing the target information needs to be determined first, which is a space section selected by the user according to the type and data size of the target information, for storing the target information. The connection section is in the memory address space of the public communication area. After the user selects the specified connection section, the data stored in the connection section is defined as the data structure, for example, for a 1KB connection section memory, 1-4 bytes are defined to store the data header, 5-8 bytes are defined to store the transaction number, and 9- the end stores the return information. After defining the data structure, the data of the business system needs to be stored in the corresponding position of the public communication area according to the data structure, so that the information interaction module can read and analyze it.

[0057] In step S102, the information interaction module is called, and the target information is read from the public communication area of the business system based on the information identifier by the information interaction module.

[0058] Optionally, the information interaction module is written based on the COBOL language.

[0059] It should be noted that the information interaction module is pre-written by the COBOL language and deployed in the business system, which is used to realize the functions of public communication area data analysis, open platform service calling, etc. The information interaction module can read and analyze the data in the public area, and then call the interaction service interface deployed in the open platform to directly transmit the data to the open platform.

[0060] In step S103, the field value of the target information is parsed based on the preset data structure to obtain interaction data.

[0061] It should be noted that the obtained target information is composed of multiple bytes and multiple parts, and the interaction data to be transmitted is only the data stored in part of the bytes. Therefore, to obtain the interaction data, the target information needs to be parsed first. Since the data structure is defined in advance, the interaction data can be obtained by parsing the data according to the defined data structure and the specific target information.

[0062] In step S104, the interaction service interface is called to transmit the interaction data to the open platform.

[0063] It should be noted that after obtaining the interaction data requested by the interaction platform, the information interaction module will directly call the interaction service interface to transmit the interaction data to the open platform through the interface.

[0064] Optionally, the interaction request further comprises an interaction service address of the open platform, and the step of transmitting the interaction data to the open platform comprises: creating an interaction session, wherein the interaction session refers to a communication session opened by a pre-established association relationship between the business system and the open platform; determining a network interaction instruction based on the interaction session; assigning interaction information to the network interaction instruction, the interaction information at least comprising the interaction service address of the open platform, the interaction data, and a data length of the interaction data; and calling the interaction service interface based on the assigned network interaction instruction, and transmitting the interaction data to the open platform by the interaction service interface.

[0065] It should be noted that when transmitting data, the information interaction module first creates an interaction session, calls a relevant network interaction instruction, and sends interaction information involved in this data transmission, i.e., interaction information, into the network interaction instruction. The interaction information includes but is not limited to: the interaction service address of the open platform, the interaction data, and the interaction data length, the interaction data attribute, and the transmission interface attribute. Through the network interaction instruction, the interaction service interface can be called to realize the interaction between the business system and the open platform.

[0066] Optionally, the step of assigning the interaction information to the network interaction instruction comprises: assigning the interaction service address of the open platform and the interaction data as attribute values; assigning the data length of the interaction data as an attribute length value; and generating the network interaction instruction based on the attribute values and the attribute length value.

[0067] It should be noted that when creating the network interaction instruction, the variable values of the network interaction instruction are obtained according to the parsed interaction data and the interaction service address, such as the IP address, carried in the interaction request. These variable values are written into the network interaction instruction, so that the interaction data can be directly transmitted to the interaction service address through the instruction, thereby improving the data transmission efficiency.

[0068] Specifically, in the CICS system, the open platform interaction service address and the interaction data are assigned to the VALUE (attribute value) of the CICS WEB WRITE instruction by limiting the data transmission conditions through the CICS WEB WRITE instruction, the interaction data length, i.e., the bytes occupied by the interaction data, is assigned to the VALUELENG (attribute length value) of the CICS WEB WRITE instruction, and the transmission interface attribute, the interaction data attribute, and the memory address space identifier are assigned as other attributes to the CICS WEB WRITE instruction, so as to call the interaction service interface through the instruction.

[0069] Alternatively, the open platform is deployed with a storage system for caching the interaction data transmitted by the interaction service interface.

[0070] It should be noted that after receiving the interaction data, the open platform stores the interaction data to a storage system, each application service deployed on the application platform can access the storage system, the storage system is connected with the distributed service framework Zookeeper, whether the business data is updated is determined through the distributed service framework Zookeeper, and then the updated business data is pushed to each application service on the interaction platform.

[0071] The following will be described in detail in combination with another embodiment.

[0072] Embodiment two

[0073] According to the embodiment of the application, another embodiment of the interaction method of the business system and the open platform is provided, and it should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that herein.

[0074] The interaction method of the business system and the open platform provided by the embodiment of the application is described taking the open platform as an execution subject, the method is applied to the open platform, the business system is connected with the open platform, the business system and the open platform pre-establish an association relationship, the information interaction module is deployed in the business system, and the interaction service interface is deployed on the open platform.

[0075] Figure 2 is a flowchart of another optional interaction method of the business system and the open platform according to the embodiment of the application, as shown in Figure 2 The interaction method comprises the following steps:

[0076] Step S201, an interaction request is sent to the business system, wherein the interaction request at least comprises an interaction service address of the open platform and an information identifier of target information requested to interact;

[0077] Step S202, the interaction service interface is called, and interaction data transmitted by the information interaction module is received through the interaction service interface, wherein the interaction data is obtained by the information interaction module based on a preset data structure analyzing a field value of the target information.

[0078] Through the above steps, the interaction request is first sent to the business system, wherein the interaction request at least comprises an interaction service address of the open platform and an information identifier of target information requested to interact, and then the interaction data transmitted by the information interaction module is received through the interaction service interface, wherein the interaction data is obtained by the information interaction module based on a preset data structure analyzing a field value of the target information.

[0079] In the embodiment, the information interaction module is deployed in the business system, the interaction service interface is deployed in the open platform, when the open platform has a business requirement, the information interaction module and the interaction service interface are called to realize online, the information interaction module directly reads and analyzes target information. Then the open platform receives interaction data, realizes fast transmission of data, and solves the technical problem in the related art that the interaction between the business system and the open platform is realized through a host gateway or a file transmission protocol, time efficiency is poor, and the real-time interaction requirement cannot be met.

[0080] The embodiment of the application will be described in detail below in combination with the above steps.

[0081] In step S201, an interaction request is sent to the business system.

[0082] It should be noted that the open platform and the business system are two independent platforms, the business system belongs to a closed platform, and the open platform belongs to an open platform. The open platform has deployed a plurality of application services, and the application services can obtain application resource information or business data and the like through the open platform.

[0083] When the open platform needs to obtain related business data or application data, it needs to establish a connection with a specific business system, and the required data information can be obtained from the business system.

[0084] It should be noted that before data transmission, the data structure of the data to be transmitted needs to be defined, so that the business data storage byte can be located according to the data structure during data analysis, and the interaction data can be directly obtained.

[0085] First, the connection section of the target information needs to be determined. The connection section is a space section selected by a user according to the type and data size of the target information, and is used to store the target information. The connection section is in the memory address space of the public communication area. After the user selects the specified connection section, the data structure of the data stored in the connection section is defined, for example, for a 1KB connection section memory, 1-4 bytes are defined to store a data header, 5-8 bytes are defined to store a transaction number, and 9- the end is defined to store return information. After the data structure is defined, the data of the business system needs to be stored in the corresponding position of the public communication area according to the data structure, so as to be read and analyzed by the information interaction module.

[0086] It should be noted that the information interaction module deployed in the business system is obtained by pre-writing COBOL language, and is used to realize functions such as public communication area data analysis and open platform service calling. The information interaction module can read and analyze the data in the public area, and then call the interaction service interface deployed in the open platform to directly transmit the data to the open platform.

[0087] It should be noted that the obtained target information is composed of multiple bytes and multiple parts, and the interactive data to be transmitted is only the data stored in part of the bytes, so in order to obtain the interactive data, the target information needs to be parsed first. Since the data structure is defined in advance, when the data is parsed, the interactive data can be obtained according to the defined data structure and the specific target information.

[0088] It should be noted that after obtaining the interactive data requested by the interaction platform, the information interaction module directly calls the interaction service interface to transmit the interactive data to the open platform through the interface.

[0089] Step S202, calling the interaction service interface, receiving the interactive data transmitted by the information interaction module through the interaction service interface.

[0090] Optionally, the step of calling the interaction service interface comprises: receiving a network interaction instruction sent by the information interaction module of the business system; and calling the interaction service interface in response to the network interaction instruction.

[0091] It should be noted that when data transmission is performed, the information interaction module first creates an interaction session, calls the relevant network interaction instruction, and sends the variables involved in this data transmission, i.e., the interaction information, into the network interaction instruction. The interaction information includes but is not limited to: the interaction service address of the open platform, the interaction data and the length of the interaction data, the attribute of the interaction data, the attribute of the transmission interface, through the network interaction instruction, the interaction service interface can be called to realize the interaction between the business system and the open platform.

[0092] It should be noted that when the network interaction instruction is created, the variable values of the network interaction instruction are obtained according to the parsed interaction data and the interaction service address carried in the interaction request, such as IP address, etc. These variable values are written into the network interaction instruction, and the interaction data can be directly transmitted to the interaction service address through the instruction, thereby improving the data transmission efficiency.

[0093] Specifically, in the CICS system, the data transmission condition is limited by the CICS WEB WRITE instruction, the open platform interaction service address and the interaction data are assigned to the VALUE (attribute value) of the CICS WEB WRITE instruction, the length of the interaction data, i.e., the number of bytes occupied by the interaction data, is assigned to the VALUELENG of the CICS WEB WRITE instruction, and the transmission interface attribute, the interaction data attribute and the memory address space identifier are assigned as other attributes to the CICS WEB WRITE instruction, so as to call the interaction service interface through the instruction.

[0094] Optionally, after receiving the interaction data transmitted by the information interaction module through the interaction service interface, the method comprises: storing the interaction data received by the interaction service interface into a storage system; reading the interaction data in the storage system through a distributed service framework Zookeeper; comparing the interaction data with historical interaction data; and pushing the interaction data to each application service in a case where the comparison result indicates that the interaction data is inconsistent with the historical interaction data, wherein each application service has a pre-established connection relationship with the distributed service framework Zookeeper.

[0095] It should be noted that the open platform further deploys a storage system and a distributed service framework Zookeeper, and after receiving the interaction data, the open platform stores the interaction data into the storage system and determines whether the business data is updated through the distributed service framework Zookeeper, and pushes the updated data to each application service on the interaction platform.

[0096] The following will be described in detail in combination with another embodiment.

[0097] Embodiment three

[0098] The embodiment provides an interaction system of a business system and an open platform, each implementation unit included in the interaction system of the business system and the open platform corresponds to each implementation step in the above-described embodiment one.

[0099] The interaction system comprises: a business system, the business system deploying an information interaction module; and an open platform, the open platform deploying an interaction service interface, a storage system and a distributed service framework Zookeeper; wherein the business system and the open platform have a pre-established connection through the information interaction module and the interaction service interface, the business system executes a business system and open platform interaction method applied to the business system, and the open platform executes a business system and open platform interaction method applied to the open platform.

[0100] The business system of the embodiment of the application can be a CICS (Customer Information Control System, customer information control system) system.

[0101] Figure 3 is an architecture diagram of an optional interaction system of a business system and an open platform according to the embodiment of the application, as Figure 3As shown, the interaction system includes a host end where the business system is located and an open platform, the information interaction module is deployed in the business system, the interaction service interface is deployed in the open platform, the information interaction module calls the interaction service interface to be online with the open platform, the data requested by the open platform is transmitted to the open system, the storage system, the Zookeeper distributed service framework and multiple application services are also deployed in the open system, the application service A, the application service B and the application service C are shown in the figure, and each application service can access the storage system and the Zookeeper distributed service framework.

[0102] The interaction method of the business system and the open platform is applied to the interaction system, and the specific interaction process is as follows:

[0103] Step one, one or more services for interacting with the host are deployed on the open platform end, and an interaction service interface is provided, the interaction service can receive host data and can write data into the open platform storage system (database or file library, etc.);

[0104] Step two, an information interaction module is deployed on the host end;

[0105] Step three, when the business system needs to send signals or data to the open platform, the signals or data are written into the public communication area;

[0106] Step four, the information interaction module initializes the variable address space of the working storage area, and the initialization process includes but is not limited to: variable type definition, variable assignment;

[0107] Step five, determine the connection section of the target information storage, and define the data structure of the data stored in the memory address of the public communication area in the connection section;

[0108] Step six, the information interaction module reads the public communication area data.

[0109] Step seven, according to the pre-defined memory address data structure, parse the field value in the target information to obtain the interaction data;

[0110] Step eight, build an interaction session, and the business system and the interaction platform establish a connection through the interaction session;

[0111] Step nine, assign the open platform interaction service address and the interaction data to the attribute value of the network interaction instruction, and assign the data length to the attribute length value of the network interaction instruction;

[0112] Step ten, execute the network interaction instruction to call the interaction service interface and transmit the interaction data;

[0113] Step eleven, close the current interaction session;

[0114] Step twelve, the open platform interactive service interface receives the interactive data, and writes the host signal or data to the open platform end storage system.

[0115] Step thirteen, the signal / data is pushed to each application service in quasi-real time through the Zookeeper distributed service framework.

[0116] Through the above steps, the information interaction module is constructed in the business system, and the interactive service interface is constructed in the open platform. When there is a business demand in the business system and the open platform, the information interaction module directly reads the information of the business system, and analyzes the information to obtain the interactive data which needs to be interacted, and then directly calls the interactive service interface of the open platform to transmit the data to the interactive platform for calling by each application service.

[0117] The following will be described in detail in combination with another embodiment.

[0118] Embodiment four

[0119] The interactive device of the business system and the open platform provided in the embodiment comprises a plurality of implementation units, and each implementation unit corresponds to each implementation step in the above-described embodiment one.

[0120] Figure 4 is a schematic diagram of an optional interactive device of a business system and an open platform according to an embodiment of the present application, as Figure 4 shown, the interactive device is applied to a business system, the business system and an open platform are pre-associated, and the business system is pre-deployed with an information interaction module, which comprises a receiving unit 41, a reading unit 42, an analyzing unit 43 and a transmitting unit 44, wherein,

[0121] The receiving unit 41 is configured to receive an interactive request sent by the open platform, wherein the interactive request at least comprises an information identifier of target information which needs to be interacted;

[0122] The reading unit 42 is configured to call the information interaction module to read the target information from a public communication area of the business system based on the information identifier, wherein the public communication area is an area which can be accessed by each module in the business system;

[0123] The analyzing unit 43 is configured to analyze a field value of the target information based on a preset data structure to obtain interactive data;

[0124] The transmitting unit 44 is configured to transmit the interactive data to the open platform.

[0125] The interaction device receives an interaction request sent by the open platform through the receiving unit 41, wherein the interaction request at least includes information identification of target information requested for interaction; the information interaction module is called through the reading unit 42, and the target information is read from the public communication area of the business system based on the information identification by the information interaction module, wherein the public communication area is an area accessible to each module in the business system; the field value of the target information is parsed based on a preset data structure by the parsing unit 43 to obtain interaction data; and the interaction data is transmitted to the open platform by the transmission unit 44.

[0126] In the embodiment, the information interaction module is deployed in the business system, the interaction service interface is deployed in the open platform, the information interaction module and the interaction service interface are called to realize online connection when the open platform has a business requirement, and the target information is directly read and parsed by the information interaction module. Then, the open platform receives the interaction data, the rapid transmission of data is realized, and the technical problem that the timeliness is poor and the real-time interaction requirement cannot be met in the related art by using the host gateway or the file transmission protocol for interaction between the business system and the open platform is solved.

[0127] Optionally, the interaction device of the business system and the open platform further includes: a first connection module configured to obtain a memory address space of a public communication area where a connection section is located, wherein the connection section refers to a space section in the public communication area for storing the target information; a first definition module configured to define a preset data structure for storing data in the memory address space of the public communication area; and a first writing module configured to write the target information into the public communication area according to the preset data structure.

[0128] Optionally, the interaction request further includes an interaction service address of the open platform, and the transmission unit includes: a first creation module configured to create an interaction session, wherein the interaction session refers to a communication session opened by a previously established association relationship between the business system and the open platform; a first determination module configured to determine a network interaction instruction based on the interaction session; a first assignment module configured to assign interaction information to the network interaction instruction, wherein the interaction information at least includes the interaction service address of the open platform, the interaction data, and a data length of the interaction data; and a first transmission module configured to call the interaction service interface based on the network interaction instruction after the assignment, and transmit the interaction data to the open platform by the interaction service interface.

[0129] Optionally, the first assignment module includes: a first assignment submodule configured to assign the interaction service address of the open platform and the interaction data as attribute values; a second assignment submodule configured to assign the data length of the interaction data as an attribute length value; and a first generation submodule configured to generate the network interaction instruction based on the attribute values and the attribute length value.

[0130] Optionally, the information interaction module is written based on the COBOL language.

[0131] According to another aspect of the embodiments of the present application, there is further provided an interaction device of a business system and an open platform, applied to the open platform, the open platform having a pre-established association relationship with the business system, and the open platform having a pre-deployed interaction service interface, the interaction device comprising: a sending unit configured to send an interaction request to the business system, wherein the interaction request comprises at least an interaction service address of the open platform and an information identifier of target information requested for interaction; and a calling unit configured to call the interaction service interface and receive interaction data transmitted by an information interaction module through the interaction service interface, wherein the interaction data is obtained by the information interaction module based on a preset data structure to analyze field values of the target information.

[0132] Optionally, the calling unit comprises: a first receiving module configured to receive a network interaction instruction sent by the information interaction module of the business system; and a first response module configured to respond to the network interaction instruction and call the interaction service interface.

[0133] Optionally, the open platform is deployed with a storage system configured to cache the interaction data transmitted by the interaction service interface, and the interaction device of the business system and the open platform further comprises: a first storage module configured to store the interaction data received by the interaction service interface into the storage system; a first reading module configured to read the interaction data in the storage system through a distributed service framework Zookeeper; a first comparison module configured to compare the interaction data with historical interaction data; and a first pushing module configured to push the interaction data to each application service in a case where a comparison result indicates that the interaction data is inconsistent with the historical interaction data, wherein each application service has a pre-established connection relationship with the distributed service framework Zookeeper.

[0134] The above-mentioned interaction device of the business system and the open platform can further comprise a processor and a memory, and the above-mentioned receiving unit 41, reading unit 42, analyzing unit 43 and transmitting unit 44 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0135] The above-mentioned processor comprises a core, and the core calls corresponding program units from the memory. The core can be set as one or more, and the interaction between the business system and the open platform is realized by adjusting core parameters.

[0136] The above-mentioned memory can comprise a non-permanent memory in a computer readable medium, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash RAM, and the memory comprises at least one memory chip.

[0137] According to another aspect of the embodiments of the present application, a computer readable storage medium is also provided, which includes a stored computer program, wherein the computer readable storage medium controls the device where the computer readable storage medium is located to perform the interaction method between the business system and the open platform according to any one of the above aspects when the computer program is executed.

[0138] According to another aspect of the embodiments of the present application, an electronic device is also provided, which includes one or more processors and a memory, the memory being configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the interaction method between the business system and the open platform according to any one of the above aspects.

[0139] The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program that is initialized with the following method steps: receiving an interaction request sent by an open platform, wherein the interaction request at least includes: information identification of target information requested for interaction; calling an information interaction module, and reading the target information from a public communication area of a business system based on the information identification by the information interaction module, wherein the information interaction module is pre-deployed in the business system, and the public communication area is an area accessible to each module in the business system; parsing a field value of the target information based on a preset data structure to obtain interaction data; and transmitting the interaction data to the open platform.

[0140] Figure 5 is a hardware structure block diagram of an electronic device (or a mobile device) according to the interaction method between the business system and the open platform of the embodiments of the present application. As shown in Figure 5 , the electronic device can include one or more (as shown in Figure 5 502a, 502b, …, 502n) processors 502 (the processor 502 can include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 504 for storing data. In addition, it can also include a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which can be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. Those skilled in the art can understand that the structure shown is only schematic, and it does not limit the structure of the above-mentioned electronic device. For example, the electronic device can include more or less components than those shown in Figure 5 , or have a different configuration from that shown in Figure 5 . Figure 5

[0141] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0142] ​In the above-mentioned embodiments of the present application, the description of each embodiment is focused on, and the part not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0143] In several embodiments provided in the present application, it should be understood that the disclosed technical contents can be implemented by other ways. Among them, the above-mentioned device embodiments are only schematic, for example, the division of the units can be a logical function division, and in actual implementation, there can be another division way, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or modules shown or discussed can be indirect coupling or communication connection through some interfaces, and can be electrical or other forms.

[0144] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed to a plurality of units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0145] In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0146] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part of the prior art that contributes or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.

[0147] The above-mentioned is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be regarded as the protection scope of the present application.

Claims

1. A method for interaction between a business system and an open platform, characterized in that, The application is applied to a business system, the business system has a pre-established association relationship with an open platform, the business system has pre-deployed an information interaction module, and the interaction method comprises the following steps: receiving an interaction request sent by the open platform, wherein the interaction request at least comprises an information identifier of target information for which interaction is requested; calling the information interaction module to read the target information from a public communication area of the business system based on the information identifier, wherein the public communication area is an area accessible to each module in the business system; analyzing field values of the target information based on a preset data structure to obtain interaction data; transmitting the interaction data to the open platform, comprising: creating an interaction session, wherein the interaction session refers to a communication session opened by the pre-established association relationship between the business system and the open platform; determining a network interaction instruction based on the interaction session; assigning interaction information to the network interaction instruction, the interaction information at least comprising an interaction service address of the open platform, interaction data, and a data length of the interaction data; and calling an interaction service interface based on the network interaction instruction after the assignment, and transmitting the interaction data to the open platform by the interaction service interface.

2. The interaction method of claim 1, wherein, Before the information interaction module reads the target information from the public communication area of the business system based on the information identifier, the method further comprises the following steps: obtaining a memory address space of the public communication area where the connection section is located, wherein the connection section refers to a space section in the public communication area that stores the target information; defining the preset data structure for storing data in the memory address space of the public communication area; writing the target information into the public communication area according to the preset data structure.

3. The interaction method of claim 1, wherein, The interaction request further comprises an interaction service address of the open platform.

4. The interaction method of claim 3, wherein, The step of assigning interaction information to the network interaction instruction comprises the following steps: assigning the interaction service address of the open platform and the interaction data as attribute values; assigning the data length of the interaction data as an attribute length value; generating the network interaction instruction based on the attribute values and the attribute length value.

5. The interaction method according to any one of claims 1 to 4, characterized in that, The information interaction module is written based on the COBOL language.

6. A method of interaction between a business system and an open platform, characterized in that, The application is applied to an open platform, the open platform has a pre-established association relationship with a business system, and the open platform has pre-deployed an interaction service interface, and the interaction method comprises the following steps: sending an interaction request to the business system, wherein the interaction request at least comprises an interaction service address of the open platform and an information identifier of target information for which interaction is requested; calling the interaction service interface to receive interaction data transmitted by an information interaction module through the interaction service interface, wherein the interaction data is obtained by the information interaction module based on a preset data structure analyzing field values of the target information; The information interaction module receives the interaction data transmitted by the interaction service interface, and the following steps are performed by the information interaction module: an interaction session is created, wherein the interaction session is a communication session opened by the association relationship between the business system and the open platform; a network interaction instruction is determined based on the interaction session; interaction information is assigned to the network interaction instruction, and the interaction information at least includes an interaction service address of the open platform, interaction data, and a data length of the interaction data; the interaction service interface is called based on the assigned network interaction instruction, and the interaction data is transmitted to the open platform by the interaction service interface.

7. The interaction method of claim 6, wherein, The step of calling the interaction service interface comprises: receiving a network interaction instruction sent by the business system; calling the interaction service interface in response to the network interaction instruction.

8. The interaction method of claim 6, wherein, The open platform is deployed with a storage system for caching the interaction data transmitted by the interaction service interface, and after receiving the interaction data transmitted by the information interaction module through the interaction service interface, the following steps are further included: storing the interaction data received by the interaction service interface into the storage system; reading the interaction data in the storage system through a distributed service framework Zookeeper; comparing the interaction data with historical interaction data; in the case where the comparison result indicates that the interaction data is inconsistent with the historical interaction data, pushing the interaction data to each application service, wherein each application service has a pre-established connection relationship with the distributed service framework Zookeeper.

9. An apparatus for interaction between a business system and an open platform, characterized in that The application is applied to a business system, and the business system has a pre-established association relationship with an open platform. The business system is pre-deployed with an information interaction module, and the interaction device comprises: a receiving unit configured to receive an interaction request sent by the open platform, wherein the interaction request at least includes an information identifier of target information for which interaction is requested; a reading unit configured to call an information interaction module to read the target information from a public communication area of the business system based on the information identifier, wherein the information interaction module is pre-deployed in the business system, and the public communication area is an area accessible to each module in the business system; an analysis unit configured to analyze a field value of the target information based on a preset data structure to obtain interaction data; a transmission unit configured to transmit the interaction data to the open platform; The transmission unit comprises: a first creation module configured to create an interactive session, wherein the interactive session refers to a communication session opened by the association relationship pre-established between the business system and the open platform; a first determination module configured to determine a network interaction instruction based on the interactive session; a first assignment module configured to assign interactive information to the network interaction instruction, the interactive information at least comprising an interactive service address of the open platform, interactive data, and a data length of the interactive data; and a first transmission module configured to call an interactive service interface based on the network interaction instruction after the assignment, and transmit the interactive data to the open platform by the interactive service interface.

10. An apparatus for interaction between a business system and an open platform, characterized in that The application is applied to an open platform, the open platform and a business system pre-establish an association relationship, and an interactive service interface is pre-deployed on the open platform. The interactive device comprises: a sending unit configured to send an interactive request to the business system, wherein the interactive request at least comprises an interactive service address of the open platform, and an information identifier of target information requested for interaction; a calling unit configured to call an interactive service interface and receive interactive data transmitted by an information interaction module through the interactive service interface, wherein the interactive data is obtained by the information interaction module based on a preset data structure to analyze field values of the target information; wherein, when the interactive data transmitted by the information interaction module is received through the interactive service interface, the following steps are executed by the information interaction module: creating an interactive session, wherein the interactive session refers to a communication session opened by the association relationship pre-established between the business system and the open platform; determining a network interaction instruction based on the interactive session; assigning interactive information to the network interaction instruction, the interactive information at least comprising an interactive service address of the open platform, interactive data, and a data length of the interactive data; and calling an interactive service interface based on the network interaction instruction after the assignment, and transmitting the interactive data to the open platform by the interactive service interface.

11. An interaction system of a business system and an open platform, characterized by, The interactive system comprises: a business system, wherein an information interaction module is deployed in the business system; and an open platform, wherein an interactive service interface, a storage system, and a distributed service framework Zookeeper are deployed in the open platform; wherein the business system and the open platform pre-establish a connection through the information interaction module and the interactive service interface, the business system executes the interactive method of the business system and the open platform in any one of claims 1 to 5, and the open platform executes the interactive method of the business system and the open platform in any one of claims 6 to 8.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium comprises a stored computer program, wherein the computer-readable storage medium controls a device where the computer-readable storage medium is located to execute the interactive method of the business system and the open platform in any one of claims 1 to 8 when the computer program runs.

13. An electronic device, comprising: An apparatus, including one or more processors and memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the business system and the interaction method of the open platform of any one of claims 1 to 8. An apparatus, including one or more processors and memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the business system and the interaction method of the open platform of any one of claims 1 to 8.

Citation Information

Patent Citations

  • Business data processing method and device and server

    CN113364857A

  • Gateway service-based open platform interaction method, device, system and medium

    CN115865420A