Message transmission method and apparatus, and electronic device and storage medium
By analyzing transaction messages and processing them according to generation rules, the problem of flexibility and low efficiency in generating double-electric messages is solved, and efficient dual-electric messages generation is achieved that flexibly responds to different bank needs.
Patent Information
- Application Number
- PCT/CN2023/140446
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-12
- Filing Date
- 2023-12-20
- Publication Date
- 2025-03-20
AI Technical Summary
The flexibility and efficiency of double-electric message generation are low. The existing technology is mainly generated through hard-coded methods, which makes the code complex and difficult to flexibly respond to changes in requirements and demands of different banks.
By analyzing messages from the upstream trading system, obtaining transaction information and determining whether a dual-electric message needs to be generated. If necessary, obtaining the generation rules, processing messages according to the rules to generate the target dual-electric message, and sending them to the downstream trading system. This method meets the dual telegram generation requirements of different banks by configuring the generation rules rather than modifying the code.
It improves the flexibility and efficiency of dual-electric message generation, reduces code maintenance costs, and can quickly respond to the dual-electric message generation needs of different banks and channels.
Smart Images

Figure CN2023140446_20032025_PF_FP_ABST
Abstract
Description
Message transmission method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 12, 2023, with application number 2023111704163 and application name “Message Transmission Method, Device, Electronic Device and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the financial field or other fields, and in particular to a message transmission method, device, electronic device and storage medium. Background Art
[0003] The double telegram is a message set up by the SWIFT organization to verify the legitimacy and security of transactions, including instruction telegrams and position telegrams.
[0004] Currently, most of the dual telegrams are generated by hard coding, where the judgment conditions and generation methods of the dual telegrams are written in the code.
[0005] However, different banks have different requirements for dual telegrams. Using hard-coding to generate dual telegrams will make the entire code very complicated. If the bank's requirements for dual telegrams change, the code needs to be modified to generate the corresponding dual telegrams, which makes the flexibility and efficiency of dual telegram generation low.
[0006] Summary of the Invention
[0007] The present application provides a message transmission method, device, electronic device and storage medium to solve the problem of low flexibility and efficiency in dual-electrical message generation.
[0008] In a first aspect, the present application provides a message transmission method, comprising:
[0009] Parsing the message describing the target transaction from the upstream transaction system to obtain the transaction information of the message;
[0010] If it is determined according to the transaction information of the message that the outgoing message is a double-electronic message, then a generation rule of the double-electronic message is obtained;
[0011] Processing the message according to the generation rule to generate a transaction object of a target dual-electric message describing the target transaction, wherein the transaction object includes an indication electric message and a position electric message;
[0012] generating the target dual telegram message according to the transaction object of the target dual telegram message;
[0013] Send the target dual telegram message to the downstream transaction system.
[0014] Optionally, determining, based on the transaction information of the message, that the message is a dual-telegram message includes:
[0015] Obtaining the judgment rules and target parameters of the dual telegrams;
[0016] If it is determined based on the transaction information of the message that the message meets the judgment rule of the double-electronic message, then the outgoing message of the message is determined to be a double-electronic message; or,
[0017] If it is determined based on the transaction information of the message that the message does not comply with the judgment rule for a dual-electronic message, determining whether the transaction information of the message complies with at least one of the target parameters;
[0018] If the transaction information of the message meets at least one of the target parameters, it is determined that the outgoing message is a double-wire message.
[0019] Optionally, the obtaining of a generation rule for the dual telegram message includes:
[0020] According to the transaction information, obtain the upstream and downstream flow node information of the message;
[0021] According to the upstream and downstream flow node information, the generation rule of the dual telegram is obtained.
[0022] Optionally, processing the message according to the generation rule to generate a transaction object describing the target dual-telegram message of the target transaction includes:
[0023] According to the generation rule, obtaining at least one executable statement corresponding to the generation rule from a cache and / or a database;
[0024] A rule engine is called to execute the at least one executable statement to process the message and generate a transaction object of the dual-telegraphic message.
[0025] Optionally, if the generation rule lacks at least one corresponding executable statement, the method further includes:
[0026] Generate the corresponding target transaction object based on the current executable statement;
[0027] generating an object dual telegram according to the target transaction object;
[0028] The object double-telegram message is added to a message list to be processed, so that the user can complete the object double-telegram message through the message list.
[0029] Optionally, before parsing the message describing the target transaction from the upstream transaction system to obtain transaction information in the message, the method further includes:
[0030] Obtaining the judgment rule of the dual-telegram, the target parameter of the dual-telegram and the generation rule, and obtaining an executable statement configured according to the generation rule;
[0031] The judgment rule of the dual telegram, the target parameter of the dual telegram, the generation rule, and the execution statement are written into a cache and / or a database.
[0032] Optionally, the method further includes:
[0033] In response to the modification instruction, the judgment rule, the target parameter and the generation rule are adjusted, and the corresponding executable statement is corrected according to the adjusted generation rule.
[0034] In a second aspect, an embodiment of the present application provides a message transmission device, including:
[0035] A parsing module, configured to parse a message from an upstream transaction system describing a target transaction and obtain transaction information from the message;
[0036] an acquisition module, configured to acquire a generation rule for a double-electronic message if it is determined based on the transaction information of the message that the message is a double-electronic message;
[0037] A generating module, configured to process the message according to the generating rule to generate a transaction object of a target dual-electric message describing the target transaction, wherein the transaction object includes an indication electric message and a position electric message;
[0038] A construction module, configured to generate the target dual-telegram message according to the target dual-telegram message transaction object;
[0039] The transmission module is used to send the target dual-telegram message to the downstream transaction system.
[0040] In a third aspect, the present application provides an electronic device, comprising: a memory and a processor;
[0041] The memory is used to store computer-executable instructions; the processor is used to execute the computer-executable instructions stored in the memory to implement any method in the first aspect.
[0042] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer instructions are stored. The computer instructions are executed by a processor to implement any one of the methods in the first aspect.
[0043] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements any one of the methods in the first aspect.
[0044] The message transmission method, device, electronic device, and storage medium provided in this application parse a message describing a target transaction from an upstream trading system to obtain the transaction information of the message; if the message is determined to be a dual-telegram message based on the transaction information of the message, a generation rule for the dual-telegram message is obtained; the message is processed according to the generation rule to generate a target dual-telegram message describing the target transaction, the transaction object including an indication message and a position message; the target dual-telegram message is generated based on the transaction object of the target dual-telegram message; and the target dual-telegram message is sent to a downstream trading system. Generating dual-telegram messages through configured generation rules can meet different dual-telegram message generation requirements and is highly flexible. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] FIG1 is a schematic diagram of a scenario provided by an embodiment of the present application;
[0047] FIG2 is a flow chart of a message transmission method according to an embodiment of the present application;
[0048] FIG3 is a second flow chart of the message transmission method provided in an embodiment of the present application;
[0049] FIG4 is a schematic structural diagram of a message transmission device provided in an embodiment of the present application;
[0050] FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0051] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0052] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0053] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects, and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity or execution order, and words such as "first" and "second" do not necessarily mean different.
[0054] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0055] It should be noted that the message transmission method, device, electronic device and storage medium provided in this application can be used in the financial field, and can also be used in any field other than the financial field. This application does not limit the application field of the message transmission method, device, electronic device and storage medium.
[0056] To improve transaction security and accuracy, and ensure more reliable and efficient interbank transactions, SWIFT has implemented a dual-message system, splitting a single transaction into two messages: an instruction message and a position message. During a transaction, the instruction message is sent directly to the final recipient bank, while the position message flows through the transaction chain. The final recipient bank verifies the customer's information based on the instruction message and settles funds based on the clearing information from the position message, ensuring the legitimacy and security of the transaction.
[0057] During the transaction process, different participating banks have different requirements for dual-electricity, which vary depending on different receiving banks, different currencies, and different remittance channels.
[0058] In existing transaction systems, dual-electrical messages are mostly generated through hard-coding, where the conditions and generation methods for dual-electrical judgment of received messages according to the specific requirements of the branch are written into the code, and it is usually necessary to design a processing branch for each configuration.
[0059] First, for a globally integrated real-time payment system, each bank's dual-power requirements for specific beneficiary banks vary. This approach requires writing each configuration into a separate branch of code, making the entire codebase extremely complex and difficult to maintain. Furthermore, in actual production, if local business emergencies require dual-power requirements, the code must be modified, making it inflexible to meet emergency needs.
[0060] In view of this, the embodiments of the present application provide a message transmission method, device, electronic device and storage medium, and establish a mechanism based on configuration and cache characteristic values. When a transaction-related message is received, the transaction system can meet the dual-electronic message generation requirements of different national currencies, different receiving banks, and different channels through configuration without modifying the code. It has high flexibility. At the same time, when the dual-electronic generation requirements change, there is no need to modify the code, and the maintenance cost is low.
[0061] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0062] FIG1 is a schematic diagram of an application scenario of an embodiment of the present application. As shown in FIG1 , it includes: a first trading system 101 , a second trading system 102 , and a third trading system 103 .
[0063] The second trading system 102 is an upstream trading system of the first trading system 101 , and the third trading system 103 is a downstream trading system of the first trading system 101 .
[0064] Exemplarily, the upstream transaction system may be a node where transactions are conducted, such as an ATM, online banking, etc., and the downstream transaction system may include all transaction flow nodes, such as an agent bank, a receiving bank, etc.
[0065] When the first transaction system 101 receives a transaction-related message from the second transaction system 102, the first transaction system 101 may determine whether to generate a dual electronic message based on relevant content in the message, such as information on country, currency, correspondent bank, etc.
[0066] If it is determined that dual electronic messages need to be generated, the first transaction system 101 generates the dual electronic messages according to a preset message generation rule, wherein the message generation rule is related to a message flow node related to the transaction.
[0067] When the first transaction system 101 generates a dual electronic message, the dual electronic message may be sent to the third transaction system 103 .
[0068] It should be understood that the third transaction system 103 may include at least one transfer node.
[0069] For example, an overseas remittance is generated in online banking. When the bank corresponding to the online banking determines that a double telegram needs to be generated based on the remittance information (obtained in the message), the generated double telegram is transferred to the transaction node that processes the remittance, among which the instruction telegram is directly sent to the final receiving bank, and the position telegram is sent to the next node in the transaction chain.
[0070] The following describes in detail the message transmission method provided in the embodiment of the present application by taking the first transaction system in Figure 1 as an example.
[0071] FIG2 is a flow chart of a message transmission method according to an embodiment of the present application. As shown in FIG2 , the method includes the following steps:
[0072] S201. Parse a message from an upstream transaction system describing a target transaction to obtain transaction information from the message.
[0073] In the embodiment of the present application, a message is a data unit exchanged and transmitted in a network, i.e., a data block to be sent by a station at one time. A message contains the complete data information to be sent, and its length is very inconsistent, unlimited and variable.
[0074] The transaction information in the message may include a description of the remittance channel, remittance date, remittance currency, remittance amount, remitter, remitting bank, agent bank, beneficiary bank, etc. of the target transaction.
[0075] When receiving a message transferred from an upstream transaction system, the first transaction system may parse the message information to obtain transaction information of the message.
[0076] S202: If it is determined according to the transaction information of the message that the outgoing message is a double-electronic message, a generation rule for the double-electronic message is obtained.
[0077] In the embodiment of the present application, the first transaction system can determine whether it is necessary to produce a dual-electrical message based on the transaction information of the message.
[0078] For example, if the currency, agent bank and other parameters in the transaction information of the message are preset channels, currency, or agent bank, it can be determined that a dual telegraphic message needs to be generated.
[0079] When the first transaction system determines that a dual-electronic message needs to be generated, it can obtain a generation rule for converting the message into a dual-electronic message based on the transaction information of the message. The generation rule is used to represent the method of converting the message into a dual-electronic message.
[0080] For example, corresponding generation rules can be obtained based on transaction information. A credit chain consisting of multiple agent banks can be used to describe the subsequent flow path of the target transaction, for example, how many agents the target transaction will pass through to complete the transaction, which bank will be the recipient of the payment, and other information.
[0081] For example, a payment message may have to go through multiple transit banks before it finally reaches the beneficiary bank. For example, the message originates from Bank A, is forwarded by Bank B, and finally reaches Bank C. From the perspective of Bank A, Banks B and C form a credit chain.
[0082] The first transaction system may obtain corresponding generation rules from a preset rule library according to the credit chain composed of the agent banks.
[0083] S203: Process the message according to the generation rule to generate a transaction object of the target dual-electronic message describing the target transaction, where the transaction object includes the instruction electric message and the position electric message.
[0084] In the embodiment of the present application, the transaction object can be the main body of the dual telegram message, that is, the instruction telegram and the position telegram, including the core information describing the target dual telegram message.
[0085] When the first transaction system obtains the generation rule, it can execute the generation rule, process the message, and generate a transaction object for describing the target dual-telegraphic message of the target transaction.
[0086] S204: Generate a target dual-telegram message according to the target transaction object.
[0087] The first transaction system obtains the transaction object of the target transaction and composes a dual telegram based on the transaction information therein.
[0088] Exemplarily, the first transaction system may fill the acquired transaction information into a preset dual-telegram message template to form a dual-telegram message.
[0089] S205: Send the target dual telegram message to the downstream transaction system.
[0090] In an embodiment of the present application, when the first transaction system generates a double telegram, the instruction telegram in the double telegram can be sent to the final receiving bank of the transaction, and the position telegram in the double telegram can be sent to the next execution node of the transaction.
[0091] The message transmission method provided in the embodiment of the present application parses a message describing a target transaction from an upstream trading system to obtain the transaction information of the message; if the message is determined to be a dual-telegram message based on the transaction information of the message, a generation rule for the dual-telegram message is obtained; the message is processed according to the generation rule to generate a transaction object of a target dual-telegram message describing the target transaction, the transaction object including an indication message and a position message; a target dual-telegram message is constructed based on the target transaction object; and the target dual-telegram message is sent to the downstream trading system. Generating dual-telegram messages through the configured generation rule can meet different dual-telegram message generation requirements and is highly flexible.
[0092] Based on the above embodiment, the message transmission method provided in the embodiment of the present application is further described below in conjunction with Figure 3.
[0093] FIG3 is a second flow chart of the message transmission method provided in an embodiment of the present application. As shown in FIG3 , the method includes the following steps:
[0094] S301: Obtain relevant information for generating a dual-telegram message.
[0095] In the embodiment of the present application, the relevant information includes the judgment rules of the dual telegrams, the target parameters and generation rules of the dual telegrams, and the configuration of the execution statements according to the generation rules.
[0096] The dual-telegram message judgment rule and the dual-telegram message target parameter are used to judge whether a message needs to generate a dual-telegram message.
[0097] The execution statement is the execution statement corresponding to the generation rule, which is used to convert the message into the corresponding transaction object. Different generation rules can correspond to different execution statements. For example, the execution statement can be a Java statement.
[0098] The first transaction system can obtain from the outside the judgment rule of the dual-telegram, the target parameter and generation rule of the dual-telegram, and the execution statement configured according to the generation rule.
[0099] In some embodiments, when relevant parameters are acquired, the relevant parameters may be stored.
[0100] Exemplarily, the judgment rule of the dual telegram, the target parameter of the dual telegram, the generation rule, and the execution statement are written into the cache and / or the database.
[0101] In some embodiments, the first transaction system may further generate a corresponding mapping relationship table according to the generation rules and the corresponding execution statements, and store the mapping relationship table in a cache and / or a database.
[0102] In some embodiments, the first trading system may also modify relevant parameters.
[0103] Exemplarily, in response to a modification instruction, the judgment rules, target parameters, and generation rules are adjusted, and the corresponding executable statements are modified based on the adjusted generation rules. By adjusting these relevant parameters, matching can be performed quickly when dual telegram requirements change, providing high flexibility and reducing the complexity and risk of code writing.
[0104] S302: Parse the message describing the target transaction from the upstream transaction system to obtain transaction information in the message.
[0105] The specific implementation of S302 in the embodiment of the present application is similar to the specific implementation of S301 in the embodiment shown in Figure 2, and will not be repeated here.
[0106] S303: Determine whether the message is a dual-telegram message based on the transaction information of the message. If so, execute the step shown in S304; if not, execute the step shown in S308.
[0107] In the embodiment of the present application, the first transaction system can determine whether the outgoing message is a dual-telegram message according to the following method.
[0108] Exemplarily, a judgment rule for a dual-electric message and a target parameter of the dual-electric message are obtained; if the message is determined to meet the judgment rule for a dual-electric message based on transaction information of the message, the outgoing message is determined to be a dual-electric message.
[0109] Alternatively, if it is determined based on the transaction information of the message that the message does not meet the judgment rules for dual-electronic messages, it is determined whether the transaction information of the message meets at least one target parameter; if the transaction information of the message meets at least one target parameter, the message is determined to be a dual-electronic message.
[0110] For example, the judgment rule may be whether the transaction source is an overseas remittance, whether the transaction channel is an ATM, etc. If the first transaction system determines that any judgment rule is met based on the transaction information of the message, it may determine that the outgoing message is a dual-telegram message, i.e., a dual-telegram message needs to be generated.
[0111] If the transaction information in the message does not match any of the judgment rules, the first transaction system may determine whether the transaction information in the message meets at least one target parameter. For example, whether the currency is a preset dual-electronic currency, whether the correspondent bank is a correspondent bank that requires dual-electronic payment, etc. If the transaction information in the message meets at least one target parameter, the message is determined to be a dual-electronic payment message.
[0112] S304: Obtain a generation rule for a dual-telegram message.
[0113] In the embodiment of the present application, the first transaction system may obtain generation rules from a database or cache according to the parameters of the message.
[0114] Exemplarily, based on the transaction information, the upstream and downstream flow node information of the message is obtained; based on the upstream and downstream flow node information, the generation rules of the dual-telegram message are obtained.
[0115] The first transaction system may obtain corresponding execution rules from upstream and downstream flow node information of the message.
[0116] For example, the upstream and downstream flow node information may indicate that the transaction needs to flow through five agent banks. The first transaction system may refer to this transaction situation and obtain the generation rules corresponding to the five agent banks.
[0117] In some embodiments, the generation rule conditions mainly correspond to different intermediary banks in the creditor chain, mainly different numbers of intermediary banks, and the generation rules of the message will also be different. The first transaction system is pre-configured with generation rules corresponding to different numbers of intermediary banks.
[0118] S305: Process the message according to the generation rule to generate a transaction object of the dual-telegram message.
[0119] In the embodiment of the present application, the first transaction system can execute the generation rules to generate the transaction object of the dual telegram.
[0120] Exemplarily, according to the generation rule, at least one executable statement corresponding to the generation rule is obtained from the cache and / or database; the rule engine is called to execute the at least one executable statement to process the message and generate a transaction object of the dual-telegraphic message.
[0121] The rule engine, evolved from the inference engine, is a component embedded in the application that separates business decisions from application code and uses predefined semantic modules to write business decisions. It accepts data input, interprets business rules, and makes business decisions based on the business rules.
[0122] The first transaction system may obtain one or more corresponding executable statements according to the generation rule, call the rule engine to execute the one or more executable statements, and process the message to generate a transaction object of the dual-telegraphic message.
[0123] In some embodiments, some of the generated rules may lack corresponding executable statements. In this case, the first trading system may execute the existing executable statements.
[0124] Exemplarily, a corresponding target transaction object is generated according to the current executable statement; an object double telegram message is generated according to the target transaction object; and the object double telegram message is added to a message list to be processed so that the user can complete the object double telegram message through the message list.
[0125] Among them, due to the lack of some executable statements, the generated object dual-telegram message may be a message missing some information. The first transaction system can add the object dual-telegram message to the message list to be processed, and obtain the target dual-telegram message after the user completes the information.
[0126] S306: Generate a target dual telegram message according to the transaction object of the dual telegram message.
[0127] S307: Send the target dual telegram message to the downstream transaction system.
[0128] The specific implementation methods shown in S306 and S307 in the embodiment of the present application are similar to the specific implementation methods of S204 and S205 in the embodiment shown in Figure 2, and will not be repeated here.
[0129] In some embodiments, after receiving a transaction message from an upstream system, the first transaction system generates a Java transaction object and parses the message information into attribute values corresponding to the Java transaction object. These attributes include the transaction source channel, remitter, remittance account number, remittance date, remittance currency, remittance amount, intermediary bank 1, intermediary bank 2, intermediary bank 3, etc., beneficiary bank, beneficiary, and beneficiary account number.
[0130] Based on the transaction information stored in the transaction object, it is determined whether any of the dual-electronic message judgment rules are matched. If so, the corresponding dual-electronic message is generated according to the dual-electronic relationship configured in the rule. If no judgment rules are matched, the target parameters are checked next, for example, whether the dual-electronic target parameters of currency or country are matched. If so, it indicates that the report is a dual-electronic message.
[0131] If the report is to be double-electronic, the corresponding double-electronic generation rule is found based on the length of the creditor chain in the transaction message. Two Java transaction objects are generated: one for payment and one for indication. The corresponding attribute values are generated based on the transaction information generation rules configured in the rule. The double-electronic message is constructed based on the attribute values of the two transaction objects.
[0132] S308. Send a message to the downstream transaction system.
[0133] In the embodiment of the present application, the first transaction system forwards the message to the next processing node.
[0134] The message transmission method provided in the embodiments of the present application can determine whether a dual-telegraphic message needs to be generated when processing a message, and automatically generate the dual-telegraphic message. This enhances the automatic processing capabilities of the transaction system, reduces the risks of manual processing, and is highly consistent with the efficiency requirements of real-time clearing systems, increasing user satisfaction. It can also flexibly respond to different dual-telegraphic issuance requirements. Dual-telegraphic judgment configurations, dual-telegraphic message generation rule conditions, and rule execution can be added, modified, and deleted through front-end interface configuration, eliminating the need to modify and maintain complex code. This not only expands system functionality but also improves system flexibility and configurability.
[0135] An embodiment of the present application also provides a message transmission device.
[0136] FIG4 is a schematic diagram of the structure of a message transmission device 40 provided in an embodiment of the present application. As shown in FIG4 , the device includes:
[0137] The parsing module 401 is used to parse the message describing the target transaction from the upstream transaction system to obtain the transaction information of the message.
[0138] The acquisition module 402 is configured to acquire a generation rule for a double-electronic message if it is determined based on the transaction information of the message that the outgoing message is a double-electronic message.
[0139] The generating module 403 is used to process the message according to the generating rules and generate a transaction object of the target dual-electric message describing the target transaction, wherein the transaction object includes the indication electric and the position electric.
[0140] The construction module 404 is used to generate a target dual-telegram message according to the target transaction object.
[0141] The transmission module 405 is used to send the target dual-telegram message to the downstream transaction system.
[0142] Optionally, the acquisition module 402 is further configured to acquire a double-telegram message judgment rule and a double-telegram message target parameter; if the message is determined to meet the double-telegram message judgment rule based on the transaction information of the message, the outgoing message is determined to be a double-telegram message.
[0143] Alternatively, if it is determined based on the transaction information of the message that the message does not meet the judgment rules for dual-electronic messages, it is determined whether the transaction information of the message meets at least one target parameter; if the transaction information of the message meets at least one target parameter, the message is determined to be a dual-electronic message.
[0144] Optionally, the generation module 403 is further configured to obtain upstream and downstream flow node information of the message based on the transaction information; and obtain generation rules for the dual-telegram message based on the upstream and downstream flow node information.
[0145] Optionally, the generation module 403 is further used to obtain at least one executable statement corresponding to the generation rule from the cache and / or database according to the generation rule; call the rule engine to execute at least one executable statement to process the message and generate a transaction object of the dual-telegraphic message.
[0146] Optionally, the generation module 403 is further used to generate a corresponding target transaction object based on the current executable statement; generate an object double-telegram message based on the target transaction object; and add the object double-telegram message to a message list to be processed so that the user can complete the object double-telegram message through the message list.
[0147] The acquisition module 402 is also used to obtain the judgment rules, target parameters and generation rules of the dual telegrams, and to obtain executable statements configured according to the generation rules; and write the judgment rules, target parameters, generation rules and execution statements of the dual telegrams into the cache and / or database.
[0148] Optionally, the parsing module 401 is further configured to adjust the judgment rules, target parameters, and generation rules in response to the modification instruction, and to modify the corresponding executable statements according to the adjusted generation rules.
[0149] The message transmission device provided in the embodiment of the present application can execute the fund transaction processing method provided in any of the above embodiments. Its principles and technical effects are similar and will not be repeated here.
[0150] An embodiment of the present application also provides an electronic device.
[0151] FIG5 is a schematic structural diagram of an electronic device 50 provided in an embodiment of the present application, as shown in FIG5 , including:
[0152] Processor 501.
[0153] The memory 502 is used to store executable instructions of the terminal device, for example, computer-executable instructions.
[0154] The memory 502 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0155] The processor 501 is used to execute the computer-executable instructions stored in the memory 502 to implement the technical solution of the message transmission method embodiment described in the above method embodiment.
[0156] The processor 501 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0157] Optionally, the electronic device 50 may further include a communication interface 503, so that it can communicate and interact with an external device through the communication interface 503. The external device may be, for example, a user terminal (e.g., a mobile phone, a tablet). In a specific implementation, if the communication interface 503, the memory 502, and the processor 501 are implemented independently, the communication interface 503, the memory 502, and the processor 501 may be interconnected via a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but this does not mean that there is only one bus or one type of bus.
[0158] Optionally, in a specific implementation, if the communication interface 503, the memory 502 and the processor 501 are integrated on a chip, the communication interface 503, the memory 502 and the processor 501 can complete communication through an internal interface.
[0159] In an embodiment of the present application, a computer-readable storage medium is also provided, in which computer instructions are stored. When the computer instructions are executed by a processor, the technical solution of the above-mentioned message transmission method embodiment is implemented. The implementation principle and technical effects are similar and will not be repeated here.
[0160] In one possible implementation, a computer-readable medium may include random access memory (RAM), read-only memory (ROM), compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium designed to carry or store the desired program code in the form of instructions or data structures and accessible by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies (such as infrared, radio and microwave) are used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include optical disc, laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks generally reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0161] A computer program product is also provided in an embodiment of the present application, including a computer program. When the computer program is executed by a processor, the technical solution of the above-mentioned message transmission method embodiment is implemented. Its implementation principle and technical effects are similar and will not be repeated here.
[0162] In the specific implementation of the above-mentioned terminal device or server, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.
[0163] Those skilled in the art will appreciate that all or part of the steps of any of the above method embodiments may be performed by hardware associated with program instructions. The aforementioned instructions may be stored in a computer-readable storage medium, and when the program is executed, all or part of the steps of the above method embodiments are performed.
[0164] If the technical solution of the present application is implemented in the form of software and sold or used as a product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium and includes a computer program or several instructions. The computer software product enables a computer device (which can be a personal computer, server, network device, or similar electronic device) to perform all or part of the steps of the embodiment method of the present application.
[0165] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.
[0166] It should be further noted that, although the various steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps may be performed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution order of these sub-steps or stages is not necessarily to be performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0167] It should be understood that the above-described device embodiments are merely illustrative, and the device of the present application may also be implemented in other ways. For example, the division of units / modules in the above-described embodiments is merely a logical functional division, and actual implementations may employ other division methods. For example, multiple units, modules, or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0168] In addition, unless otherwise specified, the functional units / modules in the various embodiments of the present application may be integrated into a single unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The aforementioned integrated units / modules may be implemented in the form of hardware or software program modules.
[0169] If the integrated unit / module is implemented in hardware, the hardware may be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC. Unless otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as resistive random access memory (RRAM), dynamic random access memory (DRAM), static random access memory (SRAM), enhanced dynamic random access memory (EDRAM), high-bandwidth memory (HBM), hybrid memory cube (HMC), etc.
[0170] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0171] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a particular embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined in any way. To keep the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0172] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0173] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A message transmission method, characterized in that: The method comprises: Parsing a message describing a target transaction from an upstream transaction system to obtain transaction information of the message; If it is determined according to the transaction information of the message that the outgoing message of the message is a double-electric message, then a generation rule of the double-electric message is obtained; Processing the message according to the generation rule to generate a transaction object of a target dual-electric message describing the target transaction, wherein the transaction object includes an indication electric and a position electric; According to the transaction object of the target dual telegram message, the target dual telegram message is formed; The target dual telegram message is sent to a downstream transaction system.
2. The method according to claim 1, characterized in that The step of determining that the message is a dual-electronic message according to the transaction information of the message comprises: Obtaining the judgment rules of the dual telegrams and the target parameters of the dual telegrams; If it is determined based on the transaction information of the message that the message meets the judgment rule of the double-electric message, then the outgoing message of the message is determined to be a double-electric message; or, If it is determined based on the transaction information of the message that the message does not meet the judgment rule of the dual-electric message, then determining whether the transaction information of the message meets at least one of the target parameters; If the transaction information of the message meets at least one of the target parameters, it is determined that the outgoing message of the message is a double-wire message.
3. The method according to claim 1 or 2, characterized in that: The step of obtaining the generation rule of the dual telegram message comprises: According to the transaction information, obtaining the upstream and downstream flow node information of the message; According to the upstream and downstream flow node information, the generation rule of the dual telegram message is obtained.
4. The method according to any one of claims 1 to 3, characterized in that The step of processing the message according to the generation rule to generate a transaction object describing the target dual-wire message of the target transaction includes: According to the generation rule, obtaining at least one executable statement corresponding to the generation rule from a cache and / or a database; The rule engine is called to execute the at least one executable statement to process the message and generate a transaction object of the dual-electronic message.
5. The method according to claim 4, characterized in that If the generation rule lacks at least one corresponding executable statement, the method further includes: Generate the corresponding target transaction object according to the current executable statement; Generate an object dual telegram according to the target transaction object; The object double-telegram message is added to a message list to be processed, so that the user can complete the object double-telegram message through the message list.
6. The method according to any one of claims 1 to 5, characterized in that Before parsing the message describing the target transaction from the upstream transaction system to obtain the transaction information of the message, the method further includes: Obtaining the judgment rule of the dual-electric message, the target parameter of the dual-electric message and the generation rule, and obtaining the executable statement configured according to the generation rule; The judgment rule of the dual telegram, the target parameter of the dual telegram, the generation rule, and the execution statement are written into a cache and / or a database.
7. The method according to claim 6, characterized in that The method further comprises: In response to the modification instruction, the judgment rule, the target parameter and the generation rule are adjusted, and the corresponding executable statement is corrected according to the adjusted generation rule.
8. A message transmission device, characterized in that: include: A parsing module, used to parse the message describing the target transaction from the upstream transaction system to obtain the transaction information of the message; An acquisition module, configured to acquire a generation rule of a double-electric message if it is determined that the message is a double-electric message according to the transaction information of the message; A generating module, used for processing the message according to the generating rule, generating a transaction object of a target dual-electric message describing the target transaction, wherein the transaction object includes an indication electric and a position electric; A construction module, used for constructing the target dual telegram message according to the transaction object of the target dual telegram message; The transmission module is used to send the target dual-telegram message to the downstream transaction system.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Dual-message matching control method and device, computer equipment and medium
CN114862553A
SWIFT message processing method and device, electronic equipment and storage medium
CN116527791A
Message transmission method and device, electronic equipment and storage medium
CN117255139A
Remittance instruction telegraphic message control system
JP2012027781A