CN111950249B - 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
CN111950249B
CN111950249B CN202010809568.3A CN202010809568A CN111950249B CN 111950249 B CN111950249 B CN 111950249B CN 202010809568 A CN202010809568 A CN 202010809568A CN 111950249 B CN111950249 B CN 111950249B
Authority
CN
China
Prior art keywords
service
message
target
element identifier
generating
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
CN202010809568.3A
Other languages
Chinese (zh)
Other versions
CN111950249A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010809568.3A priority Critical patent/CN111950249B/en
Publication of CN111950249A publication Critical patent/CN111950249A/en
Application granted granted Critical
Publication of CN111950249B publication Critical patent/CN111950249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The embodiment of the disclosure provides a message generation method, a message generation device, electronic equipment and a storage medium, which can be applied to the financial field or other fields. The method comprises the following steps: acquiring target service data of a service party, wherein the target service data comprises a first service element identifier; determining a target message template matched with the first service element identifier from a plurality of original message templates; and generating a target message according to the target service data and the target message template.

Description

Message generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and more particularly relates to a message generation method, a message generation device, electronic equipment and a storage medium.
Background
Along with popularization of banking business and change of business party demands, the requirement on the instantaneity of the communication message is higher and higher.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: the method for generating the message by adopting the related technology is difficult to meet the requirement of quick online.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for generating a message.
An aspect of an embodiment of the present disclosure provides a method for generating a message, including: acquiring target service data of a service party, wherein the target service data comprises a first service element identifier; determining a target message template matched with the first service element identifier from a plurality of original message templates; and generating a target message according to the target service data and the target message template.
According to an embodiment of the present disclosure, the method further comprises: acquiring service demand information of a service party, wherein the service demand information comprises a second service element identifier; acquiring an initial report Wen Moban; and generating an original message template corresponding to the second service element identifier according to the service requirement information and the initial message Wen Moban.
According to an embodiment of the present disclosure, the initial message template includes a plurality of message formats.
According to an embodiment of the present disclosure, the generating an original message template corresponding to the second service element identifier according to the second service requirement information and the initial report Wen Moban includes: determining a target message format matched with the second service element identifier from the message formats; and generating an original message template corresponding to the second service element identifier according to the service demand information and the target message format.
According to an embodiment of the present disclosure, the initial message template further includes a storage manner; after generating the original message template corresponding to the second service element identifier according to the service requirement information and the initial report Wen Moban, the method further includes: and carrying out association storage on the second service element identifier and an original message template corresponding to the second service element identifier according to the storage mode.
According to an embodiment of the present disclosure, after generating the target packet according to the target service data and the target packet template, the method further includes: and transmitting the target message to the service party in a transparent transmission mode.
According to an embodiment of the present disclosure, the target service data is target service data passing through verification.
Another aspect of the embodiments of the present disclosure provides a message generating apparatus, including: the system comprises an acquisition module, a service component identification module and a service component identification module, wherein the acquisition module is used for acquiring target service data of a service party, and the target service data comprises a first service element identification; the determining module is used for determining a target message template matched with the first service element identifier from a plurality of original message templates; and the generating module is used for generating a target message according to the target service data and the target message template.
Another aspect of an embodiment of the present disclosure provides an electronic device including: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the disclosed embodiments provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described above.
Another aspect of the disclosed embodiments provides a computer program comprising computer executable instructions which, when executed, are adapted to carry out a method as described above.
According to the embodiment of the disclosure, target business data of a business party is obtained, the target business data comprises a first business element identifier, a target message template matched with the first business element identifier is determined from a plurality of original message templates, and a target message is generated according to the target business data and the target message template. The target message template is determined from the plurality of original message templates according to the first service element identification, and the original message template is a template which can be flexibly changed according to the service party requirement, so that the requirement of quick online can be met, the technical problem that the requirement of quick online is difficult to meet is at least partially overcome, and the response speed is further improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates a block diagram of a message generation system in the related art;
FIG. 2 schematically illustrates an exemplary system architecture to which a message generation method may be applied, according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method of message generation according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a schematic diagram of a method of message generation according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a diagram of raw message template generation, according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a schematic diagram of another original message template generation according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a schematic diagram of yet another original message template generation according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart of another method of message generation according to an embodiment of the disclosure;
fig. 9 schematically illustrates a block diagram of a message generation system according to an embodiment of the disclosure;
fig. 10 schematically illustrates a block diagram of a message generating apparatus according to an embodiment of the disclosure; and
Fig. 11 schematically illustrates a block diagram of an electronic device adapted to implement a message generation method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In order to keep advantages in the same industry, how to expand new business parties and maintain old business parties is a prominent problem to be solved. Wherein, the business party refers to the clients with cooperative relationship. Taking a bank as an example, a banking party may refer to clients involved in banking, such as water service bureau, electric power bureau, gas company, public transportation company, school, and the like. Along with popularization of banking business and change of business party demands, the requirement on the instantaneity of the communication message is higher and higher.
In the process of implementing the disclosed concept, the inventor finds that the manner of generating the message in the code adopted in the related technology is difficult to meet the requirement of quick online. Fig. 1 schematically shows a block diagram of a message generation system in the related art. The data transmission process in fig. 1 is a headquarter system-message front end server-application server-message rear end server-service party system. The business side system refers to a system used by a partner with a cooperative relationship. The message front-end server and the message back-end server can be used for transmitting messages and unpacking and packing the messages.
In the related art, a headquarter system acquires original service data from a service party and sends the original service data of the service party to a message front-end server. Wherein, the original business data can refer to data generated by clients in the course of business activities. The message front-end server unpacks and packs the original business data to obtain target business data, and sends the target business data to the application server, the application server processes the target business data to obtain an original message, the original message is sent to the message rear-end server, the message rear-end server unpacks and packs the original message to obtain a target message, and the message rear-end server sends the target message to the business side system. The reason for unpacking and packing business data by adopting the message front-end server is as follows: the message formats used by the headquarters and the application server are different. The reason for unpacking and packing the original message by adopting the message post server is as follows: the application server is in a different format than the messages used by the service-side system.
Processing the target service data to obtain the original message for the application server in the related art will be described with reference to fig. 1. In the related art, an application server acquires service requirement information of a service party, and generates a message program corresponding to the service party according to the service requirement information. And setting the message program corresponding to the service party to an application server. For each business party, the message program corresponding to the business party is fixed after being set, and the change is difficult to realize.
It should be noted that, if the message program on the application program changes, after obtaining a new message program and setting the new message program on the application server, the application server needs to be restarted. In addition, since the message program is changed, a post-message server for transmitting a message between the application server and the service side system and for unpacking and packing the message needs to be changed.
According to the embodiment of the disclosure, the change of the message program of the application program is generally caused by the change of the service party requirement. The service party requirement change can comprise two aspects of contents, wherein one of the two aspects of contents and the original service party's service requirement change; and secondly, a new service party is added. If a change in the business side's requirements occurs, the message procedure needs to be modified. And, the message post server also needs to be modified.
According to the embodiments of the present disclosure, the reason why the manner of generating the message in the code adopted in the related art is difficult to satisfy the requirement of fast online is that: since if a change in the business side demand occurs, it is necessary to redevelop the program setup onto the application server and restart the application server. Meanwhile, the post-message server needs to be modified. In the data transmission process, the message post server is required to unpack and package the original message. In the above processes, a certain time is required, and thus, the response is not timely enough. Because the response is not timely enough, it is more difficult to meet the need for quick online.
It should be noted that, in addition to being more difficult to meet the requirement of quick online, the related art has a problem of risk that the application server may not provide business service when the application server fails to start, that is, has a problem of low stability.
The inventors found that: the reason for the above problems in the related art is the manner in which the message is generated. Based on this, the embodiment of the disclosure provides a message generation manner, which is a manner of generating a message by hot loading a configurable template. Wherein, hot loading refers to the fact that modified code can be validated without restarting the service. The configurable template can refer to that the message template can be flexibly changed according to the requirements of a business party. The following description will be made with reference to specific embodiments.
The embodiment of the disclosure provides a message generation method and device and electronic equipment capable of applying the method. The message generation method, the device and the electronic equipment of the embodiment of the disclosure can be applied to the financial field in the aspect of generating the message, and can also be applied to any field except the financial field, and the application fields of the message generation method, the device and the electronic equipment of the embodiment of the disclosure are not limited. The method comprises a message generation process. In the process of generating the message, acquiring target service data of a service party, wherein the target service data comprises service element identifiers, determining a target message template matched with the service element identifiers from a plurality of original message templates, and generating a target message according to the target service data and the target message template.
Fig. 2 schematically illustrates an exemplary system architecture 200 in which a message generation method may be applied according to an embodiment of the present disclosure. It should be noted that fig. 2 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 2, the system architecture 200 according to this embodiment may include terminal devices 201, 202, 203, a network 204, a first server 205, a second server 206, a third server 207, a fourth server 208, and a fifth server 209. The network 204 is a medium used to provide communication links between the terminal devices 201, 202, 203, the first server 205, the second server 206, the third server 207, the fourth server 208, and the fifth server 209. The network 204 may include various connection types, such as wired and/or wireless communication links, and the like.
The user may interact with the first server 205 via the network 204 using the terminal devices 201, 202, 203 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 201, 202, 203, such as banking class applications, shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients and/or social platform software, to name a few.
The terminal devices 201, 202, 203 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, etc.
The first server 205 may be a server providing various services, such as a background management server (by way of example only) providing support for transactions by users using the terminal devices 201, 202, 203. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
The third server 207 and the fifth server 209 may be servers providing message transmission and message processing. The fourth server 208 may be an application server providing a message generation service.
It should be noted that, the method for generating a message provided in the embodiments of the present disclosure may be generally executed by the fourth server 208. Accordingly, the message generating apparatus provided in the embodiments of the present disclosure may be generally disposed in the fourth server 208. The method of generating a message provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the fourth server 208 and is capable of communicating with the terminal devices 201, 202, 203 and/or the fourth server 208. Accordingly, the message generating apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the fourth server 208 and capable of communicating with the terminal devices 201, 202, 203 and/or the fourth server 208.
It should be understood that the number of terminal devices, networks and servers in fig. 2 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 3 schematically illustrates a flow chart of a method of message generation according to an embodiment of the disclosure.
As shown in fig. 3, the method includes operations S310 to S330.
In operation S310, target service data of a service party is acquired, wherein the target service data includes a first service element identifier.
In embodiments of the present disclosure, a business party may refer to a client having a partnership. The targeted traffic data may refer to data generated by the customer during the course of the traffic activity. The target business data may include a first business element identification. The first service element identifier may be used to characterize a service party and determine a target message template. The first business element identification may include a customer code identification and a transaction code identification.
Taking the service side system-the head office system-the message front-end server-the application server-the message rear-end server-the service side system as an example, the application server obtaining the service data of the service side can be understood as that the application server receives the target service data sent by the service side system through the head office system and the message front-end server. The business side system sends the original business data to the headquarter system, the headquarter system sends the original business data to the message front-end server, the message front-end server processes the original business data to obtain target business data, and the target business data is sent to the application server. The processing operation of the message front-end server on the original service data may include unpacking and packing.
It should be noted that, the target service data and the original service data may refer to data generated by a client in a service activity. The target service data is identical to the actual transmitted data included in the original service data.
In operation S320, a target message template matching the first service element identification is determined from the plurality of original message templates.
In embodiments of the present disclosure, the original message template may be stored in an application server. Each business party has an original message template corresponding to the business party, wherein the business party can be characterized by using first business element identifiers, and correspondingly, each first business element identifier has an original message template corresponding to the first business element identifier. The original message template can be used as a basis for generating the target message. The original message template can be generated by the service requirement information of the service party and the original message template. The initial message template may include a message format and a message storage mode. The initial message template may include a plurality of message formats. The message format may be a fixed-length message format, a separator message format, or an extensible markup language (Extensible Markup Language, XML) message format. The save mode may refer to a persistent save mode. Persistent saving may include saving to a database or saving to disk.
The application server can determine a target message template matched with the first service element identifier from a plurality of original message templates according to the first service element identifier, and then obtain the target message template corresponding to the service party.
Exemplary, for example, include original message Wen Moban M, original message template N, original message template O, original message Wen Moban P, and original message template Q. Wherein the original report Wen Moban M corresponds to the first service element identifier a. The original message template N corresponds to the first business element identifier b. The original message template O corresponds to the first service element identifier c. The original report Wen Moban P corresponds to the first service element identifier d. The original report Wen Moban Q corresponds to the first service element identifier e.
The first service element identifier of the present service data is the first service element identifier e. The application server determines a target message template Q matched with the first service element identifier e from the original message Wen Moban M, the original message template N, the original message template O, the original message Wen Moban P and the original message template Q according to the first service element identifier e.
In operation S330, a target message is generated according to the target service data and the target message template.
In an embodiment of the disclosure, an application server writes target service data into a target message template to generate a target message corresponding to a service party. Wherein the application server may be implemented based on the Object class in JAVA.
Fig. 4 schematically illustrates a schematic diagram of a method for generating a message according to an embodiment of the disclosure. In fig. 4, according to a first service element identifier included in service data of a service party, an application server determines a target message template matched with the first service element identifier from a plurality of original message templates, and generates a target message of the service party according to the service data and the target message template.
According to the technical scheme of the embodiment of the disclosure, target business data of a business party are obtained, the target business data comprise a first business element identifier, a target message template matched with the first business element identifier is determined from a plurality of original message templates, and a target message is generated according to the target business data and the target message template. The target message template is determined from the plurality of original message templates according to the first service element identification, and the original message template is a template which can be flexibly changed according to the service party requirement, so that the requirement of quick online can be met, the technical problem that the requirement of quick online is difficult to meet is at least partially overcome, and the response speed is further improved.
Optionally, on the basis of the technical scheme, the method may further include: and acquiring service requirement information of the service party, wherein the service requirement information comprises a second service element identifier. And obtaining an initial message template. And generating an original message template corresponding to the second service element identifier according to the service demand information and the initial message Wen Moban.
In an embodiment of the present disclosure, to meet the requirement of fast online, the application server may employ a manner of generating a message based on a hot-loaded configurable template. That is, the application server may preset an initial message template, where the initial message template may include a message format. The number of message formats may be at least two. The message format may be a fixed-length message format, a separator message format, or an extensible markup language message format.
After the application server obtains the service requirement information of the service party, an original message template corresponding to the service party can be generated according to the service requirement information and the initial report Wen Moban, wherein the service party can be characterized by using a second service element identifier in the service requirement information, namely, the original message template corresponding to the second service element identifier is generated. The service requirement information may refer to requirement information generated by a service party using a service provided by a bank. The service requirement information corresponds to a service party. The traffic demand information is typically different for different traffic parties. Wherein the second service element identifier may be used to characterize the service party and to determine an original message template corresponding to the service party. The second business element identification may include a customer code identification and a transaction code identification. It should be noted that, the first service element identifier and the second service element identifier are representations corresponding to the service element identifiers in different stages, and the content included in the first service element identifier and the second service element identifier may be the same.
According to an embodiment of the present disclosure, determining a target message template matching the first service element identifier from a plurality of original message templates may include: and determining a second business element identifier consistent with the first business element identifier, and taking an original message template corresponding to the second business element identifier as a target message template matched with the first business element identifier. Wherein the second business element identifier is a second business element identifier consistent with the first business element identifier.
For example, if the service party is an electric power office, the service requirement information may include the second service element identifier, the payment unit, the user name, the address information, the current available balance, the current arrearage amount, the contact manner, and the like. And if the service party is a water service bureau, the service requirement information can comprise the contents of a second service element identifier, a user name, address information, a card number, a water purchase date, a water price, a water quantity, an amount of money, an accumulated water purchase quantity and the like. For another example, the service party is a school, and accordingly, the service requirement information may include the second service element identifier, the name, the grade, the class, the card number, the current available balance, and the like.
It should be noted that, if the service requirement information of the service party changes, the application server may call the initial report Wen Moban, and generate a corresponding original message template according to the changed service requirement information. In the process, the original message template can be flexibly changed according to the service demand information of the service party, and the change can be effective without restarting the application server. The change of the requirement information of the service party may include that the original service requirement information of the service party is changed or a new service party is added.
Fig. 5 schematically illustrates a schematic diagram of original message template generation according to an embodiment of the present disclosure. In fig. 5, n service parties are shown, and the template generating engine in the application server may generate an original message template corresponding to the service party (i.e. the second service element identifier) according to the initial message template and the service requirement information of each service party.
Fig. 6 schematically illustrates a schematic diagram of another original message template generation according to an embodiment of the present disclosure. Fig. 6 differs from fig. 5 in that a service party n+1 is added in fig. 6, which represents a case where a new service party is added in the case where service demand information of the service party is changed.
Fig. 7 schematically illustrates a schematic diagram of yet another original message template generation according to an embodiment of the disclosure. Fig. 7 differs from fig. 5 in that the service requirement information of the service party 1 in fig. 7 is changed from the service requirement information 1 to the service requirement information 1', which represents a case that the service requirement information of the original service party is changed in the case that the service requirement information of the service party is changed.
According to the embodiment of the disclosure, the original message template corresponding to the service party is generated according to the service demand information and the initial message Wen Moban, namely, the mode based on the hot loading configurable template is adopted, so that the original message template can be flexibly changed according to the service demand information of the service party, a redevelopment program is not needed, and the change can be effected without restarting an application server, thereby reducing the development amount, and simultaneously, effectively avoiding the problem of low stability caused by restarting the application server and a message post-server, and further improving the system stability. On the basis, the original message template can be flexibly changed according to the service demand information of the service party, an application program does not need to be redeveloped, and the change can be effected without restarting the application server, so that the response time is shortened, the response speed is correspondingly improved, and further, the requirement of meeting the quick online can be met, and the system viscosity is improved.
Optionally, on the basis of the above technical solution, the initial message template may include a plurality of message formats.
In embodiments of the present disclosure, the initial message template may support multiple message formats. The message format may be a fixed-length message format, a separator message format, or an extensible markup language message format.
Because the message formats used by the same business party may be different, the initial message template may support a plurality of message formats, thereby meeting the requirements of different business parties.
Optionally, on the basis of the above technical solution, generating, according to the service requirement information and the initial report Wen Moban, an original message template corresponding to the second service element identifier may include: a target message format is determined from the plurality of message formats that matches the second business element identification. And generating an original message template corresponding to the second service element identifier according to the service demand information and the target message format.
In the embodiment of the disclosure, in order to obtain the original message template corresponding to each second service element identifier (i.e., the service party), so that after service data of the service party is obtained later, a target message template corresponding to the service party (i.e., the second service element identifier) may be called from a plurality of original message templates, a manner of determining a target message format matching with the service party (i.e., the second service element identifier) from a plurality of message formats may be adopted, and generating the original message template corresponding to the service party (i.e., the second service element identifier) according to service requirement information and the target message format.
The reason why the target message format matched with the service party needs to be determined according to the second service element identifier is that: because the message formats used by different service parties may be different, in other words, each service party has a message format corresponding to the service party, if the message format is determined, after the service requirement information of the service party is acquired, the service requirement information can be written into the corresponding part of the message format to obtain an original message template corresponding to the service party, so that the target message format matched with the service party can be determined from a plurality of message formats according to the second service element identification of the service party.
For example, the initial message template may include three message formats, a fixed-length message format, a separator message format, and an extensible markup language message format, respectively. The message format used by the service party 1 is the separator message format. The second service element identity of the service party 1 is the second service element identity 1. The target message format matching the second service element identification 1 (i.e. service party 1) is now determined to be the separator message format from among the fixed-length message format, the separator message format and the extensible markup language message format.
Optionally, on the basis of the above technical solution, the initial message template may further include a storage manner.
After generating the original message template corresponding to the second service element identifier according to the service requirement information and the initial message Wen Moban, the method may further include: and carrying out association storage on the second service element identification and the original message template corresponding to the second service element identification according to a storage mode.
In an embodiment of the present disclosure, in order to facilitate subsequent invocation of the original message template, the original message template may further include a storage manner of a message, and after generating the original message template corresponding to the second service element identifier (i.e. the service party), the application server may store the second service element identifier and the original message template corresponding to the second service element identifier in association according to the set storage manner. The storage mode may refer to a persistent storage mode. Persistent saving may include saving to a database or saving to disk.
Illustratively, the save mode is save to a database. After the application server generates the original message template corresponding to the second service element identifier according to the service requirement information and the initial message Wen Moban, the second service element identifier and the original message Wen Moban corresponding to the second service element identifier may be stored in association with the database, so that the subsequent application server may call the original message template from the database.
It should be noted that, after generating the original message template corresponding to the second service element identifier according to the service requirement information and the target message format, the application server may store the second service element identifier and the original message template corresponding to the second service element identifier in association according to a storage manner.
Optionally, on the basis of the above technical solution, after generating the target message according to the target service data and the target message template, the method may further include: and sending the target message to the service party in a transparent transmission mode.
In the embodiment of the present disclosure, transparent transmission refers to transparent transmission, that is, a transmission network is only responsible for transmitting a service to be transmitted to a destination node, while guaranteeing the quality of transmission, regardless of the transmission service, without processing the transmitted service. For the embodiment of the disclosure, in the process that the application server sends the target message to the service party, the form and the content of the target message are not changed.
Because the application server is the target message generated based on the hot loading configurable template, namely the target message template used for generating the target message is matched with the message format used by the service party, the target message generated by the application server is the message required by the service party.
If the service side system-the headquarter system-the message front-end server-the application server-the message rear-end server-the service side system is taken as an example, the application server can directly transmit the target message to the service side through the message rear-end server as the target message generated by the application server is the message required by the service side, and unpacking and packing processing is not required by the message rear-end server on the target message to obtain the message required by the service side, so that the data processing amount is reduced, the response time is further shortened, and the response speed is correspondingly improved.
It should be noted that, the message post-server in the embodiment of the present disclosure is used for transmitting a message, and the unpacking and the packing processing are not required for the message, that is, the application server transparently transmits the target message to the service party through the message post-server.
Optionally, on the basis of the above technical solution, the target service data is service data passing the verification.
In an embodiment of the present disclosure, the target traffic data may be traffic data passing the verification. Wherein the target business data may include a first business element identification. The application server may verify the first service element identification. If the verification is passed, the application server can determine a target message template matched with the first service element identification from a plurality of original message templates, and generate a target message according to the target service data and the target message template.
It should be noted that the first service element identifier may include a customer code identifier and a transaction code identifier.
Fig. 8 schematically illustrates a flow chart of another method of message generation according to an embodiment of the disclosure.
As shown in fig. 8, the method includes operations S801 to S810.
In operation S801, service requirement information of a service party is acquired, where the service requirement information includes a second service element identifier.
In operation S802, an initial message template is obtained, where the initial message template includes a storage manner and a plurality of message formats.
In operation S803, a target message format matching the second service element identification is determined from the plurality of message formats.
In operation S804, an original message template corresponding to the second service element identifier is generated according to the service requirement information and the target message format.
In operation S805, the second service element identifier and the original message template corresponding to the second service element identifier are stored in association according to a storage manner.
In operation S806, target service data of the service party is obtained, where the target service data includes a first service element identifier.
In an embodiment of the present disclosure, the target traffic data is traffic data passing the verification.
In operation S807, a second service element identification consistent with the first service element identification is determined.
In operation S808, the original message template corresponding to the second service element identifier is used as the target message template matched with the first service element identifier.
In operation S809, a target message is generated according to the target service data and the target message template.
In operation S810, the target message is sent to the service party through a transparent transmission manner.
In the embodiments of the present disclosure, in order to better understand the technical solutions provided by the embodiments of the present disclosure, the following description will be made with reference to fig. 9.
Fig. 9 schematically illustrates a block diagram of a message generation system according to an embodiment of the disclosure. The data transmission process in fig. 9 is a headquarter system-message front end server-application server-message rear end server-service party system. The service side system may refer to the first server 205 in fig. 2, the headquarter system may refer to the second server 206 in fig. 2, the message front-end server may refer to the third server 207 in fig. 2, the application server may refer to the fourth server 208 in fig. 2, and the message back-end server may refer to the fifth server 209 in fig. 2. The generation process of the original message template can be understood with reference to fig. 5 to fig. 7, and will not be described herein. The generation process of the target message may be understood in conjunction with fig. 4, and will not be described herein.
According to the technical scheme of the embodiment of the disclosure, the original message template corresponding to the service party is generated according to the service demand information and the initial message Wen Moban, namely, the mode based on the hot loading configurable template is adopted, so that the original message template can be flexibly changed according to the service demand information of the service party, a re-development program is not needed, and the change can be effected without restarting an application server, thereby reducing the development amount, and simultaneously, effectively avoiding the problem of low stability caused by restarting the application server and a message post-server, and further improving the system stability. On the basis, the original message template can be flexibly changed according to the service demand information of the service party, an application program does not need to be redeveloped, and the change can be effected without restarting the application server, so that the response time is shortened, the response speed is correspondingly improved, and further, the requirement of meeting the quick online can be met, and the system viscosity is improved.
Fig. 10 schematically illustrates a block diagram of a message generating apparatus according to an embodiment of the disclosure.
As shown in fig. 10, the message generating apparatus 1000 includes an acquisition module 1010, a determination module 1020, and a generation module 1030.
The acquisition module 1010, the determination module 1020, and the generation module 1030 are communicatively coupled.
The obtaining module 1010 is configured to obtain target service data of a service party, where the target service data includes a first service element identifier.
A determining module 1020 is configured to determine a target message template that matches the first service element identifier from the plurality of original message templates.
The generating module 1030 is configured to generate a target packet according to the target service data and the target packet template.
According to the technical scheme of the embodiment of the disclosure, target business data of a business party are obtained, the target business data comprise a first business element identifier, a target message template matched with the first business element identifier is determined from a plurality of original message templates, and a target message is generated according to the target business data and the target message template. The target message template is determined from the plurality of original message templates according to the first service element identification, and the original message template is a template which can be flexibly changed according to the service party requirement, so that the requirement of quick online can be met, the technical problem that the requirement of quick online is difficult to meet is at least partially overcome, and the response speed is further improved.
Optionally, on the basis of the above technical solution, the message generating device 1000 may further include a requirement obtaining module, a template obtaining module, and a template generating module.
The requirement acquisition module is used for acquiring service requirement information of the service party, wherein the service requirement information comprises a second service element identifier.
The template acquisition module is used for acquiring the initial message template.
And the template generation module is used for generating an original message template corresponding to the second service element identifier according to the service demand information and the initial message Wen Moban.
Optionally, on the basis of the above technical solution, the initial message template may include a plurality of message formats.
Optionally, on the basis of the technical scheme, the template generating module may include a matching unit and a generating unit.
And the matching unit is used for determining a target message format matched with the second business element identification from the message formats.
And the generating unit is used for generating an original message template corresponding to the second service element identifier according to the service demand information and the target message format.
Optionally, on the basis of the above technical solution, the initial message template may further include a storage manner.
The message generating apparatus 1000 may further include a storage module.
And the storage module is used for carrying out association storage on the second service element identification and the original message template corresponding to the second service element identification according to a storage mode.
Optionally, on the basis of the above technical solution, the message generating apparatus 1000 may further include a sending module.
And the sending module is used for sending the target message to the service party in a transparent transmission mode.
Optionally, on the basis of the above technical solution, the target service data is service data passing the verification.
Any number of the modules, units, or at least some of the functionality of any number of the modules, units, or units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a field programmable gate array (Field Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Arrays, PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates circuitry, or in any one of or a suitable combination of any of the three. Alternatively, one or more of the modules, units according to embodiments of the disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any number of the acquisition module 1010, the determination module 1020, and the generation module 1030 may be combined in one module to be implemented, or any one of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. At least one of the acquisition module 1010, the determination module 1020, and the generation module 1030 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-a-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable manner of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware, in accordance with embodiments of the present disclosure. Alternatively, at least one of the acquisition module 1010, the determination module 1020 and the generation module 1030 may be at least partially implemented as a computer program module which, when executed, may perform the corresponding functions.
It should be noted that, in the embodiment of the present disclosure, the message generating device portion corresponds to the message generating method portion in the embodiment of the present disclosure, and the description of the message generating device portion specifically refers to the message generating method portion, which is not described herein again.
Fig. 11 schematically illustrates a block diagram of an electronic device adapted to implement the above-described method according to an embodiment of the present disclosure. The electronic device shown in fig. 11 is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 11, an electronic device 1100 according to an embodiment of the present disclosure includes a processor 1101 that can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 1102 or a program loaded from a storage section 1108 into a random access Memory (Random Access Memory, RAM) 1103. The processor 1101 may comprise, 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)), or the like. The processor 1101 may also include on-board memory for caching purposes. The processor 1101 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flow according to embodiments of the present disclosure.
In the RAM 1103, various programs and data necessary for the operation of the system 1100 are stored. The processor 1101, ROM 1102, and RAM 1103 are connected to each other by a bus 1104. The processor 1101 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 1102 and/or the RAM 1103. Note that the program may be stored in one or more memories other than the ROM 1102 and the RAM 1103. The processor 1101 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the system 1100 may also include an input/output (I/O) interface 1105, the input/output (I/O) interface 1105 also being connected to the bus 1104. The system 1100 may also include one or more of the following components connected to the I/O interface 1105: an input section 1106 including a keyboard, a mouse, and the like; an output portion 1107 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like, and a speaker, and the like; a storage section 1108 including a hard disk or the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, and the like. The communication section 1109 performs communication processing via a network such as the internet. The drive 1110 is also connected to the I/O interface 1105 as needed. Removable media 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in drive 1110, so that a computer program read therefrom is installed as needed in storage section 1108.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1109, and/or installed from the removable media 1111. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1101. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: portable computer diskette, hard disk, random Access Memory (RAM), read-Only Memory (ROM), erasable programmable read-Only Memory (EPROM (Erasable Programmable Read Only Memory) or flash Memory), portable compact disc read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, 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.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 1102 and/or RAM 1103 described above and/or one or more memories other than ROM 1102 and RAM 1103.
The flowcharts and block diagrams in the figures 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 the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (9)

1. A message generation method comprises the following steps:
acquiring target service data of a service party, wherein the target service data comprises a first service element identifier, and the first service element identifier comprises a client code identifier and a transaction code identifier;
determining a target message template matched with the first service element identifier from a plurality of original message templates; and
generating a target message according to the target service data and the target message template;
the method further comprises the steps of:
acquiring service demand information of a service party, wherein the service demand information comprises a second service element identifier;
acquiring an initial report Wen Moban; and
Generating an original report Wen Moban corresponding to the second service element identifier according to the service requirement information and the initial report Wen Moban;
the method further comprises the steps of:
and under the condition that the service demand information is changed, generating an original message template corresponding to the second service element identifier according to the changed service demand information.
2. The method of claim 1, wherein the initial message template comprises a plurality of message formats.
3. The method of claim 2, wherein the generating an original message template corresponding to the second service element identifier according to the service requirement information and the initial message Wen Moban includes:
determining a target message format matched with the second service element identifier from the message formats; and
and generating an original message template corresponding to the second service element identifier according to the service demand information and the target message format.
4. The method of claim 2, wherein the initial message template further comprises a save mode;
after generating the original message template corresponding to the second service element identifier according to the service requirement information and the initial report Wen Moban, the method further includes:
And carrying out association storage on the second service element identifier and the original message template corresponding to the second service element identifier according to the storage mode.
5. The method of claim 1, wherein after the generating a target message from the target traffic data and the target message template, further comprising:
and sending the target message to the service party in a transparent transmission mode.
6. The method of claim 1, wherein the target traffic data is verified target traffic data.
7. A message generation apparatus comprising:
the system comprises an acquisition module, a transaction module and a transaction module, wherein the acquisition module is used for acquiring target service data of a service party, the target service data comprises a first service element identifier, and the first service element identifier comprises a client code identifier and a transaction code identifier;
the determining module is used for determining a target message template matched with the first service element identifier from a plurality of original message templates; and
the generating module is used for generating a target message according to the target service data and the target message template;
the apparatus further comprises:
the system comprises a demand acquisition module, a service element identification module and a service element identification module, wherein the demand acquisition module is used for acquiring service demand information of a service party, and the service demand information comprises a second service element identification;
The template acquisition module is used for acquiring an initial report Wen Moban; and
the template generating module is configured to generate an original report Wen Moban corresponding to the second service element identifier according to the service requirement information and the initial report Wen Moban;
the device is also for:
and under the condition that the service demand information is changed, generating an original message template corresponding to the second service element identifier according to the changed service demand information.
8. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 6.
CN202010809568.3A 2020-08-12 2020-08-12 Message generation method and device, electronic equipment and storage medium Active CN111950249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010809568.3A CN111950249B (en) 2020-08-12 2020-08-12 Message generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010809568.3A CN111950249B (en) 2020-08-12 2020-08-12 Message generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111950249A CN111950249A (en) 2020-11-17
CN111950249B true CN111950249B (en) 2024-04-05

Family

ID=73333300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010809568.3A Active CN111950249B (en) 2020-08-12 2020-08-12 Message generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111950249B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500640A (en) * 2022-01-24 2022-05-13 中国工商银行股份有限公司 Message generation method, message transmission device, electronic equipment and medium
CN114928658A (en) * 2022-06-08 2022-08-19 中国建设银行股份有限公司 Low code platform message data processing system, method and device
CN116089734A (en) * 2023-04-12 2023-05-09 神州数码融信云技术服务有限公司 Method and device for processing information of financial product, computer equipment and storage medium
CN116308689B (en) * 2023-05-26 2023-07-21 厦门触网科技有限公司 Bid insurance application processing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255786A (en) * 2010-05-20 2011-11-23 中国移动通信集团广西有限公司 Service message processing method and device
CN106875170A (en) * 2016-07-22 2017-06-20 阿里巴巴集团控股有限公司 A kind of method and device for business processing of intermediate business system
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN110096508A (en) * 2019-04-29 2019-08-06 北京三快在线科技有限公司 Business collocation method and device, business datum acquisition methods, electronic equipment
CN110705235A (en) * 2019-09-10 2020-01-17 中国平安财产保险股份有限公司 Information input method and device for business handling, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255786A (en) * 2010-05-20 2011-11-23 中国移动通信集团广西有限公司 Service message processing method and device
CN106875170A (en) * 2016-07-22 2017-06-20 阿里巴巴集团控股有限公司 A kind of method and device for business processing of intermediate business system
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN110096508A (en) * 2019-04-29 2019-08-06 北京三快在线科技有限公司 Business collocation method and device, business datum acquisition methods, electronic equipment
CN110705235A (en) * 2019-09-10 2020-01-17 中国平安财产保险股份有限公司 Information input method and device for business handling, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111950249A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN111950249B (en) Message generation method and device, electronic equipment and storage medium
CN110297635B (en) Page display method, device, equipment and storage medium
CN111737270A (en) Data processing method and system, computer system and computer readable medium
CN114172966A (en) Service calling method and device and service processing method and device under unitized architecture
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
WO2015158262A1 (en) Method for sending and generating card/coupon, public account server, and mobile terminal
CN108076110B (en) Electronic data exchange system and apparatus comprising an electronic data exchange system
CN115277855A (en) Request processing method and device, electronic equipment and storage medium
CN116503005A (en) Method, device, system and storage medium for dynamically modifying flow
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN113132400A (en) Business processing method, device, computer system and storage medium
CN114546682A (en) Data processing method, device, equipment, medium and program product
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN115250276A (en) Distributed system and data processing method and device
CN112347382A (en) Product page sharing method and device and electronic equipment
CN114979004B (en) Information processing method, device, equipment and medium
CN113472785B (en) Data processing method and device, electronic equipment and readable storage medium
CN115333871B (en) Firewall operation and maintenance method and device, electronic equipment and readable storage medium
CN116841601A (en) Data processing method, system, computer system and storage medium
CN112965763B (en) Service processing system, method, device and storage medium
CN116881736A (en) Information matching method, device, equipment and storage medium
CN114240437A (en) Service processing method, service processing device, electronic equipment and readable storage medium
CN115687749A (en) Message pushing method, device, equipment, medium and program product
CN114116518A (en) Data processing method, device, electronic equipment and medium
CN116012158A (en) Service processing method, device, equipment and storage medium

Legal Events

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