CN117312433A - Method, device and system for transmitting service data based on direct connection port - Google Patents
Method, device and system for transmitting service data based on direct connection port Download PDFInfo
- Publication number
- CN117312433A CN117312433A CN202311280278.4A CN202311280278A CN117312433A CN 117312433 A CN117312433 A CN 117312433A CN 202311280278 A CN202311280278 A CN 202311280278A CN 117312433 A CN117312433 A CN 117312433A
- Authority
- CN
- China
- Prior art keywords
- data
- interface
- business
- direct connection
- processing
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域Technical field
本发明涉及业务数据传输的技术领域,尤其涉及一种基于直连接口的业务数据传输方法、装置及系统。The present invention relates to the technical field of business data transmission, and in particular, to a business data transmission method, device and system based on a direct connection interface.
背景技术Background technique
随着科技的发展,越来越多的企业设置或构建对应的数据处理系统(例如SAP ECC系统)。通过数据处理系统与各个公司或企业的系统进行各类基础数据和业务数据的传输,以实现线上业务与信息的交互来往。With the development of science and technology, more and more enterprises have set up or built corresponding data processing systems (such as SAP ECC system). Through the data processing system, various basic data and business data are transmitted to the systems of various companies or enterprises to realize the interaction of online business and information.
为了实现多系统的数据交互,数据处理系统与各个系统目前常用的通信方式大多数是通过kettle、sterling、FTP等异步中间件的方式进行数据传输。但目前常用的方法有如下技术问题:由于数据处理系统与每个外部系统均进行异步通信,每次进行数据传输时,其时效较差,延时较长;而且数据处理系统与每个外部系统的数据传输接口不尽相同,导致数据传输的稳定性较低,失败率较高,且数据容易丢失,往往在丢失后需要重新进行数据传输,进一步降低了数据传输与数据处理的效率。In order to realize data interaction among multiple systems, most of the commonly used communication methods between data processing systems and various systems are to transmit data through asynchronous middleware such as kettle, sterling, and FTP. However, the currently commonly used methods have the following technical problems: Since the data processing system communicates asynchronously with each external system, each time data is transmitted, the timeliness is poor and the delay is long; The data transmission interfaces are different, resulting in low stability of data transmission, high failure rate, and easy data loss. Data often needs to be retransmitted after loss, further reducing the efficiency of data transmission and data processing.
发明内容Contents of the invention
本发明提出一种基于直连接口的业务数据传输方法、装置及系统,所述方法的数据处理系统集合了多个与外部系统连接的直连接口,通过运行多个集成的直连接口与多个外部系统进行多线程的通信连接,不但可以缩短通信的延时,提升传输效率,而且可以提升数据传输的稳定性。The present invention proposes a business data transmission method, device and system based on direct connection interfaces. The data processing system of the method integrates multiple direct connection interfaces connected to external systems. By running multiple integrated direct connection interfaces and multiple Multi-threaded communication connections with an external system can not only shorten communication delays and improve transmission efficiency, but also improve the stability of data transmission.
本发明实施例的第一方面提供了一种基于直连接口的业务数据传输方法,所述方法适用于集成了多个直连接口的数据处理系统,所述方法包括:The first aspect of the embodiment of the present invention provides a business data transmission method based on a direct connection interface. The method is suitable for a data processing system integrating multiple direct connection interfaces. The method includes:
分别获取每个直连接口采集的接口数据,所述接口数据为所述直连接口所连接的外部系统输入的数据;Obtain the interface data collected by each direct connection interface respectively, where the interface data is data input by the external system connected to the direct connection interface;
在保存所述接口数据后,利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据;After saving the interface data, use an interface batch tool to perform business processing on the interface data according to the business logic of the external system corresponding to each interface data to obtain business data;
当所述直连接口的回调状态为未回调时,将所述业务数据回调至对应的外部系统,以供外部系统调用。When the callback status of the direct interface is not called back, the business data is called back to the corresponding external system for calling by the external system.
在第一方面的一种可能的实现方式中,所述数据处理系统,设有:数据接口标头对象、数据接口处理器、超类数据接口处理器、数据接口工厂;In a possible implementation of the first aspect, the data processing system is provided with: a data interface header object, a data interface processor, a superclass data interface processor, and a data interface factory;
所述数据接口工厂、所述超类数据接口处理器、所述数据接口处理器和数据接口标头对象依次连接,所述数据接口工厂与直连接口或增强点连接,所述直连接口与外部系统连接,所述增强点与数据处理系统的流程节点连接。The data interface factory, the superclass data interface processor, the data interface processor and the data interface header object are connected in sequence, the data interface factory is connected to a direct connection interface or an enhancement point, and the direct connection interface is connected to External system connection, the enhancement point is connected to the process node of the data processing system.
在第一方面的一种可能的实现方式中,所述分别获取每个直连接口采集的接口数据,包括:In a possible implementation of the first aspect, obtaining the interface data collected by each direct connection interface separately includes:
当所述数据接口工厂接收直连接口的第一实例获取请求时,控制所述数据接口工厂向所述直连接口返回所述超类数据接口处理器的第一超类实例数据,以使直连接口向所述超类数据接口处理器发送接口数据,其中,所述第一实例获取请求是外部系统调用每个直连接口传输数据时生成的请求或者是所述增强点触发生成的请求;When the data interface factory receives the first instance acquisition request of the direct connection interface, the data interface factory is controlled to return the first super class instance data of the super class data interface processor to the direct connection interface, so that the direct connection interface The connection port sends interface data to the super-class data interface processor, wherein the first instance acquisition request is a request generated when an external system calls each direct connection port to transmit data or a request generated by triggering the enhancement point;
利用所述数据接口处理器将所述超类数据接口处理器接收的接口数据传输至所述数据接口标头对象。The data interface processor is used to transmit interface data received by the superclass data interface processor to the data interface header object.
在第一方面的一种可能的实现方式中,所述保存所述接口数据,包括:In a possible implementation of the first aspect, saving the interface data includes:
通过所述数据接口处理器调用所述超类数据接口处理器获取所述数据接口标头对象的下一个数据接口号码;The data interface processor calls the superclass data interface processor to obtain the next data interface number of the data interface header object;
根据所述数据接口号码在所述数据接口标头对象创建对象实例,以供所述数据接口标头对象利用所述对象实例保存下一步传输对象的数据;Create an object instance in the data interface header object according to the data interface number, so that the data interface header object can use the object instance to save the data of the next transmission object;
利用所述数据接口号码将所述接口数据保存至所述数据接口对象的数据表内。The data interface number is used to save the interface data into the data table of the data interface object.
在第一方面的一种可能的实现方式中,所述利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据,包括:In a possible implementation of the first aspect, the interface batch tool is used to perform business processing on the interface data according to the business logic of the external system corresponding to each interface data to obtain business data, including:
当确定满足处理条件的接口数据有多个时,利用接口批量工具根据外部系统的业务逻辑创建批量处理实例,并按照所述处理实例的线程数拆分所述接口数据;When it is determined that there are multiple interface data that meet the processing conditions, use the interface batch tool to create a batch processing instance based on the business logic of the external system, and split the interface data according to the number of threads of the processing instance;
当完成拆分后,控制接口批量工具向所述数据接口工厂发送第一实例获取请求,以使接口批量工具获取所述超类数据接口处理器的第二超类实例数据;After the split is completed, the control interface batch tool sends a first instance acquisition request to the data interface factory, so that the interface batch tool obtains the second super class instance data of the super class data interface processor;
接口批量工具向所述超类数据接口处理器发送所述处理实例和拆分后的接口数据,以使超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据。The interface batch tool sends the processing instance and the split interface data to the super-class data interface processor, so that the super-class data interface processor batch-processes the split interface data to obtain business data.
在第一方面的一种可能的实现方式中,所述超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据,包括:In a possible implementation of the first aspect, the super-class data interface processor performs batch processing on the split interface data to obtain business data, including:
利用所述超类数据接口处理器的多线程处理方法按照所述数据接口处理器的状态过滤拆分后的接口数据,得到过滤数据;Utilize the multi-thread processing method of the super-class data interface processor to filter the split interface data according to the status of the data interface processor to obtain filtered data;
调用所述数据接口处理器按照所述数据接口对象对应的业务逻辑批量对所述过滤数据进行业务处理,得到业务数据。The data interface processor is called to perform business processing on the filtered data in batches according to the business logic corresponding to the data interface object to obtain business data.
在第一方面的一种可能的实现方式中,所述将所述业务数据回调至对应的外部系统,包括:In a possible implementation of the first aspect, calling back the business data to the corresponding external system includes:
利用所述数据接口处理器接收外部系统的回调接口的回调请求后,控制所述数据接口处理器从所述数据接口对象接收业务数据,并将所述业务数据传输至外部系统的回调接口。After using the data interface processor to receive a callback request from the callback interface of the external system, the data interface processor is controlled to receive business data from the data interface object and transmit the business data to the callback interface of the external system.
在第一方面的一种可能的实现方式中,所述数据处理系统还设有数据接口监控台,所述方法还包括:In a possible implementation of the first aspect, the data processing system is further provided with a data interface monitoring station, and the method further includes:
利用所述数据接口监控台按照用户输入的查询条件查找并展示满足查询条件的数据接口标头数据;Use the data interface monitoring station to search and display the data interface header data that meets the query conditions according to the query conditions input by the user;
当获取用户的查询请求时,根据所述查询请求从所述数据接口对象中查找并展示对应的接口数据报表,所述查询请求是用户查看所述数据接口标头数据后输入的请求。When the user's query request is obtained, the corresponding interface data report is searched from the data interface object according to the query request and displayed. The query request is a request input by the user after viewing the data interface header data.
本发明实施例的第二方面提供了一种基于直连接口的业务数据传输装置,所述装置适用于集成了多个直连接口的数据处理系统,所述装置包括:A second aspect of the embodiment of the present invention provides a business data transmission device based on a direct connection interface. The device is suitable for a data processing system integrating multiple direct connection interfaces. The device includes:
获取数据模块,用于分别获取每个直连接口采集的接口数据,所述接口数据为所述直连接口所连接的外部系统输入的数据;A data acquisition module, configured to obtain interface data collected by each direct connection interface respectively, where the interface data is data input by an external system connected to the direct connection interface;
业务处理模块,用于在保存所述接口数据后,利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据;A business processing module, after saving the interface data, using an interface batch tool to perform business processing on the interface data according to the business logic of the external system corresponding to each of the interface data to obtain business data;
回调处理模块,用于当所述直连接口的回调状态为未回调时,将所述业务数据回调至对应的外部系统,以供外部系统调用。A callback processing module, configured to call back the business data to the corresponding external system for calling by the external system when the callback status of the direct interface is not called back.
在第二方面的一种可能的实现方式中,所述数据处理系统,设有:数据接口标头对象、数据接口处理器、超类数据接口处理器、数据接口工厂;In a possible implementation of the second aspect, the data processing system is provided with: a data interface header object, a data interface processor, a superclass data interface processor, and a data interface factory;
所述数据接口工厂、所述超类数据接口处理器、所述数据接口处理器和数据接口标头对象依次连接,所述数据接口工厂与直连接口或增强点连接,所述直连接口与外部系统连接,所述增强点与数据处理系统的流程节点连接。The data interface factory, the superclass data interface processor, the data interface processor and the data interface header object are connected in sequence, the data interface factory is connected to a direct connection interface or an enhancement point, and the direct connection interface is connected to External system connection, the enhancement point is connected to the process node of the data processing system.
在第二方面的一种可能的实现方式中,所述分别获取每个直连接口采集的接口数据,包括:In a possible implementation of the second aspect, obtaining the interface data collected by each direct connection interface separately includes:
当所述数据接口工厂接收直连接口的第一实例获取请求时,控制所述数据接口工厂向所述直连接口返回所述超类数据接口处理器的第一超类实例数据,以使直连接口向所述超类数据接口处理器发送接口数据,其中,所述第一实例获取请求是外部系统调用每个直连接口传输数据时生成的请求或者是所述增强点触发生成的请求;When the data interface factory receives the first instance acquisition request of the direct connection interface, the data interface factory is controlled to return the first super class instance data of the super class data interface processor to the direct connection interface, so that the direct connection interface The connection port sends interface data to the super-class data interface processor, wherein the first instance acquisition request is a request generated when an external system calls each direct connection port to transmit data or a request generated by triggering the enhancement point;
利用所述数据接口处理器将所述超类数据接口处理器接收的接口数据传输至所述数据接口标头对象。The data interface processor is used to transmit interface data received by the superclass data interface processor to the data interface header object.
在第二方面的一种可能的实现方式中,所述保存所述接口数据,包括:In a possible implementation of the second aspect, saving the interface data includes:
通过所述数据接口处理器调用所述超类数据接口处理器获取所述数据接口标头对象的下一个数据接口号码;The data interface processor calls the superclass data interface processor to obtain the next data interface number of the data interface header object;
根据所述数据接口号码在所述数据接口标头对象创建对象实例,以供所述数据接口标头对象利用所述对象实例保存下一步传输对象的数据;Create an object instance in the data interface header object according to the data interface number, so that the data interface header object can use the object instance to save the data of the next transmission object;
利用所述数据接口号码将所述接口数据保存至所述数据接口对象的数据表内。The data interface number is used to save the interface data into the data table of the data interface object.
在第二方面的一种可能的实现方式中,所述利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据,包括:In a possible implementation of the second aspect, the interface batch tool is used to perform business processing on the interface data according to the business logic of the external system corresponding to each interface data to obtain business data, including:
当确定满足处理条件的接口数据有多个时,利用接口批量工具根据外部系统的业务逻辑创建批量处理实例,并按照所述处理实例的线程数拆分所述接口数据;When it is determined that there are multiple interface data that meet the processing conditions, use the interface batch tool to create a batch processing instance based on the business logic of the external system, and split the interface data according to the number of threads of the processing instance;
当完成拆分后,控制接口批量工具向所述数据接口工厂发送第一实例获取请求,以使接口批量工具获取所述超类数据接口处理器的第二超类实例数据;After the split is completed, the control interface batch tool sends a first instance acquisition request to the data interface factory, so that the interface batch tool obtains the second super class instance data of the super class data interface processor;
接口批量工具向所述超类数据接口处理器发送所述处理实例和拆分后的接口数据,以使超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据。The interface batch tool sends the processing instance and the split interface data to the super-class data interface processor, so that the super-class data interface processor batch-processes the split interface data to obtain business data.
在第二方面的一种可能的实现方式中,所述超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据,包括:In a possible implementation of the second aspect, the super-class data interface processor performs batch processing on the split interface data to obtain business data, including:
利用所述超类数据接口处理器的多线程处理方法按照所述数据接口处理器的状态过滤拆分后的接口数据,得到过滤数据;Utilize the multi-thread processing method of the super-class data interface processor to filter the split interface data according to the status of the data interface processor to obtain filtered data;
调用所述数据接口处理器按照所述数据接口对象对应的业务逻辑批量对所述过滤数据进行业务处理,得到业务数据。The data interface processor is called to perform business processing on the filtered data in batches according to the business logic corresponding to the data interface object to obtain business data.
在第二方面的一种可能的实现方式中,所述将所述业务数据回调至对应的外部系统,包括:In a possible implementation of the second aspect, calling back the business data to the corresponding external system includes:
利用所述数据接口处理器接收外部系统的回调接口的回调请求后,控制所述数据接口处理器从所述数据接口对象接收业务数据,并将所述业务数据传输至外部系统的回调接口。After using the data interface processor to receive a callback request from the callback interface of the external system, the data interface processor is controlled to receive business data from the data interface object and transmit the business data to the callback interface of the external system.
在第二方面的一种可能的实现方式中,所述数据处理系统还设有数据接口监控台,所述装置还包括:In a possible implementation of the second aspect, the data processing system is also provided with a data interface monitoring station, and the device further includes:
查询模块,用于利用所述数据接口监控台按照用户输入的查询条件查找并展示满足查询条件的数据接口标头数据;A query module, used to use the data interface monitoring station to search and display the data interface header data that meets the query conditions according to the query conditions input by the user;
展示模块,用于当获取用户的查询请求时,根据所述查询请求从所述数据接口对象中查找并展示对应的接口数据报表,所述查询请求是用户查看所述数据接口标头数据后输入的请求。Display module, used to search for and display the corresponding interface data report from the data interface object according to the query request when obtaining the user's query request. The query request is input by the user after viewing the data interface header data. request.
本发明实施例的第三方面提供了一种基于直连接口的业务数据传输系统,所述系统包括:统一接口框架模块、主数据管理模块、销售管理模块、财务管理模块和采购管理模块;The third aspect of the embodiment of the present invention provides a business data transmission system based on a direct connection interface. The system includes: a unified interface framework module, a master data management module, a sales management module, a financial management module and a procurement management module;
所述统一接口框架模块分别与所述主数据管理模块、所述销售管理模块、所述财务管理模块和所述采购管理模块连接。The unified interface framework module is respectively connected to the master data management module, the sales management module, the financial management module and the procurement management module.
相比于现有技术,本发明实施例提供的一种基于直连接口的业务数据传输方法及装置,其有益效果在于:本发明可以集合了多个与外部系统连接的直连接口,通过运行多个集成的直连接口与多个外部系统进行多线程的通信连接,不但可以缩短通信的延时,提升传输效率,而且可以提升数据传输的稳定性。Compared with the existing technology, the embodiments of the present invention provide a business data transmission method and device based on direct connection interfaces. The beneficial effect is that: the present invention can integrate multiple direct connection interfaces connected to external systems. By running Multiple integrated direct-connect interfaces perform multi-threaded communication connections with multiple external systems, which not only shortens communication delays and improves transmission efficiency, but also improves the stability of data transmission.
附图说明Description of drawings
图1是本发明一实施例提供的一种基于直连接口的业务数据传输方法的流程示意图;Figure 1 is a schematic flow chart of a service data transmission method based on a direct connection interface provided by an embodiment of the present invention;
图2是本发明一实施例提供的数据接口框架的类图;Figure 2 is a class diagram of a data interface framework provided by an embodiment of the present invention;
图3是本发明一实施例提供的数据接口标头对象的Header数据结构图;Figure 3 is a Header data structure diagram of a data interface header object provided by an embodiment of the present invention;
图4是本发明一实施例提供的Object数据结构图;Figure 4 is an Object data structure diagram provided by an embodiment of the present invention;
图5是本发明一实施例提供的入站的接口数据的保存操作流程图;Figure 5 is a flow chart of the saving operation of inbound interface data provided by an embodiment of the present invention;
图6是本发明一实施例提供的出站的接口数据的保存操作流程图;Figure 6 is a flow chart of the saving operation of outbound interface data provided by an embodiment of the present invention;
图7是本发明一实施例提供的业务处理的操作流程图;Figure 7 is an operation flow chart of business processing provided by an embodiment of the present invention;
图8是本发明一实施例提供的回调处理的操作流程图;Figure 8 is an operation flow chart of callback processing provided by an embodiment of the present invention;
图9是本发明一实施例提供的监控处理的操作流程图;Figure 9 is an operation flow chart of monitoring processing provided by an embodiment of the present invention;
图10是本发明一实施例提供的一种基于直连接口的业务数据传输装置的结构示意图;Figure 10 is a schematic structural diagram of a service data transmission device based on a direct connection interface provided by an embodiment of the present invention;
图11是本发明一实施例提供的一种基于直连接口的业务数据传输系统的结构示意图。Figure 11 is a schematic structural diagram of a service data transmission system based on a direct connection interface provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present invention.
为了解决上述问题,下面将通过以下具体的实施例对本申请实施例提供的一种基于直连接口的业务数据传输方法进行详细介绍和说明。In order to solve the above problems, a direct-connect interface-based service data transmission method provided by the embodiments of the present application will be introduced and explained in detail below through the following specific embodiments.
参照图1,示出了本发明一实施例提供的一种基于直连接口的业务数据传输方法的流程示意图。Referring to FIG. 1 , a schematic flowchart of a service data transmission method based on a direct connection interface provided by an embodiment of the present invention is shown.
在一实施例中,所述方法适用于数据处理系统。数据处理系统可以设有数据接口的统一框架,把数据处理系统与外围系统或外部系统的所有数据接口放在一套统一的框架中管理。In one embodiment, the method is applicable to a data processing system. The data processing system can have a unified framework for data interfaces, and all data interfaces between the data processing system and peripheral systems or external systems can be managed in a unified framework.
通过数据接口框架实现了数据处理系统与外围系统数据接口的通用功能,例如:接口数据的流程管理和状态控制、接口数据的展示和问题监控和接口数据处理的任务管理和调度。Through the data interface framework, the general functions of the data interface between the data processing system and the peripheral system are realized, such as: process management and status control of interface data, display and problem monitoring of interface data, and task management and scheduling of interface data processing.
这些通用功能不再需要在各类数据接口中去分别实现,这样各类数据接口的开发者就可以专注于各自接口数据本身的业务和系统逻辑。These common functions no longer need to be implemented separately in various data interfaces, so that developers of various data interfaces can focus on the business and system logic of the respective interface data itself.
在一实施例中,可以把数据接口框架包含的各种对象抽象成下述列表这些类。In one embodiment, various objects included in the data interface framework can be abstracted into the classes listed below.
参照图2,示出了本发明一实施例提供的数据接口框架的类图。Referring to Figure 2, a class diagram of a data interface framework provided by an embodiment of the present invention is shown.
在一可选的实施例中,所述数据处理系统,可以设有:数据接口标头对象、数据接口处理器、超类数据接口处理器和数据接口工厂。In an optional embodiment, the data processing system may be provided with: a data interface header object, a data interface processor, a superclass data interface processor, and a data interface factory.
其中,所述数据接口工厂、所述超类数据接口处理器、所述数据接口处理器和数据接口标头对象依次连接,所述数据接口工厂与直连接口或增强点连接,所述直连接口与外部系统连接,所述增强点与数据处理系统的流程节点连接。Wherein, the data interface factory, the super-class data interface processor, the data interface processor and the data interface header object are connected in sequence, the data interface factory is connected to a direct connection interface or an enhancement point, and the direct connection The port is connected to the external system, and the enhancement point is connected to the process node of the data processing system.
在一实现方式中,数据接口处理器是包含了接口数据保存、处理、回调的核心逻辑的处理器(ZCL_DI_PROC),该处理器还可以包含各个数据接口对象应从这个类继承并实现各自的特殊逻辑。In one implementation, the data interface processor is a processor (ZCL_DI_PROC) that contains the core logic of interface data storage, processing, and callback. The processor can also contain that each data interface object should inherit from this class and implement its own special logic. .
在一实现方式中,超类数据接口处理器可以对应上述列表的数据接口处理器的超类,可以是用来重定义并实现各自的特殊逻辑的处理器(ZCL_DI_PROC_xxx)。这部分逻辑需要各个数据接口对象从数据接口处理器(ZCL_DI_PROC)继承的子类,如ZCL_DI_PROC_MAT(物料主数据)、ZCL_DI_PROC_SO(销售订单数据)等。In an implementation manner, the superclass data interface processor may correspond to the superclass of the data interface processor in the above list, and may be a processor (ZCL_DI_PROC_xxx) used to redefine and implement their own special logic. This part of the logic requires subclasses that each data interface object inherits from the data interface processor (ZCL_DI_PROC), such as ZCL_DI_PROC_MAT (material master data), ZCL_DI_PROC_SO (sales order data), etc.
在一实现方式中,数据接口工厂可以是上述列表的数据接口工厂类(ZCL_DI_FACTORY),具体是生产数据接口Header对象和处理器。In one implementation, the data interface factory may be the data interface factory class (ZCL_DI_FACTORY) in the above list, specifically producing data interface Header objects and processors.
在一实现方式中,数据接口标头对象可以是上述列表的单条数据接口Header的对象(ZCL_DI_HEADER),也可以是上述列表的多条数据接口Header的对象(ZCL_DI_HEADERS)。In one implementation, the data interface header object may be an object of a single data interface header (ZCL_DI_HEADER) in the above list, or may be an object of multiple data interface headers in the above list (ZCL_DI_HEADERS).
参照图3,示出了本发明一实施例提供的数据接口标头对象的Header数据结构图。Referring to Figure 3, a Header data structure diagram of a data interface header object provided by an embodiment of the present invention is shown.
在一实施例中,本发明根据数据接口标头对象的Header数据构建Header数据结构如图3所示。In one embodiment, the present invention constructs a Header data structure based on the Header data of the data interface header object, as shown in Figure 3.
数据接口标头对象可以针对外部系统的接口传输的数据,可以用于存储接口数据,例如:编号、对象、关键字、状态、时间、消息等通用信息。为此,可以构建一个Header数据表,作为所有接口数据的共同主表。各类接口数据的存储表都外键关联到Header数据表。以物料主数据Material和销售订单数据Order为例,图3展示了它们的各张表与共同的Header数据表的关系。The data interface header object can be used to store data transmitted by the interface of an external system, such as serial number, object, keyword, status, time, message and other general information. For this purpose, a Header data table can be constructed as the common main table for all interface data. The storage tables for various interface data are related to the Header data table by foreign keys. Taking the material master data Material and sales order data Order as an example, Figure 3 shows the relationship between each of their tables and the common Header data table.
具体地,Header数据表可以如下所示:Specifically, the Header data table can be as follows:
为了区分上述数据接口处理状态,在一实施例中,数据接口处理状态的域的值可以如下表所示:In order to distinguish the above data interface processing status, in one embodiment, the value of the field of the data interface processing status may be as shown in the following table:
同理,为了区分上述数据接口回调状态,在一实施例中,数据接口回调状态的域的值可以如下表所示:Similarly, in order to distinguish the above data interface callback status, in one embodiment, the value of the field of the data interface callback status can be as shown in the following table:
参照图4,示出了本发明一实施例提供的Object数据结构图。Referring to Figure 4, an Object data structure diagram provided by an embodiment of the present invention is shown.
由于数据接口对象的抽象化和统一管理是整个数据接口框架的基础,为此本发明设置了Object的两张设置表,分别为ZDIOBJSET设置表和ZDIOBJTAB设置表。Since the abstraction and unified management of data interface objects are the basis of the entire data interface framework, the present invention sets two setting tables for Object, namely the ZDIOBJSET setting table and the ZDIOBJTAB setting table.
在一实施例中,ZDIOBJSET设置表可以如下所示:In one embodiment, the ZDIOBJSET setting table can be as follows:
ZDIOBJTAB设置表可以如下所示:The ZDIOBJTAB settings table can look like this:
在基础设置中,数据接口对象的号段,用于生成接口数据的编号,每种数据接口对象可以有不同的号段,便于区分;数据接口对象的处理类,是数据接口框架的核心,这里的设置便于数据接口工厂找到每种数据接口对象对应的处理类。In the basic settings, the number segment of the data interface object is used to generate the number of the interface data. Each data interface object can have different number segments for easy differentiation; the processing class of the data interface object is the core of the data interface framework. Here The setting facilitates the data interface factory to find the processing class corresponding to each data interface object.
每种数据接口对象都可以有多张数据存储表,其中需要指定一张表作为主表,这张主数据表需要外键关联到数据接口Header表,其他数据表则外键关联到这张主数据表。这个数据接口对象存储设置,可以帮助数据接口框架找到每种数据接口对象的数据存储表,并展示这些数据。Each data interface object can have multiple data storage tables, of which one table needs to be designated as the main table. This main data table needs to be related to the data interface Header table with foreign keys, and other data tables need to be related to this main table with foreign keys. data sheet. This data interface object storage setting can help the data interface framework find the data storage table of each data interface object and display the data.
其中,作为示例的,所述基于直连接口的业务数据传输方法,可以包括:As an example, the service data transmission method based on direct connection interface may include:
S11、分别获取每个直连接口采集的接口数据,所述接口数据为所述直连接口所连接的外部系统输入的数据。S11. Obtain interface data collected by each direct connection interface respectively, where the interface data is data input by an external system connected to the direct connection interface.
对于向数据处理系统输入的数据,数据处理系统可以按照与外部系统的约定,定义其与外部系统连接的直连端口坐标接收数据的端口,也可以定义SAP端作为接收数据的接口,一般可以使用RFC的方式接收数据。For data input to the data processing system, the data processing system can define the coordinates of the direct port connected to the external system to receive data according to the agreement with the external system. It can also define the SAP end as the interface for receiving data. Generally, you can use Receive data in the form of RFC.
当端口接收得到外部系统输入的数据,可以直接从端口获取数据,从而可以得到接口数据。When the port receives data input from the external system, the data can be obtained directly from the port, thereby obtaining the interface data.
其中,作为示例的,步骤S11可以包括以下子步骤:Among them, as an example, step S11 may include the following sub-steps:
S111、当所述数据接口工厂接收直连接口的第一实例获取请求时,控制所述数据接口工厂向所述直连接口返回所述超类数据接口处理器的第一超类实例数据,以使直连接口向所述超类数据接口处理器发送接口数据,其中,所述第一实例获取请求是外部系统调用每个直连接口传输数据时生成的请求或者是所述增强点触发生成的请求。S111. When the data interface factory receives the first instance acquisition request of the direct connection interface, control the data interface factory to return the first super class instance data of the super class data interface processor to the direct connection interface to Cause the direct connection interface to send interface data to the super-class data interface processor, wherein the first instance acquisition request is a request generated when an external system calls each direct connection interface to transmit data or is triggered by the enhancement point ask.
S112、利用所述数据接口处理器将所述超类数据接口处理器接收的接口数据传输至所述数据接口标头对象。S112. Use the data interface processor to transmit the interface data received by the super-type data interface processor to the data interface header object.
在一实现方式中,可以以SAP数据接口作为直连接口,具体地,接收数据的操作方式可以如下:In an implementation, the SAP data interface can be used as a direct interface. Specifically, the operation method of receiving data can be as follows:
外部系统可以调用SAP数据接口,向接口发送第一实例获取请求,使得接口可以获取第一实例获取请求。接着SAP数据接口可以根据第一实例获取请求来请求数据接口工厂(ZCL_DI_FACTORY),数据接口工厂向接口返回超类数据接口处理器的第一超类实例数据,从而获取数据接口对象对应的数据接口处理器(ZCL_DI_PROC_XXX)的实例。The external system can call the SAP data interface and send the first instance acquisition request to the interface, so that the interface can obtain the first instance acquisition request. Then the SAP data interface can request the data interface factory (ZCL_DI_FACTORY) according to the first instance acquisition request. The data interface factory returns the first superclass instance data of the superclass data interface processor to the interface, thereby obtaining the data interface processing corresponding to the data interface object. Instance of the controller (ZCL_DI_PROC_XXX).
随后,SAP数据接口可以直接将接口数据传输至超类数据接口处理器,由超类数据接口处理器直接将数据传输至数据接口处理器,最后再由数据接口处理器可以将数据传输至数据接口标头对象,供其调用、保存或分析等处理,以实现数据的快速直连传输。Subsequently, the SAP data interface can directly transmit the interface data to the super-class data interface processor. The super-class data interface processor directly transmits the data to the data interface processor. Finally, the data interface processor can transmit the data to the data interface. The header object is used for processing such as calling, saving or analyzing to achieve fast direct transmission of data.
S12、在保存所述接口数据后,利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据。S12. After saving the interface data, use an interface batch tool to perform business processing on the interface data according to the business logic of the external system corresponding to each interface data to obtain business data.
在一实施例中,当数据接口标头对象接收数据后,可以先对数据进行保存,在保存完成后,再对其进行后续的业务处理,以避免数据丢失。In one embodiment, after the data interface header object receives the data, the data can be saved first, and after the saving is completed, subsequent business processing can be performed on it to avoid data loss.
由于对接的外部系统有多个,可能接收的数据也有多个,为了统一处理多个数据,可以先确定每个接口所连接的外部系统的业务逻辑,然后再利用接口批量工具根据每个接口对应的业务逻辑对数据进行相应的业务处理,以实现批量处理,提升数据处理的效率。Since there are multiple connected external systems and multiple data may be received, in order to process multiple data in a unified manner, you can first determine the business logic of the external system connected to each interface, and then use the interface batch tool to determine the corresponding data for each interface. The business logic performs corresponding business processing on the data to achieve batch processing and improve the efficiency of data processing.
在一可选的实施例中,所述保存所述接口数据的操作可以包括以下子步骤:In an optional embodiment, the operation of saving the interface data may include the following sub-steps:
S121、通过所述数据接口处理器调用所述超类数据接口处理器获取所述数据接口标头对象的下一个数据接口号码。S121: Call the super-class data interface processor through the data interface processor to obtain the next data interface number of the data interface header object.
S122、根据所述数据接口号码在所述数据接口标头对象创建对象实例,以供所述数据接口标头对象利用所述对象实例保存下一步传输对象的数据。S122. Create an object instance in the data interface header object according to the data interface number, so that the data interface header object can use the object instance to save the data of the next transmission object.
S123、利用所述数据接口号码将所述接口数据保存至所述数据接口对象的数据表内。S123. Use the data interface number to save the interface data into the data table of the data interface object.
结合上述例子,以SAP数据接口作为直连接口,以SAP数据接口调用处理器的NEW_DATA方法保存接收到的接口数据的操作可以如下:Combined with the above example, using the SAP data interface as a direct interface, the operation of using the SAP data interface to call the NEW_DATA method of the processor to save the received interface data can be as follows:
首先,数据接口处理器可以先调用父类ZCL_DI_PROC的NEW_HEADER方法,先获取当前数据接口对象的下一个数据接口号码,然后数据接口标头对象再创建数据接口HeaderZCL_DI_HEADER的实例并保存Header数据。First, the data interface processor can first call the NEW_HEADER method of the parent class ZCL_DI_PROC to first obtain the next data interface number of the current data interface object, and then the data interface header object creates an instance of the data interface HeaderZCL_DI_HEADER and saves the Header data.
随后数据接口标头对象再用这个数据接口号码,把接收到的接口数据保存到当前数据接口对象的主数据表和其他数据表里。The data interface header object then uses this data interface number to save the received interface data to the main data table and other data tables of the current data interface object.
需要说明的是,NEW_HEADER方法可以是在接口数据保存时调用,调用GET_NEXT_NUM获取新的数据接口号码并保存数据接口Header。在本实施例中,可以同时把相同数据接口关键字的其他未完成的接口数据设为废弃,从而保证只有最新的接口数据会被处理。It should be noted that the NEW_HEADER method can be called when the interface data is saved, calling GET_NEXT_NUM to obtain the new data interface number and save the data interface Header. In this embodiment, other unfinished interface data with the same data interface keyword can be set to discard at the same time, thereby ensuring that only the latest interface data will be processed.
数据接口处理器的其中一些步骤需要由接口框架来统一管理,这部分逻辑直接由超类ZCL_DI_PROC本身来实现;另一些步骤则应该由各个数据接口对象来分别实现,这部分逻辑需要各个数据接口对象从超类ZCL_DI_PROC继承的子类,如ZCL_DI_PROC_MAT(物料主数据)、ZCL_DI_PROC_SO(销售订单数据)等,来重定义并实现各自的特殊逻辑。具体地,数据接口处理器部分逻辑如下表所示:Some steps of the data interface processor need to be managed uniformly by the interface framework. This part of the logic is directly implemented by the super class ZCL_DI_PROC itself; other steps should be implemented by each data interface object separately. This part of the logic requires each data interface object. Subclasses inherited from the super class ZCL_DI_PROC, such as ZCL_DI_PROC_MAT (material master data), ZCL_DI_PROC_SO (sales order data), etc., to redefine and implement their own special logic. Specifically, part of the logic of the data interface processor is as shown in the following table:
为了进一步说明,对于外部系统向数据处理系统输入数据,供数据处理系统进行数据处理的状态,可以视为“入站”状态。To further explain, the state in which an external system inputs data to the data processing system for data processing by the data processing system can be regarded as the "inbound" state.
参照图5,示出了本发明一实施例提供的入站的接口数据的保存操作流程图。Referring to FIG. 5 , a flow chart of the saving operation of inbound interface data provided by an embodiment of the present invention is shown.
具体地,其数据保存的操作可以包括如下步骤:Specifically, the data saving operation may include the following steps:
第一步,外部系统调用SAP数据接口。In the first step, the external system calls the SAP data interface.
第二步,SAP数据接口请求数据接口工厂ZCL_DI_FACTORY,获取数据接口对象对应的数据接口处理器ZCL_DI_PROC_XXX的实例。In the second step, the SAP data interface requests the data interface factory ZCL_DI_FACTORY to obtain the instance of the data interface processor ZCL_DI_PROC_XXX corresponding to the data interface object.
第三步,SAP数据接口调用数据接口处理器的NEW_DATA方法保存接收到的接口数据。其中,数据接口处理器保存数据的方式可以按照上述步骤S121-S123的操作执行。In the third step, the SAP data interface calls the NEW_DATA method of the data interface processor to save the received interface data. The way in which the data interface processor saves the data can be performed according to the above-mentioned operations of steps S121-S123.
在又一应用场景中,可能外部系统仅仅将数据传输至数据处理系统,让数据处理系统作为中转站将数据转发给另一外部数据。在此场景中,数据可能经过直连接口进行输出。为了避免数据丢失,从直连接口输出的数据也需要进行保存。In another application scenario, the external system may only transmit data to the data processing system, and let the data processing system serve as a transfer station to forward the data to another external data. In this scenario, data may be output via a direct interface. To avoid data loss, the data output from the direct-connect interface also needs to be saved.
为了方便理解,对于外部系统向数据处理系统输入数据,供数据处理系统输出给其它外部系统的状态,可以视为“出站”状态。For ease of understanding, the state in which an external system inputs data to the data processing system and the data processing system outputs data to other external systems can be regarded as an "outbound" state.
参照图6,示出了本发明一实施例提供的出站的接口数据的保存操作流程图。Referring to FIG. 6 , a flow chart of saving outbound interface data provided by an embodiment of the present invention is shown.
对于出站的接口数据,通常会在对应的系统流程节点,例如一些增强点或增强节点,直接把接口数据保存到数据接口框架里。For outbound interface data, the interface data is usually saved directly into the data interface framework at the corresponding system process node, such as some enhancement points or enhanced nodes.
参照图6,出站接口数据保存的过程与入站接口数据相同,其操作可以包括如下步骤:Referring to Figure 6, the process of saving outbound interface data is the same as that of inbound interface data. The operation may include the following steps:
第一步,外部系统调用增强点或增强节点。In the first step, the external system calls the enhancement point or enhancement node.
第二步,增强点或增强节点请求数据接口工厂ZCL_DI_FACTORY,获取数据接口对象对应的数据接口处理器ZCL_DI_PROC_XXX的实例。In the second step, the enhancement point or enhancement node requests the data interface factory ZCL_DI_FACTORY to obtain the instance of the data interface processor ZCL_DI_PROC_XXX corresponding to the data interface object.
第三步,增强点或增强节点调用数据接口处理器的NEW_DATA方法保存接收到的接口数据。其中,数据接口处理器保存数据的方式也可以按照上述步骤S121-S123的操作执行。In the third step, the enhancement point or enhancement node calls the NEW_DATA method of the data interface processor to save the received interface data. The way in which the data interface processor saves the data can also be performed according to the above-mentioned operations of steps S121-S123.
在一实施例中,当接收的数据有多个时,需要后台批量运行,并且由于有些数据接口对象日常需要处理的数据量非常大,数据接口的后台任务需要能够支持多线程,并行处理。In one embodiment, when multiple pieces of data are received, it needs to be run in batches in the background, and because some data interface objects need to process a very large amount of data on a daily basis, the background tasks of the data interface need to be able to support multi-threading and parallel processing.
为了能应付多个大容量的数据,在本实施例中,在数据处理系统的数据接口框架中设计了数据接口批量工具(ZCL_DI_BATCH),数据接口批量工具来满足后台批量及多线程的需要。In order to cope with multiple large-capacity data, in this embodiment, a data interface batch tool (ZCL_DI_BATCH) is designed in the data interface framework of the data processing system. The data interface batch tool meets the needs of background batching and multi-threading.
其中,数据接口批量工具(ZCL_DI_BATCH)的描述可以如下表所示:Among them, the description of the data interface batch tool (ZCL_DI_BATCH) can be shown in the following table:
在一实现方式中,所述利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据可以包括以下子步骤:In one implementation, using the interface batch tool to perform business processing on the interface data according to the business logic of the external system corresponding to each interface data, and obtaining the business data may include the following sub-steps:
S124、当确定满足处理条件的接口数据有多个时,利用接口批量工具根据外部系统的业务逻辑创建批量处理实例,并按照所述处理实例的线程数拆分所述接口数据。S124. When it is determined that there are multiple interface data that meet the processing conditions, use the interface batch tool to create a batch processing instance according to the business logic of the external system, and split the interface data according to the number of threads of the processing instance.
S125、当完成拆分后,控制接口批量工具向所述数据接口工厂发送第一实例获取请求,以使接口批量工具获取所述超类数据接口处理器的第二超类实例数据。S125. After the split is completed, the control interface batch tool sends a first instance acquisition request to the data interface factory, so that the interface batch tool obtains the second super class instance data of the super class data interface processor.
S126、接口批量工具向所述超类数据接口处理器发送所述处理实例和拆分后的接口数据,以使超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据。S126. The interface batch tool sends the processing instance and the split interface data to the super-class data interface processor, so that the super-class data interface processor performs batch processing on the split interface data to obtain business data.
在一具体的实现方式中,可以先确定每个接口所连接的外部系统的业务逻辑,然后再根据每个接口对应的业务逻辑对数据进行相应的业务处理。可以判断其业务逻辑是否为了预设的业务逻辑,若该业务逻辑是数据处理系统无法执行的,说明不满足处理条件;反之,如果该业务逻辑是数据处理系统可以执行的,说明满足处理条件。此时,可以确定当前所接收的接口数据的数量,如果接口数据有多个时,可以直接利用接口批量工具根据外部系统的业务逻辑创建批量处理实例,并按照处理实例的线程数拆分多个接口数据。如果接口数据较小,拆分的方式可以是一个接口数据对应一个处理实例。如果接口数据较大,可以按照处理实例可以运行的数据量拆分接口数据,例如,处理实例可以处理1兆的数据,接口数据有3.5兆,可以将该接口数据拆分成4个处理实例。In a specific implementation manner, the business logic of the external system connected to each interface can be determined first, and then corresponding business processing is performed on the data according to the business logic corresponding to each interface. It can be judged whether the business logic is preset business logic. If the business logic cannot be executed by the data processing system, it means that the processing conditions are not met; conversely, if the business logic can be executed by the data processing system, it means that the processing conditions are met. At this time, you can determine the amount of interface data currently received. If there is multiple interface data, you can directly use the interface batch tool to create a batch processing instance based on the business logic of the external system, and split it into multiple instances according to the number of threads processing the instance. interface data. If the interface data is small, the split method can be that one interface data corresponds to one processing instance. If the interface data is large, the interface data can be split according to the amount of data that the processing instance can run. For example, if the processing instance can process 1 MB of data and the interface data is 3.5 MB, the interface data can be split into 4 processing instances.
当完成拆分后,可以控制接口批量工具向数据接口工厂发送第一实例获取请求,使得接口批量工具可以获取超类数据接口处理器的第二超类实例数据。After the split is completed, the interface batch tool can be controlled to send a first instance acquisition request to the data interface factory, so that the interface batch tool can obtain the second superclass instance data of the superclass data interface processor.
接着,接口批量工具可以直接向超类数据接口处理器发送处理实例和拆分后的接口数据,使得超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据。Then, the interface batch tool can directly send the processing instance and the split interface data to the super-class data interface processor, so that the super-class data interface processor batch-processes the split interface data to obtain business data.
在一具体的实施例中,所述超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据,可以包括以下子步骤:In a specific embodiment, the super-class data interface processor performs batch processing on the split interface data to obtain business data, which may include the following sub-steps:
S1261、利用所述超类数据接口处理器的多线程处理方法按照所述数据接口处理器的状态过滤拆分后的接口数据,得到过滤数据。S1261. Use the multi-thread processing method of the super-class data interface processor to filter the split interface data according to the status of the data interface processor to obtain filtered data.
S1262、调用所述数据接口处理器按照所述数据接口对象对应的业务逻辑批量对所述过滤数据进行业务处理,得到业务数据。S1262. Call the data interface processor to perform business processing on the filtered data in batches according to the business logic corresponding to the data interface object to obtain business data.
具体地,利用超类数据接口处理器的多线程处理方法,并按照数据接口处理器的状态,对拆分后的接口数据进行过滤,从而得到过滤数据。Specifically, the multi-thread processing method of the super-class data interface processor is used, and the split interface data is filtered according to the status of the data interface processor, thereby obtaining the filtered data.
接着,再调用数据接口处理器按照数据接口对象对应的业务逻辑批量地对过滤数据进行业务处理,得到业务数据。Then, the data interface processor is called to perform business processing on the filtered data in batches according to the business logic corresponding to the data interface object to obtain business data.
通过数据过滤可以有效减少处理的数据量,以提升数据的处理效率。Data filtering can effectively reduce the amount of data processed to improve data processing efficiency.
在其中一种可选的实施例中,数据的业务处理与保存数据可以是异步进行,可以先进行保存,再进行业务处理,也可以先进行业务处理再进行保存。In one of the optional embodiments, the business processing of the data and the saving of the data can be performed asynchronously. The data can be saved first and then the business processing is performed, or the business processing can be performed first and then the data is saved.
参照图7,示出了本发明一实施例提供的业务处理的操作流程图。Referring to FIG. 7 , an operation flow chart of business processing provided by an embodiment of the present invention is shown.
具体地,接口数据在后台进行业务处理的步骤可以包括如下步骤:Specifically, the steps for business processing of interface data in the background may include the following steps:
第一步,按照预设条件,读取需要处理的满足条件的所有接口数据。The first step is to read all interface data that needs to be processed that meet the conditions according to the preset conditions.
第二步,随后创建数据接口批量工具ZCL_DI_BATCH的实例。In the second step, an instance of the data interface batch tool ZCL_DI_BATCH is then created.
其中,如果预设了多线程,数据接口批量工具会先按照线程数拆分需要处理的接口数据,再为每份数据安排新的后台任务。每个新的后台任务本身是单线程的,会立刻触发,从第一步开始执行。Among them, if multi-threading is preset, the data interface batch tool will first split the interface data that needs to be processed according to the number of threads, and then arrange a new background task for each piece of data. Each new background task itself is single-threaded and will be triggered immediately, starting from the first step.
第三步,数据接口批量工具请求数据接口工厂ZCL_DI_FACTORY,获取数据接口对象对应的数据接口处理器ZCL_DI_PROC_XXX的实例。In the third step, the data interface batch tool requests the data interface factory ZCL_DI_FACTORY to obtain the instance of the data interface processor ZCL_DI_PROC_XXX corresponding to the data interface object.
第四步,数据接口批量工具调用数据接口处理器的方法PROCESS_MULTI,开始批量处理接口数据。In the fourth step, the data interface batch tool calls the method PROCESS_MULTI of the data interface processor to start batch processing of interface data.
其中,可以先调用超类ZCL_DI_PROC的PROCESS_MULTI方法,按照数据接口处理状态过滤接口数据,并更新处理状态未处理中。再调用自己的PROCESS_DATA_MULTI方法,按照数据接口对象的相应逻辑来批量处理这些接口数据。最后按照处理的结果,更新接口数据的处理状态为处理成功或处理失败,并记录相应的信息。Among them, you can first call the PROCESS_MULTI method of the super class ZCL_DI_PROC to filter the interface data according to the data interface processing status, and update the processing status of Not Processing. Then call your own PROCESS_DATA_MULTI method to batch process these interface data according to the corresponding logic of the data interface object. Finally, according to the processing result, the processing status of the interface data is updated to be successful or failed, and the corresponding information is recorded.
S13、当所述直连接口的回调状态为未回调时,将所述业务数据回调至对应的外部系统,以供外部系统调用。S13. When the callback status of the direct interface is not called back, call back the business data to the corresponding external system for calling by the external system.
在一实施例中,当外部系统传输了数据给数据处理系统进行业务处理后,数据处理系统需要将数据的处理结果返回给外部系统,供外部系统进行进一步的处理或应用。In one embodiment, after the external system transmits data to the data processing system for business processing, the data processing system needs to return the data processing results to the external system for further processing or application by the external system.
在一实现方式中,已经预先设定了数据接口回调状态的域的值,可以通过查询其值,确定是否完成回调。In one implementation, the value of the field of the data interface callback status has been preset, and the value can be queried to determine whether the callback is completed.
需要说明的是,根据前文描述,“出站”状态的数据处理系统不对数据进行业务处理,可以不进行回调处理。It should be noted that according to the previous description, the data processing system in the "outbound" state does not perform business processing on the data and does not need to perform callback processing.
如果“出站”状态的接口数据也进行回调的话,可以由外部系统来触发回调,这个过程是由外部系统发起,不需要在SAP数据接口框架中管理。If the interface data in the "outbound" state is also called back, the callback can be triggered by the external system. This process is initiated by the external system and does not need to be managed in the SAP data interface framework.
在其中一种的实施例中,步骤S13可以包括以下子步骤:In one of the embodiments, step S13 may include the following sub-steps:
S131、利用所述数据接口处理器接收外部系统的回调接口的回调请求后,控制所述数据接口处理器从所述数据接口对象接收业务数据,并将所述业务数据传输至外部系统的回调接口。S131. After using the data interface processor to receive a callback request from the callback interface of the external system, control the data interface processor to receive business data from the data interface object and transmit the business data to the callback interface of the external system. .
当确定有完成了业务处理的数据未回调至外部系统时,外部系统可以通过其回调接口向数据接口处理器方式回调请求,数据接口处理器接收回调请求后,数据接口处理器可以从数据接口对象采集完成了业务处理的业务数据,数据接口处理器再将业务数据传输至外部系统的回调接口,由回调接口返回给外部系统。When it is determined that the data that has completed business processing has not been called back to the external system, the external system can call back the request to the data interface processor through its callback interface. After the data interface processor receives the callback request, the data interface processor can call back the data interface object from the data interface object. After collecting the business data that has completed business processing, the data interface processor then transmits the business data to the callback interface of the external system, and the callback interface returns it to the external system.
由于回调的数据不涉及系统内部的数据处理,所以可以直接调用外部系统的回调接口,而不使用直连接口,避免占用直连接口的带宽。由于回调往往比较简单,所以在完成回调后,可以直接将数据的状态从待回调变更为回调成功或者回调失败,不会有回调中的状态。Since the callback data does not involve data processing within the system, you can directly call the callback interface of the external system instead of using the direct connection interface to avoid occupying the bandwidth of the direct connection interface. Since callbacks are often relatively simple, after completing the callback, you can directly change the status of the data from pending callback to callback success or callback failure, and there will be no status in the callback.
参照图8,示出了本发明一实施例提供的回调处理的操作流程图。在一操作方式中,接口数据的回调过程与接口数据的处理过程大体相似,具体地回调处理可以包括如下步骤:Referring to FIG. 8 , an operation flow chart of callback processing provided by an embodiment of the present invention is shown. In one operation mode, the callback process of interface data is generally similar to the processing process of interface data. Specifically, callback processing may include the following steps:
第一步,接收回调请求后,筛选所有未回调的数据。The first step is to filter all data that has not been called back after receiving the callback request.
第二步,可以调用接口批量工具提取多个未回调的数据,再将未回调的数据传输至外部系统的回调接口。In the second step, you can call the interface batch tool to extract multiple uncallbacked data, and then transfer the uncallbacked data to the callback interface of the external system.
需要说明的是,数据接口框架对接口数据的保存、处理和回调均可以是异步的,也就是可以先把接口接收到的数据保存下来,之后再另行处理,再之后再另行回调。各个数据接口对象可以自行决定是同步处理还是异步处理。由于接口数据的保存往往比较简单,处理则可能会比较耗时。对于日常数据量很大的数据接口对象,可以选择异步的方式,优先保障接口数据都能成功保存下来,事后再进行后台处理。这样能够避免接口的高并发和超时。It should be noted that the saving, processing and callback of interface data by the data interface framework can be asynchronous, that is, the data received by the interface can be saved first, then processed separately, and then called back separately. Each data interface object can decide whether to process synchronously or asynchronously. Since the saving of interface data is often relatively simple, processing may be time-consuming. For data interface objects with a large amount of daily data, you can choose an asynchronous method, giving priority to ensuring that the interface data can be successfully saved, and then perform background processing afterwards. This can avoid high concurrency and timeout of the interface.
在又一可选的实施例中,在进行数据传输、数据处理及数据回调的过程中,可能会存在数据传输和处理出错的情况,如果缺乏监控,可能会造成严重的后果,且难以对系统进行调整以及排查解决问题,不方便修改调整。In another optional embodiment, during the process of data transmission, data processing and data callback, data transmission and processing errors may occur. If there is a lack of monitoring, it may cause serious consequences, and it is difficult to monitor the system. Make adjustments and troubleshoot problems, making modifications and adjustments inconvenient.
为此,需要对上述各个过程进行监控。需要说明的是,监控可以是在获取接口数据后执行,可以是保存接口数据后执行,可以是进行业务处理的过程中执行,可以是回调的过程中执行,具体可以根据实际需要进行调整。To do this, each of the above processes needs to be monitored. It should be noted that monitoring can be executed after obtaining the interface data, after saving the interface data, during business processing, or during callback. The details can be adjusted according to actual needs.
对于数据的监控,不但要查看数据接口的状态和错误信息,很多时候还要查看具体的接口数据,以便做进一步的排查分析。但是不同的数据接口对象,数据结构完全不同,要在前台查看数据的话,通常就需要为每个数据接口对象编写各自的数据查看器。For data monitoring, it is not only necessary to check the status and error information of the data interface, but also often check the specific interface data for further troubleshooting and analysis. However, different data interface objects have completely different data structures. If you want to view data in the foreground, you usually need to write its own data viewer for each data interface object.
对应地,可以在数据接口框架里设计一个动态的数据接口监控台,该数据接口监控台可以包括接口数据监控器和接口数据查看器(ZCL_DI_DATA_TABLE)。其中,接口数据监控器用于在各个流程监控各个数据,接口数据查看器用于查看所监控的数据。Correspondingly, a dynamic data interface monitoring platform can be designed in the data interface framework. The data interface monitoring platform can include an interface data monitor and an interface data viewer (ZCL_DI_DATA_TABLE). Among them, the interface data monitor is used to monitor each data in each process, and the interface data viewer is used to view the monitored data.
在一操作方式中,可以事先配置好每个数据接口对象的所有数据表并指定主表,接口数据查看器可以完全基于这个配置,从数据接口Header下钻到对应数据接口对象的主数据,再下钻到相关的其他数据。In one operation mode, all data tables of each data interface object can be configured in advance and the main table can be specified. The interface data viewer can be completely based on this configuration, drill down from the data interface header to the main data of the corresponding data interface object, and then Drill down to other relevant data.
具体地,接口数据查看器的关键属性的描述如下表所示:Specifically, the description of the key attributes of the interface data viewer is as shown in the following table:
结合上述接口数据查看器,在一实施例中,所述方法还可以包括如下步骤:Combined with the above interface data viewer, in an embodiment, the method may also include the following steps:
S21、利用所述数据接口监控台按照用户输入的查询条件查找并展示满足查询条件的数据接口标头数据。S21. Use the data interface monitoring station to search and display the data interface header data that meets the query conditions according to the query conditions input by the user.
S22、当获取用户的查询请求时,根据所述查询请求从所述数据接口对象中查找并展示对应的接口数据报表,所述查询请求是用户查看所述数据接口标头数据后输入的请求。S22. When obtaining the user's query request, search and display the corresponding interface data report from the data interface object according to the query request. The query request is a request input by the user after viewing the data interface header data.
可以利用数据接口监控台按照用户输入的查询条件查找满足查询条件的数据接口标头数据,再将满足查询条件的数据接口标头数据展示出来。You can use the data interface monitoring station to search for data interface header data that meets the query conditions according to the query conditions entered by the user, and then display the data interface header data that meets the query conditions.
具体可以利用接口数据监控器查找满足查询条件的数据接口标头数据,通过接口数据查看器读取这些查找满足查询条件的数据接口标头数据,再展示出来。Specifically, you can use the interface data monitor to find the data interface header data that meets the query conditions, read the data interface header data that meets the query conditions through the interface data viewer, and then display it.
用户可以查看这些满足查询条件的数据接口标头数据,如果用户需要细看这些数据,可以输入查询请求。当获取用户查询请求后,可以根据查询请求从数据接口对象中查找对应的接口数据报表,再展示接口数据报表,供用户细看。Users can view the data interface header data that meets the query conditions. If the user needs to take a closer look at the data, they can enter a query request. After obtaining the user query request, you can search for the corresponding interface data report from the data interface object according to the query request, and then display the interface data report for the user to take a closer look.
参照图9,示出了本发明一实施例提供的监控处理的操作流程图。Referring to FIG. 9 , an operation flow chart of monitoring processing provided by an embodiment of the present invention is shown.
具体地,监控和接口数据的查看的操作可以包括如下步骤:Specifically, the operations of monitoring and viewing interface data may include the following steps:
第一步,数据接口监控台按照用户输入的查询条件,读取满足条件的数据接口Header数据。In the first step, the data interface monitoring station reads the data interface Header data that meets the conditions according to the query conditions entered by the user.
第二步,数据接口监控台创建数据接口监控器ZCL_DI_MONITOR的实例。In the second step, the data interface monitoring console creates an instance of the data interface monitor ZCL_DI_MONITOR.
第三步,数据接口监控台调用数据接口监控器的DISPLAY方法,展示这些Header数据,以及处理、回调、查看数据等按钮。In the third step, the data interface monitoring station calls the DISPLAY method of the data interface monitor to display these Header data, as well as buttons for processing, callback, and viewing data.
第四步,当用户点击查看数据按钮,想要查看数据接口对象的具体数据时,数据接口监控台会调用数据接口监控器的DISPLAY_DATA方法。In the fourth step, when the user clicks the View Data button and wants to view the specific data of the data interface object, the data interface monitoring station will call the DISPLAY_DATA method of the data interface monitor.
第五步,数据接口监控器会提交一个接口数据报表。In the fifth step, the data interface monitor will submit an interface data report.
第六步,接口数据报表会先读取对应的数据接口对象主表的数据,然后创建接口数据查看器ZCL_DI_DATA_TABLE的实例。In the sixth step, the interface data report will first read the data of the corresponding data interface object main table, and then create an instance of the interface data viewer ZCL_DI_DATA_TABLE.
第七步,接口数据报表调用接口数据查看器的DISPLAY,展示这些主表数据和查看各个其他表数据的按钮。In the seventh step, the interface data report calls the DISPLAY of the interface data viewer to display these main table data and buttons to view the data of each other table.
第八步,当用户点击查看某个其他表数据的按钮时,接口数据查看器会提交一个新的数据接口报表,来读取和展示对应的其他表数据。Step 8: When the user clicks the button to view data from another table, the interface data viewer will submit a new data interface report to read and display the corresponding data from other tables.
本发明可以支持多种数据接口对象,通过数据接口框架管理多个数据接口对象,极大改善了SAP与外部系统数据接口的效率和稳定性,解决了长期以来的诸多问题,还大大增加了功能性、灵活性和易用性。The invention can support a variety of data interface objects, manage multiple data interface objects through a data interface framework, greatly improve the efficiency and stability of the data interface between SAP and external systems, solve many long-standing problems, and greatly increase functions. performance, flexibility and ease of use.
在本实施例中,本发明实施例提供了一种基于直连接口的业务数据传输方法,其有益效果在于:本发明可以集合了多个与外部系统连接的直连接口,通过运行多个集成的直连接口与多个外部系统进行多线程的通信连接,不但可以缩短通信的延时,提升传输效率,而且可以提升数据传输的稳定性。In this embodiment, the embodiment of the present invention provides a business data transmission method based on direct connection interfaces. The beneficial effect is that: the present invention can integrate multiple direct connection interfaces connected to external systems. By running multiple integrated The direct connection interface performs multi-threaded communication connections with multiple external systems, which not only shortens the communication delay and improves the transmission efficiency, but also improves the stability of data transmission.
本发明实施例还提供了一种基于直连接口的业务数据传输装置,参见图10,示出了本发明一实施例提供的一种基于直连接口的业务数据传输装置的结构示意图。An embodiment of the present invention also provides a service data transmission device based on a direct connection interface. Refer to FIG. 10 , which shows a schematic structural diagram of a service data transmission device based on a direct connection interface provided by an embodiment of the present invention.
所述装置适用于集成了多个直连接口的数据处理系统,其中,作为示例的,所述基于直连接口的业务数据传输装置可以包括:The device is suitable for a data processing system that integrates multiple direct connection interfaces. As an example, the business data transmission device based on direct connection interfaces may include:
获取数据模块101,用于分别获取每个直连接口采集的接口数据,所述接口数据为所述直连接口所连接的外部系统输入的数据;The data acquisition module 101 is used to obtain the interface data collected by each direct connection interface respectively, where the interface data is data input by the external system connected to the direct connection interface;
业务处理模块102,用于在保存所述接口数据后,利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据;The business processing module 102 is configured to, after saving the interface data, use an interface batch tool to perform business processing on the interface data according to the business logic of the external system corresponding to each of the interface data to obtain business data;
回调处理模块103,用于当所述直连接口的回调状态为未回调时,将所述业务数据回调至对应的外部系统,以供外部系统调用。The callback processing module 103 is configured to call back the business data to the corresponding external system for calling by the external system when the callback status of the direct interface is not called back.
可选地,所述数据处理系统,设有:数据接口标头对象、数据接口处理器、超类数据接口处理器、数据接口工厂;Optionally, the data processing system is provided with: data interface header object, data interface processor, super class data interface processor, and data interface factory;
所述数据接口工厂、所述超类数据接口处理器、所述数据接口处理器和数据接口标头对象依次连接,所述数据接口工厂与直连接口或增强点连接,所述直连接口与外部系统连接,所述增强点与数据处理系统的流程节点连接。The data interface factory, the superclass data interface processor, the data interface processor and the data interface header object are connected in sequence, the data interface factory is connected to a direct connection interface or an enhancement point, and the direct connection interface is connected to External system connection, the enhancement point is connected to the process node of the data processing system.
可选地,所述分别获取每个直连接口采集的接口数据,包括:Optionally, obtaining the interface data collected by each direct connection interface separately includes:
当所述数据接口工厂接收直连接口的第一实例获取请求时,控制所述数据接口工厂向所述直连接口返回所述超类数据接口处理器的第一超类实例数据,以使直连接口向所述超类数据接口处理器发送接口数据,其中,所述第一实例获取请求是外部系统调用每个直连接口传输数据时生成的请求或者是所述增强点触发生成的请求;When the data interface factory receives the first instance acquisition request of the direct connection interface, the data interface factory is controlled to return the first super class instance data of the super class data interface processor to the direct connection interface, so that the direct connection interface The connection port sends interface data to the super-class data interface processor, wherein the first instance acquisition request is a request generated when an external system calls each direct connection port to transmit data or a request generated by triggering the enhancement point;
利用所述数据接口处理器将所述超类数据接口处理器接收的接口数据传输至所述数据接口标头对象。The data interface processor is used to transmit interface data received by the superclass data interface processor to the data interface header object.
可选地,所述保存所述接口数据,包括:Optionally, saving the interface data includes:
通过所述数据接口处理器调用所述超类数据接口处理器获取所述数据接口标头对象的下一个数据接口号码;The data interface processor calls the superclass data interface processor to obtain the next data interface number of the data interface header object;
根据所述数据接口号码在所述数据接口标头对象创建对象实例,以供所述数据接口标头对象利用所述对象实例保存下一步传输对象的数据;Create an object instance in the data interface header object according to the data interface number, so that the data interface header object can use the object instance to save the data of the next transmission object;
利用所述数据接口号码将所述接口数据保存至所述数据接口对象的数据表内。The data interface number is used to save the interface data into the data table of the data interface object.
可选地,所述利用接口批量工具根据每个所述接口数据对应的外部系统的业务逻辑对所述接口数据进行业务处理,得到业务数据,包括:Optionally, the interface batch tool is used to perform business processing on the interface data according to the business logic of the external system corresponding to each interface data to obtain business data, including:
当确定满足处理条件的接口数据有多个时,利用接口批量工具根据外部系统的业务逻辑创建批量处理实例,并按照所述处理实例的线程数拆分所述接口数据;When it is determined that there are multiple interface data that meet the processing conditions, use the interface batch tool to create a batch processing instance based on the business logic of the external system, and split the interface data according to the number of threads of the processing instance;
当完成拆分后,控制接口批量工具向所述数据接口工厂发送第一实例获取请求,以使接口批量工具获取所述超类数据接口处理器的第二超类实例数据;After the split is completed, the control interface batch tool sends a first instance acquisition request to the data interface factory, so that the interface batch tool obtains the second super class instance data of the super class data interface processor;
接口批量工具向所述超类数据接口处理器发送所述处理实例和拆分后的接口数据,以使超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据。The interface batch tool sends the processing instance and the split interface data to the super-class data interface processor, so that the super-class data interface processor batch-processes the split interface data to obtain business data.
可选地,所述超类数据接口处理器对拆分后的接口数据进行批量处理,得到业务数据,包括:Optionally, the super-type data interface processor performs batch processing on the split interface data to obtain business data, including:
利用所述超类数据接口处理器的多线程处理方法按照所述数据接口处理器的状态过滤拆分后的接口数据,得到过滤数据;Utilize the multi-thread processing method of the super-class data interface processor to filter the split interface data according to the status of the data interface processor to obtain filtered data;
调用所述数据接口处理器按照所述数据接口对象对应的业务逻辑批量对所述过滤数据进行业务处理,得到业务数据。The data interface processor is called to perform business processing on the filtered data in batches according to the business logic corresponding to the data interface object to obtain business data.
可选地,所述将所述业务数据回调至对应的外部系统,包括:Optionally, calling back the business data to the corresponding external system includes:
利用所述数据接口处理器接收外部系统的回调接口的回调请求后,控制所述数据接口处理器从所述数据接口对象接收业务数据,并将所述业务数据传输至外部系统的回调接口。After using the data interface processor to receive a callback request from the callback interface of the external system, the data interface processor is controlled to receive business data from the data interface object and transmit the business data to the callback interface of the external system.
可选地,所述数据处理系统还设有数据接口监控台,所述装置还包括:Optionally, the data processing system is also provided with a data interface monitoring station, and the device further includes:
查询模块,用于利用所述数据接口监控台按照用户输入的查询条件查找并展示满足查询条件的数据接口标头数据;A query module, used to use the data interface monitoring station to search and display the data interface header data that meets the query conditions according to the query conditions input by the user;
展示模块,用于当获取用户的查询请求时,根据所述查询请求从所述数据接口对象中查找并展示对应的接口数据报表,所述查询请求是用户查看所述数据接口标头数据后输入的请求。Display module, used to search for and display the corresponding interface data report from the data interface object according to the query request when obtaining the user's query request. The query request is input by the user after viewing the data interface header data. request.
本发明实施例还提供了一种基于直连接口的业务数据传输系统,参见图11,示出了本发明一实施例提供的一种基于直连接口的业务数据传输系统的结构示意图。An embodiment of the present invention also provides a service data transmission system based on a direct connection interface. Refer to Figure 11, which shows a schematic structural diagram of a service data transmission system based on a direct connection interface provided by an embodiment of the present invention.
其中,作为示例的,所述基于直连接口的业务数据传输系统可以包括:统一接口框架模块、主数据管理模块、销售管理模块、财务管理模块和采购管理模块;Wherein, as an example, the business data transmission system based on direct connection interface may include: unified interface framework module, master data management module, sales management module, financial management module and procurement management module;
所述统一接口框架模块分别与所述主数据管理模块、所述销售管理模块、所述财务管理模块和所述采购管理模块连接。The unified interface framework module is respectively connected to the master data management module, the sales management module, the financial management module and the procurement management module.
其中,统一接口框架模块用于统一管理各个直连的接口。Among them, the unified interface framework module is used to uniformly manage each directly connected interface.
主数据管理模块用于管理系统的数据以及数据的相关处理。The master data management module is used to manage system data and data-related processing.
销售管理模块用于管理销售相关的数据。The sales management module is used to manage sales-related data.
财务管理模块用于管理财务相关的数据。The financial management module is used to manage financial-related data.
采购管理模块用于管理采购项目的相关的数据。The procurement management module is used to manage data related to procurement projects.
所属技术领域的技术人员可以清楚地了解到,为方便的描述和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for convenience of description and simplicity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiment, and will not be described again here.
进一步的,本申请实施例还提供了一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述实施例所述的基于直连接口的业务数据传输方法。Furthermore, embodiments of the present application also provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above implementation is implemented. The business data transmission method based on direct connection interface described in the example.
进一步的,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行程序,所述计算机可执行程序用于使计算机执行如上述实施例所述的基于直连接口的业务数据传输方法。Further, embodiments of the present application also provide a computer-readable storage medium that stores a computer-executable program, and the computer-executable program is used to cause the computer to execute the steps described in the above-mentioned embodiments. Business data transmission method based on direct interface.
本领域内的技术人员应明白,本申请的实施例还可提供包括计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may also provide computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、装置和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), apparatuses and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for implementing the functions specified in one process or processes of the flowchart and/or one block or blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本发明的保护范围。The above are only preferred embodiments of the present invention. It should be noted that those of ordinary skill in the art can also make several improvements and modifications without departing from the technical principles of the present invention. These improvements and modifications It should also be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311280278.4A CN117312433B (en) | 2023-09-28 | A method, device and system for business data transmission based on direct connection interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311280278.4A CN117312433B (en) | 2023-09-28 | A method, device and system for business data transmission based on direct connection interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117312433A true CN117312433A (en) | 2023-12-29 |
CN117312433B CN117312433B (en) | 2025-09-30 |
Family
ID=
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8108534B2 (en) * | 2003-05-08 | 2012-01-31 | Jda Software Group, Inc. | Data integration system with programmatic source and target interfaces |
CN108040126A (en) * | 2017-12-29 | 2018-05-15 | 贵阳语玩科技有限公司 | Initiate the method and device of HTTP request |
JP2019220158A (en) * | 2018-06-18 | 2019-12-26 | 株式会社トゥービーソフトTobesoft Co., Ltd. | Method and apparatus for structuring component for supporting multiple screen using single code in business application |
CN111522663A (en) * | 2020-04-23 | 2020-08-11 | 苏州浪潮智能科技有限公司 | Data transmission method, device and system based on distributed storage system |
CN111831365A (en) * | 2020-07-29 | 2020-10-27 | 中国平安财产保险股份有限公司 | Interface route forwarding method, system, computer equipment and readable storage medium |
CN114003376A (en) * | 2021-10-22 | 2022-02-01 | 浪潮软件科技有限公司 | Automated task decomposition scheduling system based on multiple threads and implementation method |
CN115374207A (en) * | 2022-08-30 | 2022-11-22 | 中国工商银行股份有限公司 | Business processing method and device, electronic device, and computer-readable storage medium |
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8108534B2 (en) * | 2003-05-08 | 2012-01-31 | Jda Software Group, Inc. | Data integration system with programmatic source and target interfaces |
CN108040126A (en) * | 2017-12-29 | 2018-05-15 | 贵阳语玩科技有限公司 | Initiate the method and device of HTTP request |
JP2019220158A (en) * | 2018-06-18 | 2019-12-26 | 株式会社トゥービーソフトTobesoft Co., Ltd. | Method and apparatus for structuring component for supporting multiple screen using single code in business application |
CN111522663A (en) * | 2020-04-23 | 2020-08-11 | 苏州浪潮智能科技有限公司 | Data transmission method, device and system based on distributed storage system |
CN111831365A (en) * | 2020-07-29 | 2020-10-27 | 中国平安财产保险股份有限公司 | Interface route forwarding method, system, computer equipment and readable storage medium |
CN114003376A (en) * | 2021-10-22 | 2022-02-01 | 浪潮软件科技有限公司 | Automated task decomposition scheduling system based on multiple threads and implementation method |
CN115374207A (en) * | 2022-08-30 | 2022-11-22 | 中国工商银行股份有限公司 | Business processing method and device, electronic device, and computer-readable storage medium |
Non-Patent Citations (1)
Title |
---|
朱耀勤: "现代物流信息技术及应用", 30 April 2017, 北京理工大学出版社, pages: 144 - 145 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112738060B (en) | Method and device for processing micro-service data, micro-service processing platform and medium | |
CN111107022B (en) | Data transmission optimization method, device and readable storage medium | |
US11210277B2 (en) | Distributing and processing streams over one or more networks for on-the-fly schema evolution | |
EP3438847B1 (en) | Method and device for duplicating database in distributed system | |
CN112131015B (en) | An information processing method, device, cloud server and storage medium | |
CN118819877B (en) | Log data synchronous task process control method and device | |
CN115080666A (en) | Data synchronization method, system, electronic device and storage medium | |
CN114691309A (en) | Batch business processing system, method and device | |
WO2018086454A1 (en) | Page data processing method and device | |
CN111414356B (en) | Data storage method, device, non-relational database system and storage medium | |
CN110083457A (en) | A kind of data capture method, device and data analysing method, device | |
CN112445861A (en) | Information processing method, device, system and storage medium | |
WO2022016845A1 (en) | Multi-node monitoring method and apparatus, electronic device, and storage medium | |
CN115131144A (en) | Information processing method and device for transaction business system | |
CN113962813A (en) | Transaction correction method, device, service system, equipment and storage medium | |
CN104572275B (en) | A kind of process loading method, apparatus and system | |
WO2025123848A1 (en) | Data import method and apparatus, electronic device, storage medium, and program product | |
CN117312433A (en) | Method, device and system for transmitting service data based on direct connection port | |
CN118377615A (en) | Process indicator calculation method based on flow computing and related equipment | |
CN114817134B (en) | Snapshot task monitoring method, device, equipment and medium | |
CN117435592A (en) | Data collection, aggregation and processing methods, devices, equipment and storage media | |
CN117312433B (en) | A method, device and system for business data transmission based on direct connection interface | |
CN114880336A (en) | Database access method, device, device and storage medium | |
CN111756836A (en) | Information sending method and device based on event management model | |
LU600186B1 (en) | Iot system based on embedded systems and edge computing |
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 |