CN117640752A - SWIFT standard-based message matching method, device and equipment - Google Patents

SWIFT standard-based message matching method, device and equipment Download PDF

Info

Publication number
CN117640752A
CN117640752A CN202311657122.3A CN202311657122A CN117640752A CN 117640752 A CN117640752 A CN 117640752A CN 202311657122 A CN202311657122 A CN 202311657122A CN 117640752 A CN117640752 A CN 117640752A
Authority
CN
China
Prior art keywords
data source
message
target
information
matching
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
CN202311657122.3A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311657122.3A priority Critical patent/CN117640752A/en
Publication of CN117640752A publication Critical patent/CN117640752A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method, a device and equipment for matching a message based on SWIFT standard, wherein the method comprises the following steps: acquiring a plurality of messages in the transaction of an institution and determining target message identification information of each message; acquiring a preset data source mapping table between the message identification information and the data source, and determining target data source information according to the preset data source mapping table and target message identification information; determining a data source element value corresponding to the target data source information in the message according to the target data source information; and carrying out message matching on the plurality of messages according to the target data source information, the corresponding data source element value and the target message identification information to obtain successfully matched incoming and outgoing messages. The technical scheme of the invention can realize rapid and accurate matching of the messages based on SWIFT standard, and improves the success rate of message matching.

Description

SWIFT standard-based message matching method, device and equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for matching a message based on a SWIFT standard.
Background
Currently, to accommodate the ISO 20022 standard, the global banking and financial communications institute (Society for Worldwide Interbank Financial Telecommunications, SWIFT) requires payment standard migration by individual financial institutions. During the SWIFT upgrade to ISO 20022 standard, some financial institutions will still receive financial application (Financial Application, FIN) formatted messages due to inconsistent time nodes for each financial institution upgrade. Therefore, to promote compatibility of the SWIFT system, the SWIFT system needs to support not only text matching in FIN format but also text matching in extensible markup language (Extensible Markup Language, XML) format.
In the prior art, matching of messages coming and going by the SWIFT standard is generally realized by fixing a message matching rule and a data source element value in a code.
However, in the prior art of fixing the data source element value in the code, when the SWIFT system needs to access a new message format, the code needs to be greatly modified, which results in waste of development resources. Secondly, because the message matching rule in the prior art is single, the success rate of the message matching is low, and more manpower is needed for the message matching.
Disclosure of Invention
The invention provides a method, a device and equipment for matching messages based on SWIFT standards, which can realize rapid and accurate matching of the messages based on SWIFT standards and improve the success rate of message matching.
In a first aspect, a method for matching messages based on SWIFT criteria is provided, the method comprising:
acquiring a plurality of messages in the transaction of an institution and determining target message identification information of each message;
acquiring a preset data source mapping table between the message identification information and the data source, and determining target data source information according to the preset data source mapping table and target message identification information;
determining a data source element value corresponding to the target data source information in the message according to the target data source information;
and carrying out message matching on the plurality of messages according to the target data source information, the corresponding data source element value and the target message identification information to obtain successfully matched incoming and outgoing messages.
Optionally, according to the target data source information, the corresponding data source element value and the target message identification information, performing message matching on the multiple messages to obtain successfully matched incoming and outgoing messages, including: determining at least two messages existing in the multiple messages to form a message pair according to the target message identification information; when the successful matching of the data source information of the incoming and outgoing message pairs is determined according to the target data source information and the corresponding data source element values, the incoming and outgoing message pairs are used as the incoming and outgoing messages which are successfully matched.
Optionally, when it is determined that the matching of the data source information of the incoming and outgoing message pair is successful according to the target data source information and the corresponding data source element value, the method includes: determining the sending and receiving information of the incoming and outgoing message pairs; when the message sending and receiving information meets the preset message sending and receiving conditions, and the corresponding data source element values of the message pairs are completely consistent under the target data source information, determining that the data source information of the message pairs is successfully matched; when the message transmitting and receiving information does not meet the preset message transmitting and receiving conditions, and the corresponding data source element values of the message pairs meet the preset similarity conditions under the target data source information, the successful matching of the data source information of the message pairs is determined.
Optionally, the method further comprises: if the data source information of the incoming and outgoing message pair fails to match, the corresponding target data source information, the corresponding data source element value and the target message identification information of the incoming and outgoing message pair are sent to an equivalence relation learning platform; acquiring a matching result determined by the equivalence relation learning platform according to the target data source information, the corresponding data source element value and the target message identification information; and obtaining successful incoming and outgoing messages according to the matching result.
Optionally, after obtaining the matching result determined by the equivalence relation learning platform according to the target data source information, the corresponding data source element value and the target message identification information, the method further includes: if the matching result is successful, determining a target equivalence relation according to the target data source information, the corresponding data source element value and the target message identification information; and updating a preset receiving and transmitting report condition and a preset similarity condition according to the target equivalence relation.
Optionally, the target message identification information includes: message type, incoming and outgoing message identification, and message format; determining target data source information according to a preset data source mapping table and target message identification information, including: when the message type, the message identification in the coming and going direction and the message format are successfully matched with the message identification information in the preset data source mapping table, corresponding target data source information is determined.
Optionally, the target data source information includes: a target data source, and path information corresponding to the target data source; according to the target data source information, determining a data source element value corresponding to the target data source information in the message, wherein the method comprises the following steps: and determining a data source element value corresponding to the target data source in the message according to the path information.
In a second aspect, there is provided a message matching device based on the SWIFT standard, the device comprising:
the target message identification information determining module is used for acquiring a plurality of messages in the business of the mechanism and determining target message identification information of each message;
the target data source information determining module is used for acquiring a preset data source mapping table between the message identification information and the data source and determining target data source information according to the preset data source mapping table and the target message identification information;
the data source element value determining module is used for determining a data source element value corresponding to the target data source information in the message according to the target data source information;
and the message matching module is used for matching the messages according to the target data source information, the corresponding data source element value and the target message identification information to obtain successfully matched incoming and outgoing messages.
In a third aspect, there is provided an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the SWIFT standard based message matching method of any one of the embodiments of the present invention.
In a fourth aspect, a computer readable storage medium is provided, where the computer readable storage medium stores computer instructions for causing a processor to implement a method for matching messages based on SWIFT criteria according to any embodiment of the present invention when executed.
According to the technical scheme, the plurality of messages in the business of the mechanism are acquired, and the target message identification information of each message is determined; acquiring a preset data source mapping table between the message identification information and the data source, and determining target data source information according to the preset data source mapping table and target message identification information; determining a data source element value corresponding to the target data source information in the message according to the target data source information; according to the target data source information, the corresponding data source element value and the target message identification information, message matching is carried out on a plurality of messages to obtain a technical means of successfully matched incoming and outgoing messages, the problems that the data source element value is fixed in a code, the code is often required to be greatly modified to be compatible with a new message format when a SWIFT system needs to be accessed with the new message format in the prior art are solved, the quick and accurate matching of the messages based on SWIFT standard can be realized, and the success rate of message matching is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for matching messages based on SWIFT standard according to a first embodiment of the present invention;
FIG. 2 is a flowchart of another message matching method based on SWIFT standard according to the second embodiment of the present invention;
FIG. 3 is a flow chart of a preferred SWIFT standard based message matching method provided in accordance with an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message matching device based on the SWIFT standard according to a third embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an electronic device implementing a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a SWIFT standard-based message matching method according to an embodiment of the present invention, where the method may be performed by a SWIFT standard-based message matching device, and the SWIFT standard-based message matching device may be implemented in hardware and/or software, and the SWIFT standard-based message matching device may be configured in an electronic device, such as a computer.
As shown in fig. 1, the method for matching a message based on the SWIFT standard disclosed in this embodiment includes:
s110, acquiring a plurality of messages in the transaction of the mechanism, and determining target message identification information of each message.
In this embodiment, the target message identification information may be used to uniquely identify each message. The target message identification information may include a message type, an incoming and outgoing message identification, a message format, and the like.
In this step, specifically, the matching rule engine may parse the multiple messages to obtain the target message identification information of each message.
S120, acquiring a preset data source mapping table between the message identification information and the data source, and determining target data source information according to the preset data source mapping table and the target message identification information.
In this embodiment, the preset data source mapping table may include a correspondence between the message identification information and the data source name. The data source name may be the domain name of the message, e.g., party a, party b, day of transaction, etc. In the preset data source mapping table, the same target message identification information can correspond to a plurality of data source names.
In a specific embodiment, the target data source information may be determined in a preset data source mapping table according to the target message identification information. A plurality of data source names corresponding to the target message identification information may be acquired from the target data source information.
Optionally, the message in the formats of FIN, XML, JSON, fixed length, separator and the like may be parsed by a preset data source mapping table. For example, if the message format is a fixed length format, the starting location and length of the data source lookup may be specified in the path information. If the message format is a separator format message, the ranking order of the data source element values may be specified in the path information.
S130, according to the target data source information, determining a data source element value corresponding to the target data source information in the message.
In this embodiment, the data source element value may be used to match incoming and outgoing messages.
In this step, specifically, according to the target data source information, the matching rule engine may analyze the message to obtain the data source element value.
And S140, carrying out message matching on the plurality of messages according to the target data source information, the corresponding data source element value and the target message identification information to obtain successfully matched incoming and outgoing messages.
In this step, specifically, the JS key value pair data (JavaScript Object Notation, JSON) format may be used to splice the target data source information and the corresponding data source element values, and the splice result is used as the data source value string. Then, according to the target message identification information, a target matching rule can be determined in a preset matching rule table. Finally, message matching can be performed on a plurality of electric messages according to the target matching rule and the data source character string.
According to the technical scheme, a plurality of messages in the business of an institution are acquired, and target message identification information of each message is determined; acquiring a preset data source mapping table between the message identification information and the data source, and determining target data source information according to the preset data source mapping table and target message identification information; determining a data source element value corresponding to the target data source information in the message according to the target data source information; according to the target data source information, the corresponding data source element value and the target message identification information, message matching is carried out on a plurality of messages to obtain a technical means of successfully matched incoming and outgoing messages, and the problems that the data source element value is fixed in a code, and when a SWIFT system needs to be accessed into a new message format, the code is often required to be transformed greatly to be compatible with the new message format in the prior art are solved. The data source element values of various messages are determined by presetting the data source mapping table and the target message identification information, and the messages are matched according to the data source element values, so that the messages based on SWIFT standards can be matched rapidly and accurately, and the success rate of the message matching is improved.
Example two
Fig. 2 is a flowchart of another method for matching messages based on the SWIFT standard according to a second embodiment of the present invention, which is a further refinement of the foregoing technical solution, where the technical solution in this embodiment may be combined with each alternative solution in one or more embodiments described above.
As shown in fig. 2, the method for matching a message based on the SWIFT standard disclosed in this embodiment includes:
s210, acquiring a plurality of messages in the transaction of the mechanism, and determining target message identification information of each message.
The target message identification information may include a message type, an incoming and outgoing message identification, a message format, and the like.
In this embodiment, it may be determined whether the message is transmitted by the transmitting line or the receiving line according to the incoming and outgoing message identifier. For example, if the incoming and outgoing messages are identified as I, the message may be considered to be sent by the sender. If the incoming and outgoing messages are identified as O, the message may be considered as being sent by the receiving line. The message format may include FIN format, XML format, and the like. FIN may be represented by F and XML may be represented by X.
S220, acquiring a preset data source mapping table between the message identification information and the data source, and determining corresponding target data source information when the message type, the message identification in and out and the message format are successfully matched with the message identification information in the preset data source mapping table.
The target data source information may include a target data source and path information corresponding to the target data source.
Exemplary, table 1 is a preset data source mapping table provided according to an embodiment of the present invention. As shown in table 1, when the message type is MT300, the incoming and outgoing messages are identified as incoming messages, and the message format is F, the target data source includes b, the date of the transaction, the currency amount, and the proxy line of the sender. The path information corresponding to the party B is 15A:87A, the path information corresponding to the date of the transaction is 15B:30V, the path information corresponding to the currency amount is 15B:33B, and the path information corresponding to the proxy row of the sender is 15B:53A. The corresponding path information of the party B is 15A:87A, which indicates the content of the 87A domain under the Sequence A Sequence in the SWIFT standard FIN message. As shown in the last line of Table 1, the path information corresponding to the day of the interest is Stmt/Bal/Dt, which indicates that the content in the XML tag < Stmt > < Bal > < Dt > USD5000000</Dt > </Bal > </Stmt > is acquired.
TABLE 1
The method has the advantages that the path information of the messages in various formats can be obtained rapidly and accurately by presetting the data source mapping table and the target message identification information, so that the data source element values can be obtained later.
S230, according to the path information, determining a data source element value corresponding to the target data source in the message.
In this step, optionally, after determining the data source element value corresponding to the target data source in the telegram according to the path information, the target data source information and the corresponding data source element value are spliced, and the spliced result is used as a data source value string. And then, according to the target message identification information, storing the data source character string into a preset data source value field storage table.
In the above example, table 2 is a preset data source value range storage table provided according to an embodiment of the present invention. As shown in table 2, the preset data source value field storage table may include a message number, a message type, an incoming and outgoing message identifier, a matching state, an associated message number, and a data source string. The message number may be used to uniquely identify the message. The match status may include no match, a quasi match, and a complete match. The associated message number may be the number of the message that matches the message exactly or quasi-. Specifically, message data sources with message types MT300 and incoming and outgoing message identifiers as incoming messages can be spliced, and a splicing result (namely a data source value string) is obtained and is { "partyB": "AB OCHKHH", "value date": "20220207", "ccyAmount": "USD5000000", "deliveryAgent": "BNPAIUS 3N" }.
TABLE 2
The method has the advantages that the target data source information and the data source element values are spliced by adopting the JSON format, and the spliced data source character strings are stored in the data source value range storage table, so that the data source element values of various types of messages can be stored, and the matching of the various types of messages is facilitated.
S240, determining that at least two messages in the plurality of messages form a message pair for coming and going according to the target message identification information.
In this embodiment, the incoming and outgoing message pair may include at least one incoming message and one outgoing message.
S250, when the successful matching of the data source information of the incoming and outgoing message pairs is determined according to the target data source information and the corresponding data source element values, the incoming and outgoing message pairs are used as the incoming and outgoing messages which are successfully matched.
In a specific embodiment, the target matching rule may be determined in a preset matching rule table according to the target message identification information. And then, matching the incoming and outgoing message pairs according to the target matching rule and the data source character string (comprising target data source information and corresponding data source element values).
In the above example, table 3 is a preset matching rule table provided according to an embodiment of the present invention. As shown in table 3, the preset matching rule table includes a matching rule number, a matching rule type, an incoming message data source, an outgoing message type, an outgoing message data source, and an equivalence class identification. The matching rule types may include basic rules and optional rules. Alternatively, the incoming message type and the outgoing message type may be inconsistent, for example, the incoming message type may be configured to be in FIN format, and the outgoing message type may be configured to be in XML format.
TABLE 3 Table 3
Specifically, when the incoming message type is MT300 and the outgoing message type is MT300, the basic rule includes comparing the data source element value corresponding to the b party of the incoming message with the data source element value corresponding to the a party of the outgoing message, and whether the data source element values corresponding to the day of the incoming message and the outgoing message are completely consistent. The optional rule is to compare whether the data source element values corresponding to the sending proxy row of the message are completely consistent. If the data source element values corresponding to the sending proxy rows of the incoming and outgoing message are not completely consistent, the alternative data source element values can be determined in the equivalence relation table through equivalence class identification, so that the incoming and outgoing message is re-matched according to the alternative data source element values.
Table 4 is an equivalence relation table provided in accordance with an embodiment of the present invention. As shown in table 4, the equivalence relation table may include equivalence class identification, a report line, a data source, an incoming report data source element replacement value, and an outgoing report data source element replacement value.
TABLE 4 Table 4
Specifically, when the equivalence class identifier is E00001, the reporting behavior abocu 2S, the reporting behavior BNPAUS3N, and the message type is MT300, the element value "BNPAUS3N" of the reporting proxy line in the incoming message is replaced by "BNPAUS3 nxx", and then is matched with the reporting behavior BNPAUS3N, the reporting behavior abocuu 2S, and the message type is MT 300. And if the matching is consistent, the matching is considered to be successful, and the matching state field in the preset data source value field storage table is updated to be completely matched.
Alternatively, the data source is allowed to be replaced only when the type of the message is consistent with the type of the message, the message and the message recorded in the equivalence relation table.
In an optional implementation manner of the embodiment of the present invention, when it is determined that the data source information of the incoming and outgoing message pair is successfully matched according to the target data source information and the corresponding data source element value, the method includes: determining the sending and receiving information of the incoming and outgoing message pairs; when the message sending and receiving information meets the preset message sending and receiving conditions, and the corresponding data source element values of the message pairs are completely consistent under the target data source information, determining that the data source information of the message pairs is successfully matched; when the message transmitting and receiving information does not meet the preset message transmitting and receiving conditions, and the corresponding data source element values of the message pairs meet the preset similarity conditions under the target data source information, the successful matching of the data source information of the message pairs is determined.
In this embodiment, the sending line information may include an incoming message type and an incoming message data source corresponding to the incoming message. The message receiving line information can comprise a message type corresponding to the message, a message data source and the like. In practical application, the message and the message can be determined according to the incoming and outgoing message identification. The preset receiving and transmitting report conditions can be determined according to the type of the matching rule in the target matching rule.
In a specific embodiment, when the matching rule type is the basic rule, the sending and receiving information can be considered to meet the preset sending and receiving conditions. When the matching rule type is the selectable rule, the message sending and receiving information can be considered to not meet the preset message sending and receiving conditions.
When the message transmitting and receiving information does not meet the preset message transmitting and receiving conditions and the corresponding data source element values of the incoming and outgoing messages are not completely consistent under the target data source information, whether the corresponding data source element values of the incoming and outgoing messages meet the preset similarity conditions under the target data source information (namely whether the incoming and outgoing data source element replacement values and the outgoing data source element replacement values exist or not) can be judged. If yes, the successful matching of the data source information of the incoming and outgoing message pairs can be determined. If not, the data source information of the incoming and outgoing message pair can be considered to be failed to match.
When the message sending and receiving information does not meet the preset message sending and receiving conditions, but the corresponding data source element values of the message pairs are completely consistent under the target data source information, the successful matching of the data source information of the message pairs can be determined.
Optionally, the data source element values configured in the basic rule must be completely consistent with both the message and the message to calculate that the matching is successful. The elements configured in the optional rule only need to be matched if the elements exist in both the message and the message, and the matching is completely consistent.
The incoming and outgoing message pairs with successful matching of the basic rule and the optional rule can be used as complete matching message pairs, and the matching state corresponding to the complete matching message pairs is updated to be the complete matching state (namely, the automatic matching is successful). The message pairs coming and going, which are matched according to the basic rules but are not successfully matched according to the optional rules, can be used as the quasi-matched message pairs, and the matching states corresponding to the quasi-matched message pairs are updated into quasi-matched states. The incoming and outgoing message pairs with the basic rule and the optional rule which are not successfully matched are used as unmatched message pairs, and the matching state corresponding to the unmatched message pairs is updated to be failed in matching. For message pairs with failed matching, the incoming and outgoing messages can be acquired at regular time to match.
The method has the advantages that the rule types are divided into the basic rules and the optional rules, the basic rules are matched, and the corresponding matching states of the messages from and to which the optional rules are not matched are used as the quasi-matching successful states, so that the messages possibly with certain association relation are rapidly positioned, and the follow-up message matching is facilitated.
And S260, if the matching of the data source information of the incoming and outgoing message pairs fails, transmitting the corresponding target data source information, the corresponding data source element value and the target message identification information of the incoming and outgoing message pairs to an equivalence relation learning platform.
S270, acquiring a matching result determined by the equivalence relation learning platform according to the target data source information, the corresponding data source element value and the target message identification information.
In this embodiment, the matching result may include matching success and matching failure.
Optionally, in the process of matching the incoming and outgoing message pairs through the equivalence relation learning platform, the data sources which are not matched with the incoming and outgoing message pairs can be identified, so that whether forced matching is successful or not can be quickly positioned.
In an optional implementation manner of the embodiment of the present invention, after obtaining the matching result determined by the equivalence relation learning platform according to the target data source information, the corresponding data source element value, and the target message identification information, the method further includes: if the matching result is successful, determining a target equivalence relation according to the target data source information, the corresponding data source element value and the target message identification information; and updating a preset receiving and transmitting report condition and a preset similarity condition according to the target equivalence relation.
Specifically, the basic rule matching can be performed through the equivalence relation learning platform, but the incoming and outgoing message pairs with unsuccessful optional rule matching are recorded. And then, the incoming and outgoing message pairs can be forcedly matched through an equivalence relation learning platform. If the matching is successful, the message pairs can be learned through an equivalence relation learning platform so as to determine the target equivalence relation according to the target data source information, the corresponding data source element values and the target message identification information.
For example, assuming that the same incoming and outgoing message pair exists, the situation that the element values of the data source are not matched (namely, the matching is forced to succeed through the equivalent relation learning platform) occurs for multiple times, and the data source takes the same value in each incoming and outgoing message matching, the data source can be identified as having an equivalent relation. At this time, the data source with the equivalence relation can be added to the equivalence relation table, so that the data source element value corresponding to the selectable rule can be replaced according to the equivalence relation table, and the success rate of message matching is improved.
Optionally, when learning the incoming and outgoing message pairs through the equivalence relation learning platform, if there is a situation that the element values of the data sources replaced for many times are not matched in the transaction of the incoming and outgoing messages, the target equivalence relation can be pushed to the front end for display, and the user further confirms the target equivalence relation at the front end and then marks the target equivalence relation as the target equivalence relation.
S280, obtaining successful incoming and outgoing messages according to the matching result.
According to the technical scheme, a plurality of messages in the business of an institution are acquired, and target message identification information of each message is determined; acquiring a preset data source mapping table between message identification information and a data source, and determining corresponding target data source information when the message type, the message identification of the coming and going and the message format are successfully matched with the message identification information in the preset data source mapping table; determining a data source element value corresponding to the target data source in the message according to the path information; determining at least two messages existing in the multiple messages to form a message pair according to the target message identification information; when the successful matching of the data source information of the incoming and outgoing message pairs is determined according to the target data source information and the corresponding data source element values, the incoming and outgoing message pairs are used as the incoming and outgoing messages which are successfully matched; if the data source information of the incoming and outgoing message pair fails to match, the corresponding target data source information, the corresponding data source element value and the target message identification information of the incoming and outgoing message pair are sent to an equivalence relation learning platform; the technical means for acquiring the matching result determined by the equivalence relation learning platform according to the target data source information, the corresponding data source element value and the target message identification information solves the problems that in the prior art, when a SWIFT system needs to be connected with a new message format, the code is often required to be greatly transformed to be compatible with the new message format, and then the quick and accurate matching of the message based on the SWIFT standard can be realized.
Fig. 3 is a flowchart of a preferred message matching method based on the SWIFT standard according to an embodiment of the present invention. In a preferred implementation manner of the embodiment of the present invention, as shown in fig. 3, the matching rule engine may analyze each received message according to a preset path mapping table to obtain a data source element value. Then, the data source and the corresponding data source element values can be spliced by adopting a JSON format to obtain a data source character string, and the data source character string is stored in a preset data source value range storage table. And then, matching the incoming and outgoing message pairs according to a preset matching rule table, and judging whether the matching is successful or not. If the matching is unsuccessful, the incoming and outgoing message pairs can be matched through the equivalence relation learning platform according to the target data source information, the corresponding data source element values and the target message identification information. And obtaining successfully matched incoming and outgoing messages according to the matching result, and carrying out self-adaptive learning on the successfully matched incoming and outgoing messages through an equivalence relation learning platform. Finally, a target equivalence relation can be generated according to the target data source information, the corresponding data source element value and the target message identification information, and the target equivalence relation is stored in an equivalence relation table so as to adjust a target matching rule according to the target equivalence relation.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
Example III
Fig. 4 is a schematic structural diagram of a message matching device based on the SWIFT standard according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes:
the message matching module 44 includes a target message identification information determining module 41, a target data source information determining module 42, a data source element value determining module 43, and a message matching module 41.
The target message identification information determining module 41 is configured to obtain a plurality of messages in the transaction of the institution and determine target message identification information of each message;
the target data source information determining module 42 is configured to obtain a preset data source mapping table between the message identification information and the data source, and determine target data source information according to the preset data source mapping table and the target message identification information;
a data source element value determining module 43, configured to determine a data source element value corresponding to the target data source information in the telegram according to the target data source information;
the message matching module 44 is configured to perform message matching on the multiple messages according to the target data source information, the corresponding data source element value, and the target message identification information, so as to obtain successfully matched incoming and outgoing messages.
According to the technical scheme provided by the embodiment of the invention, the target message identification information determining module, the target data source information determining module, the data source element value determining module and the message matching module are matched with each other, so that the problem that the code is compatible with a new message format only by greatly modifying the code when the SWIFT system needs to be accessed with the new message format in the prior art is solved, the quick and accurate matching of the message based on the SWIFT standard can be realized, and the success rate of the message matching is improved.
Optionally, the message matching module 44 includes:
the message pair determining unit is used for determining that at least two messages in the plurality of messages form a message pair for coming and going according to the target message identification information;
the data source information matching unit is used for taking the incoming and outgoing message pair as the incoming and outgoing message which is successfully matched when the data source information of the incoming and outgoing message pair is successfully matched according to the target data source information and the corresponding data source element value;
the message sending and receiving unit is used for sending and receiving the message pairs;
The first message pair matching unit is used for determining that the data source information of the incoming and outgoing message pair is successfully matched when the message sending information and the message receiving information meet the preset message receiving and sending conditions and the corresponding data source element values of the incoming and outgoing message pair are completely consistent under the target data source information;
and the second message pair matching unit is used for determining that the data source information of the incoming and outgoing message pair is successfully matched when the message sending information and the message receiving information do not meet the preset message receiving and sending conditions and the corresponding data source element value of the incoming and outgoing message pair meets the preset similarity condition under the target data source information.
Optionally, the apparatus further includes an equivalent matching module, the module including:
the message pair information sending unit is used for sending the corresponding target data source information, the corresponding data source element value and the target message identification information of the incoming and outgoing message pair to the equivalence relation learning platform if the data source information of the incoming and outgoing message pair fails to match;
the matching result acquisition unit is used for acquiring a matching result determined by the equivalence relation learning platform according to the target data source information, the corresponding data source element value and the target message identification information;
The incoming and outgoing message acquisition unit is used for acquiring the incoming and outgoing messages successfully matched according to the matching result;
the target equivalence relation determining unit is used for determining a target equivalence relation according to the target data source information, the corresponding data source element value and the target message identification information if the matching result is that the matching is successful;
and the condition updating unit is used for updating the preset receiving and transmitting report conditions and the preset similarity conditions according to the target equivalence relation.
Optionally, the target data source information determining module 42 includes:
the target data source information determining unit is used for determining corresponding target data source information when the message type, the message identification, and the message format are successfully matched with the message identification information in the preset data source mapping table.
Optionally, the data source element value determining module 43 includes:
and the data source element value determining unit is used for determining the data source element value corresponding to the target data source in the message according to the path information.
The SWIFT standard-based message matching device provided by the embodiment of the invention can execute the SWIFT standard-based message matching method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the message matching method based on the SWIFT standard.
In some embodiments, the message matching method based on the SWIFT standard may be implemented as a computer program tangibly embodied on a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the above-described SWIFT standard based message matching method may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the SWIFT standard based message matching method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for matching messages based on SWIFT criteria, the method comprising:
acquiring a plurality of messages in the transaction of an institution, and determining target message identification information of each message;
acquiring a preset data source mapping table between message identification information and a data source, and determining target data source information according to the preset data source mapping table and the target message identification information;
Determining a data source element value corresponding to the target data source information in the telegram according to the target data source information;
and carrying out message matching on the plurality of messages according to the target data source information, the corresponding data source element value and the target message identification information to obtain successfully matched incoming and outgoing messages.
2. The method according to claim 1, wherein performing message matching on the plurality of messages according to the target data source information, the corresponding data source element value, and the target message identification information to obtain successfully matched incoming and outgoing messages includes:
determining that at least two messages existing in a plurality of messages form a message pair for coming and going according to the target message identification information;
and when the data source information of the incoming and outgoing message pair is successfully matched according to the target data source information and the corresponding data source element value, the incoming and outgoing message pair is used as the incoming and outgoing message which is successfully matched.
3. The method according to claim 2, wherein when it is determined that the matching of the data source information of the incoming and outgoing message pair is successful according to the target data source information and the corresponding data source element value, comprising:
Determining the message sending and receiving information of the message pairs;
when the message sending and receiving line information meets the preset message sending and receiving conditions and the corresponding data source element values of the incoming and outgoing message pairs are completely consistent under the target data source information, determining that the data source information of the incoming and outgoing message pairs is successfully matched;
and when the message sending and receiving information does not meet the preset message sending and receiving conditions and the corresponding data source element value of the incoming and outgoing message pair meets the preset similarity condition under the target data source information, determining that the data source information of the incoming and outgoing message pair is successfully matched.
4. A method according to claim 3, characterized in that the method further comprises:
if the data source information of the incoming and outgoing message pair fails to be matched, the corresponding target data source information, the corresponding data source element value and the target message identification information of the incoming and outgoing message pair are sent to an equivalence relation learning platform;
acquiring a determined matching result of the equivalence relation learning platform according to the target data source information, the corresponding data source element value and the target message identification information;
And obtaining successful incoming and outgoing messages according to the matching result.
5. The method according to claim 4, further comprising, after obtaining the matching result determined by the equivalence relation learning platform according to the target data source information, the corresponding data source element value, and the target message identification information:
if the matching result is that the matching is successful, determining a target equivalence relation according to the target data source information, the corresponding data source element value and the target message identification information;
and updating the preset receiving and transmitting report conditions and the preset similarity conditions according to the target equivalence relation.
6. The method according to claim 1, wherein the target message identification information comprises: message type, incoming and outgoing message identification, and message format;
determining target data source information according to the preset data source mapping table and the target message identification information, including:
and when the message type, the message identification in the coming and going direction and the message format are successfully matched with the message identification information in the preset data source mapping table, determining corresponding target data source information.
7. The method of claim 6, wherein the target data source information comprises: a target data source, and path information corresponding to the target data source;
according to the target data source information, determining a data source element value corresponding to the target data source information in the telegram comprises the following steps:
and determining a data source element value corresponding to the target data source in the telegram according to the path information.
8. A SWIFT standard based message matching apparatus, comprising:
the target message identification information determining module is used for acquiring a plurality of messages in the business of the mechanism and determining the target message identification information of each message;
the target data source information determining module is used for acquiring a preset data source mapping table between the message identification information and the data source and determining target data source information according to the preset data source mapping table and the target message identification information;
the data source element value determining module is used for determining a data source element value corresponding to the target data source information in the telegram according to the target data source information;
And the message matching module is used for matching the messages according to the target data source information, the corresponding data source element value and the target message identification information to obtain successfully matched incoming and outgoing messages.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the SWIFT current standards based message matching method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the SWIFT standard based message matching method of any one of claims 1-7 when executed.
CN202311657122.3A 2023-12-05 2023-12-05 SWIFT standard-based message matching method, device and equipment Pending CN117640752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311657122.3A CN117640752A (en) 2023-12-05 2023-12-05 SWIFT standard-based message matching method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311657122.3A CN117640752A (en) 2023-12-05 2023-12-05 SWIFT standard-based message matching method, device and equipment

Publications (1)

Publication Number Publication Date
CN117640752A true CN117640752A (en) 2024-03-01

Family

ID=90019698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311657122.3A Pending CN117640752A (en) 2023-12-05 2023-12-05 SWIFT standard-based message matching method, device and equipment

Country Status (1)

Country Link
CN (1) CN117640752A (en)

Similar Documents

Publication Publication Date Title
CN117474091A (en) Knowledge graph construction method, device, equipment and storage medium
CN116860751A (en) Data processing method and device, electronic equipment and storage medium
CN117640752A (en) SWIFT standard-based message matching method, device and equipment
CN116933189A (en) Data detection method and device
CN114979307A (en) Communication protocol analysis method, intelligent terminal and storage medium
CN116915870B (en) Task creation request processing method, device, electronic equipment and readable medium
CN115600671B (en) Data processing method, device, equipment and storage medium of deep learning framework
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN114611155B (en) Data management node verification method, device, equipment and medium
CN117272970B (en) Document generation method, device, equipment and storage medium
CN117454817B (en) Engineering processing method and device based on FPGA, electronic equipment and storage medium
CN117596141A (en) Message assembling method, device, equipment and storage medium
CN116628383A (en) Page jump method, device, electronic equipment and storage medium
CN116012158A (en) Service processing method, device, equipment and storage medium
CN114860312A (en) Mobile terminal adaptation method, device, equipment and medium based on credit business
CN118051670A (en) Service recommendation method, device, equipment and medium
CN117892029A (en) Front-end page rendering method, front-end page rendering device, electronic device, medium and program product
CN116436883A (en) Method, device, electronic equipment and readable storage medium for link transmission
CN117931784A (en) Data quality inspection method, device, equipment and storage medium
CN116015665A (en) Method, device, equipment and medium for repeatedly detecting virtual article
CN117574477A (en) Distribution box drawing output method and device, electronic equipment and storage medium
CN116319716A (en) Information processing method, no-service system, electronic device, and storage medium
CN114449031A (en) Information acquisition method, device, equipment and storage medium
CN116382640A (en) Method, device, equipment and storage medium for managing micro-service
CN115934101A (en) Interface document generation method, device, medium and electronic equipment

Legal Events

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