Message processing method and device, electronic equipment, storage medium and program product
By automatically generating and sending messages in the letter of credit information processing in the financial field, pre-set message templates are used to automatically generate and send messages, the problems of time-consuming and high error rate in the prior art are solved, and the testing efficiency is improved.
Patent Information
- Application Number
- CN202411603409.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-04
AI Technical Summary
In the process of processing letters of credit information in the financial field, the existing technology has a long time to write and a high error rate, resulting in low testing efficiency.
Through the pre-set message template, the message is automatically generated based on the obtained service information and sent to the settlement system to verify the letter of credit modification notification function of the settlement system.
Automatic processing of packets is realized, reducing the process of manually writing packets, reducing error rate and time-consuming, and improving testing efficiency.
Smart Images

Figure CN119558292A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the financial field and can be used in the data processing field of the financial field, and in particular, to a message processing method, device, electronic device, storage medium and program product. Background Art
[0002] With the development of data security technology, letter of credit information can be transmitted through third-party systems, such as the People's Bank of China's electronic letter of credit system, which can realize the electronicization of letters of credit.
[0003] A letter of credit is a written document issued by a bank to a seller at the request of the buyer to guarantee the payment of the goods. The settlement system of the issuing bank (that is, the buyer's bank) can modify the letter of credit information according to the needs of the user and send a message to the third-party system. The third-party system can receive the message and return the receipt message to the issuing bank. At the same time, it will also send the received message to the receiving bank so that the settlement system of the receiving bank can process the received message, such as notifying the user. After upgrading the settlement system, the settlement system needs to be tested to ensure that the settlement system functions normally. However, during the test, it is impossible to actually connect to the third-party system, and the report needs to be manually written and sent by the tester.
[0004] However, the message format used in the third-party system has poor readability and complex business logic, and requires high business and technical capabilities of testers. The message writing process is time-consuming and has a high error rate, which will lead to low testing efficiency. Summary of the invention
[0005] The embodiments of the present application provide a message processing method, device, electronic device, storage medium and program product to achieve the effect of improving test efficiency.
[0006] In a first aspect, an embodiment of the present application provides a message processing method, including:
[0007] Confirm the incoming report format and first target letter of credit number selected by the user;
[0008] Querying corresponding business information according to the first target letter of credit number, and displaying the business information so that the user can modify the business information;
[0009] A first letter of credit modification message is generated according to the message template corresponding to the incoming message format and the modified business information, and the first letter of credit modification message is sent to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message.
[0010] In a possible implementation manner, the message template includes: a correspondence between a message session or an XML tag and a business name; the business information includes a business name and business data; and generating a first letter of credit modification message according to the message template corresponding to the incoming message format and the modified business information includes:
[0011] For any service name in the service information, fill the corresponding service data into the message session or XML tag position corresponding to the corresponding service name of the message template to obtain a generated message;
[0012] The generated message is verified, and the message that passes the verification is determined as the first letter of credit modification message.
[0013] In a possible implementation, verifying the generated message includes:
[0014] For any service name, the corresponding service data is verified according to the verification rule corresponding to the service name; the verification rule is a data requirement for at least one of the length, data type and attribute of the service data.
[0015] In a possible implementation, the method further includes:
[0016] After the user completes the letter of credit modification function, the receipt status to be tested input by the user is obtained; the settlement system generates a second letter of credit modification message according to the letter of credit modification function triggered by the user;
[0017] Obtaining a second letter of credit modification message sent by the settlement system and obtaining a second target letter of credit number of the second letter of credit modification message;
[0018] When the receipt status to be tested is successful, a success receipt message is generated according to the second target letter of credit number, and the success receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to successful processing after receiving the success receipt message.
[0019] In a possible implementation, the method further includes:
[0020] After sending the success receipt message to the settlement system, determining whether the receiving bank corresponding to the second letter of credit modification message is the bank;
[0021] When it is this bank, the second letter of credit modification message is converted and the converted message is sent to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the converted message.
[0022] In a possible implementation, the method further includes:
[0023] When the receipt status to be tested is failure, a failure receipt message is generated according to the second target letter of credit number, and the failure receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to processing failure after receiving the failure receipt message, and whether the failure message processing function is executed.
[0024] In a second aspect, an embodiment of the present application provides a message processing device, including:
[0025] A determination module, used to determine the incoming report format and the first target letter of credit number selected by the user;
[0026] A display module, used to query corresponding business information according to the first target letter of credit number, and display the business information so that the user can modify the business information;
[0027] A generation module is used to generate a first letter of credit modification message according to the message template corresponding to the incoming message format and the modified business information, and send the first letter of credit modification message to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0029] The memory stores computer-executable instructions;
[0030] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0032] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0033] The message processing method, device, electronic device, storage medium and program product provided in the embodiments of the present application include: determining the incoming report format and the first target letter of credit number selected by the user, querying the corresponding business information according to the first target letter of credit number, displaying the business information for the user to modify the business information, generating a first letter of credit modification message according to the message template corresponding to the incoming report format and the modified business information, sending the first letter of credit modification message to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message, and achieving the effect of automatically generating and sending messages by setting templates corresponding to different incoming report formats and obtaining the business information corresponding to the first target letter of credit number. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] 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.
[0035] Figure 1 Schematic diagram of application scenarios provided for this application;
[0036] Figure 2 A flowchart of a message processing method provided by this application;
[0037] Figure 3 A flowchart of another message processing method provided by this application;
[0038] Figure 4 A schematic diagram of a message template provided for this application;
[0039] Figure 5 A flowchart of a letter of credit modification message testing process provided for this application;
[0040] Figure 6 A schematic diagram of the structure of a message processing device provided by the present application;
[0041] Figure 7 A schematic diagram of the structure of an electronic device provided in this application.
[0042] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0044] The data involved in the present invention may be data authorized by the user or fully authorized by all parties, and the collection, dissemination, and use of the data shall comply with the requirements of relevant national laws and regulations.
[0045] First, the terms involved in this application are explained:
[0046] SWIFT: Managed by the Society for Worldwide Interbank Financial Telecommunication, the use of SWIFT provides safe, reliable, fast, standardized and automated communication services for bank settlements, thereby greatly improving the bank's settlement speed.
[0047] Settlement system: a transaction system that completes document-related business processing;
[0048] Electronic letter of credit system: Relying on network and computer technology, it receives, registers and forwards electronic letter of credit data and image materials, and provides participants with a comprehensive business processing platform for letter of credit registration, inquiry, custody, verification and settlement services;
[0049] Letter of Credit: A bank's promise to pay for conforming documents issued upon application by an applicant.
[0050] ELCS: Electronic letter of credit System, electronic letter of credit information exchange system, is a subsystem in the electronic letter of credit system.
[0051] In international trade activities, buyers and sellers may not trust each other. Buyers are worried that after advance payment, sellers will not ship according to the contract requirements, and sellers are also worried that buyers will not pay after shipment or submission of shipping documents. Therefore, two banks are needed as guarantors for both buyers and sellers to collect payment and deliver documents on their behalf, replacing commercial credit with bank credit. The tool used by banks in this activity is letter of credit. Letter of credit is a written certificate issued by the buyer's bank (sending bank) to the seller's bank (receiving bank) to guarantee the responsibility of paying the loan.
[0052] Figure 1 The application scenario diagram provided for this application is as follows: Figure 1As shown, the specific application scenario of the present application is: after the letter of credit is generated, the letter of credit can be modified and a message can be generated according to the needs of the user through the settlement system (which can be an international settlement system). After the issuing bank modifies the letter of credit, the corresponding message can be sent to SWIFT or the electronic letter of credit information exchange system (step 1). SWIFT or the electronic letter of credit information exchange system can process the message, such as performing verification and other operations. After the message is processed, the processing result of the message can be sent to the issuing bank in the form of a receipt (step 2), so that the settlement system of the issuing bank can update the transaction status, as well as the subsequent processing of the message; at the same time, if the processing result of the message by SWIFT or the electronic letter of credit information exchange system is successful, the message can be sent to the receiving bank (step 3), and the settlement system of the receiving bank can execute the letter of credit modification notification function.
[0053] The settlement system may need regular maintenance. After maintenance, it needs to be tested before it goes back online to test whether the functions of the settlement system can be executed normally. The functions of the settlement system need to be triggered by messages sent by SWIFT or the electronic letter of credit information exchange system. For example, the settlement system needs to execute the letter of credit modification notification function after receiving the message forwarded by SWIFT or the electronic letter of credit information exchange system. However, during the test process, it is impossible to actually connect to the SWIFT test network or the test environment of the electronic letter of credit information exchange system. Therefore, it is necessary to manually simulate the SWIFT or electronic letter of credit information exchange system to generate the message and send it to the settlement system of the receiving bank. For example, manually write and send the letter of credit modification message (MT707 or elcs.103.001.02) sent from SWIFT or the electronic letter of credit information exchange system. After the receiving bank receives the message, it automatically triggers the letter of credit modification notification function, and the tester verifies the execution result of the letter of credit modification notification function.
[0054] The above two types of messages do not display the business names corresponding to the business data, but display them in the form of message sessions and XML tags. The business data and business names need to be matched manually, the readability of the messages is poor, and the difficulty of message writing is high. In addition, the above two types of messages have many data items, which requires testers to be familiar with the data types of each business data, the meanings of message sessions and XML tags, and monitoring rules, etc., so the business and technical capabilities of testers are relatively high.
[0055] In the above scenario, when the settlement system needs to be tested, the user (tester) needs to manually write the incoming report and send the written report to the settlement system through a tool for testing. However, SWIFT uses FIN format messages, and the electronic letter of credit information exchange system uses XML format messages. The readability of these two formats of messages is poor, the business logic is complex, and the business and technical capabilities of the testers are very high. The written messages are prone to errors, time-consuming, and low testing efficiency. Therefore, combined with the above scenario, it can be seen that in the prior art, there is a problem that the written messages are prone to errors and time-consuming by manually writing messages, which leads to a technical problem of low testing efficiency.
[0056] Therefore, based on the above problems, the present application hopes to realize automatic processing of messages, such as automatically generating messages based on business information and sending them to the settlement system, so that the writing and sending of messages become intuitive and automatic, and there is no need for testers to write messages. This can effectively avoid the problem of low testing efficiency caused by manual writing of messages during system testing.
[0057] The message processing method provided in the present application uses a pre-set message template to automatically generate a message based on the acquired business information and the message template. There is no need to manually write the message, and the error rate of the generated message is low and the time consumption is short, thus solving the technical problem of low testing efficiency.
[0058] It should be noted that the message processing method and device of the present application can be used in the financial field, such as the data processing field in the financial field, and can also be used in any field other than the financial field. The present application does not limit the application field of the message processing method and device.
[0059] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. 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.
[0060] Figure 2 A flowchart of a message processing method provided by this application, such as Figure 2 As shown, the method includes:
[0061] S201. Determine the report format and the first target letter of credit number selected by the user.
[0062] When simulating the generation of incoming messages, it is necessary for the receiving bank to verify the receipt of the letter of credit modification message and the letter of credit modification notification function.
[0063] Since this is a simulation of a letter of credit modification, the letter of credit has already been stored in the receiving bank. When simulating the generation of an incoming message (mainly the scenario where the counterparty is not the bank that sent the letter of credit modification message), you can first specify the letter of credit number that needs to be modified, that is, the first target letter of credit number, so that the modification message for the letter of credit will be generated when the incoming message is generated.
[0064] When simulating the incoming message sent by SWIFT or the electronic letter of credit information exchange system, it can be generated through the message template. Specifically, when testing, you can choose the incoming message format, which is the message format corresponding to the SWIFT network (FIN message format, that is, the message format of MT707 message) or the message format corresponding to the electronic letter of credit information exchange system (XML message format, that is, the message format of elcs.103.001.02). When the user selects the FIN message format, it means that he wants to simulate the message forwarded by the SWIFT network. When the user selects the XML message format, it means that he wants to simulate the message forwarded by the electronic letter of credit information exchange system.
[0065] Therefore, when generating a report in simulation, the report format and the first target letter of credit number input by the user can be obtained.
[0066] S202. Query corresponding business information according to the first target letter of credit number, and display the business information so that the user can modify the business information.
[0067] After the first target letter of credit number is determined, the business information of the letter of credit can be queried based on the first target letter of credit number. Specifically, there can be a data query interface between the device provided by the present application and the settlement system, and business information can be queried from the settlement system based on the first letter of credit number. The queried business information is specific information in the letter of credit, such as the letter of credit amount, opening date, delivery deadline, goods terms, letter of credit parties and other information.
[0068] When inquiring, if one letter of credit number corresponds to one letter of credit, you can inquire based on the first letter of credit number. When one letter of credit number corresponds to multiple letters of credit, you can also inquire based on the first letter of credit number and the shipping order number to accurately locate the letter of credit to be modified.
[0069] After obtaining the business information, the business information can be reflected in each column of the business data entry page. The user can modify or supplement the relevant columns according to the requirements of the test scenario to complete the entry of the business information required for the message. For example, the column is the business name mentioned above, such as the letter of credit amount, and the actual letter of credit amount is displayed, and the user can modify the letter of credit amount.
[0070] S203: Generate a first letter of credit modification message according to the message template corresponding to the incoming message format and the modified business information, and send the first letter of credit modification message to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message.
[0071] After the incoming report format is determined, a message template corresponding to the incoming report format can be obtained from the pre-set message templates, and the first letter of credit modification message can be assembled according to the message template and the modified business information.
[0072] Optionally, the message templates to be used may be maintained in advance according to the message specifications of SWIFT or the electronic letter of credit information exchange system.
[0073] After the first letter of credit modification message is generated, the first letter of credit modification message can be displayed for user preview. After the user confirms that the first letter of credit modification message is correct, the first letter of credit modification message can also be sent to the settlement system.
[0074] After receiving the first letter of credit modification message, the settlement system can trigger the letter of credit modification notification function under normal circumstances, that is, the received first letter of credit modification message is parsed to determine the modification items and the modification items are notified to the user. What needs to be verified here is whether the settlement system can correctly complete the above-mentioned letter of credit modification notification function. For example, it can be determined whether the user can receive the notification information, and it can also be detected whether the modification items in the notification information are consistent with the business information in the pre-modified letter of credit.
[0075] The message processing method provided in the embodiment of the present application includes: determining the incoming report format and the first target letter of credit number selected by the user, querying the corresponding business information according to the first target letter of credit number, displaying the business information for the user to modify the business information, generating a first letter of credit modification message according to the message template corresponding to the incoming report format and the modified business information, sending the first letter of credit modification message to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message, and achieving the effect of automatically generating and sending messages by setting templates corresponding to different incoming report formats and obtaining the business information corresponding to the first target letter of credit number.
[0076] Figure 3 A flowchart of another message processing method provided by this application, such as Figure 3 As shown, the method includes:
[0077] Step S301, determining the report format and the first target letter of credit number selected by the user;
[0078] Step S302: query corresponding business information according to the first target letter of credit number, and display the business information so that the user can modify the business information.
[0079] The execution process of step S301 and step S302 may refer to the above-mentioned step S201 and step S202 respectively, and will not be repeated here.
[0080] Step S303: For any service name in the service information, fill the corresponding service data into the message session or XML tag position corresponding to the corresponding service name in the message template to obtain a generated message.
[0081] The message template includes: the correspondence between the message session or XML tag and the service name; the service information includes the service name and service data.
[0082] After obtaining the modified business information, the business information includes the business name and business data, for example: the business name is the amount of the letter of credit, and the business data is 50,000 yuan. For any business name, the corresponding business data is filled into the message template. The message template contains the correspondence between the business name and the message field (FIN message format) or XML tag (XML message format) corresponding to the business name. When filling the business data in the business information into the message template, the corresponding business data can be filled into the message field or XML tag position corresponding to the business name in the message template according to the business name, thereby obtaining the generated message. For example, fill 50,000 yuan into the message field or XML tag position corresponding to the business name in the message template.
[0083] The message template can define and maintain the message format (FIN message format or XML message format), structure (message header and message body), content (message session or XML tag), and the correspondence between the message session or XML tag and the service name.
[0084] Figure 4 A schematic diagram of a message template provided for this application, such as Figure 4 As shown, the message template includes the message session, service name and verification rules, and the message format and structure are not shown. The modified service information can be filled into the message template through the message template to generate a message in the corresponding format.
[0085] Step S304: verify the generated message, and determine the message that passes the verification as the first letter of credit modification message.
[0086] After the message is generated, the message can also be checked to ensure that the generated message complies with regulations.
[0087] By setting the correspondence between the message sessions or XML tags and the service names in the message template, it is convenient to accurately fill the modified service information into the message template to obtain the generated message.
[0088] Optionally, verify the generated message, including:
[0089] For any service name, the corresponding service data is verified according to the verification rule corresponding to the service name; the verification rule is a data requirement for at least one of the length, data type and attribute of the service data.
[0090] When checking a message, it can be implemented according to the verification rules. The verification rules are rules pre-set in the message template. Among them, for each service name, a corresponding verification rule for service data can be set. For example, when there are 10 service names in the message template, there are 10 verification rules. The verification rules can be requirements for the length, data type or attribute of the service data corresponding to the service name.
[0091] After the message is generated, it can be judged whether the business data meets the corresponding verification rules. When all business data meet the corresponding verification rules, it means that the generated message verification has passed. When there is at least one business data that does not meet the corresponding verification rules, it means that the generated message verification has failed.
[0092] By setting the verification rules corresponding to each service name in the message template, the filled service data can be verified.
[0093] Step S305: Send the first letter of credit modification message to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message.
[0094] After the first letter of credit modification message is generated, the first letter of credit modification message can be displayed for user preview. After the user confirms that the first letter of credit modification message is correct, the first letter of credit modification message can also be sent to the settlement system.
[0095] After receiving the first letter of credit modification message, the settlement system can trigger the letter of credit modification notification function under normal circumstances, that is, the received first letter of credit modification message is parsed to determine the modification items and the modification items are notified to the user. What needs to be verified here is whether the settlement system can correctly complete the above-mentioned letter of credit modification notification function. For example, it can be determined whether the user can receive the notification information, and it can also be detected whether the modification items in the notification information are consistent with the business information in the pre-modified letter of credit.
[0096] In addition to simulating the incoming message sent by SWIFT or the electronic letter of credit information exchange system in the above process to verify the receiving bank's receipt of the letter of credit modification message and the letter of credit modification notification function, it is also possible to simulate the receipt message returned by SWIFT or the electronic letter of credit information exchange system after receiving the letter of credit modification message to verify the letter of credit modification function as the sending bank, as well as the transaction status update and message subsequent processing functions after the letter of credit modification message is sent.
[0097] When verifying the functions of the settlement system in the sending bank, the testers currently write the receipt message manually. The specific process is as follows:
[0098] Initiate and complete the letter of credit modification function in the settlement system. At this time, the settlement system can generate a letter of credit modification message and send it to SWIFT or the electronic letter of credit information exchange system. Find the letter of credit modification message (such as MT707 or elcs.103.001.02) sent by the settlement system in the background or log; when it is necessary to test that the receipt message is a successful receipt message, you can manually write the successful receipt message that SWIFT or the electronic letter of credit information exchange system should send back according to the letter of credit number of the letter of credit modification message and send it to the settlement system; verify whether the letter of credit modification information in the settlement system is effective and whether the message status is updated to successful processing. When it is necessary to test that the receipt message is a failed receipt message, you can manually write the failed receipt message that SWIFT or the electronic letter of credit information exchange system should send back according to the letter of credit number of the letter of credit modification message and send it to the settlement system; verify whether the letter of credit modification information in the settlement system is ineffective, whether the message status is updated to failed processing, and whether the failed receipt message processing process is triggered.
[0099] The above manual operation of writing a success receipt message or a failure receipt message takes a long time, has a high error rate, and has a low test efficiency. Therefore, it is hoped that the automatic generation of the receipt message can be realized to improve the test efficiency.
[0100] Optionally, the method further includes:
[0101] After the user completes the letter of credit modification function, the receipt status to be tested input by the user is obtained; the settlement system generates a second letter of credit modification message according to the letter of credit modification function triggered by the user;
[0102] Obtaining a second letter of credit modification message sent by the settlement system and obtaining a second target letter of credit number of the second letter of credit modification message;
[0103] When the receipt status to be tested is successful, a success receipt message is generated according to the second target letter of credit number, and the success receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to successful processing after receiving the success receipt message.
[0104] When the receipt message is automatically generated, the user can first complete the letter of credit modification function in the settlement system, and the settlement system can then generate and send out a corresponding second letter of credit modification message, thereby verifying whether the letter of credit modification function of the settlement system can be implemented normally.
[0105] After the user completes the letter of credit modification function, the user can also obtain the receipt status to be tested input by the user, and the receipt status to be tested can be success or failure. After the settlement system generates a second letter of credit modification message according to the letter of credit modification function triggered by the user, the device can capture the second letter of credit modification message issued by the settlement system and obtain the second target letter of credit number of the second letter of credit modification message, thereby generating a receipt message based on the second target letter of credit number. Among them, when the receipt status returned by the simulated SWIFT or electronic letter of credit information exchange system is successful, the generated receipt message is a successful receipt message.
[0106] After generating the successful receipt message, the successful receipt message can also be sent to the settlement system. Under normal circumstances, after receiving the successful receipt message, the settlement system will change the status of the second letter of credit modification message to successful processing. Therefore, whether the settlement system has the transaction status update function is determined based on the status of the second letter of credit modification message.
[0107] By automatically generating a success receipt message and sending it to the settlement system, it is verified whether the settlement system updates the status of the corresponding message after receiving the success receipt message.
[0108] Optionally, the method further includes:
[0109] After sending the success receipt message to the settlement system, determining whether the receiving bank corresponding to the second letter of credit modification message is the bank;
[0110] When it is this bank, the second letter of credit modification message is converted and the converted message is sent to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the converted message.
[0111] After sending a successful receipt message to the settlement system, under normal circumstances, SWIFT or the electronic letter of credit information exchange system will send the second letter of credit modification message to the receiving bank. Here, if the receiving bank corresponding to the second letter of credit modification message is this bank, the second letter of credit modification message needs to be sent to the settlement system of this bank. Therefore, when it is determined that the receiving bank corresponding to the second letter of credit modification message is this bank, the second letter of credit modification message can be directly converted, and optionally, the message header of the second letter of credit modification message can be modified. When the converted message is obtained, the converted message can be sent to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the converted message.
[0112] Optionally, when the receiving bank corresponding to the second letter of credit modification message is not this bank, this processing is completed.
[0113] After sending the successful receipt message, when the recipient of the second letter of credit amendment message is this bank, the message can be automatically converted and sent to the settlement system to simulate SWIFT or the electronic letter of credit information exchange system sending the second letter of credit amendment message to this bank.
[0114] Optionally, the method further includes:
[0115] When the receipt status to be tested is failure, a failure receipt message is generated according to the second target letter of credit number, and the failure receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to processing failure after receiving the failure receipt message, and whether the failure message processing function is executed.
[0116] When the receipt status returned by the simulated SWIFT or electronic letter of credit information exchange system is a failure, the receipt status to be tested can be set to a failure. When generating a failed receipt message, a failed receipt message can be generated according to the second target letter of credit number. When generating a failed receipt message, the failed receipt message can be sent to the settlement system, and the settlement system can perform corresponding processing when receiving the failed receipt message. Thus, it can be verified whether the settlement system modifies the status of the second letter of credit modification message to a processing failure after receiving the failed receipt message, and whether the failed message processing function is executed. Among them, the failed message processing function is to edit the message and resend it.
[0117] By automatically generating a failure receipt message and sending it to the settlement system, it is verified whether the settlement system updates the status of the corresponding message and executes the failure message processing function after receiving the failure receipt message.
[0118] Figure 5A flow chart of a letter of credit modification message testing process provided for this application, such as Figure 5 As shown, when verifying the function of the letter of credit issuing bank, the settlement system of the issuing bank can first send a letter of credit modification message to determine whether the receipt status is set to success. If so, a successful receipt message can be generated and returned to the settlement system, and it can be determined whether the receiving bank of the letter of credit modification message is an institution within the system. If so, the letter of credit modification message is forwarded to the settlement system to verify whether the letter of credit modification notification function of the receiving system is triggered; if not, the operation is terminated. When the receipt status is failure, a failure receipt message is generated and returned to verify whether the failure message processing of the settlement system is triggered.
[0119] When verifying the function of the letter of credit receiving bank, when the issuing bank is an institution outside the system, you can select the letter of credit number, query the business information through the letter of credit number, display the business information to the user and manually modify the business information, generate a letter of credit modification message based on the modified business information and send the letter of credit modification message to the settlement system to verify whether the letter of credit modification notification function of the settlement system is triggered.
[0120] From the above process, it can be seen that the entire testing process no longer requires testers to manually write test messages. The message processing device will automatically generate and send messages according to the tester's settings for the test scenario. The message compilation is also automatically generated according to the configuration and business data, reducing the user's manual work of writing messages and improving efficiency.
[0121] Figure 6 A schematic diagram of the structure of a message processing device provided in this application, such as Figure 6 As shown, the message processing device 60 provided in this embodiment includes:
[0122] Determination module 601, used to determine the report format and the first target letter of credit number selected by the user;
[0123] Display module 602, used to query corresponding business information according to the first target letter of credit number, and display the business information so that the user can modify the business information;
[0124] The generation module 603 is used to generate a first letter of credit modification message according to the message template corresponding to the incoming message format and the modified business information, and send the first letter of credit modification message to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message.
[0125] In a possible implementation, the message template includes: a correspondence between a message session or an XML tag and a business name; the business information includes a business name and business data; when the generating module 603 generates the first letter of credit modification message according to the message template corresponding to the incoming message format and the modified business information, it is specifically used to:
[0126] For any service name in the service information, fill the corresponding service data into the message session or XML tag position corresponding to the corresponding service name of the message template to obtain a generated message;
[0127] The generated message is verified, and the message that passes the verification is determined as the first letter of credit modification message.
[0128] In a possible implementation manner, when the generating module 603 verifies the generated message, it is specifically used to:
[0129] For any service name, the corresponding service data is verified according to the verification rule corresponding to the service name; the verification rule is a data requirement for at least one of the length, data type and attribute of the service data.
[0130] In a possible implementation manner, the device further includes: a first receipt message generating module, configured to:
[0131] After the user completes the letter of credit modification function, the receipt status to be tested input by the user is obtained; the settlement system generates a second letter of credit modification message according to the letter of credit modification function triggered by the user;
[0132] Obtaining a second letter of credit modification message sent by the settlement system and obtaining a second target letter of credit number of the second letter of credit modification message;
[0133] When the receipt status to be tested is successful, a success receipt message is generated according to the second target letter of credit number, and the success receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to successful processing after receiving the success receipt message.
[0134] In a possible implementation manner, the device further includes: a message conversion module, configured to:
[0135] After sending the success receipt message to the settlement system, determining whether the receiving bank corresponding to the second letter of credit modification message is the bank;
[0136] When it is this bank, the second letter of credit modification message is converted and the converted message is sent to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the converted message.
[0137] In a possible implementation manner, the device further includes: a second receipt message generating module, configured to:
[0138] When the receipt status to be tested is failure, a failure receipt message is generated according to the second target letter of credit number, and the failure receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to processing failure after receiving the failure receipt message, and whether the failure message processing function is executed.
[0139] The message processing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0140] Figure 7 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 7 As shown, the electronic device 70 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the device 70 further includes a communication component 703. The processor 701, the memory 702 and the communication component 703 are connected via a bus 704.
[0141] In a specific implementation process, at least one processor 701 executes the computer-executable instructions stored in the memory 702, so that at least one processor 701 executes the above method.
[0142] The specific implementation process of the processor 701 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0143] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0144] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0145] 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. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0146] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0147] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0148] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0149] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0150] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0153] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0154] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0155] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A message processing method, characterized in that: include: Confirm the incoming report format and first target letter of credit number selected by the user; Querying corresponding business information according to the first target letter of credit number, and displaying the business information so that the user can modify the business information; A first letter of credit modification message is generated according to the message template corresponding to the incoming message format and the modified business information, and the first letter of credit modification message is sent to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message.
2. The method according to claim 1, characterized in that The message template includes: the correspondence between the message session or XML tag and the business name; the business information includes the business name and business data; the first letter of credit modification message is generated according to the message template corresponding to the incoming message format and the modified business information, including: For any service name in the service information, fill the corresponding service data into the message session or XML tag position corresponding to the corresponding service name of the message template to obtain a generated message; The generated message is verified, and the message that passes the verification is determined as the first letter of credit modification message.
3. The method according to claim 2, characterized in that Verify the generated message, including: For any service name, the corresponding service data is verified according to the verification rule corresponding to the service name; the verification rule is a data requirement for at least one of the length, data type and attribute of the service data.
4. The method according to claim 1, characterized in that: The method further comprises: After the user completes the letter of credit modification function, the receipt status to be tested input by the user is obtained; the settlement system generates a second letter of credit modification message according to the letter of credit modification function triggered by the user; Obtaining a second letter of credit modification message sent by the settlement system and obtaining a second target letter of credit number of the second letter of credit modification message; When the receipt status to be tested is successful, a success receipt message is generated according to the second target letter of credit number, and the success receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to successful processing after receiving the success receipt message.
5. The method according to claim 4, characterized in that The method further comprises: After sending the success receipt message to the settlement system, determining whether the receiving bank corresponding to the second letter of credit modification message is the bank; When it is this bank, the second letter of credit modification message is converted and the converted message is sent to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the converted message.
6. The method according to claim 4, characterized in that The method further comprises: When the receipt status to be tested is failure, a failure receipt message is generated according to the second target letter of credit number, and the failure receipt message is sent to the settlement system to verify whether the settlement system modifies the status of the second letter of credit modification message to processing failure after receiving the failure receipt message, and whether the failure message processing function is executed.
7. A message processing device, characterized in that: include: A determination module, used to determine the incoming report format and the first target letter of credit number selected by the user; A display module, used to query corresponding business information according to the first target letter of credit number, and display the business information so that the user can modify the business information; A generation module is used to generate a first letter of credit modification message according to the message template corresponding to the incoming message format and the modified business information, and send the first letter of credit modification message to the settlement system to verify whether the settlement system triggers the letter of credit modification notification function after receiving the first letter of credit modification message.
8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.