CN116069407A - Method and system for analyzing SWIFT message and automatically mapping SWIFT message to business transaction column - Google Patents
Method and system for analyzing SWIFT message and automatically mapping SWIFT message to business transaction column Download PDFInfo
- Publication number
- CN116069407A CN116069407A CN202211519418.4A CN202211519418A CN116069407A CN 116069407 A CN116069407 A CN 116069407A CN 202211519418 A CN202211519418 A CN 202211519418A CN 116069407 A CN116069407 A CN 116069407A
- Authority
- CN
- China
- Prior art keywords
- message
- information
- field
- business
- business transaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 47
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012545 processing Methods 0.000 claims abstract description 51
- 238000004458 analytical method Methods 0.000 claims abstract description 24
- 238000006243 chemical reaction Methods 0.000 claims abstract description 20
- 238000013500 data storage Methods 0.000 claims abstract description 8
- 238000012544 monitoring process Methods 0.000 claims abstract description 8
- 230000008569 process Effects 0.000 claims abstract description 4
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012423 maintenance Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims 2
- 230000006870 function Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000002356 single layer Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,具体地,涉及一种解析SWIFT报文和自动映射到业务交易栏位的方法及系统,尤其是一种国际结算系统里SWIFT报文基于规则配置解析和映射到业务交易栏位的方法。The present invention relates to the field of communication technology, in particular to a method and system for parsing SWIFT messages and automatically mapping them to business transaction fields, especially a method and system for analyzing and mapping SWIFT messages to business transactions based on rule configuration in an international settlement system method of the field.
背景技术Background technique
SWIFT报文种类繁多,每类报文规则复杂,一方面市场上缺乏报文内容的解析和映射到系统业务交易栏位的成熟处理机制,另一方面随着全球数字化转型的需要,报文标准每年都在快速变化,对银行系统的软件适配改造带来巨大挑战。现有技术中存在以下问题:1)映射规则缺失或参数化程度不高,导致业务办理自动化程度不高,用户体验较差,效率较低;2)映射规则写死而不灵活,一旦报文和交易业务栏位映射错误时依赖改造软件代码才能解决问题,成本高,时效低;3)外界环境比如报文标准或者客户需求变化时,难以屏蔽外部变化对内部系统带来的影响;需要较多的开发工作量,降低了响应速度。There are many types of SWIFT messages, and the rules for each type of message are complex. On the one hand, the market lacks a mature processing mechanism for analyzing message content and mapping it to system business transaction fields. On the other hand, with the needs of global digital transformation, message standards It is changing rapidly every year, which brings huge challenges to the software adaptation and transformation of the banking system. The following problems exist in the prior art: 1) The lack of mapping rules or the low degree of parameterization lead to a low degree of automation of business processing, poor user experience, and low efficiency; 2) The mapping rules are hard-coded and inflexible. When the mapping with the transaction business field is wrong, the problem can only be solved by modifying the software code, which is costly and ineffective; 3) When the external environment such as message standards or customer needs changes, it is difficult to shield the impact of external changes on the internal system; More development workload reduces the response speed.
公开号为CN113673978B的一种基于SWIFT系统的交易方法、系统、计算机设备和存储介质,其中,该方法包括:通过整合业务信息生成可扩展标记语言XML格式的转账报文,通过SWIFT NET的方式从银行系统获取账户账单报文;将日终账单报文和日间账单报文分别经过数据处理转换成XML格式的日终账单文件和日间账单文件,存储至第一文件夹;定时扫描第一文件夹,获取日终账单文件和日间账单文件,分别进行解析翻译获取每个字段的值,存储至对应的文件信息数据库表格中,更新境外司库系统的余额表和明细表。但是该专利文献与本申请的技术方案不同。The publication number is CN113673978B, a transaction method, system, computer equipment and storage medium based on the SWIFT system, wherein the method includes: generating a transfer message in Extensible Markup Language XML format by integrating business information, and using SWIFT NET from The bank system obtains the account statement message; converts the end-of-day statement message and the day-time statement message into XML-formatted day-end statement files and day-time statement files through data processing, and stores them in the first folder; regularly scans the first Folder, obtain day-end bill files and daytime bill files, respectively analyze and translate to obtain the value of each field, store it in the corresponding file information database table, and update the balance table and detailed table of the overseas treasury system. But this patent document is different from the technical scheme of the present application.
发明内容Contents of the invention
针对现有技术中的缺陷,本发明的目的是提供一种解析SWIFT报文和自动映射到业务交易栏位的方法及系统。Aiming at the defects in the prior art, the object of the present invention is to provide a method and system for parsing SWIFT messages and automatically mapping them to business transaction fields.
根据本发明提供的一种解析SWIFT报文和自动映射到业务交易栏位的方法,包括如下步骤:According to a method for parsing a SWIFT message provided by the present invention and automatically mapping to a business transaction column, the method includes the following steps:
步骤1:维护报文规则配置表,将外部报文字段与业务交易栏位信息建立匹配和处理规则的映射关系;Step 1: Maintain the message rule configuration table, and establish a mapping relationship between external message fields and business transaction field information for matching and processing rules;
步骤2:注册报文消息监听,当收到一笔来报时触发事件,通知后台报文处理服务进行报文解析;Step 2: Register for message monitoring, when an incoming report is received, an event is triggered, and the background message processing service is notified to analyze the message;
步骤3:通过后台服务对报文进行解析,根据解析结果读取相关信息判断报文类型,读取报文规则配置表中该类报文的相关配置规则,从数据库中加载与本报文相关的具体业务信息,将外部报文文件转换为标准的结构化数据文件,并生成待办任务放到任务队列中;Step 3: Analyze the message through the background service, read the relevant information to determine the message type according to the analysis result, read the relevant configuration rules of this type of message in the message rule configuration table, and load the relevant information related to this message from the database. specific business information, convert external message files into standard structured data files, and generate to-do tasks and put them in the task queue;
步骤4:从待办夹选中待处理业务,系统自动读取结构化数据存储文件进行解析处理,完成业务交易界面栏位自动赋值和展示,核实交易栏位信息,完成业务办理。Step 4: Select the business to be processed from the to-do folder, the system automatically reads the structured data storage file for analysis and processing, completes the automatic assignment and display of the fields on the business transaction interface, verifies the information in the transaction field, and completes the business processing.
优选的,所述步骤1中,维护内容包括信息来源和形式、信息种类、交易代码、信息标签、信息子标签、目标栏位、栏位类型、栏位转换方法、拷贝标志以及覆盖标志。Preferably, in the step 1, the maintenance content includes information source and form, information type, transaction code, information label, information sub-label, target field, field type, field conversion method, copy flag and overwrite flag.
优选的,所述步骤3中,根据解析结果读取的相关信息包括:报文类型、收报行、发报行、币种、金额以及参考号。Preferably, in the step 3, the relevant information read according to the analysis result includes: message type, receiving bank, sending bank, currency, amount and reference number.
优选的,所述步骤3中,从数据库中加载与本报文相关的具体业务信息,综合外部报文内容信息、配置规则信息以及已有业务记录信息,完成值域覆盖处理、栏位规则处理以及码值转换处理,将外部报文文件转换为标准的结构化数据文件。Preferably, in the step 3, the specific business information related to this message is loaded from the database, and the external message content information, configuration rule information and existing business record information are integrated to complete the value domain coverage processing and column rule processing And code value conversion processing, converting the external message file into a standard structured data file.
本发明还提供一种解析SWIFT报文和自动映射到业务交易栏位的系统,包括如下模块:The present invention also provides a system for parsing SWIFT messages and automatically mapping to business transaction fields, including the following modules:
模块M1:维护报文规则配置表,将外部报文字段与业务交易栏位信息建立匹配和处理规则的映射关系;Module M1: maintain the message rule configuration table, and establish a mapping relationship between external message fields and business transaction field information for matching and processing rules;
模块M2:注册报文消息监听,当收到一笔来报时触发事件,通知后台报文处理服务进行报文解析;Module M2: Register message monitoring, trigger an event when an incoming report is received, and notify the background message processing service to analyze the message;
模块M3:通过后台服务对报文进行解析,根据解析结果读取相关信息判断报文类型,读取报文规则配置表中该类报文的相关配置规则,从数据库中加载与本报文相关的具体业务信息,将外部报文文件转换为标准的结构化数据文件,并生成待办任务放到任务队列中;Module M3: Analyze the message through the background service, read the relevant information according to the analysis result to judge the message type, read the relevant configuration rules of this type of message in the message rule configuration table, and load the relevant information related to this message from the database. specific business information, convert external message files into standard structured data files, and generate to-do tasks and put them in the task queue;
模块M4:从待办夹选中待处理业务,系统自动读取结构化数据存储文件进行解析处理,完成业务交易界面栏位自动赋值和展示,核实交易栏位信息,完成业务办理。Module M4: Select the business to be processed from the to-do folder, the system automatically reads the structured data storage file for analysis and processing, completes the automatic assignment and display of the fields on the business transaction interface, verifies the information in the transaction field, and completes the business processing.
优选的,所述模块M1中,维护内容包括信息来源和形式、信息种类、交易代码、信息标签、信息子标签、目标栏位、栏位类型、栏位转换方法、拷贝标志以及覆盖标志。Preferably, in the module M1, the maintenance content includes information source and form, information type, transaction code, information label, information sub-label, target field, field type, field conversion method, copy flag and overwrite flag.
优选的,所述模块M3中,根据解析结果读取的相关信息包括:报文类型、收报行、发报行、币种、金额以及参考号。Preferably, in the module M3, the relevant information read according to the analysis result includes: message type, receiving bank, sending bank, currency, amount and reference number.
优选的,所述模块M3中,从数据库中加载与本报文相关的具体业务信息,综合外部报文内容信息、配置规则信息以及已有业务记录信息,完成值域覆盖处理、栏位规则处理以及码值转换处理,将外部报文文件转换为标准的结构化数据文件。Preferably, in the module M3, the specific business information related to this message is loaded from the database, and the external message content information, configuration rule information and existing business record information are integrated to complete the value domain coverage processing and column rule processing And code value conversion processing, converting the external message file into a standard structured data file.
本发明还提供一种存储有计算机程序的计算机可读存储介质,所述计算机程序被处理器执行时实现权利要求1至4中任一项所述的解析SWIFT报文和自动映射到业务交易栏位的方法的步骤。The present invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the parsing of the SWIFT message described in any one of claims 1 to 4 and automatic mapping to the business transaction column. The steps of the bit method.
本发明还提供一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被处理器执行时实现权利要求1至4中任一项所述的解析SWIFT报文和自动映射到业务交易栏位的方法的步骤。The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, when the computer program is executed by the processor, it implements claims 1 to 4 Steps in any one of the methods for parsing SWIFT messages and automatically mapping them to business transaction fields.
与现有技术相比,本发明具有如下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:
1、本发明实现外部报文到内部交易信息的自动转换,提升效率和降低差错率;1. The present invention realizes automatic conversion from external messages to internal transaction information, improves efficiency and reduces error rate;
2、本发明既可屏蔽外部报文规则变化带来的影响,同时通过配置交易可以在线调整配置规则,不需要或少修改业务交易代码,实现软件的可配置化、低代码,进一步可以支持其他数据格式比如XML报文复用相关配置规则,具有规则可复用性、可扩展性、可插入性等特点;2. The present invention can not only shield the impact of changes in external message rules, but also adjust the configuration rules online through configuration transactions without requiring or less modification of business transaction codes, realizing configurable and low-code software, and further supporting other Data formats such as XML message multiplexing related configuration rules have the characteristics of rule reusability, scalability, and insertability;
3、当后台服务收到来报时,本发明根据配置好的规则将来报内容自动解析和映射到业务交易对应的栏位,实现规则可定制、规则可复用、规则可扩展,减少柜员人工干预工作量、提升用户体验;3. When the background service receives an incoming report, the present invention automatically parses and maps the incoming report content to the corresponding field of the business transaction according to the configured rules, realizes customizable rules, reusable rules, and expandable rules, reducing manual intervention by tellers volume and improve user experience;
4、本发明通过提供一套灵活的报文内容到交易栏位全参数化映射配置方法,可以在线维护报文解析到交易栏位的映射规则并生效,可屏蔽外部报文规则变化带来的影响,不需要重新开发程序,实现低代码、可复用、可配置,提升用户体验。4. The present invention provides a set of flexible message content-to-transaction field full-parameter mapping configuration method, which can maintain the mapping rules from message analysis to transaction field online and take effect, and can shield the problems caused by changes in external message rules. Impact, no need to redevelop the program, realize low-code, reusable, configurable, and improve user experience.
附图说明Description of drawings
通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明的解析SWIFT报文和自动映射到业务交易栏位的方法的步骤流程图。Fig. 1 is a flow chart of the steps of the method for parsing SWIFT messages and automatically mapping them to business transaction fields in the present invention.
具体实施方式Detailed ways
下面结合具体实施例对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变化和改进。这些都属于本发明的保护范围。The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
实施例1:Example 1:
如图1所示,本实施例提供一种解析SWIFT报文和自动映射到业务交易栏位的方法,包括如下步骤:As shown in Figure 1, this embodiment provides a method for parsing a SWIFT message and automatically mapping it to a business transaction column, including the following steps:
步骤1:维护报文规则配置表,将外部报文字段与业务交易栏位信息建立匹配和处理规则的映射关系;维护内容包括信息来源和形式、信息种类、交易代码、信息标签、信息子标签、目标栏位、栏位类型、栏位转换方法、拷贝标志以及覆盖标志。Step 1: Maintain the message rule configuration table, and establish a mapping relationship between the external message field and the business transaction field information for matching and processing rules; the maintenance content includes information source and form, information type, transaction code, information label, and information sub-label , target field, field type, field conversion method, copy flag, and overwrite flag.
步骤2:注册报文消息监听,当收到一笔来报时触发事件,通知后台报文处理服务进行报文解析;Step 2: Register for message monitoring, when an incoming report is received, an event is triggered, and the background message processing service is notified to analyze the message;
步骤3:通过后台服务对报文进行解析,根据解析结果读取相关信息判断报文类型,读取报文规则配置表中该类报文的相关配置规则,从数据库中加载与本报文相关的具体业务信息,将外部报文文件转换为标准的结构化数据文件,并生成待办任务放到任务队列中;根据解析结果读取的相关信息包括:报文类型、收报行、发报行、币种、金额以及参考号;从数据库中加载与本报文相关的具体业务信息,综合外部报文内容信息、配置规则信息以及已有业务记录信息,完成值域覆盖处理、栏位规则处理以及码值转换处理,将外部报文文件转换为标准的结构化数据文件。Step 3: Analyze the message through the background service, read the relevant information to determine the message type according to the analysis result, read the relevant configuration rules of this type of message in the message rule configuration table, and load the relevant information related to this message from the database. specific business information, convert the external message file into a standard structured data file, and generate to-do tasks and put them in the task queue; the relevant information read according to the analysis results includes: message type, receiving line, sending line , currency, amount, and reference number; load specific business information related to this message from the database, integrate external message content information, configuration rule information, and existing business record information, and complete value range coverage processing and field rule processing And code value conversion processing, converting the external message file into a standard structured data file.
步骤4:从待办夹选中待处理业务,系统自动读取结构化数据存储文件进行解析处理,完成业务交易界面栏位自动赋值和展示,核实交易栏位信息,完成业务办理。Step 4: Select the business to be processed from the to-do folder, the system automatically reads the structured data storage file for analysis and processing, completes the automatic assignment and display of the fields on the business transaction interface, verifies the information in the transaction field, and completes the business processing.
步骤1中,通过报文标准、报文类型、业务交易的配置维度,建立不同标准报文的不同报文类型和本系统各业务交易之间可配置的数据模块对应关系,可配置swift、XML等报文标准等;通过配置源报文中的报文TAG标签,进一步拆分为报文TAG子标签,然后关联模块以及具体字段的路径,实现源报文TAG值域到目标系统业务交易栏位的映射配置关系;通过是否覆盖、解析方式、解析方式参数将报文TAG值域通过约定的加工规则,以可配置方式实现值域解析和加工处理,并转化为目标值映射到业务交易栏位,表1显示了报文规则配置表的数据结构。In step 1, through message standards, message types, and business transaction configuration dimensions, establish the corresponding relationship between different message types of different standard messages and configurable data modules between business transactions in this system, and swift and XML can be configured and other message standards; by configuring the message TAG in the source message, it is further divided into message TAG sub-tags, and then associated with the path of the module and specific fields, so as to realize the source message TAG value field to the target system business transaction column Bit mapping configuration relationship; through whether to cover, analysis method, and analysis method parameters, the TAG value field of the message passes the agreed processing rules, realizes the value field analysis and processing in a configurable manner, and converts it into a target value and maps it to the business transaction column bit, Table 1 shows the data structure of the message rule configuration table.
表1报文规则配置表Table 1 Message rule configuration table
步骤3中,报文解析方法为通过对报文基础格式及场次等内容进行参数化设置,实现对报文场次(TAG)的格式化转换;In step 3, the message parsing method is to realize the format conversion of the message session (TAG) by parameterizing the content such as the basic format of the message and the session;
3.1)格式化类型配置:3.1) Formatting type configuration:
<xxx>=<Sign><nnn>;<xxx>=<Sign><nnn>;
<xxx>为格式化名称;<nnn>是3位格式化长度;<Sign>是‘-’表示,最大长度nnn字符,若是‘+’,则表示必须长度nnn字符;<xxx> is the format name; <nnn> is the format length of 3 digits; <Sign> is '-', the maximum length is nnn characters, if it is '+', it means the length must be nnn characters;
例如:For example:
DAT=+006 DAT类型必须是6位字符;DAT=+006 DAT type must be 6 characters;
LDT=+008 DAT类型必须是8位字符;LDT=+008 DAT type must be 8 characters;
AMT=-018 AMT类型可以达到18字符;AMT=-018 AMT type can reach 18 characters;
3.2)报文场次(TAG)匹配格式化:3.2) Matching format of message field (TAG):
FLD<tag>=<Format>;FLD <tag> = <Format>;
<tag>是报文中的场次;<Format>由格式化名称组成,支持一个或者多个格式化;<tag> is the session in the message; <Format> is composed of format names and supports one or more formats;
当<tag>包含有多个字栏位内容时,可以指定一个或者多个格式化类型;When <tag> contains multiple word fields, one or more formatting types can be specified;
例如:For example:
FLD32A=DAT AMT表示32A包含DAT、AMT子栏位组成,以及组成格式对应的格式DAT和AMT;FLD32A=DAT AMT means that 32A includes DAT, AMT sub-fields, and the format DAT and AMT corresponding to the composition format;
FLD32B=AMT表示32B包含AMT子栏位;FLD32B=AMT indicates that 32B contains the AMT sub-field;
3.3)根据3.1)和3.2)的参数配置,对SWIFT报文按TAG顺序进行解析:3.3) According to the parameter configuration of 3.1) and 3.2), the SWIFT message is parsed in TAG order:
例如SWIFT报文的32A格式如下:For example, the 32A format of the SWIFT message is as follows:
:32A:221017USD3322:32A:221017USD3322
以上报文场次32A通过1)和2)的参数设置,可以转化起息日、币种和金额字段,从而可以一一适配到交易栏位。The above message session 32A can be converted to the value date, currency and amount fields through the parameter settings of 1) and 2), so that they can be adapted to the transaction fields one by one.
步骤4中,从收到报文到交易栏位赋值和展示的全过程如下,以SWIFT700为例:In step 4, the whole process from receiving the message to assigning and displaying the value of the transaction field is as follows, taking SWIFT700 as an example:
4.1)收到SWIFT MT700报文4.1) Receive SWIFT MT700 message
......(省略)...... (omitted)
:27:1/1:27:1/1
:40A:IRREVOCABLE:40A:IRREVOCABLE
:20:110LC22000180:20:110LC22000180
:31C:221114:31C:221114
:40E:UCP LATEST VERSION:40E:UCP LATEST VERSION
......(省略)...... (omitted)
:32A:USD3332,:32A:USD3332,
......(省略)...... (omitted)
4.2)表2为读取报文规则配置表,显示读取报文规则配置表参数配置:4.2) Table 2 is the configuration table for reading message rules, showing the parameter configuration of reading message rule configuration table:
表2读取报文规则配置表Table 2 Read message rule configuration table
4.3)目标系统交易栏位赋值和展示4.3) Target system transaction field assignment and display
以MT700报文场次32B、40A为例,通过读取报文配置表参数,可以把32B对应的AMT和CUR两个字段,映射到LET001(出口开证交易)中AA模块BBB路径下的金额和币种字段,把40A栏位根据映射到LET001(出口开证交易)中AA模块BBB路径下的LCRTYP字段(信用证类型),通过码表校验正确性,并将IRREVOCABLE对应的码值为I保存;通过把所有的报文转化解析抽取到单独一层做处理,业务交易只需要关注本身的业务逻辑;Taking MT700 message sessions 32B and 40A as an example, by reading the parameters of the message configuration table, the two fields of AMT and CUR corresponding to 32B can be mapped to the amount and Currency field, map the 40A field to the LCRTYP field (letter of credit type) under the AA module BBB path in LET001 (export L/C opening transaction), check the correctness through the code table, and set the code value corresponding to IRREVOCABLE to I Save; by extracting all message conversion and analysis to a single layer for processing, business transactions only need to focus on their own business logic;
报文经过处理后形成结构化数据文件:After the message is processed, it forms a structured data file:
......(省略)...... (omitted)
LET001.AA.BBB.AMT=3332LET001.AA.BBB.AMT=3332
LET001.AA.BBB.CUR=USDLET001.AA.BBB.CUR=USD
LET001.AA.CCC.LCRTYP=I(码值IRREVOCABLE映射I值)LET001.AA.CCC.LCRTYP=I (code value IRREVOCABLE mapping I value)
......(省略)...... (omitted)
业务人员办理业务交易时,系统可直接加载结构化文件,根据字段路径和值域直接赋值到指定界面栏位,减少了数据交互以及转换的逻辑。When business personnel handle business transactions, the system can directly load structured files, and directly assign values to designated interface fields according to field paths and value fields, reducing the logic of data interaction and conversion.
本实施例还提供一种解析SWIFT报文和自动映射到业务交易栏位的系统,所述解析SWIFT报文和自动映射到业务交易栏位的系统可以通过执行所述解析SWIFT报文和自动映射到业务交易栏位的方法的流程步骤予以实现,即本领域技术人员可以将所述解析SWIFT报文和自动映射到业务交易栏位的方法理解为所述解析SWIFT报文和自动映射到业务交易栏位的系统的优选实施方式。This embodiment also provides a system for parsing SWIFT messages and automatically mapping to business transaction fields, the system for parsing SWIFT messages and automatically mapping to business transaction fields can perform the parsing of SWIFT messages and automatic mapping The process steps of the method to the business transaction field are realized, that is, those skilled in the art can understand the method of analyzing the SWIFT message and automatically mapping to the business transaction field as the analysis of the SWIFT message and automatically mapping to the business transaction A preferred embodiment of the system of fields.
本实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被处理器执行时实现上述的解析SWIFT报文和自动映射到业务交易栏位的方法的步骤。This embodiment also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the steps of the above-mentioned method for parsing a SWIFT message and automatically mapping it to a business transaction field are implemented.
本实施例还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现上述的解析SWIFT报文和自动映射到业务交易栏位的方法的步骤。This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the computer program is executed by the processor, the above-mentioned parsing of SWIFT messages and automatic mapping to business Steps for the method of the transaction field.
实施例2:Example 2:
本实施例提供一种解析SWIFT报文和自动映射到业务交易栏位的系统,包括如下模块:This embodiment provides a system for parsing SWIFT messages and automatically mapping to business transaction fields, including the following modules:
模块M1:维护报文规则配置表,将外部报文字段与业务交易栏位信息建立匹配和处理规则的映射关系;维护内容包括信息来源和形式、信息种类、交易代码、信息标签、信息子标签、目标栏位、栏位类型、栏位转换方法、拷贝标志以及覆盖标志。Module M1: Maintain the message rule configuration table, and establish a mapping relationship between external message fields and business transaction field information for matching and processing rules; maintenance content includes information sources and forms, information types, transaction codes, information labels, and information sub-labels , target field, field type, field conversion method, copy flag, and overwrite flag.
模块M2:注册报文消息监听,当收到一笔来报时触发事件,通知后台报文处理服务进行报文解析;Module M2: Register message monitoring, trigger an event when an incoming report is received, and notify the background message processing service to analyze the message;
模块M3:通过后台服务对报文进行解析,根据解析结果读取相关信息判断报文类型,读取报文规则配置表中该类报文的相关配置规则,从数据库中加载与本报文相关的具体业务信息,将外部报文文件转换为标准的结构化数据文件,并生成待办任务放到任务队列中;根据解析结果读取的相关信息包括:报文类型、收报行、发报行、币种、金额以及参考号;从数据库中加载与本报文相关的具体业务信息,综合外部报文内容信息、配置规则信息以及已有业务记录信息,完成值域覆盖处理、栏位规则处理以及码值转换处理,将外部报文文件转换为标准的结构化数据文件。Module M3: Analyze the message through the background service, read the relevant information according to the analysis result to judge the message type, read the relevant configuration rules of this type of message in the message rule configuration table, and load the relevant information related to this message from the database. specific business information, convert the external message file into a standard structured data file, and generate to-do tasks and put them in the task queue; the relevant information read according to the analysis results includes: message type, receiving line, sending line , currency, amount, and reference number; load specific business information related to this message from the database, integrate external message content information, configuration rule information, and existing business record information, and complete value range coverage processing and field rule processing And code value conversion processing, converting the external message file into a standard structured data file.
模块M4:从待办夹选中待处理业务,系统自动读取结构化数据存储文件进行解析处理,完成业务交易界面栏位自动赋值和展示,核实交易栏位信息,完成业务办理。Module M4: Select the business to be processed from the to-do folder, the system automatically reads the structured data storage file for analysis and processing, completes the automatic assignment and display of the fields on the business transaction interface, verifies the information in the transaction field, and completes the business processing.
实施例3:Example 3:
本领域技术人员可以将本实施例理解为实施例1、实施例2的更为具体的说明。Those skilled in the art may understand this embodiment as a more specific description of Embodiment 1 and Embodiment 2.
本实施例提供一套基于规则配置解析SWIFT报文和自动映射到业务交易栏位的方法,当后台服务收到来报时,根据配置好的规则将来报内容自动解析和映射到业务交易对应的栏位,实现规则可定制、规则可复用、规则可扩展,减少柜员人工干预工作量、提升用户体验。This embodiment provides a set of methods based on rule configuration to parse SWIFT messages and automatically map them to business transaction fields. When the background service receives an incoming report, it automatically parses and maps the content of the incoming report to the corresponding field of the business transaction according to the configured rules. , realize customizable rules, reusable rules, and extensible rules, reduce the workload of manual intervention by tellers, and improve user experience.
本实施例提供的将报文内容按照配置规则解析和映射到业务交易栏位的方法包括:The method provided in this embodiment for parsing and mapping message content to business transaction fields according to configuration rules includes:
步骤1:维护报文规则配置表,将外部报文字段与业务交易栏位信息建立匹配和处理规则的映射关系,维护内容包括信息来源和形式、信息种类、交易代码、信息标签(TAG)、信息子标签、目标栏位、栏位类型、栏位转换方法、拷贝标志、覆盖标志等;Step 1: Maintain the message rule configuration table, and establish a mapping relationship between the external message field and the business transaction field information and processing rules. The maintenance content includes information source and form, information type, transaction code, information tag (TAG), Information sub-tab, target field, field type, field conversion method, copy flag, overwrite flag, etc.;
步骤2:注册报文消息监听,当收到一笔来报时触发事件,通知后台报文处理服务进行报文解析;Step 2: Register for message monitoring, when an incoming report is received, an event is triggered, and the background message processing service is notified to analyze the message;
步骤3:后台服务对报文进行解析,根据解析结果读取报文类型、收报行、发报行、币种、金额、参考号等信息判断报文类型,然后读取报文规则配置表中该类报文的相关配置规则,同时从数据库中加载与本报文相关的具体业务信息,综合外部报文内容、配置规则、已有业务记录等信息,完成值域覆盖、栏位规则处理、码值转换等一系列处理,最终将外部报文文件转换为标准的结构化数据文件(界面展示文件),并生成待办任务放到任务队列中;Step 3: The background service analyzes the message, reads the message type, receiving bank, sending bank, currency, amount, reference number and other information to judge the message type according to the analysis result, and then reads the message rule configuration table Relevant configuration rules for this type of message, and at the same time load specific business information related to this message from the database, integrate external message content, configuration rules, existing business records and other information, and complete value range coverage, field rule processing, A series of processing such as code value conversion, and finally convert the external message file into a standard structured data file (interface display file), and generate to-do tasks and put them in the task queue;
步骤4:业务人员从待办夹选中待处理业务,系统自动读取结构化数据存储文件进行解析处理,完成业务交易界面栏位自动赋值和展示;业务办理人员核实交易栏位信息正确性等完成业务办理。Step 4: The business personnel select the business to be processed from the to-do folder, the system automatically reads the structured data storage file for analysis and processing, and completes the automatic assignment and display of the fields on the business transaction interface; the business personnel verify the correctness of the information in the transaction field, etc. Business handling.
本发明通过提供一套基于规则配置解析SWIFT报文和自动映射到业务交易栏位的方法,实现外部报文到内部交易信息的自动转换,提升效率和降低差错率;既可屏蔽外部报文规则变化带来的影响,同时通过配置交易可以在线调整配置规则,不需要或少修改业务交易代码,实现软件的可配置化、低代码,进一步可以支持其他数据格式比如XML报文复用相关配置规则,具有规则可复用性、可扩展性、可插入性等特点。The present invention realizes the automatic conversion from external messages to internal transaction information by providing a set of rule-based configuration analysis methods for analyzing SWIFT messages and automatically mapping them to business transaction fields, improving efficiency and reducing error rates; both external message rules can be shielded At the same time, the configuration rules can be adjusted online through the configuration transaction, and the business transaction code does not need to be modified or less, so that the software can be configurable and low-code, and can further support other data formats such as XML message multiplexing related configuration rules , has the characteristics of rule reusability, scalability, and pluggability.
本领域技术人员知道,除了以纯计算机可读程序代码方式实现本发明提供的系统及其各个装置、模块、单元以外,完全可以通过将方法步骤进行逻辑编程来使得本发明提供的系统及其各个装置、模块、单元以逻辑门、开关、专用集成电路、可编程逻辑控制器以及嵌入式微控制器等的形式来实现相同功能。所以,本发明提供的系统及其各项装置、模块、单元可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置、模块、单元也可以视为硬件部件内的结构;也可以将用于实现各种功能的装置、模块、单元视为既可以是实现方法的软件模块又可以是硬件部件内的结构。Those skilled in the art know that, in addition to realizing the system provided by the present invention and its various devices, modules, and units in a purely computer-readable program code mode, the system provided by the present invention and its various devices can be completely programmed by logically programming the method steps. , modules, and units implement the same functions in the form of logic gates, switches, ASICs, programmable logic controllers, and embedded microcontrollers. Therefore, the system and its various devices, modules, and units provided by the present invention can be regarded as a hardware component, and the devices, modules, and units included in it for realizing various functions can also be regarded as hardware components. The structure; the devices, modules, and units for realizing various functions can also be regarded as not only the software modules for realizing the method, but also the structures in the hardware components.
以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变化或修改,这并不影响本发明的实质内容。在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art may make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. In the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211519418.4A CN116069407A (en) | 2022-11-30 | 2022-11-30 | Method and system for analyzing SWIFT message and automatically mapping SWIFT message to business transaction column |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211519418.4A CN116069407A (en) | 2022-11-30 | 2022-11-30 | Method and system for analyzing SWIFT message and automatically mapping SWIFT message to business transaction column |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116069407A true CN116069407A (en) | 2023-05-05 |
Family
ID=86172424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211519418.4A Pending CN116069407A (en) | 2022-11-30 | 2022-11-30 | Method and system for analyzing SWIFT message and automatically mapping SWIFT message to business transaction column |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116069407A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117422557A (en) * | 2023-12-19 | 2024-01-19 | 凯美瑞德(苏州)信息科技股份有限公司 | Transaction message generation method, electronic equipment and storage medium |
-
2022
- 2022-11-30 CN CN202211519418.4A patent/CN116069407A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117422557A (en) * | 2023-12-19 | 2024-01-19 | 凯美瑞德(苏州)信息科技股份有限公司 | Transaction message generation method, electronic equipment and storage medium |
CN117422557B (en) * | 2023-12-19 | 2024-02-23 | 凯美瑞德(苏州)信息科技股份有限公司 | Transaction message generation method, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7711680B2 (en) | Common common object | |
US11361291B2 (en) | Enterprise resource planning (ERP) integrator system and method | |
US7711676B2 (en) | Tracking usage of data elements in electronic business communications | |
JP5106840B2 (en) | Modeling data elements | |
CN110245110A (en) | Data processing method, device and storage medium | |
US20160275182A1 (en) | Automating generation of messages in accordance with a standard | |
CN109062872B (en) | Method for uniformly processing customs files with different formats | |
US7904491B2 (en) | Data mapping and import system | |
BRPI0618666A2 (en) | xml specification for electronic data exchange (edi) | |
US7778982B2 (en) | System for processing and using electronic documents | |
US20070203926A1 (en) | Scalable transformation and configuration of EDI interchanges | |
US9612786B2 (en) | Document output processing | |
US11544669B2 (en) | Computing framework for compliance report generation | |
CN106919618A (en) | Excel data lead-in methods and system | |
US20120158583A1 (en) | Automated bank transfers using identifier tokens | |
CN110378778A (en) | Multi-data source account checking method, system, electronic equipment and storage medium | |
CN105224542A (en) | A kind of method and apparatus business object data being imported platform | |
US9577883B2 (en) | Method and system of automated compliance management | |
CN116069407A (en) | Method and system for analyzing SWIFT message and automatically mapping SWIFT message to business transaction column | |
CN114493551B (en) | Contract generation method and device, electronic equipment and storage medium | |
CN113395292A (en) | Message processing method and device, electronic equipment and storage medium | |
US7831442B1 (en) | System and method for minimizing edits for medical insurance claims processing | |
US6061694A (en) | Message structure | |
US12292877B2 (en) | File enrichment for automatic database update | |
CN111273966B (en) | Welfare data processing method, device and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |