CN112055016B - 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
CN112055016B
CN112055016B CN202010910158.8A CN202010910158A CN112055016B CN 112055016 B CN112055016 B CN 112055016B CN 202010910158 A CN202010910158 A CN 202010910158A CN 112055016 B CN112055016 B CN 112055016B
Authority
CN
China
Prior art keywords
message
template
access rule
domain
service
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
CN202010910158.8A
Other languages
Chinese (zh)
Other versions
CN112055016A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010910158.8A priority Critical patent/CN112055016B/en
Publication of CN112055016A publication Critical patent/CN112055016A/en
Application granted granted Critical
Publication of CN112055016B publication Critical patent/CN112055016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/03Protocol definition or specification 
    • 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 invention discloses a message generation method, a message generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a message generation request according to the service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier; acquiring a message template according to the message template identification, and acquiring a message access rule template according to the message access rule template identification; determining the numerical value of each message domain in the message template according to the message access rule template; and combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate the service message. The numerical value of each message domain in the message template is obtained through the message access rule template, and the message attribute parameters and the numerical values of the message domains in the message template are combined to automatically generate the service message, so that the numerical values do not need to be manually filled in the message generation process, the risk of misoperation is reduced, a large amount of labor is saved, and the message generation efficiency is improved.

Description

Message generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a message generation method and device, electronic equipment and a storage medium.
Background
In the field of financial science and technology, with the continuous deepening of financial reform, intensive operation transformation is started by domestic and foreign financial institutions, and different types of messages are usually involved according to different transaction scenes, and the types of the messages may include: the Financial telecommunication Society of world-wide banking (SWIFT) message, the people money Cross-border Payment System (CIPS) message, the China National Advanced Payment System (CNAPS) message and the China foreign exchange center Post-transaction Interface Service (CFETS Post-trade Interface Service, CPIS) message.
The existing message sending is in a manual message sending mode, that is, each message domain in the message specification is manually filled with a specific numerical value according to an actual scene to generate a message, but the mode of manually filling the numerical value and generating the message not only has a risk of misoperation, but also consumes a large amount of manpower, thereby reducing the message generating efficiency.
Disclosure of Invention
The embodiment of the invention provides a message generation method, a message generation device, message generation equipment and a storage medium, which are used for realizing automatic generation of a message according to a configured template.
In a first aspect, an embodiment of the present invention provides a method for generating a packet, where the method includes:
acquiring a message generation request according to the service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier;
acquiring a message template according to the message template identifier, and acquiring a message access rule template according to the message access rule template identifier, wherein the message template comprises at least one message domain, each message domain comprises a message attribute parameter, and the message access rule template comprises an access rule of each message domain in the message template;
determining the numerical value of each message domain in the message template according to the message access rule template;
and combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate the service message.
In a second aspect, an embodiment of the present invention provides a packet generating apparatus, including:
the message generation request acquisition module is used for acquiring a message generation request according to the service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier;
the template acquisition module is used for acquiring a message template according to the message template identifier and acquiring a message access rule template according to the message access rule template identifier, wherein the message template comprises at least one message domain, each message domain comprises message attribute parameters, and the message access rule template comprises access rules of each message domain in the message template;
the message domain value determining module is used for determining the value of each message domain in the message template according to the message access rule template;
and the service message generation module is used for combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate the service message.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
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 are caused to implement the methods of any of the embodiments of the present invention.
In a fourth aspect, the embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of any of the embodiments of the present invention.
In the embodiment of the invention, the numerical value of each message domain in the message template is obtained through the message access rule template according to the message sending requirement of the actual service type, and the message attribute parameters of each message domain in the message template and the numerical values of the message domains are combined to automatically generate the service message, so that the numerical values do not need to be manually filled in the message generating process, the risk of misoperation is reduced, a large amount of manpower is saved, and the message generating efficiency is improved.
Drawings
Fig. 1 is a flowchart of a message generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a message generation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a message generating apparatus according to a third embodiment of the present invention;
fig. 4 is a block diagram of a device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a message generation method according to an embodiment of the present invention, which is applicable to a case where a message is automatically generated according to a service type and according to a template. The method may be executed by a message generating apparatus in the embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner, and the method in the embodiment of the present invention specifically includes the following steps:
step 101, obtaining a message generation request according to a service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier.
Optionally, before acquiring the text generation request according to the service type, the method may further include: acquiring a user configuration instruction; and carrying out template configuration according to the configuration instruction to obtain a message template and a message access rule template.
Specifically, in this embodiment, before the message generation request is obtained according to the service type, a user configuration instruction is obtained, and a message template is configured for different message receiving/sending systems and different message types according to the configuration instruction, that is, each message type corresponds to a message template, and the message template identifiers are used to distinguish the different message templates. And configuring message access rule templates according to the service type according to the configuration instruction, wherein each message access rule template needs to map one message template, each message template corresponds to a plurality of message access rule templates, different message access rule templates are distinguished by adopting message access rule template identifiers, rules in each message access rule template are different, and the specific number of the corresponding message access rule templates is not limited in the embodiment. And storing the corresponding relation between the message template identification corresponding to each service type and the message access rule template identification in a task list form locally, so that the template configuration operation is only needed to be completed once, the required template can be selected according to the requirement subsequently to automatically generate the service message, and the message numerical value is not needed to be manually filled.
Optionally, the service types include: transaction validation, deal validation, transaction modification, transaction underwriting, or deposit transaction.
Optionally, obtaining the message generation request according to the service type may include: determining a message template identifier and a message access rule template identifier by calling a task list according to the service type, wherein the task list comprises the mapping relation between the service type and the message template identifier and the message access rule template identifier; and acquiring a message generation request according to the message template identification and the message access rule template identification.
For example, the task list stored locally includes a mapping relationship between the service type and the message template identifier and the message access rule template identifier, and the following table 1 shows a schematic diagram of the task list:
type of service Message template identification Message access rule template identification
Transaction validation ID1 IF1
Confirmation of delivery ID2 IF2 IF3
Transaction modification ID3 IF4
。。。 。。。 。。。
In this embodiment, the task list is only illustrated by the example that the business types include three due to space limitation. When the currently executed service type is determined to be the transaction certificate, the message template identifier is determined to be ID1 and the message access rule template identifier is IF1 by calling the task list stored in the local according to the service type. And the message generation request is acquired as follows: and generating the message according to the message template identifier ID1 and the message access rule template identifier IF1.
And 102, acquiring a message template according to the message template identifier, and acquiring a message access rule template according to the message access rule template identifier.
The message template comprises at least one message domain, each message domain comprises a message attribute parameter, and the message access rule template comprises an access rule of each message domain in the message template.
Optionally, the message attribute parameters include: section, message label, technical field name, check format and message type.
Optionally, the message types include a global community banking and telecommunication association SWIFT message, a national currency cross-border payment system CIPS message, a traditional Chinese generation payment system CNAPS message, and a foreign exchange center post-transaction interface service CPIS message.
Optionally, each message field of the message template further includes a check parameter, and the check parameter includes a mutual exclusion field or an associated required field.
Specifically, in this embodiment, since various message templates and message access rule templates have been previously configured based on a user instruction, and each configured template is distinguished by a different identifier, when the template identifier is determined to be ID1, the message template corresponding to the identifier ID1 can be acquired, and when the message access rule template identifier is determined to be IF1, the message access rule template corresponding to the identifier IF1 can be acquired. As shown in table 1 below, the message template for ID1 is shown, and table 2 shows the message access rule template for IF 1:
TABLE 1
Figure BDA0002662965080000061
In table 1, the example is given by taking the message template corresponding to the SWIFT message as an example, and the specific formats of the message templates corresponding to the CIPS message and the CNAPS message are substantially the same, and are not described in detail in this embodiment.
TABLE 2
Figure BDA0002662965080000071
And 103, determining the numerical value of each message domain in the message template according to the message access rule template.
Optionally, determining the value of each message domain in the message template according to the message access rule template may include: inquiring from a database according to a message access rule to obtain an inquiry result, wherein the database stores the numerical value of each message domain in advance; and taking the query result as the numerical value of each message domain in the message template.
Specifically, as shown in table 2, the table a and the table B are data storage tables pre-stored in the database, respectively, according to the message access rule template, the access rule adopted for the message domain a is "field B of table a", that is, the database is queried for the value stored in field B of table a, and the obtained query result is USD1000000; the number fetching rule adopted for the message domain B is "B table c field", that is, the value stored in the c field in the B table is queried in the database, and the obtained query result is CNY6120000.
It should be noted that the access rule in this embodiment is only described by taking the access path of the message domain value as an example, and of course, the access rule may also be to select a numerical value meeting a specified condition from a specified data storage table.
And 104, combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate a service message.
Optionally, combining the message attribute parameter of each message domain in the message template with the value of the message domain to generate a service message, which may include: combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to obtain an initial message; checking the initial message through the checking parameters; and when the verification of the initial message is determined to pass according to the verification result, taking the initial message as a service message.
Specifically, for the message template corresponding to the swift tm 300 message shown in table 1, the message attribute parameters in the message template, that is, the segment, the message label, the technical field name, the check format corresponding to each message field and the numerical values of the message fields obtained in table 2 are combined to obtain an initial message, for example, the initial message obtained by combining is: x1 32B tag32bF1dVal ""3! a15d "33B usd1000000; x2 33B tag33bF1dVal ""3! a15d "32B CNY6120000. Because the values of the message domains of the message labels 33B and 32B are required to exist at the same time in the associated necessary transmission fields, the initial message is checked through the checking parameters, the message domain A corresponding to the message label 33B and the message domain B corresponding to the message label 32B are determined to exist at the same time, and the checking is determined to be passed, so that the obtained initial message is used as the finally generated service message. In this embodiment, the service message includes two message domains, and only one message access rule template corresponds to a message template, but the specific number of the message domains included in the service message and the specific number of the message access rule templates corresponding to the message template are not limited in practical application.
Optionally, after the combining the message attribute parameter of each message domain in the message template with the numerical value of the message domain to generate the service message, the method may further include: determining an outbound system according to the message type; and sending the generated service message to an outbound system.
Optionally, after sending the service packet to the outbound system, the method may further include: detecting a service message sending result; and when the service message is determined not to be successfully sent, carrying out alarm prompt.
After the service message is generated, the outbound system needs to be determined according to the message type, for example, if the type of the generated service message is determined to be an SWIFT message, the outbound system is determined to be a SWIFT, and the generated service message is: x1 32B tag32bF1dVal ""3! a15d "33B usd1000000; x2 33B tag33bF1dVal ""3! a15d "32B CNY6120000 sends to the outbound system SWIFT.
It should be noted that, after the generated service packet is sent to the outbound system SWIFT, the sending result is also detected, the specific detection mode is to determine whether a certain receiving instruction fed back by the outbound system SWIFT is received, if it is determined that the certain receiving instruction is not received within the preset time, it is determined that the service packet is not sent successfully, and an alarm prompt is performed, and specifically, the alarm may be performed in a form of voice or picture.
In the embodiment of the invention, the numerical value of each message domain in the message template is obtained through the message access rule template according to the message sending requirement of the actual service type, and the message attribute parameters of each message domain in the message template and the numerical values of the message domains are combined to automatically generate the service message, so that the numerical values do not need to be manually filled in the message generating process, the risk of misoperation is reduced, a large amount of manpower is saved, and the message generating efficiency is improved.
Example two
Fig. 2 is a flowchart of a message generating method according to the second embodiment of the present invention, where this embodiment is based on the foregoing embodiment, and after combining a message attribute parameter of each message domain in a message template with a numerical value of the message domain to generate a service message, the method further includes: and displaying the service message on a specified interface.
As shown in fig. 2, the method of the embodiment of the present disclosure specifically includes:
step 201, a message generation request is obtained according to the service type, wherein the message generation request includes a message template identifier and a message access rule template identifier.
Optionally, before acquiring the text generation request according to the service type, the method may further include: acquiring a user configuration instruction; and carrying out template configuration according to the configuration instruction to obtain a message template and a message access rule template.
Optionally, the service types include: transaction validation, deal validation, transaction modification, transaction underwriting, or deposit transaction.
Optionally, obtaining the message generation request according to the service type may include: determining a message template identifier and a message access rule template identifier by calling a task list according to the service type, wherein the task list comprises the mapping relation between the service type and the message template identifier and the message access rule template identifier; and acquiring a message generation request according to the message template identification and the message access rule template identification.
Step 202, obtaining a message template according to the message template identifier, and obtaining a message access rule template according to the message access rule template identifier.
The message template comprises at least one message domain, each message domain comprises a message attribute parameter, and the message access rule template comprises an access rule of each message domain in the message template.
Optionally, the message attribute parameters include: section, message label, technical field name, check format and message type.
Optionally, the message types include a global community banking and telecommunication association SWIFT message, a national currency cross-border payment system CIPS message, a traditional Chinese generation payment system CNAPS message, and a foreign exchange center post-transaction interface service CPIS message.
Optionally, each message field of the message template further includes a check parameter, and the check parameter includes a mutual exclusion field or an associated required field.
And 203, determining the numerical value of each message domain in the message template according to the message access rule template.
Optionally, determining the value of each message domain in the message template according to the message access rule template may include: inquiring from a database according to a message access rule to obtain an inquiry result, wherein the database pre-stores the numerical value of each message domain; and taking the query result as the numerical value of each message domain in the message template.
Step 204, combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate a service message.
Optionally, combining the message attribute parameter of each message domain in the message template with the value of the message domain to generate a service message, which may include: combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to obtain an initial message; checking the initial message through the checking parameters; and when the verification of the initial message is determined to pass according to the verification result, taking the initial message as a service message.
Optionally, after the message attribute parameter of each message domain in the message template and the numerical value of the message domain are combined to generate the service message, the method may further include: determining an outbound system according to the message type; and sending the generated service message to an outbound system.
Optionally, after sending the service packet to the outbound system, the method may further include: detecting a service message sending result; and when the service message is determined not to be successfully sent, carrying out alarm prompt.
Step 205: and displaying the service message on a specified interface.
Specifically, in this embodiment, interface attribute information such as a page display title and an interface input type may also be added to the message template, so that the generated service message is displayed on the specified interface according to the interface attribute information, for example, if the interface input type is text and the page display title is internet, the details of the service message are dynamically displayed on the specified interface according to the interface attribute information. Therefore, the operator can more intuitively acquire the generation condition of the service message.
In the embodiment of the invention, the numerical value of each message domain in the message template is obtained through the message access rule template according to the message sending requirement of the actual service type, and the message attribute parameters of each message domain in the message template and the numerical values of the message domains are combined to automatically generate the service message, so that the numerical values do not need to be manually filled in the message generating process, the risk of misoperation is reduced, a large amount of manpower is saved, and the message generating efficiency is improved. And the service message is dynamically displayed on the designated interface according to the interface attribute information contained in the message template, so that an operator can more intuitively acquire the generation condition of the service message.
EXAMPLE III
Fig. 3 is a packet generating apparatus provided in the fourth embodiment of the present invention, which specifically includes: message generation request acquisition module 301, template acquisition module 302, message domain value determination module 303 and service message generation module 304
The message generation request acquiring module 301 is configured to acquire a message generation request according to a service type, where the message generation request includes a message template identifier and a message access rule template identifier;
a template obtaining module 302, configured to obtain a message template according to a message template identifier, and obtain a message access rule template according to the message access rule template identifier, where the message template includes at least one message domain, each message domain includes a message attribute parameter, and the message access rule template includes an access rule of each message domain in the message template;
a message domain value determining module 303, configured to determine a value of each message domain in the message template according to the message access rule template;
a service message generating module 304, configured to combine the message attribute parameter of each message domain in the message template and the numerical value of the message domain to generate a service message.
Optionally, the message attribute parameters include: section, message label, technical field name, check format and message type.
Optionally, the message types include a global community banking and telecommunication association SWIFT message, a national currency cross-border payment system CIPS message, a traditional Chinese generation payment system CNAPS message, and a foreign exchange center post-transaction interface service CPIS message.
Optionally, the apparatus further includes an outbound system determining sub-module, configured to determine an outbound system according to the type of the message; and the service message sending submodule is used for sending the generated service message to the outbound system.
Optionally, the apparatus further includes an alarm module, configured to detect a service packet sending result; and when the service message is determined not to be successfully sent, carrying out alarm prompt.
Optionally, each message field of the message template further includes a check parameter, and the check parameter includes a mutual exclusion field or an associated required field.
Optionally, the service packet generation module is configured to combine the packet attribute parameter of each packet domain in the packet template with the value of the packet domain to obtain an initial packet;
checking the initial message through the checking parameters;
and when the verification of the initial message is determined to pass according to the verification result, taking the initial message as a service message.
Optionally, the apparatus further includes a configuration module, configured to obtain a user configuration instruction; and carrying out template configuration according to the configuration instruction to obtain a message template and a message access rule template.
Optionally, the message domain value determining module is specifically configured to query from a database according to a message access rule to obtain a query result, where a value of each message domain is pre-stored in the database;
and taking the query result as the numerical value of each message domain in the message template.
Optionally, the service types include: transaction validation, deal validation, transaction modification, transaction underwriting, or deposit transaction.
Optionally, the message generation request obtaining module is specifically configured to: determining a message template identifier and a message access rule template identifier by calling a task list according to the service type, wherein the task list comprises the mapping relation between the service type and the message template identifier and the message access rule template identifier;
and acquiring a message generation request according to the message template identification and the message access rule template identification.
Optionally, the apparatus further includes a display module, configured to display the service packet on the designated interface.
The device can execute the message generation method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 412 suitable for use in implementing embodiments of the present invention. The electronic device 412 shown in fig. 4 is only an example and should not impose any limitation on the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, the electronic device 412 is in the form of a general purpose computing device. The components of the electronic device 412 may include, but are not limited to: one or more processors 412, a memory 428, and a bus 418 that couples the various system components (including the memory 428 and the processor 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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 412 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 428 is used to store instructions. Memory 428 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 performs various functional applications and data processing by executing instructions stored in the memory 428, such as performing the following:
acquiring a message generation request according to the service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier; acquiring a message template according to a message template identifier, and acquiring a message access rule template according to the message access rule template identifier, wherein the message template comprises at least one message domain, each message domain comprises a message attribute parameter, and the message access rule template comprises an access rule of each message domain in the message template; determining the numerical value of each message domain in the message template according to the message access rule template; and combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate the service message.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a message generation method, and the method includes:
acquiring a message generation request according to the service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier;
acquiring a message template according to the message template identifier, and acquiring a message access rule template according to the message access rule template identifier, wherein the message template comprises at least one message domain, each message domain comprises a message attribute parameter, and the message access rule template comprises an access rule of each message domain in the message template;
determining the numerical value of each message domain in the message template according to the message access rule template;
and combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate the service message.
Of course, the storage medium including the computer-executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the message generation method provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, where the computer software product may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, and includes several instructions to enable an electronic device (which may be a personal computer, a server, or a network device) to execute the message generation method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the loss prediction device for express cabinet users, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A message generation method is characterized by comprising the following steps:
acquiring a message generation request according to the service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier;
acquiring a message template according to the message template identifier, and acquiring a message access rule template according to the message access rule template identifier, wherein the message template comprises at least one message domain, each message domain comprises a message attribute parameter, and the message access rule template comprises an access rule of each message domain in the message template;
determining the numerical value of each message domain in the message template according to the message access rule template;
combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to generate a service message;
the acquiring a message generation request according to the service type includes: determining the message template identification and the message access rule template identification by calling a task list according to the service type, wherein the task list comprises a mapping relation between the service type and the message template identification and the message access rule template identification; and acquiring the message generation request according to the message template identification and the message access rule template identification.
2. The method according to claim 1, wherein the message attribute parameters include: section, message label, technical field name, check format and message type.
3. The method of claim 2, wherein the message types include a global banking institute of finance and telecommunications (SWIFT) message, a Renminbi (CRISP) cross-border payment system (CIPS) message, a China-contemporary payment system (CNAPS) message, and a foreign exchange center post-transaction interface service (CPIS) message.
4. The method according to claim 2, wherein the step of combining the message attribute parameters of each message field in the message template with the values of the message fields to generate a service message further comprises:
determining an outbound system according to the message type;
and sending the generated service message to the outbound system.
5. The method of claim 4, wherein after sending the service message to the outbound system, further comprising:
detecting a service message sending result;
and when the service message is determined not to be successfully sent, carrying out alarm prompt.
6. The method of claim 1, wherein each message field of the message template further comprises a check parameter, and the check parameter comprises an exclusive field or an associated mandatory field.
7. The method of claim 6, wherein the combining the message attribute parameters and the message domain values of each message domain in the message template to generate a service message comprises:
combining the message attribute parameters of each message domain in the message template with the numerical values of the message domains to obtain an initial message;
checking the initial message through the checking parameters;
and when the verification of the initial message is determined to pass according to the verification result, taking the initial message as the service message.
8. The method of claim 1, wherein before obtaining the text generation request according to the service type, the method further comprises:
acquiring a user configuration instruction;
and carrying out template configuration according to the configuration instruction to obtain the message template and the message access rule template.
9. The method of claim 1, wherein determining a value for each message field in the message template according to the message fetch rule template comprises:
inquiring from a database according to the message access rule to obtain an inquiry result, wherein the database pre-stores the numerical value of each message domain;
and taking the query result as the numerical value of each message domain in the message template.
10. The method of claim 1, wherein the traffic type comprises: transaction validation, deal validation, transaction modification, transaction underwriting, or deposit transaction.
11. The method according to any one of claims 1 to 10, wherein the combining the message attribute parameters of each message field in the message template and the numerical values of the message fields to generate a service message further comprises:
and displaying the service message on a designated interface.
12. A message generation apparatus, the apparatus comprising:
the message generation request acquisition module is used for acquiring a message generation request according to the service type, wherein the message generation request comprises a message template identifier and a message access rule template identifier;
the template acquisition module is used for acquiring a message template according to the message template identifier and acquiring a message access rule template according to the message access rule template identifier, wherein the message template comprises at least one message domain, each message domain comprises a message attribute parameter, and the message access rule template comprises an access rule of each message domain in the message template;
the message domain value determining module is used for determining the value of each message domain in the message template according to the message access rule template;
a service message generation module, configured to combine the message attribute parameter of each message domain in the message template with the value of the message domain to generate a service message;
the message generation request acquisition module is further configured to determine the message template identifier and the message access rule template identifier by calling a task list according to the service type, where the task list includes a mapping relationship between the service type and the message template identifier and the message access rule template identifier; and acquiring the message generation request according to the message template identification and the message access rule template identification.
13. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-11.
CN202010910158.8A 2020-09-02 2020-09-02 Message generation method and device, electronic equipment and storage medium Active CN112055016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010910158.8A CN112055016B (en) 2020-09-02 2020-09-02 Message generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010910158.8A CN112055016B (en) 2020-09-02 2020-09-02 Message generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112055016A CN112055016A (en) 2020-12-08
CN112055016B true CN112055016B (en) 2023-02-28

Family

ID=73608454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010910158.8A Active CN112055016B (en) 2020-09-02 2020-09-02 Message generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112055016B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737875B (en) * 2020-12-24 2022-03-18 中国银联股份有限公司 Method and device for generating test message
CN112818654B (en) * 2021-02-18 2024-02-02 北京奇艺世纪科技有限公司 Message storage method, message generation method, device, electronic equipment and computer readable medium
CN112948480B (en) * 2021-04-21 2023-11-14 平安好医投资管理有限公司 Data extraction method, device, electronic equipment and storage medium
CN114500640A (en) * 2022-01-24 2022-05-13 中国工商银行股份有限公司 Message generation method, message transmission device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944817A (en) * 2013-01-23 2014-07-23 中国银联股份有限公司 Message transferring method, message transferring device and terminal device in online system
CN106815148A (en) * 2016-12-30 2017-06-09 中国银联股份有限公司 A kind of transaction test method and device
CN108876379A (en) * 2018-07-12 2018-11-23 北京京东金融科技控股有限公司 A kind of method and apparatus for generating message
CN110930608A (en) * 2019-10-31 2020-03-27 福建新大陆支付技术有限公司 POS terminal ISO8583 message testing method and simulation background baffle system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8943221B2 (en) * 2010-12-16 2015-01-27 Openet Telecom Ltd. Methods, systems and devices for pipeline processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944817A (en) * 2013-01-23 2014-07-23 中国银联股份有限公司 Message transferring method, message transferring device and terminal device in online system
CN106815148A (en) * 2016-12-30 2017-06-09 中国银联股份有限公司 A kind of transaction test method and device
CN108876379A (en) * 2018-07-12 2018-11-23 北京京东金融科技控股有限公司 A kind of method and apparatus for generating message
CN110930608A (en) * 2019-10-31 2020-03-27 福建新大陆支付技术有限公司 POS terminal ISO8583 message testing method and simulation background baffle system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SWIFT在我国商业银行的应用及其前景;沈国华;《电脑与电信》;20070201(第02期);全文 *

Also Published As

Publication number Publication date
CN112055016A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN112055016B (en) Message generation method and device, electronic equipment and storage medium
CN104579909B (en) Method and equipment for classifying user information and acquiring user grouping information
CN108596587B (en) Cash-up auditing method, apparatus, electronic device, program product and storage medium
CN110941488A (en) Task processing method, device, equipment and storage medium
CN112465601A (en) Electronic order generation method and device and storage medium
CN111489100A (en) Order creating method, device, equipment and medium based on big data
CN113132522A (en) Test method, device, server and medium
CN111639903A (en) Review processing method for architecture change and related equipment
CN111429266A (en) Service processing method, device, equipment and storage medium
CN110782310A (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN110659413A (en) Account number association method and device between user and salesman, electronic equipment and medium
WO2023066258A1 (en) Data processing method and apparatus for private data, computer device and medium
CN109271564A (en) Declaration form querying method and equipment
CN114519568A (en) Order examination method and device, electronic equipment and storage medium
CN114265633A (en) Application parameter configuration and query method of self-service equipment, equipment and storage medium
CN111506784B (en) Asset creditor matching method, device, computer equipment and storage medium
US20130318088A1 (en) Management of Class of Service
CN114238391A (en) Data paging query method and device, electronic equipment and storage medium
CN114217790A (en) Interface scheduling method and device, electronic equipment and medium
CN113553379A (en) Data acquisition method and device
CN111666328A (en) Method and device for displaying visual chart in real time, computer equipment and storage medium
CN113763069A (en) Method, device and equipment for generating article information display page and storage medium
CN111915420A (en) Label creating method and device, electronic equipment and computer readable storage medium
JP2017526062A (en) System and method for detecting and alerting to risks in replenishment transactions
CN113724003B (en) Order transaction data-based moistening method, electronic equipment and readable 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220915

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant