Data processing methods, apparatus, electronic devices and storage media
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2026-08-14
AI Technical Summary
[0003]在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:由于业务系统的对接节点通过接口回传数据,在与新的合作方系统对接时需要对对接节点进行二次开发,数据回传配置的灵活性较差
[0015]本公开的另一方面提供了一种计算机可读存储介质,存储有计算机可执行指令,上述指令在被执行时用于实现如上所述的方法。
Smart Images

Figure CN116846957B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of intelligent supply chain technology, and more specifically, to a data processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] As a company's business expands, the number of partner systems that its business systems need to interface with also increases. When business systems interface with partner systems, information transmission and data feedback between them are inevitable.
[0003] In realizing the concept disclosed herein, the inventors discovered at least the following problems in the related technology: since the docking nodes of the business system transmit data back through the interface, secondary development of the docking nodes is required when docking with new partner systems, and the flexibility of data transmission configuration is poor. Summary of the Invention
[0004] In view of the above, this disclosure provides a data processing method, a data processing apparatus, an electronic device, a readable storage medium, and a computer program product.
[0005] One aspect of this disclosure provides a data processing method, comprising: acquiring a data backhaul task from a server, wherein the data backhaul task carries business stage information and first business data; determining a first partner terminal based on the first business data, wherein the first partner terminal is configured with target stage information; when it is determined that data needs to be backhauled based on the business stage information and the target stage information, performing data conversion on the first business data to obtain second business data; and sending the second business data to the first partner terminal based on a preset communication protocol to execute the data backhaul task.
[0006] According to embodiments of this disclosure, the first partner terminal is further configured with first interface adaptation mode information; the data conversion of the first service data to obtain second service data includes: when the first interface adaptation mode information is represented as a first interface adaptation mode, assembling the first service data into the second service data based on the preset communication protocol; when the first interface adaptation mode information is represented as a second interface adaptation mode, converting the first service data into third service data using a first data conversion strategy associated with the first partner terminal; and assembling the third service data into the second service data based on the preset communication protocol.
[0007] According to embodiments of this disclosure, the method further includes: upon receiving a first feedback message indicating a failure to transmit the second service data, sending the first feedback message to a terminal device associated with the maintenance personnel.
[0008] According to embodiments of this disclosure, the method further includes: in response to successful authentication of the second partner terminal, obtaining fourth service data from the second partner terminal; performing data conversion on the fourth service data to obtain fifth service data; and sending the fifth service data to the server so that the server can process the fifth service data based on preset business logic.
[0009] According to embodiments of this disclosure, the second partner terminal is configured with second interface adaptation mode information; the above-mentioned data conversion of the fourth service data to obtain the fifth service data includes: when the data format of the fourth service data is a first data format, processing the fourth service data according to the second interface adaptation mode information to obtain the fifth service data; and when the data format of the fourth service data is a second data format, using a preset parsing strategy to perform format conversion on the fourth service data, and processing the format-converted fourth service data according to the second interface adaptation mode information to obtain the fifth service data.
[0010] According to an embodiment of this disclosure, the above-mentioned processing of the fourth service data based on the second interface adaptation mode information to obtain the fifth service data includes: determining the fourth service data as the fifth service data when the second interface adaptation mode information is represented as a first interface adaptation mode; and converting the fourth service data into the fifth service data using a second data conversion strategy associated with the second partner terminal when the second interface adaptation mode information is represented as a second interface adaptation mode.
[0011] According to embodiments of this disclosure, the method further includes: extracting logical fields from the fifth business data; and executing the logical fields to execute the business logic carried in the fifth business data.
[0012] According to an embodiment of this disclosure, the method further includes: upon receiving a second feedback message indicating a failure in the execution of business logic carried in the fifth business data, sending the second feedback message to a terminal device associated with the operation and maintenance personnel.
[0013] Another aspect of this disclosure provides a data processing apparatus, comprising: a first acquisition module for acquiring a data return task from a server, wherein the data return task carries business stage information and first business data; a first determination module for determining a first partner terminal based on the first business data, wherein the first partner terminal is configured with target stage information; a first processing module for performing data conversion on the first business data to obtain second business data when it is determined that data needs to be returned based on the business stage information and the target stage information; and a first sending module for sending the second business data to the first partner terminal based on a preset communication protocol to execute the data return task.
[0014] Another aspect of this disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to perform the method as described above.
[0015] Another aspect of this disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed, are used to implement the method described above.
[0016] Another aspect of this disclosure provides a computer program product including computer-executable instructions that, when executed, implement the method described above.
[0017] According to embodiments of this disclosure, upon receiving a data backhaul task, based on the target stage information configured in the partner terminal that requires the data backhaul task and the business stage information carried in the current data backhaul task, it is determined whether the data backhaul task needs to be executed. If data backhaul is required, the first business data is converted, and the converted second business data is sent to the partner terminal. Since both the target stage information and the data conversion method for the first business data can be configured independently, the business logic and the data backhaul logic are decoupled. Therefore, this at least partially overcomes the technical problems existing in related technologies, such as the need for secondary development of the interface node when interfacing with a new partner system and the poor flexibility of data backhaul configuration, effectively improving the flexibility of data backhaul configuration. Attached Figure Description
[0018] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0019] Figure 1 An exemplary system architecture for which data processing methods and apparatus can be applied according to embodiments of this disclosure is illustrated.
[0020] Figure 2 A flowchart illustrating a data backhaul method in a data processing method according to an embodiment of the present disclosure is shown.
[0021] Figure 3 A flowchart illustrating a data return method according to another embodiment of the present disclosure is shown schematically.
[0022] Figure 4 A flowchart illustrating a data distribution method in a data processing method according to an embodiment of the present disclosure is shown.
[0023] Figure 5 A flowchart illustrating a data delivery method according to another embodiment of this disclosure is shown schematically.
[0024] Figure 6 A block diagram of a data processing apparatus according to an embodiment of the present disclosure is shown schematically.
[0025] Figure 7 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure is shown schematically. Detailed Implementation
[0026] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0027] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0028] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0029] When using expressions such as "at least one of A, B, and C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). Similarly, when using expressions such as "at least one of A, B, or C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0030] In related technologies, enterprise business systems, such as FOP systems (Fulfillment Orchestration Platforms), primarily interface with partner systems through logistics gateways and EDI interfaces. Since EDI data can only be transmitted via interfaces, secondary development of the interface nodes is required for different partner systems, resulting in poor flexibility in data transmission configuration.
[0031] In view of the above, embodiments of this disclosure provide a data processing method, apparatus, electronic device, storage medium, and computer program product. The data processing method includes: acquiring a data return task from a server, wherein the data return task carries business stage information and first business data; determining a first partner terminal based on the first business data, wherein the first partner terminal is configured with target stage information; if data needs to be returned based on the business stage information and the target stage information, performing data conversion on the first business data to obtain second business data; and sending the second business data to the first partner terminal based on a preset communication protocol to execute the data return task.
[0032] In the technical solution disclosed herein, the acquisition, storage, and application of user personal information comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.
[0033] In the technical solution disclosed herein, the user's authorization or consent is obtained before acquiring or collecting the user's personal information.
[0034] Figure 1 This illustration schematically depicts an exemplary system architecture to which data processing methods and apparatus can be applied according to embodiments of this disclosure. It should be noted that... Figure 1The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.
[0035] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, and 103, a network 104, and a server 105.
[0036] Terminal devices 101, 102, and 103 can be various electronic devices, including but not limited to smartphones, tablets, laptops, and desktop computers. Terminal devices 101, 102, and 103 can be equipped with the partner's system.
[0037] Network 104 is a medium used to provide a communication link between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired and / or wireless communication links.
[0038] Server 105 can be a server that provides various services. Business systems can be installed on server 105.
[0039] It should be noted that the data processing method provided in this embodiment can generally be executed by server 105. Correspondingly, the data processing device provided in this embodiment can generally be located in server 105. The data processing method provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105. Correspondingly, the data processing device provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105. Alternatively, the data processing method provided in this embodiment can also be executed by terminal devices 101, 102, or 103, or by other terminal devices different from terminal devices 101, 102, or 103. Correspondingly, the data processing device provided in this embodiment can also be located in terminal devices 101, 102, or 103, or in other terminal devices different from terminal devices 101, 102, or 103.
[0040] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0041] Figure 2A flowchart illustrating a data backhaul method in a data processing method according to an embodiment of the present disclosure is shown.
[0042] like Figure 2 As shown, the method includes operations S201 to S204.
[0043] In operation S201, a data return task is retrieved from the server. The data return task carries business stage information and the first business data.
[0044] In operation S202, the first partner terminal is determined based on the first service data. The first partner terminal is configured with target stage information.
[0045] In operation S203, if it is determined that data needs to be transmitted back based on business stage information and target stage information, the first business data is transformed to obtain the second business data.
[0046] In operation S204, second service data is sent to the first partner terminal based on a preset communication protocol to perform a data return task.
[0047] According to embodiments of this disclosure, the server may include a server or server cluster that hosts the enterprise's business system. The enterprise's business system may refer to a FOP system.
[0048] According to embodiments of this disclosure, the business processed by the server may include multiple business stages. For example, logistics business may include multiple stages such as receiving orders, confirming orders, shipping, and dispatching.
[0049] According to embodiments of this disclosure, a data return task can be a task instructing the interface node to send business data to the corresponding partner terminal. After completing any business stage, the server can send this data return task to the interface node. Accordingly, the business stage information can refer to the identification information of the business stage completed by the server when sending the data return task. For example, when the business stage is "receiving an order," the business stage information can be "receiving an order," or identification information associated with "receiving an order," etc. The first business data can include the output data of the server after completing the business stage. The first business data is related to the specific business stage. For example, when the business stage is "receiving an order," the first business data output by the server can include "order number," "partner identifier," etc.; when the business stage is "shipping," the first business data output by the server can include "order number," "order status," "package number," "partner identifier," etc.
[0050] According to embodiments of this disclosure, a first partner terminal can be identified through a partner identifier included in the first service data. For example, the partner identifier may be network address information, which can be used to identify the first partner terminal. The first partner terminal may be any electronic device equipped with a first partner system, including but not limited to computers, servers, etc.
[0051] According to embodiments of this disclosure, the target stage information may include pre-configured identifier information for the business stages that require data backhaul. For example, if business A includes three business stages, with business stage information a1, a2, and a3 respectively, and the target stage information is set to a2, then the interface node only needs to perform data backhaul after the second business stage is completed.
[0052] According to embodiments of this disclosure, converting first service data into second service data may include, for example, format conversion, interface conversion, etc. Format conversion may, for example, convert the first service data in binary form into the second service data in string format. Interface conversion may, for example, use a configured conversion strategy to convert the first service data into second service data that conforms to the interface specifications of the first partner terminal.
[0053] According to embodiments of this disclosure, the preset communication protocol may include, but is not limited to, HTTP (HyperTextTransfer Protocol), HTTP (HyperText Transfer Protocol over Secure Socket Layer), SFTP (Secure File Transfer Protocol), etc., and is not limited thereto.
[0054] According to embodiments of this disclosure, a data backhaul task may have a task identifier. Upon completion of the data backhaul task, or if it is determined based on the business stage information and the target stage information that data backhaul is not required, the task identifier can be modified to "completed" to facilitate subsequent operations by the interface node.
[0055] According to embodiments of this disclosure, upon receiving a data backhaul task, based on the target stage information configured in the partner terminal that requires the data backhaul task and the business stage information carried in the current data backhaul task, it is determined whether the data backhaul task needs to be executed. If data backhaul is required, the first business data is converted, and the converted second business data is sent to the partner terminal. Since both the target stage information and the data conversion method for the first business data can be configured independently, the business logic and the data backhaul logic are decoupled. Therefore, this at least partially overcomes the technical problems existing in related technologies, such as the need for secondary development of the interface node when interfacing with a new partner system and the poor flexibility of data backhaul configuration, effectively improving the flexibility of data backhaul configuration.
[0056] The following is for reference. Figure 3 In conjunction with specific embodiments, Figure 2 The method shown will be further explained.
[0057] According to embodiments of this disclosure, the first partner terminal may also be configured with first interface adaptation mode information. The first interface adaptation mode information can be used to indicate whether the first service data needs to be converted to adapt to the interface of the first partner terminal.
[0058] According to embodiments of this disclosure, operation S203 may include the following operations:
[0059] When the first interface adaptation mode information indicates a first interface adaptation mode, the first service data is assembled into second service data based on a preset communication protocol. When the first interface adaptation mode information indicates a second interface adaptation mode, the first service data is converted into third service data using a first data conversion strategy associated with the first partner terminal. Furthermore, the third service data is assembled into second service data based on a preset communication protocol.
[0060] According to embodiments of this disclosure, the first interface adaptation mode can be a webhook standard data interface receipt mode, which refers to a mode in which the interface of the first partner terminal has been further developed for the interface of the interface of the docking node. When the first interface adaptation mode information is represented as the first interface adaptation mode, the first business data can be directly assembled into a data packet according to the rules of the interface of the docking node to obtain the second business data.
[0061] According to embodiments of this disclosure, the second interface adaptation mode can be a partner-customized data interface receipt mode, referring to a mode in which the interface of the first partner terminal is not developed for the interface of the docking node. When the first interface adaptation mode information is represented as the second interface adaptation mode, a first data conversion strategy is needed to convert the first business data into third business data that conforms to the specifications of the interface of the first partner terminal, and then assemble the third business data into a data packet according to the rules of the interface of the docking node to obtain the second business data.
[0062] According to embodiments of this disclosure, the first data conversion strategy can be developed by developers based on the interface of the interface node and the interface of the first partner terminal. The first data conversion strategy can be a script of any format, an executable file compiled from any programming language, etc., and is not limited thereto.
[0063] Figure 3 A flowchart illustrating a data return method according to another embodiment of the present disclosure is shown schematically.
[0064] like Figure 3 As shown, the data return method includes operations S301 to S307. Among them, operation S301 is executed by the server, operations S302 to S304 and operations S306 to S307 are executed by the docking node, and operation S305 is executed by the first partner terminal.
[0065] When operating S301, a data return task is issued.
[0066] In operation S302, determine whether to execute the task. If it is determined that the data return task needs to be executed, execute operation S303; if it is determined that the data return task does not need to be executed, end the data return method flow.
[0067] The S303 is being used to process data.
[0068] The S304 is in operation to perform a data return task.
[0069] The S305 is in operation, receiving data.
[0070] In step S306, determine if the task execution is abnormal. If an abnormal task execution is determined, execute step S307; if the task has been executed normally, terminate the data return method process.
[0071] When operating S307, send the first feedback message.
[0072] According to embodiments of this disclosure, a data return task issued by the server can be converted into message data and written into a message queue, and the interface node can obtain the data return task by consuming the message data in the message queue.
[0073] According to embodiments of this disclosure, it can be determined whether to execute a data backhaul task based on the business stage information and preset target stage information carried in the data backhaul task. That is, if the business stage information and the target stage information are consistent, it can be determined that the data backhaul task needs to be executed; if the business stage information and the target stage information are inconsistent, it can be determined that the data backhaul task does not need to be executed.
[0074] According to embodiments of this disclosure, the method described in operation S203 can be used when processing data, and will not be repeated here. During data processing, the data can also be stored in a database so that maintenance personnel can troubleshoot problems by analyzing the data in the database when task execution fails, thus reducing troubleshooting costs.
[0075] According to embodiments of this disclosure, when performing a data backhaul task, a preset communication protocol can be used to establish a communication link, and data can be backhauled through the communication link.
[0076] According to embodiments of this disclosure, it is possible to determine whether data has been sent using feedback information from a preset communication protocol. For example, SFTP contains an identifier indicating whether data transmission has occurred; this identifier can be used to determine whether data has been sent, i.e., to determine whether the task execution has malfunctioned.
[0077] According to embodiments of this disclosure, the first feedback information may be information generated by the docking node when it determines that a task execution error has occurred. Upon receiving first feedback information indicating a failure to send second service data, the docking node may send the first feedback information to the terminal device 310 associated with the maintenance personnel. The maintenance personnel can obtain the first feedback information through the terminal device 310 and proactively contact the first partner associated with the first partner terminal, thereby shortening the problem discovery time and improving the problem handling efficiency.
[0078] Figure 4 A flowchart illustrating a data distribution method in a data processing method according to an embodiment of the present disclosure is shown.
[0079] like Figure 4 As shown, the data receiving method includes operations S401 to S403.
[0080] In operation S401, in response to the successful authentication of the second partner terminal, the fourth business data from the second partner terminal is obtained.
[0081] In operation S402, the fourth business data is transformed to obtain the fifth business data.
[0082] In operation S403, the fifth business data is sent to the server so that the server can process the fifth business data based on the preset business logic.
[0083] According to embodiments of this disclosure, a second partner terminal can connect to the interface node via a logistics gateway. The second partner terminal can connect to the interface node as a new partner system by registering with the logistics gateway. The information entered by the second partner terminal during registration can be stored in the logistics gateway. Successful authentication of the second partner terminal can be achieved by verifying the account information or authentication information submitted by the second partner terminal through the logistics gateway.
[0084] According to embodiments of this disclosure, data transformation of the fourth business data can include format conversion, interface conversion, etc. Format conversion, for example, can be converting the fourth business data in XML format into the fifth business data in JSON format. Interface conversion, for example, can be using a configured conversion strategy to convert the fourth business data into fifth business data that conforms to the interface specifications of the interface node.
[0085] The following is for reference. Figure 5 In conjunction with specific embodiments, Figure 4 The method shown will be further explained.
[0086] According to embodiments of this disclosure, the second partner terminal may also be configured with second interface adaptation mode information. The second interface adaptation mode information can be used to indicate whether the fourth service data needs to be converted to adapt to the server's interface.
[0087] According to embodiments of this disclosure, operation S402 may include the following operations:
[0088] If the fourth business data is in the first data format, it is processed according to the second interface adaptation mode information to obtain the fifth business data. Alternatively, if the fourth business data is in the second data format, a preset parsing strategy is used to convert the format of the fourth business data, and the converted fourth business data is processed according to the second interface adaptation mode information to obtain the fifth business data.
[0089] According to embodiments of this disclosure, the data format of the fourth business data may refer to the format of a file containing the fourth business data.
[0090] According to embodiments of this disclosure, the first data format may be a data format adapted to the interface of the connection node, for example, the first data format may be JSON format.
[0091] According to embodiments of this disclosure, the second data format may be a data format that is not compatible with the interface of the connecting node. For example, when the first data format is JSON, the second data format may be other formats such as XML or TXT.
[0092] According to embodiments of this disclosure, processing the fourth service data based on the second interface adaptation mode information to obtain the fifth service data may include the following operations:
[0093] If the second interface adaptation mode information is represented as the first interface adaptation mode, the fourth service data is determined to be the fifth service data. Furthermore, if the second interface adaptation mode information is represented as the second interface adaptation mode, the fourth service data is converted to the fifth service data using the second data conversion strategy associated with the second partner terminal.
[0094] According to embodiments of this disclosure, the second data conversion strategy can be developed by developers based on the interface of the docking node and the interface of the second partner terminal. The second data conversion strategy can convert fourth service data adapted to the interface of the second partner terminal into fifth service data adapted to the interface of the docking node. The second data conversion strategy can be a script of any format, an executable file compiled from any programming language, etc., and is not limited thereto.
[0095] Figure 5 A flowchart illustrating a data delivery method according to another embodiment of this disclosure is shown schematically.
[0096] like Figure 5 As shown, the data distribution method includes operations S501 to S507. Among them, operation S501 is executed by the second partner terminal, operation S502 is executed by the logistics gateway, operations S503 to S505 and operation S507 are executed by the docking node, and operation S506 is executed by the server.
[0097] When operating S501, business data is sent out.
[0098] In operation S502, data authentication is performed. If data authentication is successful, operation S503 is executed; if data authentication fails, the data delivery process ends.
[0099] When operating S503, retain business data.
[0100] Data conversion is performed using S504.
[0101] When operating S505, execute the business logic of the partner.
[0102] When operating S506, execute server-side business logic.
[0103] During operation S507, determine if the returned result is abnormal. If it is determined that the returned result of executing the partner's business logic is abnormal, send a second feedback message to the terminal device 510 associated with the operations and maintenance personnel; if it is determined that the returned result of executing the partner's business logic is normal, terminate the data delivery method process.
[0104] According to embodiments of this disclosure, the business data sent by the second partner terminal, i.e., the fourth business data, can be transmitted to the logistics gateway via a network link. This network link can be established based on communication protocols such as HTTP, HTTPS, and SFTP.
[0105] According to embodiments of this disclosure, the logistics gateway can authenticate the fourth business data by authenticating the identity information used by the second partner terminal when the fourth business data is sent.
[0106] According to embodiments of this disclosure, after successful authentication, the logistics gateway can send the fourth business data to the interface node through a preset interface. This preset interface can be configured according to specific application scenarios. For example, when the interface node is a service of the FOP system, the preset interface can be an interface within the JSF framework.
[0107] According to embodiments of this disclosure, after receiving the fourth service data, the docking node can store the fourth service data in an ES database associated with the docking node. In some embodiments, the docking node can also convert the fourth service data into task data and store the task data in a MySQL database associated with the docking node. The subsequent data processing in operations S504 to S506 can be the processing of this task data.
[0108] According to the embodiments of this disclosure, the data conversion of the fourth business data can be referred to the method of operation S402, which will not be repeated here.
[0109] According to embodiments of this disclosure, for the converted fifth business data, a logical field can be extracted from the fifth business data; and the logical field can be executed to execute the business logic carried in the fifth business data, that is, to execute the partner's business logic.
[0110] According to embodiments of this disclosure, upon receiving second feedback information indicating a failure in the execution of business logic carried in the fifth business data, i.e., determining that the return result of executing the partner's business logic is abnormal, the interface node can also send the second feedback information to the terminal device 510 associated with the operations and maintenance personnel. The operations and maintenance personnel can obtain the second feedback information through the terminal device 510 and proactively contact the second partner associated with the second partner's terminal to handle the problem, transforming passive tracking into proactive service and improving the partner's user experience.
[0111] Figure 6 A block diagram of a data processing apparatus according to an embodiment of the present disclosure is shown schematically.
[0112] like Figure 6 As shown, the data processing device 600 includes a first acquisition module 610, a first determination module 620, a first processing module 630, and a first transmission module 640.
[0113] The first acquisition module 610 is used to acquire data return tasks from the server. The data return tasks carry business stage information and first business data.
[0114] The first determining module 620 is used to determine the first partner terminal based on the first business data. The first partner terminal is configured with target stage information.
[0115] The first processing module 630 is used to perform data transformation on the first business data to obtain the second business data when it is determined that data needs to be transmitted back based on business stage information and target stage information.
[0116] The first sending module 640 is used to send second business data to the first partner terminal based on a preset communication protocol in order to perform a data return task.
[0117] According to embodiments of this disclosure, upon receiving a data backhaul task, based on the target stage information configured in the partner terminal that requires the data backhaul task and the business stage information carried in the current data backhaul task, it is determined whether the data backhaul task needs to be executed. If data backhaul is required, the first business data is converted, and the converted second business data is sent to the partner terminal. Since both the target stage information and the data conversion method for the first business data can be configured independently, the business logic and the data backhaul logic are decoupled. Therefore, this at least partially overcomes the technical problems existing in related technologies, such as the need for secondary development of the interface node when interfacing with a new partner system and the poor flexibility of data backhaul configuration, effectively improving the flexibility of data backhaul configuration.
[0118] According to an embodiment of this disclosure, the first partner terminal is also configured with first interface adaptation mode information.
[0119] According to embodiments of this disclosure, the first processing module 630 includes a first processing unit, a second processing unit, and a third processing unit.
[0120] The first processing unit is configured to assemble the first service data into the second service data based on a preset communication protocol, when the first interface adaptation mode information is represented as the first interface adaptation mode.
[0121] The second processing unit is used to convert the first business data into third business data using a first data conversion strategy associated with the first partner terminal when the first interface adaptation mode information is represented as the second interface adaptation mode.
[0122] The third processing unit is used to assemble the third service data into the second service data based on a preset communication protocol.
[0123] According to embodiments of this disclosure, the data processing apparatus 600 further includes a second transmission module.
[0124] The second sending module is used to send the first feedback information to the terminal device associated with the operation and maintenance personnel when it receives the first feedback information indicating that the second service data transmission has failed.
[0125] According to embodiments of this disclosure, the data processing apparatus 600 further includes a second acquisition module, a second processing module, and a third transmission module.
[0126] The second acquisition module is used to acquire the fourth business data from the second partner terminal in response to the successful authentication of the second partner terminal.
[0127] The second processing module is used to transform the fourth business data to obtain the fifth business data.
[0128] The third sending module is used to send the fifth business data to the server so that the server can process the fifth business data based on the preset business logic.
[0129] According to embodiments of this disclosure, the second partner terminal is configured with second interface adaptation mode information.
[0130] According to embodiments of this disclosure, the second processing module includes a fourth processing unit and a fifth processing unit.
[0131] The fourth processing unit is used to process the fourth business data according to the second interface adaptation mode information when the data format of the fourth business data is the first data format, so as to obtain the fifth business data.
[0132] The fifth processing unit is used to convert the format of the fourth business data using a preset parsing strategy when the data format of the fourth business data is the second data format, and to process the format-converted fourth business data according to the second interface adaptation mode information to obtain the fifth business data.
[0133] According to embodiments of this disclosure, the fourth processing unit includes a first processing subunit and a second processing subunit.
[0134] The first processing subunit is used to determine the fourth service data as the fifth service data when the second interface adaptation mode information is represented as the first interface adaptation mode.
[0135] The second processing subunit is used to convert the fourth service data into the fifth service data using the second data conversion strategy associated with the second partner terminal when the second interface adaptation mode information is represented as the second interface adaptation mode.
[0136] According to embodiments of this disclosure, the data processing apparatus 600 further includes an extraction module and a third processing module.
[0137] The extraction module is used to extract logical fields from the fifth business data.
[0138] The third processing module is used to execute logical fields to perform the business logic carried in the fifth business data.
[0139] According to embodiments of the present disclosure, the data processing apparatus 600 further includes a fourth transmission module.
[0140] The fourth sending module is used to send the second feedback information to the terminal device associated with the operation and maintenance personnel when it receives the second feedback information, which is carried in the fifth service data, indicating that the business logic execution has failed.
[0141] Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be implemented by dividing them into multiple modules. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as hardware circuitry, such as Field Programmable Gate Arrays (FPGAs), Programmable Logic Arrays (PLAs), Systems-on-Chip, Systems-on-Substrate, Systems-on-Package, Application-Specific Integrated Circuits (ASICs), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.
[0142] For example, any plurality of the first acquisition module 610, the first determination module 620, the first processing module 630, and the first transmission module 640 can be combined into one module / unit / subunit, or any one of these modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functionality of one or more of these modules / units / subunits can be combined with at least part of the functionality of other modules / units / subunits and implemented in one module / unit / subunit. According to embodiments of this disclosure, at least one of the first acquisition module 610, the first determination module 620, the first processing module 630, and the first transmission module 640 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the first acquisition module 610, the first determination module 620, the first processing module 630, and the first sending module 640 may be implemented at least partially as a computer program module, which can perform corresponding functions when the computer program module is run.
[0143] It should be noted that the data processing device part in the embodiments of this disclosure corresponds to the data processing method part in the embodiments of this disclosure. The specific description of the data processing device part is referred to in the data processing method part, and will not be repeated here.
[0144] Figure 7 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure is shown schematically. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0145] like Figure 7 As shown, a computer electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0146] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that the programs may also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0147] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The electronic device 700 may also include one or more of the following components connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0148] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by processor 701, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0149] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0150] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0151] For example, according to embodiments of this disclosure, a computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0152] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the data processing methods provided in the embodiments of this disclosure.
[0153] When the computer program is executed by the processor 701, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0154] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 709, and / or installed from a removable medium 711. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0155] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0156] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not expressly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0157] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A data processing method, executed by a docking node, the method comprising: Obtain a data return task from the server, wherein the data return task carries business stage information and first business data; The first partner terminal is determined based on the first business data, wherein the first partner terminal is configured with target stage information; The business stage information is matched with the target stage information. If a match is found and data needs to be transmitted back, the first business data is converted to obtain second business data. This includes: when the first interface adaptation mode information configured on the first partner terminal is represented as a first interface adaptation mode, assembling the first business data into second business data based on a preset communication protocol; when the first interface adaptation mode information is represented as a second interface adaptation mode, converting the first business data into third business data using a first data conversion strategy associated with the first partner terminal; and assembling the third business data into second business data based on the preset communication protocol. The second service data is sent to the first partner terminal based on a preset communication protocol to perform the data return task; The first interface adaptation mode includes a webhook standard data interface receipt mode, which indicates that the first partner terminal has performed secondary development on the interface of the docking node; the second interface adaptation mode includes a partner customized data interface receipt mode, which indicates that the first partner terminal has not developed the interface of the docking node.
2. The method according to claim 1, further comprising: Upon receiving a first feedback message indicating that the second service data transmission failed, the first feedback message is sent to the terminal device associated with the maintenance personnel.
3. The method according to claim 1, further comprising: Upon successful authentication of the second partner terminal, the fourth business data from the second partner terminal is obtained; The fourth business data is transformed to obtain the fifth business data; as well as The fifth business data is sent to the server so that the server can process the fifth business data based on preset business logic.
4. The method according to claim 3, wherein, The second partner terminal is configured with second interface adaptation mode information; The process of transforming the fourth business data to obtain the fifth business data includes: When the data format of the fourth service data is the first data format, the fourth service data is processed according to the second interface adaptation mode information to obtain the fifth service data; and When the data format of the fourth service data is the second data format, the fourth service data is converted using a preset parsing strategy, and the converted fourth service data is processed according to the second interface adaptation mode information to obtain the fifth service data.
5. The method according to claim 4, wherein, The step of processing the fourth service data according to the second interface adaptation mode information to obtain the fifth service data includes: When the second interface adaptation mode information is represented as the first interface adaptation mode, the fourth service data is determined to be the fifth service data; and When the second interface adaptation mode information is represented as the second interface adaptation mode, the fourth business data is converted into the fifth business data using the second data conversion strategy associated with the second partner terminal.
6. The method according to claim 3, further comprising: Extract logical fields from the fifth business data; as well as The logical field is executed to perform the business logic carried in the fifth business data.
7. The method according to claim 6, further comprising: Upon receiving a second feedback message indicating a failure in the execution of business logic carried in the fifth business data, the second feedback message is sent to the terminal device associated with the operations and maintenance personnel.
8. A data processing apparatus, disposed at a docking node, the apparatus comprising: The first acquisition module is used to acquire a data return task from the server, wherein the data return task carries business stage information and first business data. The first determining module is used to determine the first partner terminal based on the first business data, wherein the first partner terminal is configured with target stage information; A first processing module is configured to match the business stage information with the target stage information. If a match is found and data needs to be transmitted back, the module performs data conversion on the first business data to obtain second business data. This includes: when the first interface adaptation mode information configured on the first partner terminal indicates a first interface adaptation mode, assembling the first business data into second business data based on a preset communication protocol; when the first interface adaptation mode information indicates a second interface adaptation mode, converting the first business data into third business data using a first data conversion strategy associated with the first partner terminal; and assembling the third business data into second business data based on the preset communication protocol. The first sending module is used to send the second service data to the first partner terminal based on a preset communication protocol in order to perform the data return task. The first interface adaptation mode includes a webhook standard data interface receipt mode, which indicates that the first partner terminal has performed secondary development on the interface of the docking node; the second interface adaptation mode includes a partner customized data interface receipt mode, which indicates that the first partner terminal has not developed the interface of the docking node.
9. An electronic device, comprising: One or more processors; Memory, used to store one or more instructions. When the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
11. A computer program product comprising computer-executable instructions, which, when executed, are used to implement the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Business data processing method and device, computer equipment and storage medium
CN110765102A