CN116996589A - Transaction message generation method, device, equipment and storage medium - Google Patents

Transaction message generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN116996589A
CN116996589A CN202310959410.8A CN202310959410A CN116996589A CN 116996589 A CN116996589 A CN 116996589A CN 202310959410 A CN202310959410 A CN 202310959410A CN 116996589 A CN116996589 A CN 116996589A
Authority
CN
China
Prior art keywords
message
domain field
configuration information
configuration
definition
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.)
Pending
Application number
CN202310959410.8A
Other languages
Chinese (zh)
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 Merchants Bank Co Ltd
Original Assignee
China Merchants Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Bank Co Ltd filed Critical China Merchants Bank Co Ltd
Priority to CN202310959410.8A priority Critical patent/CN116996589A/en
Publication of CN116996589A publication Critical patent/CN116996589A/en
Pending legal-status Critical Current

Links

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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a transaction message generation method, a device, equipment and a storage medium, and belongs to the technical field of data processing. The invention calls the message definition configuration information of the user-defined configuration according to the message definition rule of the deposit-withdrawal party; determining a domain field configuration result set according to the message definition configuration information; determining the mapping configuration information of the message domain field according to the domain field configuration result set; and integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information. By the method, the message individuation requirements are met in a general configuration mode of the transaction messages, system program transformation by software developers is not needed, manpower consumption of the developers and testers is reduced, meanwhile, the message individuation requirements of the counter-party financial institutions can be responded rapidly through configuration, and service processing efficiency is improved.

Description

Transaction message generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a transaction message.
Background
Under international economic conditions, funds are paid and paid by transfer between international banks, which occur in import-export trade, non-trade and financial instrument fulfillment. While the final clearing of funds requires two or more banks to complete. The foreign exchange clearing is a relatively independent clearing system in banking business, is one of the most important basic business of the bank, bears the payment agency functions of foreign exchange business such as international settlement, fund buying and selling transaction, bonds and the like, namely any form of clearing mode, and finally finishes the receipt and payment of funds through the clearing system. Therefore, the quality of foreign exchange clearing directly influences the normal development of foreign exchange financing, international settlement and other businesses, and plays a vital role in the reputation, strength and even image of banks.
The SWIFT system can connect financial institutions in series in the global scope to exchange information, and after receiving the information, member rows transfer the information to corresponding funds transfer systems or clearing systems, and then the systems complete funds transfer. SWIFT is one of the most important financial notification networks worldwide, which is the mainstream system for financial institutions to complete foreign currency clearing transactions. When a SWIFT system is used for completing foreign currency clearing transaction, as the number of butted financial institutions increases, even if SWIFT message specifications enable all financial institutions to complete communication, various different requirements on message types and message domain field assignment are always met among the financial institutions, so that a unified message set does not exist for butting all the financial institutions, and how to solve the problem of SWIFT message requirement diversification is a urgent need to be solved.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a transaction message generation method, device, equipment and storage medium, and aims to solve the technical problem that messages aiming at different requirements cannot be automatically generated in the prior art.
In order to achieve the above object, the present invention provides a transaction message generating method, which includes the following steps:
calling the self-defined configured message definition configuration information according to the message definition rule of the deposit-withdrawal party;
determining a domain field configuration result set according to the message definition configuration information;
determining the mapping configuration information of the message domain field according to the domain field configuration result set;
and integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information.
Optionally, before the message defining configuration information of the custom configuration is invoked, the method further includes:
obtaining a message rule definition table, and configuring message definition according to the message rule definition table;
performing message domain field pre-configuration according to the message definition and the message domain field assignment rule table to obtain message domain field pre-configuration information;
and performing message domain field value mapping pre-configuration according to the message domain field pre-configuration information and the message domain field value mapping table to obtain message definition configuration information.
Optionally, the calling the message definition configuration information of the custom configuration according to the message definition rule of the deposit-withdrawal party includes:
acquiring currency information and account information of a deposit party;
inquiring a message definition rule of an income party, and screening the message definition rule according to the currency information and the account information to obtain a screened message definition rule;
and carrying out priority ranking on the screening message definition rules, and selecting message definition configuration information according to ranking results, wherein the message definition configuration information is the screening message definition rule with the highest priority in the ranking results.
Optionally, the determining the domain field configuration result set according to the message definition configuration information includes:
determining a message rule identification code and a message type according to the message definition configuration information;
inquiring the initial domain field configuration corresponding to the message rule identification code and the message type;
acquiring transaction data, and performing condition screening on the initial domain field configuration according to the transaction data to obtain screened domain field configuration;
and determining a domain field configuration result set according to the screening domain field configuration.
Optionally, the acquiring transaction data and performing condition screening on the initial domain field configuration according to the transaction data to obtain a screened domain field configuration includes:
acquiring a condition judgment identification code configured by each initial domain field;
and acquiring transaction data, and selecting screening domain field configuration from the initial domain field configuration according to the transaction data and the condition judgment identification code.
Optionally, the determining the mapping configuration information of the message domain field according to the domain field configuration result set includes:
determining value configuration information according to the domain field configuration result set;
determining a value mapping of a pre-configured message domain field according to the message definition configuration information;
and determining the message domain field mapping configuration information corresponding to the value configuration information according to the pre-configured message domain field value mapping.
Optionally, the integrating and generating the transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information includes:
determining a message type, a message domain field, a domain field format and a domain field value according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information;
generating a message header according to the message type;
generating a message text according to the message domain field, the domain field format and the domain field value;
and generating a transaction message according to the message header and the message body.
In addition, in order to achieve the above object, the present invention also provides a transaction message generating device, where the transaction message generating device includes:
the definition configuration module is used for calling the self-defined configured message definition configuration information according to the message definition rule of the deposit and withdrawal party;
the domain field configuration module is used for determining a domain field configuration result set according to the message definition configuration information;
the mapping configuration module is used for determining the mapping configuration information of the message domain field according to the domain field configuration result set;
and the message generation module is used for integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information.
In addition, in order to achieve the above object, the present invention also provides a transaction message generating device, including: the system comprises a memory, a processor and a transaction message generation program stored on the memory and running on the processor, wherein the transaction message generation program is configured to realize the transaction message generation method.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a transaction message generation program which, when executed by a processor, implements the transaction message generation method as described above.
The invention calls the self-defined configured message definition configuration information according to the message definition rule of the deposit and withdrawal party; determining a domain field configuration result set according to the message definition configuration information; determining the mapping configuration information of the message domain field according to the domain field configuration result set; and integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information. By the method, the automatic configuration and generation of each part of the message based on the message definition rule and the pre-configured message generation rule of the deposit-withdrawal party are realized, the message individuation requirement is completed by the general configuration mode of the transaction message, the system program is not required to be modified by a software developer, the manpower consumption of the developer and the tester is reduced, meanwhile, the message individuation requirement of the counter financial institution can be responded rapidly by configuration, and the service processing efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a transaction message generating device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a transaction message generation method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating the implementation flow of a first embodiment of the transaction message generation method according to the present invention;
FIG. 4 is a schematic diagram of a general configuration flow of a message in a first embodiment of a transaction message generating method according to the present invention;
FIG. 5 is a schematic diagram of a message generation flow in a first embodiment of a transaction message generation method according to the present invention;
FIG. 6 is a flowchart of a transaction message generation method according to a second embodiment of the present invention;
fig. 7 is a block diagram of a first embodiment of a transaction message generating device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a transaction message generating device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the transaction message generating device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 does not constitute a limitation of the transaction message generating device and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a transaction message generation program may be included in the memory 1005 as one type of storage medium.
In the transaction message generating device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the transaction message generating device of the present invention may be disposed in the transaction message generating device, where the transaction message generating device invokes a transaction message generating program stored in the memory 1005 through the processor 1001, and executes the transaction message generating method provided by the embodiment of the present invention.
An embodiment of the present invention provides a transaction message generating method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a transaction message generating method according to the present invention.
In this embodiment, the transaction message generating method includes the following steps:
step S10: and calling the self-defined configured message definition configuration information according to the message definition rule of the deposit and withdrawal party.
In this embodiment, the execution body of the present embodiment may be the transaction message generating device, where the transaction message generating device has functions of data processing, data communication, and program running, and the transaction message generating device may be a server or an intelligent terminal, for example, a computer. Of course, other devices with similar functions may be used, and the implementation conditions are not limited thereto. For convenience of explanation, this embodiment will be described by taking a transaction message generating device as an example.
It should be noted that, the problem that the financial institution completes foreign currency clearing for message diversification through the SWIFT system is conventionally solved by using the following two modes: (1) According to the requirements of the counter-party financial institutions, the operators manually enter SWIFT messages to finish foreign currency clearing. The method requires operators to be proficient in the SWIFT system message specification, has high requirements on quality of operators, involves too many manual operations, is time-consuming and labor-consuming, and is easy to make mistakes, and the development of business is affected. (2) The SWIFT message is generated through the system program to automatically complete foreign currency clearing, and a software developer is arranged to reform the system program whenever a new requirement is made on the message by a butted financial institution, so that a great amount of time and effort are required for the software developer, a tester is required to test, and finally, the personalized requirement of the financial institution of the opponent cannot be responded immediately because a certain time is required for the system development test, and the development of the business is affected. Compared with the existing means, the scheme of the embodiment has the following advantages: (1) Aiming at the problems that an operator is required to enter SWIFT messages manually to finish foreign currency clearing, too many manual operations are involved, time and labor are wasted, mistakes are easy to occur, and the development of business is influenced. The invention replaces the manual input message with the system program generated message to automatically complete foreign currency clearing, does not need operators to be profited in SWIFT message specification, reduces manual operation, reduces business error probability and improves business processing efficiency. (2) The traditional method uses a system program to generate SWIFT messages to automatically complete foreign currency clearing, and arranges software developers to reform the system program whenever a butted financial institution has new requirements on the messages, so that the software developers are required to spend a great deal of time and effort, test personnel are required to test, and finally, the system development test requires a certain time, and the personalized requirements of the financial institutions of the opponents cannot be responded immediately, so that the development of the business is influenced. In order to solve the problems, the invention completes the message individuation requirement by the way of SWIFT message general configuration, does not need software developer to modify the system program, reduces the manpower consumption of developers and testers, and simultaneously can rapidly respond to the individuation requirement of the message of the counter-party financial institution by configuration, thereby improving the service processing efficiency.
It should be understood that the message definition rule of the deposit and withdrawal party refers to the definition and rule of the transaction message of the deposit and withdrawal party, respectively, of the present transaction. The message definition configuration information is preset and configured personalized message definition configuration.
In a specific implementation, as shown in fig. 3, the scheme of the embodiment includes two parts, namely a general message configuration module, and service personnel completes personalized message configuration at the general configuration module according to the message requirement of a counter-party financial institution. Secondly, the message configuration of the analysis module I generates an actual SWIFT message to finish foreign currency clearing, firstly, based on the information of an income party selected by an operator through a front-end interface, a rear-end processing program firstly inquires the message definition configuration to acquire a message rule ID and a message type to be sent, then acquires a rule of specific message domain field configuration through the message rule ID and the message type, then acquires domain field value mapping configuration, and finally generates and integrates SWIFT messages through the configuration to finish foreign currency clearing. The invention solves the problems that SWIFT message diversification needs, needs a large amount of manual intervention, wastes time and labor and affects service development, and realizes the personalized configuration of the message by the SWIFT message universal configuration module, thereby reducing the labor and time cost and improving the service development efficiency.
Further, in order to accurately determine the message configuration information, before step S10, the method further includes: obtaining a message rule definition table, and configuring message definition according to the message rule definition table; performing message domain field pre-configuration according to the message definition and the message domain field assignment rule table to obtain message domain field pre-configuration information; and performing message domain field value mapping pre-configuration according to the message domain field pre-configuration information and the message domain field value mapping table to obtain message definition configuration information.
It should be noted that, referring specifically to fig. 4, the process of custom configuration of the message rule is described. Firstly, a message rule definition table is obtained, and message definition is configured according to the message rule definition table: the message definition configuration is realized through a message rule definition table, and the data table comprises the following main fields: rule ID, rule priority, account row BIC encoding, account row receipt and payment direction, currency, account number, whether 200 messages are used, whether 202 messages are used, whether 210 messages are used, etc. The operator configures rule priority, account row BIC code (SWIFT bank identification code), account row receipt and payment direction, currency, account number, message type and the like according to the message requirements of the counter-party financial institution. Configuration examples are shown in table 1 below:
TABLE 1
It should be understood that the step of obtaining the message domain field pre-configuration information includes: the configuration of the message domain field is realized through a message domain field assignment rule table, and the data table comprises the following main fields: rule ID, message type, message sequence number, condition judgment ID, message domain, domain format, assignment rule, etc. The operator configures the fields such as message type, message serial number, condition judgment ID, message domain, domain format, assignment rule and the like under the rule ID according to the message requirement of the counter-party financial institution.
Configuration examples are shown in table 2 below:
TABLE 2
In a specific implementation, the step of performing the message domain field value mapping pre-configuration according to the message domain field pre-configuration information and the message domain field value mapping table to obtain the message definition configuration information includes: the message domain field value mapping configuration is realized through a message domain field value mapping table, and the data table comprises the following main fields: variable name, corresponding interface field, variable value, condition field 1, condition value 1, condition field 2, condition value 2, etc. The operator configures the corresponding interface, the corresponding interface field, the variable value, the condition field 1, the condition value 1, the condition field 2, the condition value 2 and other fields under the variable name according to the message requirement of the counter-party financial institution.
Configuration examples are shown in table 3 below:
TABLE 3 Table 3
By the method, the configuration information of the message definition is configured in advance, so that the corresponding transaction message is directly generated only by means of the information of the deposit and withdrawal party and the transaction data.
Further, in order to accurately obtain the message definition configuration information corresponding to the current transaction, step S10 includes: acquiring currency information and account information of a deposit party; inquiring a message definition rule of an income party, and screening the message definition rule according to the currency information and the account information to obtain a screened message definition rule; and carrying out priority ranking on the screening message definition rules, and selecting message definition configuration information according to ranking results, wherein the message definition configuration information is the screening message definition rule with the highest priority in the ranking results.
It should be understood that the message definition configuration, rule ID, and message type to be sent are obtained. Firstly, inquiring a message definition rule of an income party, and inquiring according to the BIC code of an income row and the payment direction, wherein 8 bits before interception of the BIC code are subjected to fuzzy matching, and when the BIC code is 11 bits, the rule is a branch code of the last three bits, so that the rule is configured once for each branch in order to avoid the need of the same bank, and therefore, the fuzzy matching is adopted.
In a specific implementation, the determination mode of the definition rule of the screening message is as follows: if there is only one rule queried, then that rule is selected. Otherwise, checking two conditions of the currency and the account, temporarily reserving the rule if the currency or the account in the rule definition is empty, checking whether the transaction currency or the account is matched with the rule if the currency or the account in the rule definition is not empty, temporarily reserving the rule if the transaction currency or the account is matched with the rule, and discarding the rule if the transaction currency or the account is not matched with the rule. Note that here only the deposit bicode and deposit account number matching is supported, and the deposit bicode and deposit account number matching. If the matching condition that the input account number and the output account number are required to be inquired does not support occurs, special processing is required.
It should be noted that, the priority ranking is performed on the selected message definition rules, and a rule with the highest priority is selected as the message definition rule of the transaction. Note that if there are multiple rules at the same time that are the same priority and are all highest priority, then it is indicated that these rules are conflicting and the system will report an error.
By the method, the message definition configuration information corresponding to the current transaction is screened out.
Step S20: and determining a domain field configuration result set according to the message definition configuration information.
The domain field configuration result set is obtained by screening the currency information and account information of the transaction of the deposit and withdrawal party.
Step S30: and determining the mapping configuration information of the message domain field according to the domain field configuration result set.
It should be understood that the message domain field mapping configuration information is determined according to a domain field configuration result set, and specifically, the message domain mapping configuration information is determined by querying a preconfigured personalized message configuration rule.
Further, in order to determine the message domain field mapping configuration information, step S30 includes: determining value configuration information according to the domain field configuration result set; determining a value mapping of a pre-configured message domain field according to the message definition configuration information; and determining the message domain field mapping configuration information corresponding to the value configuration information according to the pre-configured message domain field value mapping.
In a specific implementation, the value mapping configuration of the field of the message is obtained, and the value mapping configuration of the field of the message is obtained and processed. Firstly, the domain field configuration result set obtained in the previous step contains the domain field value configuration information, the result set is traversed, and the mapping rule of the corresponding configuration, namely the message domain field mapping configuration information, is queried in the message domain field value mapping configuration through the value mapping in the domain field configuration, namely the value configuration. Note that the field value configuration configured in step 2 supports both variables and constants, and when the configuration is not queried in the mapping configuration, it is considered as a constant, and is directly used as the value of the field. Otherwise, the variable is required to be processed later. Then, aiming at the situation of the variable, the corresponding interface field of the variable mapping configuration is taken, and then the interface class is loaded through a JAVA class loader, so that the specific class is obtained. A number of rules may be configured here as follows: rule a: if the corresponding interface field is not null, the rule A is satisfied, and the value of the interface field in the instance object of the transaction corresponding to the class is obtained through JAVA reflection technology, and then the value is the value of the variable mapping. Rule B: if the corresponding interface field is empty, the rule B is satisfied, condition screening is needed, the value of the corresponding interface condition field is obtained through JAVA reflection technology and the configured condition value is compared, and if the value is satisfied, the configured value of the condition configuration is taken as the value of the domain field. Note that a plurality of conditions may be configured here, and the plurality of conditions screen the relationship to be satisfied. In addition to rule a, rule B, a plurality of rules may be extended.
By the method, the determination of the mapping configuration information of the message domain field based on the mapping table is realized, so that the subsequent heat preservation generation is more correct.
Step S40: and integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information.
It should be noted that, the transaction message obtained in this embodiment includes a header, a message body and a message tail, where the message tail is in a preset format, and the header and the message body are obtained based on the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information.
Further, in order to generate a transaction message corresponding to the current transaction, step S40 includes: determining a message type, a message domain field, a domain field format and a domain field value according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information; generating a message header according to the message type; generating a message text according to the message domain field, the domain field format and the domain field value; and generating a transaction message according to the message header and the message body.
It should be understood that, as shown in fig. 5, for the complete flow of generating the transaction message, the message type is determined based on the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information which have been acquired in the preamble step, and the message domain fields, the domain field format and the domain field values are determined, so as to integrate and generate the SWIFT message.
In the implementation, firstly, the acquired message types are integrated into a message header, and other additional information is added to generate a SWIFT message header. And integrating the acquired domain fields, domain field formats and domain field corresponding values into a message text to generate a SWIFT message text, and finally adding other information such as a tail and the like to generate the whole SWIFT message. And after the message is generated, sending the SWIFT system to complete transaction clearing.
The embodiment calls the message definition configuration information of the user-defined configuration according to the message definition rule of the deposit-withdrawal party; determining a domain field configuration result set according to the message definition configuration information; determining the mapping configuration information of the message domain field according to the domain field configuration result set; and integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information. By the method, the automatic configuration and generation of each part of the message based on the message definition rule and the pre-configured message generation rule of the deposit-withdrawal party are realized, the message individuation requirement is completed by the general configuration mode of the transaction message, the system program is not required to be modified by a software developer, the manpower consumption of the developer and the tester is reduced, meanwhile, the message individuation requirement of the counter financial institution can be responded rapidly by configuration, and the service processing efficiency is improved.
Referring to fig. 6, fig. 6 is a flowchart of a transaction message generating method according to a second embodiment of the present invention.
Based on the above first embodiment, the transaction message generating method in this embodiment includes, in step S20:
step S201: and determining a message rule identification code and a message type according to the message definition configuration information.
It should be noted that, the rule for obtaining the configuration of the domain field of the message, that is, obtaining the configuration of the domain field of the specific message, includes which domains, the domain field format and the domain field value configuration.
It should be understood that the message rule identifier and the message type are the message rule ID and the configuration and format type of the message.
Step S202: inquiring the initial domain field configuration corresponding to the message rule identification code and the message type.
In a specific implementation, after determining the rule ID and the message type of the message, all domain field configurations under the rule ID and the message type are queried and used as each initial domain field configuration.
Step S203: and acquiring transaction data, and performing condition screening on the initial domain field configuration according to the transaction data to obtain screened domain field configuration.
It should be noted that, the filtering based on the transaction data is mainly determined based on the configuration condition judgment ID.
Further, in order to perform accurate screening, step S203 includes: acquiring a condition judgment identification code configured by each initial domain field; and acquiring transaction data, and selecting screening domain field configuration from the initial domain field configuration according to the transaction data and the condition judgment identification code.
It should be understood that, first, information is acquired to obtain the condition judgment identification code configured by each initial domain field, i.e. the condition judgment ID.
In specific implementation, condition screening is performed on the queried domain field configuration, if the condition judgment ID of the domain field configuration is not null, corresponding condition judgment is performed according to the condition judgment ID of the configuration, if the transaction data meets the condition, the configuration is reserved, and otherwise, the configuration is discarded. If the strip field configuration condition determines that the ID configuration is null, the strip configuration is directly reserved. The condition judgment ID can be listed with the service under all possible conditions, the program realizes the judgment, and the subsequent newly added condition can be simply expanded.
By the method, screening based on screening domain field configuration and condition judgment ID is realized, the accuracy of subsequent messages is improved, and the success rate of transactions is improved.
Step S204: and determining a domain field configuration result set according to the screening domain field configuration.
It should be noted that, finally, the domain field configuration which is preserved is processed and put into the domain field configuration result set for the subsequent steps. It should be noted that, there may be multiple assignments in a field of the SWIFT message, for example, a field 72 (the directions of the sending and receiving lines) may have at most 6 pieces of direction information, and by separating the line-wrapping symbols, we also perform separator processing for this special case, so as to meet the requirement that multiple pieces of data are wrapped in one field.
Determining a message rule identification code and a message type according to the message definition configuration information; inquiring the initial domain field configuration corresponding to the message rule identification code and the message type; acquiring transaction data, and performing condition screening on the initial domain field configuration according to the transaction data to obtain screened domain field configuration; and determining a domain field configuration result set according to the screening domain field configuration. By the method, the domain field configuration result set corresponding to the transaction data is accurately generated, so that the configuration and format of the subsequent transaction message are more accurate, and the success rate of the transaction is improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a transaction message generating program, and the transaction message generating program realizes the steps of the transaction message generating method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
Referring to fig. 7, fig. 7 is a block diagram illustrating a first embodiment of a transaction message generating device according to the present invention.
As shown in fig. 7, the transaction message generating device provided in the embodiment of the present invention includes:
the definition configuration module 10 is configured to invoke the message definition configuration information of the custom configuration according to the message definition rule of the deposit and withdrawal party.
The domain field configuration module 20 is configured to determine a domain field configuration result set according to the message definition configuration information.
The mapping configuration module 30 is configured to determine mapping configuration information of the domain field of the message according to the domain field configuration result set.
The message generating module 40 is configured to integrate and generate a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information.
The embodiment calls the self-defined configured message definition configuration information according to the message definition rule of the deposit and withdrawal party; determining a domain field configuration result set according to the message definition configuration information; determining the mapping configuration information of the message domain field according to the domain field configuration result set; and integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information. By the method, the automatic configuration and generation of each part of the message based on the message definition rule and the pre-configured message generation rule of the deposit-withdrawal party are realized, the message individuation requirement is completed by the general configuration mode of the transaction message, the system program is not required to be modified by a software developer, the manpower consumption of the developer and the tester is reduced, meanwhile, the message individuation requirement of the counter financial institution can be responded rapidly by configuration, and the service processing efficiency is improved.
In an embodiment, the definition configuration module 10 is further configured to obtain a message rule definition table, and configure a message definition according to the message rule definition table; performing message domain field pre-configuration according to the message definition and the message domain field assignment rule table to obtain message domain field pre-configuration information; and performing message domain field value mapping pre-configuration according to the message domain field pre-configuration information and the message domain field value mapping table to obtain message definition configuration information.
In an embodiment, the definition configuration module 10 is further configured to obtain currency information and account information of the depositor; inquiring a message definition rule of an income party, and screening the message definition rule according to the currency information and the account information to obtain a screened message definition rule; and carrying out priority ranking on the screening message definition rules, and selecting message definition configuration information according to ranking results, wherein the message definition configuration information is the screening message definition rule with the highest priority in the ranking results.
In an embodiment, the domain field configuration module 20 is further configured to determine a message rule identifier and a message type according to the message definition configuration information; inquiring the initial domain field configuration corresponding to the message rule identification code and the message type; acquiring transaction data, and performing condition screening on the initial domain field configuration according to the transaction data to obtain screened domain field configuration; and determining a domain field configuration result set according to the screening domain field configuration.
In an embodiment, the domain field configuration module 20 is further configured to obtain a condition judgment identification code of each initial domain field configuration; and acquiring transaction data, and selecting screening domain field configuration from the initial domain field configuration according to the transaction data and the condition judgment identification code.
In an embodiment, the mapping configuration module 30 is further configured to determine value configuration information according to the domain field configuration result set; determining a value mapping of a pre-configured message domain field according to the message definition configuration information; and determining the message domain field mapping configuration information corresponding to the value configuration information according to the pre-configured message domain field value mapping.
In an embodiment, the mapping configuration module 30 is further configured to determine a message type, a message field, a field format, and a field value according to the message definition configuration information, the field configuration information, and the message field mapping configuration information; generating a message header according to the message type; generating a message text according to the message domain field, the domain field format and the domain field value; and generating a transaction message according to the message header and the message body.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details that are not described in detail in this embodiment may refer to the transaction message generating method provided in any embodiment of the present invention, and are not described herein again.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of embodiments, it will be clear to a person skilled in the art that the above embodiment method may be implemented by means of software plus a necessary general hardware platform, but may of course also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The transaction message generation method is characterized by comprising the following steps:
calling the self-defined configured message definition configuration information according to the message definition rule of the deposit-withdrawal party;
determining a domain field configuration result set according to the message definition configuration information;
determining the mapping configuration information of the message domain field according to the domain field configuration result set;
and integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information.
2. The method for generating a transaction message according to claim 1, wherein before the message definition configuration information of the custom configuration is invoked, the method further comprises:
obtaining a message rule definition table, and configuring message definition according to the message rule definition table;
performing message domain field pre-configuration according to the message definition and the message domain field assignment rule table to obtain message domain field pre-configuration information;
and performing message domain field value mapping pre-configuration according to the message domain field pre-configuration information and the message domain field value mapping table to obtain message definition configuration information.
3. The method for generating transaction messages according to claim 1, wherein said calling the message definition configuration information of the custom configuration according to the message definition rule of the payor includes:
acquiring currency information and account information of a deposit party;
inquiring a message definition rule of an income party, and screening the message definition rule according to the currency information and the account information to obtain a screened message definition rule;
and carrying out priority ranking on the screening message definition rules, and selecting message definition configuration information according to ranking results, wherein the message definition configuration information is the screening message definition rule with the highest priority in the ranking results.
4. The method of generating a transaction message according to claim 1, wherein determining a domain field configuration result set according to the message definition configuration information comprises:
determining a message rule identification code and a message type according to the message definition configuration information;
inquiring the initial domain field configuration corresponding to the message rule identification code and the message type;
acquiring transaction data, and performing condition screening on the initial domain field configuration according to the transaction data to obtain screened domain field configuration;
and determining a domain field configuration result set according to the screening domain field configuration.
5. The method of generating a transaction message according to claim 4, wherein the obtaining transaction data and the conditional screening of the initial domain field configuration according to the transaction data, obtaining a screened domain field configuration, comprises:
acquiring a condition judgment identification code configured by each initial domain field;
and acquiring transaction data, and selecting screening domain field configuration from the initial domain field configuration according to the transaction data and the condition judgment identification code.
6. The method of generating a transaction message according to claim 1, wherein said determining the message domain field mapping configuration information according to the domain field configuration result set comprises:
determining value configuration information according to the domain field configuration result set;
determining a value mapping of a pre-configured message domain field according to the message definition configuration information;
and determining the message domain field mapping configuration information corresponding to the value configuration information according to the pre-configured message domain field value mapping.
7. The method for generating a transaction message according to any one of claims 1 to 6, wherein integrating and generating the transaction message according to the message definition configuration information, the domain field configuration information, and the message domain field mapping configuration information includes:
determining a message type, a message domain field, a domain field format and a domain field value according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information;
generating a message header according to the message type;
generating a message text according to the message domain field, the domain field format and the domain field value;
and generating a transaction message according to the message header and the message body.
8. A transaction message generation device, characterized in that the transaction message generation device comprises:
the definition configuration module is used for calling the self-defined configured message definition configuration information according to the message definition rule of the deposit and withdrawal party;
the domain field configuration module is used for determining a domain field configuration result set according to the message definition configuration information;
the mapping configuration module is used for determining the mapping configuration information of the message domain field according to the domain field configuration result set;
and the message generation module is used for integrating and generating a transaction message according to the message definition configuration information, the domain field configuration information and the message domain field mapping configuration information.
9. A transaction message generation device, the transaction message generation device comprising: a memory, a processor and a transaction message generation program stored on the memory and running on the processor, the transaction message generation program configured to implement the transaction message generation method of any of claims 1 to 7.
10. A storage medium having stored thereon a transaction message generation program which, when executed by a processor, implements the transaction message generation method of any of claims 1 to 7.
CN202310959410.8A 2023-08-01 2023-08-01 Transaction message generation method, device, equipment and storage medium Pending CN116996589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310959410.8A CN116996589A (en) 2023-08-01 2023-08-01 Transaction message generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310959410.8A CN116996589A (en) 2023-08-01 2023-08-01 Transaction message generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116996589A true CN116996589A (en) 2023-11-03

Family

ID=88522804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310959410.8A Pending CN116996589A (en) 2023-08-01 2023-08-01 Transaction message generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116996589A (en)

Similar Documents

Publication Publication Date Title
CN107103462B (en) Method and device for processing snapshot data of cross-border remittance of bank
CN110309022B (en) Method, simulator, device and storage medium for simulating transaction test
US20060259423A1 (en) Centralized payment processing system
CN111931666B (en) Automatic certificate processing system and method
CN107545407A (en) The method and device of business flow processing
JP4820408B2 (en) Attribute engine
CN108921680A (en) Financial data accreditation method, apparatus, computer equipment and storage medium
CN112348326A (en) Bank business processing method and system
CN111861695A (en) Message assembling method and device
CN116996589A (en) Transaction message generation method, device, equipment and storage medium
CN116308333A (en) Method, system, device and storage medium for determining payment channel
CN116302974A (en) Data testing method, device, apparatus, medium and program product
CN115147202A (en) Banking business account processing system, method and device
CN112148353B (en) Data processing method and device
CN112365229A (en) Service checking processing method, device, computer equipment and storage medium
CN112819605A (en) Method and device for testing fund settlement service and computer readable medium
CN112734543A (en) Accounting processing method and device, computer equipment and storage medium
CN117076546B (en) Data processing method, terminal device and computer readable storage medium
CN111292051B (en) Foreign exchange business processing method, device, equipment and medium
CN113094279A (en) Test data construction method, device and system and computer readable storage medium
CN114338835A (en) Data message dynamic conversion method and device, storage medium and electronic device
CN116843442A (en) Service continuing method, device, equipment and storage medium
CN115840699A (en) Method and tool for realizing multi-bank electronic bill business simulation
CN116700718A (en) Page configuration-based data processing method and system
CN117217691A (en) Business process processing method, device, terminal 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