CN114499759B - Message generation method and device, electronic equipment and storage medium - Google Patents

Message generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114499759B
CN114499759B CN202210071932.XA CN202210071932A CN114499759B CN 114499759 B CN114499759 B CN 114499759B CN 202210071932 A CN202210071932 A CN 202210071932A CN 114499759 B CN114499759 B CN 114499759B
Authority
CN
China
Prior art keywords
node
target
message
data object
entity data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210071932.XA
Other languages
Chinese (zh)
Other versions
CN114499759A (en
Inventor
韩松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202210071932.XA priority Critical patent/CN114499759B/en
Publication of CN114499759A publication Critical patent/CN114499759A/en
Application granted granted Critical
Publication of CN114499759B publication Critical patent/CN114499759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0084Formats for payload data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0083Formatting with frames or packets; Protocol or part of protocol for error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a message generation method, a message generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: when a target entity data object is detected, determining a target mapping structure tree corresponding to the target entity data object; wherein the target mapping structure tree is generated according to a configuration file corresponding to a target data processing system; processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object; the node comprises node association information. According to the technical scheme, when the target entity data object is detected, the differentiated target message can be generated in an automatic mode aiming at different upstream systems, program codes do not need to be independently developed aiming at the systems, development cost is reduced, and workload is reduced.

Description

Message generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a message generation method, a message generation device, electronic equipment and a storage medium.
Background
Production systems in warehouses today include upstream systems and production systems. The upstream system mainly receives and records the data returned by each production system. The production system can understand the systems corresponding to tasks such as ordering and rechecking, and can generate corresponding production results, for example, the production system corresponds to the rechecking task, and after rechecking of certain objects is finished, the rechecking results (namely, the production results) can be returned to the upstream system, so that the upstream system processes the fed-back data.
In general, there may be a plurality of upstream systems and a plurality of production systems, and there may be a certain difference between production result data generated by different production systems and a certain difference between returned data identified by different upstream systems, so when the production systems return the production results to the upstream systems, it is necessary to perform customized generation according to a message format required by the upstream systems, and there is a program code corresponding to a corresponding message format, and further, based on the program code, it is necessary to develop a corresponding program code when the program code is converted into a message template adapted to the upstream systems, that is, when different production systems correspond to different upstream systems, and further, based on the developed program code, a corresponding message is obtained.
The inventors found that when implementing the present technical solution based on the above-described mode, the following problems exist:
when the required message structure of the upstream system or the production system is changed, the corresponding program codes need to be redeveloped, and the problems of complexity and high cost exist.
Disclosure of Invention
The invention provides a message generation method, a message generation device, electronic equipment and a storage medium, wherein when a target entity data object is detected, differentiated target messages can be generated in an automatic mode aiming at different upstream systems, so that the convenience and individuation technical effects of message generation are improved.
In a first aspect, an embodiment of the present invention provides a method for generating a message, where the method includes:
when a target entity data object is detected, determining a target mapping structure tree corresponding to the target entity data object; wherein the target mapping structure tree is generated according to a configuration file corresponding to a target data processing system;
processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object; the node comprises node association information.
Further, the determining, when the target entity data object is detected, a target mapping structure tree corresponding to the target entity data object includes:
when a target entity data object is detected, determining a target data producer corresponding to the target entity data object and a target data processing system corresponding to the target data producer;
acquiring a target mapping structure tree corresponding to the target data processing system;
the mapping structure tree is generated according to a configuration file corresponding to the data processing system, and the configuration file is matched with a message template used by the data processing system.
Further, the processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object includes:
sequentially calling each node according to the node priority in the node association information, and processing the target entity data object according to a target data processing mode matched with the node type of each node to obtain a sub-message to be processed corresponding to each node;
and obtaining a target message corresponding to the target entity data object based on the sub-messages to be processed of each node.
Further, the processing the target entity data object according to the target data processing mode matched with the node type of each node to obtain a sub-message to be processed corresponding to each node includes:
if the node type of the node is the first node type, the target data processing mode creates an attribute node for the current node based on the message structure, and acquires an attribute name from the target entity data object so as to fill the attribute name into the attribute node, thereby obtaining a sub-message to be processed in the message structure.
Further, the processing the target entity data object according to the target data processing mode matched with the node type of each node to obtain a sub-message to be processed corresponding to each node includes:
if the node type of the node is the second node type, the target data processing mode is to create a list node for the current node based on the message structure, and the attribute name and the source attribute value obtained from the target entity data object are filled into the list node in the message structure to obtain the sub-message to be processed.
Further, the processing the target entity data object according to the target data processing mode matched with the node type of each node to obtain a sub-message to be processed corresponding to each node includes:
and if the node type is a third node type, acquiring a source attribute value from the target entity data object, and setting the source attribute value in an attribute name field in a message structure to obtain a sub-message to be processed in the message structure.
Further, the processing the target entity data object according to the target data processing mode matched with the node type of each node to obtain a sub-message to be processed corresponding to each node includes:
if the node type of the node is a fourth node type, creating a type message node corresponding to the fourth node type based on a father node of a message structure, and filling target key value data acquired from the target entity data object into the type message node to obtain the sub-message to be processed.
Further, the method further comprises:
if the node is a father node, the child nodes associated with the father node are read in a descending mode, and the target entity data object is processed according to the node association information and the data processing mode of the child nodes, so that a to-be-processed child message corresponding to each child node is obtained.
Further, the obtaining, based on the sub-messages to be processed of each node, a target message corresponding to the target entity data object includes:
integrating the sub-messages to be processed of each node to obtain a target message corresponding to the target entity data object;
the target message comprises a message structure corresponding to the target data processing system, and the message structure is filled with the target entity data object.
Further, the method further comprises:
acquiring configuration files corresponding to each data processing system; wherein the configuration file is matched with a message template identified by the data processing system;
analyzing the configuration file according to a preset rule to obtain a mapping structure tree corresponding to the configuration file, and processing the obtained target entity data object based on the mapping structure tree to obtain a target message; the mapping structure tree comprises at least one hierarchy, each hierarchy comprises at least one node, and each node comprises node association information.
In a second aspect, an embodiment of the present invention further provides a device for generating a packet, where the device includes:
The mapping structure tree generation module is used for determining a target mapping structure tree corresponding to a target entity data object when the target entity data object is detected; wherein the target mapping structure tree is generated according to a configuration file corresponding to a target data processing system;
the target message generation module is used for processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object; the node comprises node association information.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement a method for generating a message according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method of generating a message according to any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, when the target entity data object is detected, the target mapping structure tree corresponding to the target entity data object can be determined, further, the target entity data object is processed based on the nodes in the target mapping structure tree to obtain the target message which is matched with the upstream system, namely, as the mapping structure tree which is matched with different upstream systems (data processing systems) is generated in advance, the differential target message can be generated in an automatic mode aiming at different upstream systems, the development of program codes aiming at the systems alone is not needed, the development cost is reduced, the workload is reduced, the universality of processing different entity data objects is enhanced, and the convenience and the personalized technical effect of generating the target message are improved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a message generating method according to an embodiment of the present invention;
fig. 2 is a flow chart of a message generating method according to an embodiment of the present invention;
FIG. 3 is a diagram of four structural constituent nodes and their corresponding attributes in a mapping configuration process;
FIG. 4 is a mapping structure tree obtained after parsing a configuration file;
FIG. 5 is a target mapping structure tree determined based on target entity data objects;
fig. 6 is a flow chart of a message generating method according to an embodiment of the present invention;
FIG. 7 is a flow chart for generating a target message based on a target entity data object;
fig. 8 is a block diagram of a message generating device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Fig. 1 is a flow chart of a message generating method according to an embodiment of the present invention, where the method may be applied to a situation that when a production system returns data, a message adapted to an upstream system is generated based on the returned data, and the method may be performed by a message generating device, where the device may be implemented in software and/or hardware, and the hardware may be an electronic device, such as a mobile terminal, a PC or a server.
In order to clearly understand the technical solution of the embodiment of the present invention, an application scenario may be first illustrated. After the downstream production system processes the task, it is generally necessary to perform customized conversion on the processing result to generate data information that matches (i.e., can be received, processed, and transmitted by) the upstream data processing system, for example, converting the processing result into a message that can be exchanged and transmitted in the network, where the message includes the complete data information. For different data processing systems, because of the difference of the service types processed by the data processing systems, only messages with specific formats can be received, for example, an upstream system for processing group services can only receive messages with XML format, and an upstream system for processing individual services can only receive messages with Json format. Therefore, the technical solution of the present embodiment is implemented based on the above scenario where multiple types of data processing systems exist.
As shown in fig. 1, the method specifically includes the following steps:
s110, when the target entity data object is detected, determining a target mapping structure tree corresponding to the target entity data object.
In a system including a production system and an upstream system, the production system may generate multiple processing results during a task processing process, for example, after the production system performs a review task for a certain object, a corresponding review result may be generated. The entity data object may be various forms of data information generated by the production system after processing the task, and in this case, the data information may be the above-mentioned review result. It should be understood by those skilled in the art that when the production system generates multiple processing results for multiple tasks, all data information corresponding to the multiple processing results may be used as target entity data objects, or multiple processing results may be screened according to a specific rule, and data information corresponding to part of the screened processing results may be used as target entity data objects.
Correspondingly, each entity data object can be represented in a non-linear data structure, preferably in the form of a tree diagram. The tree graph of entity data objects includes a plurality of nodes, each node corresponding to a respective data type and data value, the data type being Object, list, field, map. Each node and each branch in the tree diagram can be organized and associated according to a branch relation to form a plurality of layers, and then the tree diagram with a certain depth value is obtained. The computer may traverse the tree graph to perform parsing, extracting data in various nodes, and other operations.
In this embodiment, the data of the entity object needs to be converted into a message and sent to the corresponding data processing system, and different data processing systems have specific requirements on the format of the message, so in order to make the converted message correspond to the data processing system, the mapping structure tree needs to be utilized in the conversion process to generate the corresponding message. Wherein the mapping structure tree is generated according to a configuration file corresponding to the target data processing system. It will be appreciated that the configuration file matches the message template used by the data processing system. In the configuration file, the configuration content may be at least one key value pair, and the mapping structure tree corresponding to the entity data object is determined by dividing the key value and the value in the data.
Optionally, when the target entity data object is detected, determining a target data producer corresponding to the target entity data object and a target data processing system corresponding to the target data producer; a target mapping structure tree corresponding to a target data processing system is obtained.
In this embodiment, a production system that processes a task to obtain a processing result may be a target data producer, and the corresponding target data processing system may be an upstream system that receives a processing result in a specific format, preferably, the target data processing system may be an order management system (OMS, order Management System), and the OMS system may accept the outbound and inbound storage of various service documents, and may also receive, process, and transfer data information related to a service, and connect to a downstream production system through an application program interface (API, application Programming Interface).
In the practical application process, different types of data processing systems are associated with corresponding data generators, and specific requirements are required for the format of data information, for example, an OMS system marked 1 is associated with a production system marked 1', so that messages in XML format can be processed, and an OMS system marked 2 is associated with a production system marked 2', so that messages in Json format can be processed. After determining the data producer of the target entity object and the corresponding data processing system, the data processing system identifier can be determined according to the identifier of the producer, and then the mapping structure tree corresponding to the data processing system identifier is called, and the entity data object is processed based on the mapping structure tree, so that the target message matched with the data processing system is obtained.
Specifically, the source identifier carried by the entity data object can be detected to determine the data producer corresponding to the entity data object, and meanwhile, a mapping table representing the corresponding relation between the data producer and the data processing system is prestored in the system, so that the data processing system corresponding to the data producer can be determined by looking up a table.
It should be further noted that the mapping structure tree is generated based on the message structures required by different data processing systems, and the configuration file corresponding to the message structures may be generated first. And analyzing and processing the configuration file to obtain a mapping structure tree matched with each data processing system. And traversing each node of the mapping structure tree to process the entity number object to obtain a corresponding message.
S120, processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object.
The node includes node association information, which may be understood as attribute information of the node, and corresponding data fields are stored in the attribute information, for example, association information in the Object node includes a name field, a source field, and the like. In this embodiment, by traversing the target mapping structure tree, the node type of each node in the mapping structure tree may be determined, for example, the node type may be any one of Object, list, field, map. The nodes can integrate corresponding data processing modes and data node priorities, for example, each node is called in turn according to the node priorities. When traversing to a certain node, the method based on encapsulation in the node can extract the corresponding data field from the entity data or generate a certain message node in the message structure, and add the obtained corresponding data into the message node. Further, the extracted data field is combined with the IP address corresponding to the data producer and the IP address corresponding to the target data processing system, and is packaged into the target message in a specific format, so that the corresponding target data processing system can receive, identify and process the target message conveniently.
Continuing to explain the above example, after determining the mapping structure tree corresponding to the OMS system identified as 1 based on the target entity data object, the mapping structure tree may be traversed to determine a plurality of nodes in the mapping structure tree, and according to the method of encapsulation in the nodes, the corresponding data fields may be extracted from the entity data, or the corresponding message nodes in the message structure may be generated, and the obtained corresponding data may be added to the message nodes, and further, the extracted data fields may be combined with the IP address of the data producer and the IP address corresponding to the OMS system, and encapsulated into an XML format message adapted to the OMS system identified as 1:
<orderNo>no_777</orderNo>
<skuNum>18</skuNum>
<weight>109</weight>
after determining a mapping structure tree corresponding to the OMS system with the identifier 2 based on the target entity data object, traversing the mapping structure tree to determine a plurality of nodes in the mapping structure tree, extracting corresponding data fields from entity data according to a method of encapsulation in the nodes, or generating corresponding message nodes in a message structure, adding acquired corresponding data into the message nodes, combining the extracted data fields with the IP address of a data producer and the IP address corresponding to the OMS system, and encapsulating the extracted data fields into a message in Json format which is adapted to the OMS system with the identifier 2:
"orderNo":"no_007","skuNum":18,"weight":109
That is, when the formats of the messages that can be processed by the upstream systems are inconsistent, the mapping structure trees determined by the systems also have differences, and further, when the target entity data object is detected, based on the mapping structure tree corresponding to each upstream system, differentiated messages can be adapted for different systems (that is, in the above example, XML format messages are adapted for the OMS system identified as 1, and Json format messages are adapted for the OMS system identified as 2).
According to the technical scheme of the embodiment of the invention, when the target entity data object is detected, the target mapping structure tree corresponding to the target entity data object can be determined, further, the target entity data object is processed based on the nodes in the target mapping structure tree to obtain the target message which is matched with the upstream system, namely, as the mapping structure tree which is matched with different upstream systems (data processing systems) is generated in advance, the differential target message can be generated in an automatic mode aiming at different upstream systems, the development of program codes aiming at the systems alone is not needed, the development cost is reduced, the workload is reduced, the universality of processing different entity data objects is enhanced, and the convenience and the personalized technical effect of generating the target message are improved.
Fig. 2 is a flow chart of a message generating method according to an embodiment of the present invention, on the basis of the foregoing embodiment, a configuration file corresponding to each data processing system is first obtained, after the configuration file is parsed according to a preset rule, a mapping structure tree corresponding to the configuration file may be obtained, when there is a difference in a message format required by each data processing system, the obtained mapping structure tree is also different, and further, a differential target message may be obtained based on each mapping structure tree. The specific implementation manner can be seen in the technical scheme of the embodiment. Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method specifically includes the following steps:
s210, acquiring configuration files corresponding to the data processing systems.
Wherein the configuration file matches a message template identified by the data processing system. That is, the configuration file is created based on the type of message that the data processing system is capable of recognizing. Taking a configuration file corresponding to a data processing system capable of identifying a Json message as an example, the configuration file is written based on the format of the Json message, so as to determine a corresponding target mapping structure tree when a target entity data object is detected, and part of the configuration file is as follows:
As can be seen from the partial content in the configuration file, the configuration file includes a Object, list, field, map type node, the source attribute represents a data field of the entity data object, and after the corresponding target message is generated subsequently, the data field is also a field value in the target message; target is an attribute name in a corresponding message structure, and in the first line code, "o" of source represents an entity data object, such as a guest list entity, an offer-back list entity, a discard list entity, and the like. That is, when the entity data objects need to be received by the data processing system for identifying the Json format message, the corresponding target mapping structure tree can be determined based on the configuration file first, and it should be noted that, when the format of the message that can be processed by the upstream system is inconsistent, the configuration files of the systems also have differences.
For each node in the configuration file, in addition to the source attribute and the target attribute, each node is also associated with various attribute information, see four structural component nodes and their corresponding attributes in fig. 3. As can be seen from fig. 3, each of the four nodes Object, list, field, map includes name, target, source attribute information, and a stringelentflag attribute is associated with respect to the List node, and a convertSymbols attribute is associated with respect to the Object node. Because the nodes of different types correspond to the respective attribute information, the content of the entity object data can be acquired based on the attribute information of the nodes of different types, so that different requirements of a data processing system on the target message in various scenes are met, for example, a default value is set for part of the content in the data information, an escape operation is performed on the data information, special tags are marked on the data information, and more algorithms are expanded based on the attribute information of the nodes of different types.
S220, analyzing the configuration file according to a preset rule to obtain a mapping structure tree corresponding to the configuration file.
Specifically, when the configuration file includes four types of nodes Object, list, field, map, the configuration file may be parsed according to a preset rule, and the mapping structure tree shown in fig. 4 is obtained, and it may be determined based on fig. 4 that the mapping structure tree includes at least one hierarchy, each hierarchy includes at least one node, and each node includes node association information. For example, according to a preset rule, a first mapping Node ObjectNode in a first hierarchy may be resolved first, corresponding source, target attribute information may be determined for the Node, and a child Node under the Node may be resolved and placed into a List < Node >, that is, a List child Node of a next level associated with the Object Node is determined. In the second hierarchy, including the Field Node, list Node and Map Node, the system may determine source, target attribute information corresponding to each Node in the mapping structure tree, and determine the next List sub-Node (when the Node of the second hierarchy has the next List sub-Node associated with itself), and so on, may parse the configuration file step by step and execute the construction of the Node tree, to finally obtain a mapping structure tree with a complete structure corresponding to the configuration file, where the final leaf nodes are all Field nodes, that is, all other types of nodes except the Field Node serve as intermediate nodes of the mapping structure tree. Note that, when the formats of messages that can be processed by the upstream systems are not identical, there are also differences in the corresponding configuration files, and therefore, the mapping structure tree obtained by analyzing the respective configuration files is different for these upstream systems.
S230, when the target entity data object is detected, determining a target mapping structure tree corresponding to the target entity data object.
In this embodiment, the target entity data object may be converted into a corresponding entity object number, see fig. 5. When the production system receives a task generated based on a customer order, the task can be processed and a corresponding processing result can be generated, and as can be seen from fig. 5, the data information corresponding to the processing result can include various attribute information such as order number orderNo, stock keeping quantity skusum, total weight of the article, and the like. Because the system processes the configuration file according to the preset rule and obtains the corresponding mapping structure tree, the processing result of the target entity data object can be resolved into the corresponding target mapping structure tree.
With continued reference to fig. 5, after analyzing the data information corresponding to the processing result, it may be determined that the usernames personName in the data information are respectively Ming and Ming, and the user numbers 001 and 002 corresponding to the two users, and these attribute information are specific data fields in the Field node. Meanwhile, according to the data information corresponding to the stock keeping quantity sku in the data information, the relevant information of the objects involved in the user order, such as the stock keeping quantity being 18, the sequence code SN887, the quality guarantee period 8, the unique code UN887 and the like, can be determined, and meanwhile, in the attribute information corresponding to the map node, the value values corresponding to the key values of Ming and Ming are respectively 001 and 002.
Analyzing the configuration file according to a preset rule to obtain a mapping structure tree corresponding to the configuration file, wherein the mapping structure tree has the following advantages: after the target data entity object is detected, the obtained target entity data object can be processed based on the mapping structure tree, so as to obtain a target message.
S240, processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object.
According to the technical scheme of the embodiment, configuration files corresponding to the data processing systems are obtained first, after the configuration files are analyzed and processed according to preset rules, mapping structure trees corresponding to the configuration files can be obtained, when the format of messages which can be processed by the data processing systems is different, the obtained mapping structure trees are different, and further, differentiated target messages can be obtained based on the mapping structure trees.
Fig. 6 is a flow chart of a message generating method according to an embodiment of the present invention, on the basis of the foregoing embodiment, each node is called according to a node priority, a hierarchy in which each node is located in a remapping structure tree is determined, so that a layer-jump structure is convenient to be converted, a target entity data object is processed according to a data processing mode matched with a node type, and differential processing on multiple types of nodes is realized. Further, a message node in the message structure is created based on the node, corresponding data fields are extracted from entity data according to the association information of the node, and then a sub-message to be processed is generated, so that operations such as escape and default value setting are conveniently carried out on various fields, and special characters can be supported in the fields. Meanwhile, certain values can be converted, and for each type of node, an analysis method and a function can be specified, that is, the corresponding node is processed by the specified analysis method and function, so that the extension of the customized processing method is realized. The specific implementation manner can be seen in the technical scheme of the embodiment. Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein.
As shown in fig. 6, the method specifically includes the following steps:
s310, acquiring configuration files corresponding to each data processing system; and analyzing the configuration file according to a preset rule to obtain a mapping structure tree corresponding to the configuration file.
S320, when the target entity data object is detected, determining a target mapping structure tree corresponding to the target entity data object.
S330, sequentially calling each node according to the node priority in the node association information, and processing the target entity data object according to the target data processing mode matched with the node type of each node to obtain the sub-message to be processed corresponding to each node.
The node association information includes the priority of the node, and the priority information is determined based on the level of the node in the mapping structure tree, and it can be understood that the sequence of traversing the nodes in the mapping structure tree can be determined based on the priority information. By determining the priority and the level of each node, the structure of the jump layer can be converted in the process of generating the target message later, for example, for the entity data object with the depth of 3 layers, the entity data object is converted into the 2-layer structure of the message node, and only the up-regulation layer is required to be set, so that the efficiency and the degree of freedom in the process of adjusting the message structure are improved.
In this embodiment, because different types of nodes in the mapping structure tree correspond to different node association information, different data processing manners may be adopted for different types of nodes in the mapping structure tree, for example, a data processing manner matched with four types of nodes Object, list, field, map in the mapping structure tree is preset, and after the setting is completed, the data processing manner is used as node association information, that is, an association relationship is established between the data processing manner and the corresponding node, and when the node type is determined by the identifier carried by the node, the matched data processing manner can be selected to process the node.
Further, since the message may be a basic data unit in the process of network data exchange and transmission, and may be a data block formed by multiple sub-messages, in this embodiment, after the corresponding node is processed according to the target data processing manner, the sub-message to be processed for forming the target message may be obtained. It will be appreciated that similar to the contents of the target message, the sub-message to be processed also includes field values extracted from the entity data based on the node association information.
FIG. 7 is a flow chart of generating a target message based on a target entity data object, and the target data processing modes for different types of nodes are respectively described below in connection with FIG. 7.
Optionally, if the node type of the node is the first node type, the target data processing mode creates an attribute node for the current node based on the message structure, and acquires an attribute name from the target entity data object, so as to fill the attribute name into the attribute node, and obtain a sub-message to be processed in the message structure.
When it is determined that a certain node in the mapping structure tree is an ObjectNode according to the identifier or attribute information carried by the node, the attribute node is created based on the node, the target value (attribute name) of the node is obtained from the entity data according to the association information of the node, and the target value is filled into the created attribute node, so that the sub-message to be processed of the field value in the filled entity data Object can be obtained.
Optionally, if the node type of the node is the second node type, the target data processing mode is to create a list node for the current node based on the message structure, and obtain the attribute name and the source attribute value from the target entity data object, so as to fill the attribute name and the source attribute value into the list node in the message structure, and obtain the sub-message to be processed.
When it is determined that a certain node in the mapping structure tree is the ListNode according to the identifier or attribute information carried by the node, a List node is created based on the node, a target value (attribute name) and a source attribute field value (source attribute value) of the node are obtained from entity data according to the association information of the node, and the target value and the source attribute field value are filled into the created List node, so that a sub-message to be processed of the field value in the filled entity data object can be obtained.
Optionally, if the node type is the third node type, the source attribute value is obtained from the target entity data object and is set in an attribute name field in the message structure, so as to obtain the sub-message to be processed in the message structure.
The third node type may be a node Field node of a Field type, and because in the mapping structure tree, the final leaf node is the Field node, when it is determined that a certain node in the mapping structure tree is the Field node through the identifier carried by the node or the attribute information, the source attribute Field value (source attribute value) is directly obtained from the target entity data object according to the association information of the node, and the obtained source attribute Field value is set as a Field corresponding to the target attribute in the message structure, so that the sub-message to be processed of the Field value in the filled entity data object can be obtained.
Optionally, if the node type of the node is the fourth node type, creating a type message node corresponding to the fourth node type based on the father node of the message structure, and filling the target key value data acquired from the target entity data object into the type message node to obtain the sub-message to be processed.
When it is determined that a certain node in the mapping structure tree is a MapNode according to the identifier or attribute information carried by the node, a Map type message node is created based on a parent node of the message structure, and a source attribute field value of the node is obtained from entity data according to the association information of the node.
In this embodiment, if the node is a parent node, the child node associated with the parent node is read in a downlink manner, and the target entity data object is processed according to the node association information and the data processing mode of the child node, so as to obtain a to-be-processed child message corresponding to each child node.
In the mapping structure tree, since the Object type node and the List type node may be both associated with a child node List, both the first node type and the second node type may be used as parent nodes, and when it is determined that a certain node in the mapping structure tree is a node of the two types through the identifier or attribute information carried by the node, the child node associated with the parent node is traversed. When the parent node is judged to have no child node, other nodes are processed in a corresponding target data processing mode according to the node priority, when the parent node is judged to have the child node, the associated information of the child node is read down, the child node is processed according to the target data processing mode matched with the child node type, and further the to-be-processed child message filled with the field value in the entity data object is obtained. When the child node is determined to be a List node, a List node is created based on the node, a target value (attribute name) and a source attribute field value (source attribute value) of the child node are obtained from entity data according to node association information of the child node, and the target value and the source attribute field value are filled into the created List node, so that a sub-message to be processed corresponding to the List child node can be obtained.
The method has the advantages that different data processing modes are preset, the differentiation processing of various types of nodes is realized, meanwhile, the associated information of the nodes is obtained and is subjected to adaptive processing, the operations of escaping various fields, setting default values and the like are facilitated, and special characters can be supported in the fields. Further, the values in the node-associated information may be converted, such as time format conversion, numerical format conversion, transcoding, and the like. For each type of node, an analysis method and a function can be specified, that is, the specified analysis method and function process the corresponding node, so that the extension of the customized processing method is realized.
S340, obtaining a target message corresponding to the target entity data object based on the sub-messages to be processed of each node.
Optionally, the target message corresponding to the target entity data object is obtained by integrating the sub-messages to be processed of each node.
In the process of network data exchange and transmission, the message is a basic data unit, and can be a data block formed by multiple sub-messages, and after processing each type of node, a sub-message to be processed filled with a field value in an entity data object can be obtained, so that after integrating the obtained sub-message to be processed according to a certain format, a data block corresponding to a target entity data object, namely, a target message can be obtained, specifically, the target message includes a message structure corresponding to a target data processing system, after obtaining the sub-message to be processed including the field value, the field value can be filled in the message structure, and it can be understood that the target entity data object is filled in the message structure. For example, according to the sub-message to be processed corresponding to the Object, list, field, map node, a differentiated target message (such as an XML format message adapted to the OMS system identified as 1 and a Json format message adapted to the OMS system identified as 2) is determined for different data processing systems. It should be noted that, the target message may be generated based on all the sub-messages to be processed, or some of the sub-messages to be processed may be selected to be generated according to a specific rule, and the embodiments of the present disclosure are not limited herein specifically.
The target message is generated by utilizing the sub-message to be processed, so that the development of corresponding program codes aiming at different data processing systems is avoided, and the creation process of the target entity data object and the generation process of the message are more flexible.
According to the technical scheme of the embodiment, each node is called according to the node priority, the level of each node in the remapping structure tree is determined, the structure of the jump layer is convenient to convert, the target entity data object is processed according to the data processing mode matched with the node type, and the differentiation processing of various types of nodes is realized. Further, a message node in the message structure is created based on the node, corresponding data fields are extracted from entity data according to the association information of the node, and then a sub-message to be processed is generated, so that operations such as escape and default value setting are conveniently carried out on various fields, and special characters can be supported in the fields. Meanwhile, the values in the node association information can be converted, and for each type of node, an analysis method and a function can be specified, that is, the corresponding node is processed by the specified analysis method and function, so that the extension of the customized processing method is realized.
Fig. 8 is a block diagram of a message generating device according to an embodiment of the present invention, which is capable of executing the message generating method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the executing method. As shown in fig. 8, the apparatus specifically includes: the map structure tree generation module 410 and the target message generation module 420.
A mapping structure tree generating module 410, configured to determine, when a target entity data object is detected, a target mapping structure tree corresponding to the target entity data object; wherein the target mapping structure tree is generated from a configuration file corresponding to the target data processing system.
A target message generating module 420, configured to process the target entity data object based on each node in the target mapping structure tree, to obtain a target message corresponding to the target entity data object; the node comprises node association information.
Based on the above embodiments, the mapping structure tree generating module 410 includes a determining unit and a target mapping structure tree obtaining unit.
And the determining unit is used for determining a target data producer corresponding to the target entity data object and a target data processing system corresponding to the target data producer when the target entity data object is detected.
A target mapping structure tree obtaining unit, configured to obtain a target mapping structure tree corresponding to the target data processing system; the mapping structure tree is generated according to a configuration file corresponding to the data processing system, and the configuration file is matched with a message template used by the data processing system.
Based on the above technical solutions, the target message generating module 420 includes a sub-message determining unit to be processed and a target message determining unit.
And the to-be-processed sub-message determining unit is used for sequentially calling each node according to the node priority in the node association information, and processing the target entity data object according to a target data processing mode matched with the node type of each node to obtain to-be-processed sub-messages corresponding to each node.
And the target message determining unit is used for obtaining a target message corresponding to the target entity data object based on the sub-messages to be processed of each node.
Optionally, the to-be-processed sub-packet determining unit is further configured to create an attribute node for a current node based on a packet structure in the target data processing manner if the node type of the node is the first node type, and acquire an attribute name from the target entity data object, so as to fill the attribute name into the attribute node, thereby obtaining the to-be-processed sub-packet in the packet structure.
Optionally, the to-be-processed sub-packet determining unit is further configured to, if the node type of the node is the second node type, create a list node for the current node based on the packet structure, and fill the attribute name and the source attribute value obtained from the target entity data object into the list node in the packet structure to obtain the to-be-processed sub-packet.
Optionally, the to-be-processed sub-packet determining unit is further configured to obtain a source attribute value from the target entity data object if the node type is the third node type, and set the source attribute value in an attribute name field in a packet structure, so as to obtain the to-be-processed sub-packet in the packet structure.
Optionally, the to-be-processed sub-packet determining unit is further configured to create a type packet node corresponding to the fourth node type based on a parent node of the packet structure if the node type of the node is the fourth node type, and fill the target key value data obtained from the target entity data object into the type packet node to obtain the to-be-processed sub-packet.
Optionally, the to-be-processed sub-message determining unit is further configured to, if the node is a parent node, downstream read a sub-node associated with the parent node, and process the target entity data object according to node association information and a data processing manner of the sub-node, to obtain to-be-processed sub-messages corresponding to each sub-node.
Optionally, the target message determining unit is further configured to obtain a target message corresponding to the target entity data object by integrating the sub-messages to be processed of each node; the target message comprises a message structure corresponding to the target data processing system, and the message structure is filled with the target entity data object.
Optionally, the message generating device further includes a configuration file acquisition module and a mapping structure tree determination module.
The configuration file acquisition module is used for acquiring configuration files corresponding to the data processing systems; wherein the configuration file matches a message template identified by the data processing system.
The mapping structure tree determining module is used for analyzing the configuration file according to a preset rule to obtain a mapping structure tree corresponding to the configuration file, and processing the obtained target entity data object based on the mapping structure tree to obtain a target message; the mapping structure tree comprises at least one hierarchy, each hierarchy comprises at least one node, and each node comprises node association information.
According to the technical scheme of the embodiment of the invention, when the target entity data object is detected, the target mapping structure tree corresponding to the target entity data object can be determined, further, the target entity data object is processed based on the nodes in the target mapping structure tree to obtain the target message which is matched with the upstream system, namely, as the mapping structure tree which is matched with different upstream systems (data processing systems) is generated in advance, the differential target message can be generated in an automatic mode aiming at different upstream systems, the development of program codes aiming at the systems alone is not needed, the development cost is reduced, the workload is reduced, the universality of processing different entity data objects is enhanced, and the convenience and the personalized technical effect of generating the target message are improved.
The message generating device provided by the embodiment of the invention can execute the message generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Fig. 9 shows a block diagram of an exemplary electronic device 50 suitable for use in implementing the embodiments of the present invention. The electronic device 50 shown in fig. 9 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 9, the electronic device 50 is in the form of a general purpose computing device. Components of electronic device 50 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 that connects the various system components (including the system memory 502 and processing units 501).
Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 50 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 50 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 502 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 504 and/or cache memory 505. Electronic device 50 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard disk drive"). Although not shown in fig. 9, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 503 through one or more data medium interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 508 having a set (at least one) of program modules 507 may be stored, for example, in memory 502, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 507 typically perform the functions and/or methods of the described embodiments of the invention.
The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), one or more devices that enable a user to interact with the electronic device 50, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 50 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 511. Also, the electronic device 50 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through a network adapter 512. As shown, the network adapter 512 communicates with other modules of the electronic device 50 over the bus 503. It should be appreciated that although not shown in fig. 9, other hardware and/or software modules may be used in connection with electronic device 50, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 501 executes various functional applications and data processing by running a program stored in the system memory 502, for example, to implement the message generation method provided by the embodiment of the present invention.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions for performing a message generation method when executed by a computer processor.
The method comprises the following steps:
when a target entity data object is detected, determining a target mapping structure tree corresponding to the target entity data object; wherein the target mapping structure tree is generated according to a configuration file corresponding to a target data processing system;
processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object; the node comprises node association information.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method for generating a message, comprising:
when a target entity data object is detected, determining a target mapping structure tree corresponding to the target entity data object; wherein the target mapping structure tree is generated according to a configuration file corresponding to a target data processing system;
processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object; wherein the node comprises node association information;
The determining, when a target entity data object is detected, a target mapping structure tree corresponding to the target entity data object includes:
when a target entity data object is detected, determining a target data producer corresponding to the target entity data object and a target data processing system corresponding to the target data producer;
acquiring a target mapping structure tree corresponding to the target data processing system;
the mapping structure tree is generated according to a configuration file corresponding to the data processing system, and the configuration file is matched with a message template used by the data processing system; the target entity data object is data information generated after a production system processes a task, the production system is used as the target data producer, and the target data processing system is an upstream system for receiving a processing result;
the processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object includes:
sequentially calling each node according to the node priority in the node association information, and processing the target entity data object according to a target data processing mode matched with the node type of each node to obtain a sub-message to be processed corresponding to each node;
Obtaining a target message corresponding to the target entity data object based on the sub-messages to be processed of each node;
the processing the target entity data object according to the target data processing mode matched with the node type of each node to obtain a sub-message to be processed corresponding to each node comprises the following steps:
if the node type of the node is a first node type, the target data processing mode creates an attribute node for a current node based on a message structure, and acquires an attribute name from the target entity data Object to fill the attribute name into the attribute node, so as to obtain a sub-message to be processed in the message structure, wherein the first node type is a node ObjectNode of an Object type;
if the node type of the node is a second node type, the target data processing mode is to create a List node for the current node based on the message structure, and the attribute name and the source attribute value obtained from the target entity data object are filled in the List node in the message structure to obtain the sub-message to be processed, wherein the second node type is a List node of a List type.
2. The method of claim 1, wherein the processing the target entity data object according to the target data processing manner matched with the node type of each node to obtain the sub-packet to be processed corresponding to each node, further comprises:
and if the node type is a third node type, acquiring a source attribute value from the target entity data object, and setting the source attribute value in an attribute name field in a message structure to obtain a sub-message to be processed in the message structure.
3. The method of claim 1, wherein the processing the target entity data object according to the target data processing manner matched with the node type of each node to obtain the sub-packet to be processed corresponding to each node, further comprises:
if the node type of the node is a fourth node type, creating a type message node corresponding to the fourth node type based on a father node of a message structure, and filling target key value data acquired from the target entity data object into the type message node to obtain the sub-message to be processed.
4. A method according to any one of claims 1-3, further comprising:
If the node is a father node, the child nodes associated with the father node are read in a descending mode, and the target entity data object is processed according to the node association information and the data processing mode of the child nodes, so that a to-be-processed child message corresponding to each child node is obtained.
5. The method according to claim 1, wherein the obtaining, based on the sub-messages to be processed of each node, a target message corresponding to the target entity data object includes:
integrating the sub-messages to be processed of each node to obtain a target message corresponding to the target entity data object;
the target message comprises a message structure corresponding to the target data processing system, and the message structure is filled with the target entity data object.
6. The method as recited in claim 1, further comprising:
acquiring configuration files corresponding to each data processing system; wherein the configuration file is matched with a message template identified by the data processing system;
analyzing the configuration file according to a preset rule to obtain a mapping structure tree corresponding to the configuration file, and processing the obtained target entity data object based on the mapping structure tree to obtain a target message; the mapping structure tree comprises at least one hierarchy, each hierarchy comprises at least one node, and each node comprises node association information.
7. A message generating apparatus, comprising:
the mapping structure tree generation module is used for determining a target mapping structure tree corresponding to a target entity data object when the target entity data object is detected; wherein the target mapping structure tree is generated according to a configuration file corresponding to a target data processing system;
the target message generation module is used for processing the target entity data object based on each node in the target mapping structure tree to obtain a target message corresponding to the target entity data object; wherein the node comprises node association information;
the mapping structure tree generation module comprises a determination unit and a target mapping structure tree acquisition unit;
the determining unit is used for determining a target data producer corresponding to the target entity data object and a target data processing system corresponding to the target data producer when the target entity data object is detected;
the target mapping structure tree acquisition unit is used for acquiring a target mapping structure tree corresponding to the target data processing system; the mapping structure tree is generated according to a configuration file corresponding to the data processing system, and the configuration file is matched with a message template used by the data processing system; the target entity data object is data information generated after a production system processes a task, the production system is used as the target data producer, and the target data processing system is an upstream system for receiving a processing result;
The target message generation module comprises a sub-message determination unit to be processed and a target message determination unit;
the sub-message to be processed determining unit is used for sequentially calling each node according to the node priority in the node association information, and processing the target entity data object according to a target data processing mode matched with the node type of each node to obtain sub-messages to be processed corresponding to each node;
the target message determining unit is used for obtaining a target message corresponding to the target entity data object based on the sub-messages to be processed of each node;
the sub-message to be processed determining unit is further configured to create an attribute node for a current node based on a message structure in the target data processing manner if the node type of the node is a first node type, and acquire an attribute name from the target entity data Object to fill the attribute name into the attribute node, so as to obtain a sub-message to be processed in the message structure, where the first node type is a node ObjectNode of an Object type;
the sub-message to be processed determining unit is further configured to, if the node type of the node is a second node type, create a List node for a current node based on the message structure, and fill the attribute name and the source attribute value obtained from the target entity data object into the List node in the message structure to obtain the sub-message to be processed, where the second node type is a List type node.
8. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of message generation of any of claims 1-6.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the message generation method of any of claims 1-6.
CN202210071932.XA 2022-01-21 2022-01-21 Message generation method and device, electronic equipment and storage medium Active CN114499759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210071932.XA CN114499759B (en) 2022-01-21 2022-01-21 Message generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210071932.XA CN114499759B (en) 2022-01-21 2022-01-21 Message generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114499759A CN114499759A (en) 2022-05-13
CN114499759B true CN114499759B (en) 2024-04-12

Family

ID=81473556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210071932.XA Active CN114499759B (en) 2022-01-21 2022-01-21 Message generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114499759B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5970490A (en) * 1996-11-05 1999-10-19 Xerox Corporation Integration platform for heterogeneous databases
JP2000092074A (en) * 1998-09-11 2000-03-31 Oki Electric Ind Co Ltd Method and system for converting address of packet
CN110727476A (en) * 2019-10-12 2020-01-24 深圳创维-Rgb电子有限公司 Method, device, equipment and storage medium for generating authorization configuration file
CN113268955A (en) * 2021-05-21 2021-08-17 北京京东振世信息技术有限公司 Message conversion method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5970490A (en) * 1996-11-05 1999-10-19 Xerox Corporation Integration platform for heterogeneous databases
JP2000092074A (en) * 1998-09-11 2000-03-31 Oki Electric Ind Co Ltd Method and system for converting address of packet
CN110727476A (en) * 2019-10-12 2020-01-24 深圳创维-Rgb电子有限公司 Method, device, equipment and storage medium for generating authorization configuration file
CN113268955A (en) * 2021-05-21 2021-08-17 北京京东振世信息技术有限公司 Message conversion method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动用户界面概念模型到代码的转换方法研究;王诗宇;刘洪星;范家佳;;计算机工程与应用;20190410(第10期);全文 *

Also Published As

Publication number Publication date
CN114499759A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN111241073B (en) Data quality inspection method and device
CN108733317B (en) Data storage method and device
CN113079198B (en) Method and device for converting cloud platform interface protocol
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN111552838A (en) Data processing method and device, computer equipment and storage medium
CN109558525A (en) A kind of generation method of test data set, device, equipment and storage medium
CN113076153B (en) Interface calling method and device
CN110263277A (en) Display methods, update method, device, equipment and the storage medium of page data
CN114490641B (en) Sharing method, equipment and medium of industrial Internet data
CN112181542A (en) Function calling method and device, electronic equipment and storage medium
US20090043864A1 (en) Method and System for Generating Globally Unique Identifiers
CN109033404A (en) Daily record data processing method, device and system
CN109062906B (en) Translation method and device for program language resources
CN111694561A (en) Interface management method, device, equipment and storage medium
CN113626223A (en) Interface calling method and device
CN114168149A (en) Data conversion method and device
CN111400554A (en) Access method and device for unified tag library
CN114327493A (en) Data processing method and device, electronic equipment and computer readable medium
CN114513552A (en) Data processing method, device, equipment and storage medium
CN113641881A (en) Metadata display method, device, equipment and medium
CN116048517B (en) API (application program interface) generating method, system and device based on B/S (browser/Server) architecture application system
CN114499759B (en) Message generation method and device, electronic equipment and storage medium
CN115168365B (en) Data storage method and device, electronic equipment and storage medium
CN111309319A (en) Inheritable office data dynamic page configuration method and device
CN109068286B (en) Information analysis method, medium and equipment

Legal Events

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