Message transmission method and device, electronic equipment and storage medium
By parsing transaction information to obtain generation rules and using configuration and caching feature value mechanisms to generate dual-electronic messages, the problem of low flexibility and efficiency in dual-electronic message generation in existing technologies is solved, and automated dual-electronic message generation is realized to flexibly meet the needs of different banks.
Patent Information
- Application Number
- CN202311170416.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-09-12
AI Technical Summary
In existing technologies, the generation of dual-electronic messages is less flexible and efficient, making it difficult to meet the personalized needs of different banks. Furthermore, the code is complex to maintain and cannot flexibly respond to changes in requirements.
By parsing transaction information to obtain generation rules, dual-electronic messages are generated using configuration and caching feature value mechanisms, avoiding hard coding and supporting flexible configuration and rapid adjustment.
It enables the automatic generation of dual-electronic messages based on different transaction requirements, improving the flexibility and efficiency of generation, reducing code maintenance costs, and enhancing the automatic processing capabilities of the transaction system.
Smart Images

Figure CN117255139B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the financial field or other fields, and in particular to a message transmission method, apparatus, electronic device and storage medium. Background Technology
[0002] Dual telegrams are a type of message set up by the SWIFT organization to verify the legitimacy and security of transactions, including instruction telegrams and position telegrams.
[0003] Currently, most dual-signal messages are generated by hard-coding, where the judgment conditions and generation methods for dual-signal messages are written in the code.
[0004] However, different banks have different requirements for dual-electronic messages. Using hard-coding to generate dual-electronic messages would make the entire code very complex. If the bank changes its requirements for dual-electronic messages, the code needs to be modified to generate the corresponding dual-electronic messages, which makes the flexibility and efficiency of dual-electronic message generation low. Summary of the Invention
[0005] This application provides a message transmission method, apparatus, electronic device, and storage medium to solve the problems of low flexibility and efficiency in generating dual-message messages.
[0006] In a first aspect, this application provides a message transmission method, including:
[0007] Parse the message from the upstream transaction system that describes the target transaction to obtain the transaction information of the message;
[0008] If the message is determined to be a dual-electronic message based on the transaction information of the message, then the generation rule of the dual-electronic message is obtained.
[0009] The message is processed according to the generation rules to generate a transaction object describing the target dual-signal message of the target transaction. The transaction object includes an instruction signal and a position signal.
[0010] The target dual-electronic message is generated based on the transaction object of the target dual-electronic message;
[0011] Send the target dual-electronic message to the downstream transaction system.
[0012] Optionally, determining that the message is sent as a dual-electronic message based on the transaction information of the message includes:
[0013] Obtain the judgment rules and target parameters of the dual-email message;
[0014] If, based on the transaction information of the message, it is determined that the message conforms to the judgment rules for dual-electronic messages, then the message is determined to be a dual-electronic message; or,
[0015] If it is determined based on the transaction information of the message that the message does not conform to the judgment rule of dual-electronic message, then it is determined whether the transaction information of the message conforms to at least one of the target parameters;
[0016] If the transaction information of the message meets at least one of the target parameters, then the message is determined to be a dual-electronic message.
[0017] Optionally, obtaining the generation rules for the dual-message includes:
[0018] Based on the transaction information, obtain the upstream and downstream flow node information of the message;
[0019] Based on the upstream and downstream flow node information, the generation rules for the dual-electronic message are obtained.
[0020] Optionally, the step of processing the message according to the generation rule to generate the transaction object of the dual-electronic message includes:
[0021] According to the generation rule, at least one executable statement corresponding to the generation rule is obtained from the cache and / or database;
[0022] The rule engine is invoked to execute at least one executable statement to process the message and generate the transaction object of the dual-electronic message.
[0023] Optionally, if the generation rule is missing at least one corresponding executable statement, the method further includes:
[0024] Generate the corresponding target transaction object based on the current executable statements;
[0025] Generate an object dual-email message based on the target transaction object;
[0026] The object dual-signal message is added to the message list to be processed, so that the user can complete the object dual-signal message through the message list.
[0027] Optionally, before parsing the message to be processed and obtaining the parameter information of the message, the method further includes:
[0028] Obtain the judgment rules of the dual-electronic message, the target parameters of the dual-electronic message, and the generation rules; and obtain the executable statement configured according to the generation rules.
[0029] The judgment rules for the dual-electronic message, the target parameters of the dual-electronic message, the generation rules, and the execution statements are written into the cache and / or database.
[0030] Optionally, the method further includes:
[0031] 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.
[0032] Secondly, embodiments of this application provide a message transmission apparatus, including:
[0033] The parsing module is used to parse the message describing the target transaction from the upstream transaction system to obtain the transaction information of the message;
[0034] The acquisition module is used to acquire the generation rules of dual-electronic messages if it is determined from the transaction information of the message that the message is sent as a dual-electronic message.
[0035] The generation module is used to process the message according to the generation rules and generate a transaction object describing the target dual-signal message of the target transaction, wherein the transaction object includes an instruction signal and a position signal;
[0036] A construction module is used to generate the target dual-electronic message based on the target dual-electronic message transaction object;
[0037] The transmission module is used to send the target dual-electronic message to the downstream transaction system.
[0038] Thirdly, this application provides an electronic device, including: a memory and a processor;
[0039] The memory is used to store computer instructions; the processor is used to execute the computer instructions stored in the memory to implement the method of any one of the first aspects.
[0040] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method of any of the first aspects.
[0041] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method of any one of the first aspects.
[0042] The message transmission method, apparatus, electronic device, and storage medium provided in this application parse messages from an upstream trading system describing a target transaction to obtain transaction information from the messages. If the transaction information of the messages determines that the sent message is a dual-signal message, then the generation rules for the dual-signal message are obtained. The messages are processed according to the generation rules to generate a transaction object describing the target dual-signal message, the transaction object including an instruction signal and a position signal. The target dual-signal message is generated according to the transaction object of the target dual-signal message. The target dual-signal message is then sent to the downstream trading system. By generating dual-signal messages through configured generation rules, different dual-signal message generation requirements can be met, providing high flexibility. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0044] Figure 1 This is a schematic diagram of a scenario provided for an embodiment of this application;
[0045] Figure 2 Flowchart of the message transmission method provided in the embodiments of this application Figure 1 ;
[0046] Figure 3 Flowchart of the message transmission method provided in the embodiments of this application Figure 2 ;
[0047] Figure 4 This is a schematic diagram of the structure of the message transmission device provided in the embodiments of this application;
[0048] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0049] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0050] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0051] In the embodiments of this application, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect, without limiting their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" do not necessarily imply that they are different.
[0052] 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0053] It should be noted that the message transmission method, apparatus, electronic device and storage medium provided in this application can be used in the financial field, or in any field other than the financial field. This application does not limit the application field of the message transmission method, apparatus, electronic device and storage medium.
[0054] To enhance transaction security and accuracy, and ensure more reliable and efficient interbank transactions, SWIFT has implemented dual-message messaging, dividing a single transaction into two parts: an instruction message and a position message. During the transaction, the instruction message is sent directly to the final receiving bank, while the position message circulates within the transaction chain. The final receiving bank verifies the customer's information based on the instruction message and simultaneously settles funds according to the clearing information in the position message, thus ensuring the legality and security of the transaction.
[0055] During the transaction, the requirements for dual electronic systems vary among different participating banks, depending on the receiving bank, currency, and remittance channel.
[0056] In existing transaction systems, dual-signal messages are mostly generated through hard coding. The conditions and generation methods for dual-signal judgment of received messages according to the specific requirements of each branch are written in the code, and usually a processing branch needs to be designed for each configuration.
[0057] Hard-coding this approach has several drawbacks. First, for a globally integrated real-time payment system, where each bank has different requirements for dual-signal functionality for specific receiving banks, this approach would require writing a separate branch of code for each configuration. This would result in extremely complex and difficult-to-maintain code. Furthermore, in actual production, if local business needs necessitate generating dual-signal functionality in an emergency, the code would need to be modified, making it inflexible for meeting emergency requirements.
[0058] In view of this, embodiments of this application provide a message transmission method, apparatus, electronic device, and storage medium, establishing a mechanism based on configuration and cached feature values. When receiving transaction-related messages, the 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. This provides high flexibility, and the system does not require code modification when dual-electronic message generation requirements change, resulting in low maintenance costs.
[0059] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0060] Figure 1 This is a schematic diagram illustrating an application scenario of an embodiment of this application, such as... Figure 1 As shown, it includes: a first trading system 101, a second trading system 102, and a third trading system 103.
[0061] Among them, the second trading system 102 is the upstream trading system of the first trading system 101, and the third trading system 103 is the downstream trading system of the first trading system 101.
[0062] For example, the upstream transaction system can be the node that conducts the transaction, such as an ATM or online banking, while the downstream transaction system can include all the flow nodes of the transaction, such as an agent bank or a receiving bank.
[0063] When the first transaction system 101 receives a transaction-related message from the second transaction system 102, the first transaction system 101 can determine whether to generate a dual-electronic message based on the relevant content in the message, such as information about the country, currency, and agent bank.
[0064] If it is determined that a dual-electronic message needs to be generated, the first transaction system 101 generates the dual-electronic message according to the preset message generation rules, wherein the message generation rules are related to the message flow nodes related to the transaction.
[0065] When the first transaction system 101 generates the dual-electronic message, it can send the dual-electronic message to the third transaction system 103.
[0066] It should be understood that the third transaction system 103 may include at least one transfer node.
[0067] For example, when an overseas remittance is generated through online banking, the bank corresponding to the online banking determines that a dual-electronic message needs to be generated based on the remittance information (obtained from the message). The generated dual-electronic message is then transferred to the transaction node that processes the remittance. The instruction message is sent directly to the final receiving bank, and the position message is sent to the next node in the transaction chain.
[0068] The following is based on Figure 1 Taking the first transaction system as an example, the message transmission method provided in this application embodiment will be described in detail.
[0069] Figure 2 Flowchart of the message transmission method provided in the embodiments of this application Figure 1 ,like Figure 2 As shown, it includes the following steps:
[0070] S201. Parse the message from the upstream transaction system describing the target transaction to obtain the transaction information of the message.
[0071] In this embodiment, a message is a data unit exchanged and transmitted in a network, that is, a data block that a station sends at one time. A message contains complete data information to be sent, and its length varies greatly, with no limit and variable length.
[0072] 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, and receiving bank for the target transaction.
[0073] When the first transaction system receives a message flowing from the upstream transaction system, it can parse the message information to obtain the transaction information of the message.
[0074] S202. If it is determined that the message is a dual-electronic message based on the transaction information of the message, then obtain the generation rules of the dual-electronic message.
[0075] In this embodiment of the application, the first transaction system can determine whether it is necessary to generate a dual-electronic message based on the transaction information of the message.
[0076] For example, if the currency, or agent bank, or other parameters in the transaction information of the message are preset channels, or currencies, or agent banks, it can be determined that a dual-electronic message needs to be generated.
[0077] When the first transaction system determines that a dual-electronic message needs to be generated, it can obtain the generation rules for converting the message into a dual-electronic message based on the transaction information of the message. The generation rules are used to characterize the method of converting the message into a dual-electronic message.
[0078] For example, the corresponding generation rules can be obtained based on the transaction information. The lender chain, composed of multiple agent banks, can be used to describe the subsequent flow path of the target transaction, such as how many agents the target transaction will go through before completion, and which bank will receive the payment.
[0079] For example, a payment message may have to pass through multiple intermediary banks before finally reaching the receiving bank. For instance, the message may originate from Bank A, be forwarded by Bank B, and finally reach Bank C. From Bank A's perspective, Banks B and C constitute a lending chain.
[0080] The first transaction system can obtain the corresponding generation rules from the preset rule base based on the situation of the lending chain composed of agent banks.
[0081] S203. Process the message according to the generation rules to generate a transaction object describing the target dual-signal message of the target transaction, wherein the transaction object includes an instruction signal and a position signal.
[0082] In this embodiment of the application, the transaction object can be the body of the dual-electronic message, namely the instruction message and the position message, including the core information describing the target dual-electronic message.
[0083] 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-electronic message of the target transaction.
[0084] S204. Generate the target dual-electronic message based on the target transaction object.
[0085] The first transaction system obtains the transaction object of the target transaction and constructs the dual-message based on the transaction information therein.
[0086] For example, the first transaction system can fill the acquired transaction information into a preset dual-electronic message template to assemble the dual-electronic message.
[0087] S205. Send the target dual-electronic message to the downstream transaction system.
[0088] In this embodiment of the application, when the first transaction system generates a dual telegram, it can send the instruction telegram in the dual telegram to the final receiving bank of the transaction, and send the position telegram in the dual telegram to the next execution node of the transaction.
[0089] The message transmission method provided in this application provides the following steps: First, by parsing a message from an upstream trading system describing a target transaction, transaction information is obtained. If the transaction information indicates that the message is a dual-signal message, a generation rule for the dual-signal message is acquired. The message is then processed according to the generation rule to generate a transaction object describing the target dual-signal message, whereby the transaction object includes an instruction signal and a position signal. Based on the target transaction object, the target dual-signal message is constructed. Finally, the target dual-signal message is sent to the downstream trading system. By generating dual-signal messages using configured generation rules, different dual-signal message generation requirements can be met, offering high flexibility.
[0090] Based on the above embodiments, the following is combined with Figure 3 The message transmission method provided in the embodiments of this application will be further described.
[0091] Figure 3 Flowchart of the message transmission method provided in the embodiments of this application Figure 2 ,like Figure 3 As shown, it includes the following steps:
[0092] S301. Obtain relevant information for generating dual telegrams.
[0093] In this embodiment of the application, the relevant information includes the judgment rules for the dual-email message, the target parameters of the dual-email message, and the generation rules, as well as configuring the execution statement according to the generation rules.
[0094] The judgment rules and target parameters of the dual-electronic message are used to determine whether the message needs to generate a dual-electronic message.
[0095] The execution statement is the execution statement corresponding to the generation rule, 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.
[0096] The first transaction system can obtain from external sources the judgment rules of the dual-electronic message, the target parameters of the dual-electronic message, and the generation rules, as well as the execution statement configured according to the generation rules.
[0097] In some embodiments, when the relevant parameters are obtained, they can be stored.
[0098] For example, the judgment rules for the dual-electronic message, the target parameters of the dual-electronic message, the generation rules, and the execution statement are written into the cache and / or database.
[0099] In some embodiments, the first transaction system may also generate a corresponding mapping table based on the generation rules and the corresponding execution statements, and store the mapping table in the cache and / or database.
[0100] In some embodiments, the first transaction system may also modify the relevant parameters.
[0101] For example, in response to a 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. By adjusting the above-mentioned parameters, matching can be performed quickly when the requirements of dual-email messages change, providing high flexibility. This reduces the complexity and risk of code writing.
[0102] S302. Parse the message from the upstream transaction system describing the target transaction to obtain the transaction information of the message.
[0103] The specific implementation of S302 in this embodiment is the same as Figure 2 The specific implementation of S301 in the illustrated embodiment is similar and will not be described again here.
[0104] S303. Determine whether the message is a dual-electronic message based on the transaction information of the message. If yes, proceed to step S304; otherwise, proceed to step S308.
[0105] In this embodiment of the application, the first transaction system can determine whether the message is a dual-electronic message according to the following method.
[0106] For example, the judgment rules for dual-electronic messages and the target parameters of dual-electronic messages are obtained; if it is determined that the message conforms to the judgment rules for dual-electronic messages based on the transaction information of the message, then the message is determined to be a dual-electronic message.
[0107] Alternatively, if it is determined based on the transaction information of the message that the message does not conform to the judgment rules for dual-electronic messages, then it is determined whether the transaction information of the message conforms to at least one of the target parameters; if the transaction information of the message conforms to at least one of the target parameters, then it is determined that the message is sent as a dual-electronic message.
[0108] For example, the judgment rule could be whether the transaction source is an overseas remittance, or whether the transaction channel is an ATM, etc. If the first transaction system determines that the message meets any of the judgment rules based on the transaction information of the message, then it can determine that the message is a dual-electronic message, that is, a dual-electronic message needs to be generated.
[0109] If the transaction information of the message does not match any of the judgment rules, the first transaction system can determine whether the transaction information of the message meets at least one of the target parameters. For example, whether the currency is a preset dual-electronic currency, whether the agent bank is a preset agent bank that needs to send dual-electronic messages, etc. If the transaction information of the message meets at least one of the target parameters, then the message is determined to be a dual-electronic message.
[0110] S304. Obtain the generation rules for the dual-message.
[0111] In this embodiment of the application, the first transaction system can obtain the generation rule from the database or cache according to the parameters of the message.
[0112] For example, 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 rule of the dual-electronic message is obtained.
[0113] The first transaction system can obtain the corresponding execution rules from the upstream and downstream flow node information of the message.
[0114] For example, the upstream and downstream transfer node information can indicate that this transaction needs to be transferred through 5 agent banks. The first transaction system can refer to this transaction situation to obtain the generation rules corresponding to the 5 agent banks.
[0115] In some implementation examples, the conditions for generating rules mainly correspond to different intermediary banks in the lending chain. The number of intermediary banks affects the rules for generating messages. The first transaction system pre-configures generation rules corresponding to different numbers of intermediary banks.
[0116] S305. According to the generation rules, process the message to generate the transaction object of the dual-electronic message.
[0117] In this embodiment of the application, the first transaction system can execute the generation rules to generate the transaction object of the dual-email message.
[0118] For example, 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 invoked to execute the at least one executable statement to process the message and generate the transaction object of the dual-electronic message.
[0119] The rule engine, evolved from the inference engine, is a component embedded in the application. It 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 those rules.
[0120] The first transaction system can obtain one or more executable statements according to the generation rules, call the rule engine to execute the one or more executable statements, and process the message to generate the transaction object of the dual-electronic message.
[0121] In some embodiments, the generated rules may have some rules lacking corresponding executable statements. In such cases, the first transaction system can execute the existing executable statements.
[0122] For example, a corresponding target transaction object is generated based on the current executable statement; an object dual-signal message is generated based on the target transaction object; the object dual-signal message is added to the message list to be processed, so that the user can complete the object dual-signal message through the message list.
[0123] Since some executable statements are missing, the generated object dual-electronic message may be a message with missing information. The first transaction system can add the object dual-electronic message to the message list to be processed. After the user completes the information, the target dual-electronic message is obtained.
[0124] S306. Generate the target dual-electronic message based on the transaction object of the dual-electronic message.
[0125] S307. Send the target dual-electronic message to the downstream transaction system.
[0126] The specific implementation methods shown in S306 and S307 of this application embodiment are the same as those shown in the embodiment of this application. Figure 2 The specific implementations of S204 and S205 in the illustrated embodiments are similar and will not be described again here.
[0127] In some embodiments, after receiving a transaction message from the upstream system, the first transaction system generates a Java transaction object and parses the message information into the corresponding attribute values of the Java transaction object. These attributes include the transaction's source channel, remitter, remitter account number, remittance date, remittance currency, remittance amount, intermediary bank 1, intermediary bank 2, intermediary bank 3..., receiving bank, recipient, and recipient account number.
[0128] Based on the transaction information stored in the trading partner, it is determined whether the dual-signal message judgment rule is matched. If matched, the corresponding dual-signal message is generated according to the dual-signal relationship configured in the rule. If no judgment rule is matched, the target parameters are checked next, such as whether the dual-signal target parameters for currency or country are matched. If matched, it indicates that the message should be dual-signal.
[0129] If the transaction message needs to be converted to a dual-transaction message, then based on the length of the credit chain in the transaction message, the corresponding dual-transaction generation rule is found, and two Java transaction objects are generated: one for payment and one for indication. The corresponding attribute values are then generated according to the transaction information generation rules configured in the rules. Finally, a dual-transaction message is constructed based on the attribute values of the two transaction objects.
[0130] S308. Send the message to the downstream transaction system.
[0131] In this embodiment of the application, the first transaction system forwards the message to the next processing node.
[0132] The message transmission method provided in this application can determine whether a dual-signal message needs to be generated during message processing, and can automatically generate dual-signal messages. This enhances the automated processing capability of the trading system, reduces the risk of manual processing, perfectly meets the high-efficiency requirements of real-time clearing systems, and increases user satisfaction. It can also flexibly handle different dual-signal issuance needs; the addition, modification, and deletion of dual-signal judgment configurations and dual-signal message generation rules can be achieved through front-end interface configuration, without the need to modify and maintain complex code. This not only expands the system's functionality but also improves its flexibility and configurability.
[0133] This application also provides a message transmission device.
[0134] Figure 4 This is a schematic diagram of the structure of the message transmission device 40 provided in the embodiments of this application, as shown below. Figure 4 As shown, it includes:
[0135] 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.
[0136] The acquisition module 402 is used to acquire the generation rules of the dual-electronic message if it is determined from the transaction information of the message that the message is sent as a dual-electronic message.
[0137] The generation module 403 is used to process the message according to the generation rules and generate a transaction object describing the target dual-electronic message of the target transaction. The transaction object includes an instruction signal and a position signal.
[0138] The construction module 404 is used to generate the target dual-electronic message based on the target transaction object.
[0139] The transmission module 405 is used to send the target dual-electronic message to the downstream transaction system.
[0140] Optionally, the acquisition module 402 is further configured to acquire the judgment rules for dual-electronic messages and the target parameters of dual-electronic messages; if it is determined based on the transaction information of the message that the message conforms to the judgment rules for dual-electronic messages, then the message is determined to be sent as a dual-electronic message.
[0141] Alternatively, if it is determined based on the transaction information of the message that the message does not conform to the judgment rules for dual-electronic messages, then it is determined whether the transaction information of the message conforms to at least one of the target parameters; if the transaction information of the message conforms to at least one of the target parameters, then it is determined that the message is sent as a dual-electronic message.
[0142] Optionally, the generation module 403 is further configured to obtain the upstream and downstream flow node information of the message based on the transaction information; and obtain the generation rules of the dual-electronic message based on the upstream and downstream flow node information.
[0143] Optionally, the generation module 403 is further configured 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 the at least one executable statement to process the message and generate the transaction object of the dual-electronic message.
[0144] Optionally, the generation module 403 is further configured to generate a corresponding target transaction object based on the current executable statement; generate an object dual-signal message based on the target transaction object; and add the object dual-signal message to the message list to be processed, so that the user can complete the object dual-signal message through the message list.
[0145] The acquisition module 402 is further configured to acquire the judgment rule of the dual-signal message, the target parameters of the dual-signal message, and the generation rule, and to acquire the executable statement configured according to the generation rule; and to write the judgment rule of the dual-signal message, the target parameters of the dual-signal message, the generation rule, and the executable statement into the cache and / or database.
[0146] Optionally, the parsing module 401 is further configured to adjust the judgment rule, the target parameter and the generation rule in response to the modification instruction, and to correct the corresponding executable statement according to the adjusted generation rule.
[0147] The message transmission device provided in this application embodiment can execute the fund transaction processing method provided in any of the above embodiments. Its principle and technical effect are similar, and will not be described again here.
[0148] This application also provides an electronic device.
[0149] Figure 5 This is a schematic diagram of the structure of the electronic device 50 provided in the embodiments of this application, such as... Figure 5 As shown, it includes:
[0150] Processor 501.
[0151] Memory 502 is used to store executable instructions for the terminal device.
[0152] Specifically, the program may include program code, which includes computer operation instructions. Memory 502 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device.
[0153] The processor 501 is used to execute computer execution instructions stored in the memory 502 to implement the technical solution of the message transmission method embodiment described in the foregoing method embodiment.
[0154] 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 this application.
[0155] Optionally, the electronic device 50 may also include a communication interface 503, through which it can communicate and interact with external devices, such as user terminals (e.g., mobile phones, tablets). In specific implementations, if the communication interface 503, memory 502, and processor 501 are implemented independently, they can be interconnected via a bus to complete communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc., but this does not imply that there is only one bus or one type of bus.
[0156] Optionally, in a specific implementation, if the communication interface 503, memory 502, and processor 501 are integrated on a single chip, then the communication interface 503, memory 502, and processor 501 can communicate through an internal interface.
[0157] This application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the technical solution of the above-described message transmission method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.
[0158] In one possible implementation, a computer-readable medium may include random access memory (RAM), read-only memory (ROM), compact discread-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. The above combinations should also be included within the scope of computer-readable media.
[0159] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the technical solution of the above-described message transmission method embodiment. Its implementation principle and technical effects are similar, and will not be repeated here.
[0160] In the specific implementation of the aforementioned 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 (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0161] Those skilled in the art will understand that all or part of the steps in any of the above method embodiments can be implemented by hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, all or part of the steps in the above method embodiments are performed.
[0162] If the technical solution of this application is implemented in software form 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 this application can be embodied in the form of a software product, which is stored in a storage medium and includes a computer program or several instructions. This computer software product causes a computer device (which may be a personal computer, server, network device, or similar electronic device) to execute all or part of the steps of the method described in the embodiments of this application.
[0163] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0164] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0165] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.
[0166] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.
[0167] When integrated units / modules are implemented in hardware, the hardware can 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 can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any suitable magnetic 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.
[0168] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0169] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0170] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0171] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A message transmission method, characterized in that, The method includes: Parse the message from the upstream transaction system that describes the target transaction to obtain the transaction information of the message; If the message is determined to be a dual-electronic message based on the transaction information of the message, then the generation rule of the dual-electronic message is obtained. The message is processed according to the generation rules to generate a transaction object describing the target dual-signal message of the target transaction. The transaction object includes an instruction signal and a position signal. Based on the transaction object of the target dual-electronic message, construct the target dual-electronic message; Send the target dual-electronic message to the downstream transaction system; The step of determining that the message is sent as a dual-mode message based on the parameters of the message includes: Obtain the judgment rules and target parameters of the dual-email message; If, based on the transaction information of the message, it is determined that the message conforms to the judgment rules for dual-electronic messages, then the message is determined to be a dual-electronic message; or, If it is determined based on the transaction information of the message that the message does not conform to the judgment rule of dual-electronic message, then it is determined whether the transaction information of the message conforms to at least one of the target parameters; If the transaction information of the message meets at least one of the target parameters, then the message is determined to be a dual-electronic message. The rules for obtaining the generation of the dual-message include: Based on the transaction information, obtain the upstream and downstream flow node information of the message; Based on the upstream and downstream transfer node information, the generation rules for the dual-electronic message are obtained, and the number of transit lines represented by the upstream and downstream transfer node information corresponds to different generation rules.
2. The method according to claim 1, characterized in that, The step of processing the message according to the generation rule to generate the transaction object of the dual-electronic message includes: 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 invoked to execute at least one executable statement to process the message and generate the transaction object of the dual-electronic message.
3. The method according to claim 2, characterized in that, If the generation rule is missing at least one corresponding executable statement, the method further includes: Generate the corresponding target transaction object based on the current executable statements; Generate an object dual-email message based on the target transaction object; The object dual-signal message is added to the message list to be processed, so that the user can complete the object dual-signal message through the message list.
4. The method according to any one of claims 1-3, characterized in that, Before parsing the message to be processed and obtaining the parameter information of the message, the method further includes: Obtain the judgment rules of the dual-electronic message, the target parameters of the dual-electronic message, and the generation rules; and obtain the executable statement configured according to the generation rules. The judgment rules for the dual-electronic message, the target parameters of the dual-electronic message, the generation rules, and the execution statements are written into the cache and / or database.
5. The method according to claim 4, characterized in that, The method further includes: 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.
6. A message transmission device, characterized in that, include: The parsing module is used to parse the message describing the target transaction from the upstream transaction system to obtain the transaction information of the message; The acquisition module is used to acquire the generation rules of dual-electronic messages if it is determined from the transaction information of the message that the message is sent as a dual-electronic message. The generation module is used to process the message according to the generation rules and generate a transaction object describing the target dual-signal message of the target transaction, wherein the transaction object includes an instruction signal and a position signal; A construction module is used to assemble the target dual-electronic message based on the transaction object of the target dual-electronic message; The transmission module is used to send the target dual-electronic message to the downstream transaction system; The device further includes: a determining module specifically used for: Obtain the judgment rules and target parameters of the dual-email message; If, based on the transaction information of the message, it is determined that the message conforms to the judgment rules for dual-electronic messages, then the message is determined to be a dual-electronic message; or, If it is determined based on the transaction information of the message that the message does not conform to the judgment rule of dual-electronic message, then it is determined whether the transaction information of the message conforms to at least one of the target parameters; If the transaction information of the message meets at least one of the target parameters, then the message is determined to be a dual-electronic message. The acquisition module is specifically used for: Based on the transaction information, obtain the upstream and downstream flow node information of the message; Based on the upstream and downstream transfer node information, the generation rules for the dual-electronic message are obtained, and the number of transit lines represented by the upstream and downstream transfer node information corresponds to different generation rules.
7. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, are used to implement the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Message processing method and device
CN115495515A
