CN113158650A - Message processing method, device, equipment and storage medium - Google Patents

Message processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113158650A
CN113158650A CN202110515480.5A CN202110515480A CN113158650A CN 113158650 A CN113158650 A CN 113158650A CN 202110515480 A CN202110515480 A CN 202110515480A CN 113158650 A CN113158650 A CN 113158650A
Authority
CN
China
Prior art keywords
message
routing
preset
channel
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110515480.5A
Other languages
Chinese (zh)
Inventor
吴俊平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110515480.5A priority Critical patent/CN113158650A/en
Publication of CN113158650A publication Critical patent/CN113158650A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • G06F40/295Named entity recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Abstract

The text belongs to the field of automatic program design, and particularly relates to a message processing method, a device, equipment and a storage medium, which are suitable for processing multi-channel messages, wherein the method comprises the following steps: receiving a multi-channel original message; converting the multi-channel original message into a target format according to a preset conversion rule, wherein the target format comprises preset definitions corresponding to different attribute information; and matching the attribute information in the target format with the attribute information of the historical message through the preset definition so as to realize the sorting processing of the multi-channel original message, wherein the text can quickly realize the sorting processing of the messages in different channels.

Description

Message processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of automatic programming, and in particular, to a method, an apparatus, a device, and a storage medium for processing a packet.
Background
The SWIFT messages are message types specified by a messaging system provided by SWIFT (Society for world wide bank Financial Telecommunications associations, the world bank Financial Telecommunications Society), and standardized and normalized message formats of the SWIFT messages become the most important means for payment and settlement among banks. The existing SWIFT application platform has a function of clearing and dividing routes of SWIFT messages, but clearing and dividing are mainly carried out in a mode of TAG (TAG) domains of the SWIFT messages, elements are not considered from a business perspective, and the TAG domain clearing can only realize clearing and dividing of messages in a single format, so that routing rules of the SWIFT are configured with certain limitations, routing clearing and dividing of messages of other channel systems (such as an electronic transfer system developed and maintained by a New York clearing institute bank and a federal reserve system in the United states) cannot be realized, in actual work, clearing and dividing of messages in different channels are carried out in a mode of artificial participation, the efficiency of clearing and dividing messages can be greatly reduced, and how to improve the clearing and dividing efficiency of messages in different channels becomes a technical problem which needs to be solved at present.
Disclosure of Invention
In view of the foregoing problems in the prior art, an object of the present invention is to provide a method, an apparatus, a device and a storage medium for processing a packet, which can improve the sorting efficiency of receiving packets from different channels.
In order to solve the technical problems, the specific technical scheme is as follows:
in one aspect, a packet processing method is provided herein, which is adapted to process a multi-channel packet, and the method includes:
receiving a multi-channel original message;
converting the multi-channel original message into a target format according to a preset conversion rule, wherein the target format comprises preset definitions corresponding to different attribute information;
and matching the attribute information in the target format with the attribute information of the historical message through the preset definition to realize the sorting processing of the multi-channel original message.
Further, the receiving the multichannel original message comprises:
acquiring a multi-channel message original format, wherein the multi-channel message original format comprises message domains corresponding to different attribute information;
determining a target format, wherein the target format comprises preset definitions corresponding to different attribute information;
and establishing a conversion relation between the original multi-channel message format and the target format so as to obtain a preset conversion rule for converting the original multi-channel message format into the target format.
Preferably, the establishing a conversion relationship between the original format and the target format of the multi-channel message further includes:
acquiring the relation between different attribute information and message domains in the original format of the multi-channel message, and generating data in a data dictionary format;
acquiring preset definitions corresponding to different attribute information in a target format to form a data dictionary specification definition comprising the preset definitions;
and generating a data dictionary according to the data dictionary format data and the data dictionary specification definition.
Optionally, the attribute information at least includes an entity object parameter and a service object parameter.
Further, matching different attribute information in the target format with attribute information of a history message through the preset definition, so as to realize sorting processing of the multi-channel original message, and further comprising:
determining an entity object parameter and a service object parameter according to preset definitions corresponding to different attribute information in the target format;
determining an entity object corresponding to the multi-channel original message according to the entity object parameter;
matching the service object parameter with at least one historical message in a historical message queue of the entity object according to a preset matching rule;
if the matching is successful, determining the historical message queue as a target historical message queue, and sorting the multi-channel original message into the target historical message queue; or
And if the matching is unsuccessful, performing sorting processing on the multi-channel original message according to a preset sorting rule until the multi-channel original message is sorted to a specific service queue.
Optionally, the history packet queue includes a receiving history packet queue and a sending history packet queue.
Optionally, the matching rule includes a matching range, a matching packet type, and a matching element.
Further, the preset clearing rule comprises at least one routing group, and the routing group is used for representing all routing rules of each entity object;
each routing group comprises at least one routing set, and the routing set is used for representing all routing rules of each business object in a single entity object;
each routing set comprises a plurality of routing rules executed according to a preset sequence, and the converted target formats are sequentially routed through the routing rules.
Further, the routing rule comprises a keyword, an operator and an expected value;
the keywords correspond to preset definitions corresponding to different attribute information in the target format;
the operator is used for realizing the sorting processing of different attribute information according to the keywords;
and the expected value is used for determining the score clearing path according to the score clearing processing result of the operator.
Optionally, if the matching is unsuccessful, performing a sorting process on the multi-channel original packet according to a preset sorting rule until the multi-channel original packet is sorted to a specific service queue, further comprising:
determining a routing set of the entity object according to the entity object corresponding to the multi-channel original message;
and according to the routing set of the entity object and the service object parameter, carrying out routing processing on the multi-channel original message through the routing rule until the multi-channel original message is classified to a specific service queue.
Further, the performing routing processing on the multi-channel original packet through the routing rule until the multi-channel original packet is sorted to a specific service queue further includes:
determining a plurality of routing rules executed in a preset sequence in the routing set according to the routing set of the entity object, wherein each routing rule comprises a corresponding keyword, an operator and an expected value;
determining a preset definition corresponding to the business object parameter in a target format according to the business object parameter;
and according to the preset sequence, taking the preset definition as a keyword, utilizing the operational character to judge the expected value of the service object parameter corresponding to the preset definition, and determining a routing path, thereby realizing the sorting of the multi-channel original message.
Optionally, the performing, according to the routing set of the entity object and the service object parameter, routing processing on the multi-channel original packet through the routing rule until the multi-channel original packet is sorted into a specific service queue, and then includes:
acquiring the quantity of original messages received by each entity object, and sequencing according to the quantity;
determining a routing rule corresponding to an entity object with a large number of multi-channel original messages as a target routing rule, and adjusting the execution sequence of the target routing rule to enable the target routing rule to be executed preferentially.
Optionally, the routing processing, according to the routing set of the entity object and the service object parameter, the multichannel original packet is routed through the routing rule until the multichannel original packet is sorted to a specific service queue, and then the method further includes:
acquiring the execution times of each routing rule in each entity object;
and adjusting the execution sequence of the routing rules with the higher execution times so as to enable the routing rules with the higher execution times to be executed preferentially.
Preferably, the multi-channel original message includes an external clearing system message and an internal forwarding message.
In another aspect, a message processing apparatus is further provided herein, where the apparatus includes:
the message receiving device is used for receiving the multi-channel original message;
the message conversion module is used for converting the multi-channel original message into a target format according to a preset conversion rule, wherein the target format comprises preset definitions corresponding to different attribute information;
and the message sorting module is used for matching the attribute information in the target format with the attribute information of the historical message through the preset definition so as to realize sorting processing of the multi-channel original message.
In another aspect, a computer device is also provided herein, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method steps as described above when executing the computer program.
In another aspect, a computer-readable storage medium is also provided herein, which stores an executable computer program, which when executed by a processor implements the method steps as described above.
By adopting the technical scheme, the message processing method, the device, the equipment and the storage medium can quickly realize the sorting processing of the multi-channel original message by converting the received multi-channel original message into the message in the target format and then matching the attribute information of the message in the target format with the attribute information of the received message, and the method provided by the text can quickly realize the sorting processing of the messages in different channels.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating steps of a message processing method provided in an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating steps obtained by pre-setting transformation rules in an embodiment herein;
FIG. 3 is a diagram illustrating the data dictionary generation steps in the embodiments herein;
FIG. 4 is a diagram illustrating steps of a message matching process in an embodiment of the present disclosure;
FIG. 5 is a diagram illustrating the steps of a packet sorting process in an embodiment of the present disclosure;
fig. 6 is a schematic diagram illustrating a detailed packet sorting process in the embodiment of the present disclosure;
FIG. 7 is a diagram illustrating a routing group structure in an embodiment herein;
FIG. 8 is a logic diagram illustrating the execution of a union of messages in an embodiment herein;
FIG. 9 is a logic diagram illustrating execution of a packet intersection in an embodiment of the present disclosure;
FIG. 10 is a logic diagram illustrating random execution of a message in an embodiment of the present disclosure;
FIG. 11 is a schematic diagram illustrating the steps of the report routing in the embodiments herein;
fig. 12 is a schematic structural diagram of a message processing apparatus provided in an embodiment of the present disclosure;
fig. 13 shows a schematic structural diagram of a computer device provided in an embodiment herein.
Description of the symbols of the drawings:
100. a message receiving module;
200. a message conversion module;
300. a message sorting module;
1302. a computer device;
1304. a processor;
1306. a memory;
1308. a drive mechanism;
1310. an input/output module;
1312. an input device;
1314. an output device;
1316. a presentation device;
1318. a graphical user interface;
1320. a network interface;
1322. a communication link;
1324. a communication bus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments herein without making any creative effort, shall fall within the scope of protection.
It should be noted that the terms "first," "second," and the like in the description and claims herein and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments herein described are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
Because the formats of the messages in different channels are different, for example, the message format of the SWIFT MT is the TAG field, and the messages in other payment channels may adopt the formats of XML and the like, the messages in a single channel, for example, the SWIFT messages, may adopt the TAG field to clear, but the messages in different channels, for example, the messages in the electronic money transfer system developed and maintained by the new york clearing house bank peer payment system and the federal reserve system in the united states, may not be cleared according to the TAG field any more, with the wide development of international business, the business round trip between different channels is more and more frequent, in the prior art, in some systems, the clearing of the messages in different channels is mainly cleared manually, so the clearing efficiency and the clearing accuracy are greatly reduced, which is not beneficial to the smooth development of business, in some other systems, the system clearing setting is also available, but each system is comparatively dispersed, and the messages in each channel can not be matched with each other in a correlated manner, and the clearing efficiency can also be reduced.
In order to solve the above problem, embodiments of the present specification provide a message processing method, which can implement a sorting process of messages in different channels, and specifically, convert message formats in different channels into a target format through a preset conversion rule, so that positions of different attribute information can be identified through the converted target format, that is, attribute information corresponding to a preset definition is determined through the preset definition in the target format, and then, through matching with attribute information of a history message, sorting of received messages in different channels can be quickly implemented.
Specifically, embodiments of the present disclosure provide a method for processing a packet, which can quickly implement sorting of packets in different channels. Fig. 1 is a schematic diagram of steps of a message processing method provided in an embodiment of the present disclosure, and the present specification provides the method operation steps described in the embodiment or the flowchart, but more or less operation steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual system or apparatus product executes, it can execute sequentially or in parallel according to the method shown in the embodiment or the figures. Specifically, as shown in fig. 1, the method may include:
s101: receiving a multi-channel original message;
s102: converting the multi-channel original message into a target format according to a preset conversion rule, wherein the target format comprises preset definitions corresponding to different attribute information;
s103: and matching the attribute information in the target format with the attribute information of the historical message through the preset definition so as to realize the sorting processing of the multi-channel original message.
In actual work, received multi-channel original messages are converted into target formats, the target formats can be understood as formats which can be identified by a receiver (a receiving bank), different attribute information of different preset definitions is determined according to the characteristics of the messages, then the attribute information in the converted target formats is compared with the attribute information of historical messages to achieve sorting processing of the multi-channel original messages, and the final sorting positions or queues of the multi-channel messages can be quickly sorted in a one-time comparison mode, so that manual sorting of the multi-channel messages in the prior art is avoided, and sorting efficiency and accuracy are greatly improved.
The preset conversion rule may be set in advance, specifically, the format information of the multi-channel packet is obtained in advance, the positions of different attribute information are determined according to the format information of the multi-channel packet, the positions of the different attribute information may be packet domains, that is, region blocks representing different information, such as line numbers, account numbers, service types, service data, currency types, money amounts, and the like, as shown in fig. 2, according to the different format information, the expression modes of the packet domains and the structural composition of the packet may be different, and the conversion of the different format information into a uniform target format may include the following steps:
s201: acquiring a multi-channel message original format, wherein the multi-channel message original format comprises message domains corresponding to different attribute information;
s202: determining a target format, wherein the target format comprises preset definitions corresponding to different attribute information;
s203: and establishing a conversion relation between the original multi-channel message format and the target format so as to obtain a preset conversion rule for converting the original multi-channel message format into the target format.
By the same target format, the problem of format difference in messages of different channels is avoided, and the messages can be directly identified. For example, the message domains in the messages of different channels are granulated and disassembled into service elements with separate service semantics, so that the service elements corresponding to the service semantics can be obtained through the service semantics, namely the preset definitions, and the rapid and convenient conversion mode can ensure the identification and the sorting of the messages of different channels.
The target format may be set for the message format of the receiving party itself, or may be a general format set according to an actual situation, and only needs to be recognized by the receiving party, which is not described in detail in the embodiments of this specification.
In this embodiment of the present specification, a standard data dictionary may be set in the field of a message to implement conversion between an original format and a target format of a multi-channel message, and specifically, as shown in fig. 3, the method may include the following steps:
s301: acquiring the relation between different attribute information and message domains in the original format of the multi-channel message, and generating data in a data dictionary format;
s302: acquiring preset definitions corresponding to different attribute information in a target format to form a data dictionary specification definition comprising the preset definitions;
s303: and generating a data dictionary according to the data dictionary format data and the data dictionary specification definition.
The data dictionary format data can represent attribute information corresponding to different message fields, the data dictionary specification definitions represent preset definitions of different attribute information enemies, namely service semantics, each preset definition corresponds to one message field, for example, the preset definitions can be terms such as legal entities, line numbers, service types, money amounts, currency and the like, the attribute information can be specific parameters corresponding to the preset definitions, so that format messages of different channels can be quickly converted into recognizable forms through the preset data dictionary, and the data dictionary can be set in advance in actual work, so that quick conversion and sorting can be realized when messages of different channels are received, wherein a data dictionary can be set in the message format of each channel, and the message formats of all channels can also be converted through one data dictionary, the specific arrangement mode is not limited in the embodiments of the present specification.
In an embodiment of this specification, the attribute information at least includes an entity object parameter and a service object parameter, where the entity object parameter may represent identification information of a corresponding legal entity, so that the legal object position to which the received message belongs can be obtained by extracting the entity object parameter through the preset definition, and then different service object parameters are continuously determined according to the preset definition until a final clearing position of the received message is determined.
In this embodiment of this specification, as shown in fig. 4, the matching different attribute information in the target format with the attribute information of the historical packet to implement the sorting processing on the multichannel original packet further includes:
s401: determining an entity object parameter and a service object parameter according to preset definitions corresponding to different attribute information in the target format;
s402: determining an entity object corresponding to the multi-channel original message according to the entity object parameter;
s403: matching the service object parameter with at least one historical message in a historical message queue of the entity object according to a preset matching rule;
s404: if the matching is successful, determining the historical message queue as a target historical message queue, and sorting the multi-channel original message into the target historical message queue; or
S405: and if the matching is unsuccessful, performing sorting processing on the multi-channel original message according to a preset sorting rule until the multi-channel original message is sorted to a specific service queue.
In actual work, under the condition that an entity object is determined, historical message information can be obtained through the determined entity object, specifically, the line number of the entity object can be determined, when the line number of a receiving line is determined to be AAAAAA through a preset definition after conversion, the entity object can be determined to be A, then the historical message in the entity A is matched with the received message, when the historical message successfully matched with the received message is determined, the received message is classified into the historical message, and the received messages in different channels can be rapidly classified through the matching mode.
Illustratively, assume that a history report M has been cleared to the C traffic queue of entity A's B system. After the incoming telegram N is received, the advanced legal entity presets a definition to clear and separate the legal entity, matching is carried out according to the receiving and reporting matching rule of the legal entity (for example, currency, amount and date of interest are the same, and the service number is the same as the related service number), and if the matching of the N and the M is successful, the N can be directly routed to a queue for clearing the M, namely a C service queue of a B system of the entity A.
The history message queue may include a report receiving history message queue and a report sending history message queue, and when a received message is not matched with the report receiving history message queue, the report sending history message queue may be continuously matched.
It should be noted that the sending matching rule and the receiving matching rule are set in a similar manner, and the service can be set according to the data dictionary corresponding to the message domain, only the matched data is different, the sending matching is that the received message is matched with the previously sent message, and the receiving matching is that the received message is matched with the previously received message.
The matching rule may include a matching range, a matching message type, and a matching factor, for example, the matching range may adopt matching modes of receiving and reporting messages and historical receiving and reporting messages, receiving and reporting messages and historical sending messages, and the like; the matching message type may be a SWIFT MT message, and the matching message type may be a SWIFT MT message, or other types of messages, such as a american bank equity settlement System (CHIPS) message, and the like; the message types may be different types of the same message type, for example, the SWIFT MT message may include two types, that is, MT102 and MT 103; the matching elements may be specific service parameters in the message, such as a message serial number, a specific service number, a date of arrival, and the like, and the received message may be matched to a specific service queue by dividing the matching elements.
It should be noted that, in actual work, it is difficult to generate two completely consistent message types, so matching for matching elements can be performed more quickly through matching degree, for example, when the matching degree of two messages reaches a preset value, it can be indicated that matching is completed, so that quick sorting of messages in different channels can be realized, and meanwhile, sorting efficiency can be improved.
In addition, in order to improve the matching efficiency, a preset number of historical messages can be selected as matching objects to be matched according to the matching types or matching types, wherein the selected historical messages can be representative messages, so that the matching times of received and reported messages can be reduced, and the matching efficiency is improved.
In this embodiment of the present description, when matching is unsuccessful, performing a sorting process on the multi-channel original packet according to a preset sorting rule, specifically, as shown in fig. 7, the preset sorting rule includes at least one routing group, and the routing group is used to represent all routing rules of each entity object;
each routing group comprises at least one routing set, and the routing set is used for representing all routing rules of each business object in a single entity object;
each route set comprises a plurality of route rules executed according to a preset sequence, the converted target formats are subjected to route processing in turn through the route rules, the final outlets of all routes only have a queue (which may be one or more), the queue is a processing mode of the route result, and the action of the queue is required to be clear and can be interpreted by a system. Optionally, the queue may include at least one of the following types:
1) a branch queue: the message is distributed to a certain branch line;
2) a system queue: the message is sent to a certain system;
3) and (3) service processing queue: specific processing queues specific to the system, such as remittance, remittance, etc.;
4) an external connection queue: specifically sending the message to a queue corresponding to which external connection system;
5) an inward rotation queue: the method comprises the following steps of realizing inward rotation of messages among legal persons in a group;
6) a queue to be processed: a user directly puts a certain type of message into a queue to be processed;
7) printing queue: sending the message to a designated printer queue;
8) file queue: the message is sent to a file queue to generate a file;
9) manual processing (downloading print archive scores);
10) filing queue: and (5) archiving the message.
For each routing rule, keywords, operators and expected values can be included; the keywords correspond to preset definitions corresponding to different attribute information in the target format; the operator is used for realizing the sorting processing of different attribute information according to the keywords; and the expected value is used for determining the clearing path according to the clearing processing result of the operator, and if the result of the operator is met, the configured routing result of the routing point is returned.
Different operators may be included according to different keywords, and the following table 1 is a type of the operator:
types of Table 1 operators
Figure BDA0003061788620000111
In actual work, the composite conditions of operators are also included, such as:
1) simultaneously satisfying (and): a default composite form, which represents that a single or a plurality of 'condition elements' under a composite condition meet an 'AND' logical relation;
2) the following conditions are satisfied: represents that a single OR a plurality of "condition elements" under a composite condition satisfy an "OR" logical relationship;
3) absence of: a single "condition element" representing a "condition element" under a composite condition satisfies the "NOT" logical relationship.
The expected routing result after the routing rule is satisfied generally points to a certain routing set to continue the whole routing process or put the message into a certain queue.
Therefore, as shown in fig. 5, if the matching is unsuccessful, the sorting processing is performed on the multi-channel original packet according to a preset sorting rule until the multi-channel original packet is sorted to a specific service queue, and the method further includes:
s501: determining a routing set of the entity object according to the entity object corresponding to the multi-channel original message;
s502: and according to the routing set of the entity object and the service object parameter, carrying out routing processing on the multi-channel original message through the routing rule until the multi-channel original message is classified to a specific service queue.
The execution of the routing rule is smoothly implemented according to the execution sequence specified in the route set, and specifically, as shown in fig. 6, the method may include the following steps:
s601: determining a plurality of routing rules executed in a preset sequence in the routing set according to the routing set of the entity object, wherein each routing rule comprises a corresponding keyword, an operator and an expected value;
s602: determining a preset definition corresponding to the business object parameter in a target format according to the business object parameter;
s603: and according to the preset sequence, taking the preset definition as a keyword, utilizing the operational character to judge the expected value of the service object parameter corresponding to the preset definition, and determining a routing path, thereby realizing the sorting of the multi-channel original message.
In actual work, exemplarily, assuming that a receiving behavior receiver is reported, the routing set of the legal entity clearing routing group can be cleared to the XX branch entity according to a rule receiver ═ PCBCJPJTXXX, assuming that the message type is msgtype, and the routing set of the XX branch entity clearing routing group can be cleared to the system a according to a rule msgtype ═ 103. Assuming that the payee account is recacct, "%" represents wildcard arbitrary characters, a route set of 103 messages in a route group in the system a in the XX division can be routed to a credit card repayment queue according to a rule of recacct like "ABCDEF%", and ABCDEF can be a card BIN feature of a credit card.
It should be noted that the execution result of a specific routing rule may not be a specific service queue, and through an operator and an expected value, the execution result may be another routing rule or a routing set, so that the types and execution orders of the routing rules in the routing set are different for different entity objects, and the execution order is expressed as an execution logic for receiving the clearing of the message, and in actual work, there may be several execution logics: a union set, an intersection set and a random set, wherein the union set is used for executing all routing rules under the union set in sequence, any routing result obtained after successful execution is executed as a result of the routing set, and the union set rule can be used in scenes of one report and multiple turns, broadcast messages and the like, as shown in fig. 8, the union set is a logic schematic diagram of union set execution; the intersection is a logic diagram for executing all routing rules under the intersection in sequence, if the results returned by the routing rules which are executed successfully are the same, the result is executed, otherwise, a default result is executed, as shown in fig. 9, the logic diagram is a logic diagram for executing the intersection; the next routing rule is executed in sequence at random until the first routing rule that is executed successfully appears, and the result returned by exiting and executing is shown in fig. 10, which is a logic diagram of random execution.
The message processing method provided above is directed to the clearing processing of multi-channel messages, which may include other external clearing system messages, and in some other embodiments, may further include inward forwarding messages, such as a message clearing sent from an external branch to a headquarter (for example, from XX branch of the china construction bank to headquarter of the china construction bank), although the message is sent from within a group, the clearing systems used are different, and thus the clearing may also be performed by the method provided above.
It should be noted that when it is determined that the sent message is an inward forwarding message, the clearing of the inward forwarding message may also be implemented by the above method, as shown in fig. 11, for example, the sent message enters a sending routing group of the entity (sending line), and is routed according to a routing rule in a sending routing set, and may be routed to a specific external connection queue, a message audit queue, an in-system inward forwarding queue, and the like, and the specific sending routing setting is consistent with the above receiving and forwarding, which is not described in detail in this specification.
On the basis of realizing the processing of the received message, in order to improve the processing efficiency of the subsequent message, the method can further comprise the following steps:
acquiring the quantity of multi-channel original messages received by each entity object, and sequencing according to the quantity;
determining a routing rule corresponding to an entity object with a large number of multi-channel original messages as a target routing rule, and adjusting the execution sequence of the target routing rule to enable the target routing rule to be executed preferentially.
It can be understood that, when a user sets different routing rules, the execution sequence of the routing can be adjusted as needed, so as to arrange the routing rule corresponding to the packet with a higher occurrence frequency to the front end of the routing to improve the execution efficiency of the automatic routing, further, the processing system of the packet can also have a function of automatically counting the execution condition of the routing, and adjust the priority of the routing rule according to the number of times of executing the routing within a period of time when running batch in a preset time period (such as the end of day), and sort according to the priority to improve the execution efficiency of the whole routing.
In addition to the adjustment of the high frequency packet, the adjustment may also be performed according to an execution condition of an actual routing rule, and the adjustment may specifically include:
acquiring the execution times of each routing rule in each entity object;
and adjusting the execution sequence of the routing rules with the higher execution times so as to enable the routing rules with the higher execution times to be executed preferentially.
In the embodiment of the specification, by adding the routing rule statistical function, a user can check the message circulation condition and the rule execution times statistics, so that the user can conveniently adjust the order and logic of the rule, and the execution efficiency and accuracy are improved; it should be noted that, when the routing rule is modified, the message can still be automatically circulated normally according to the previous rule, and the modification of the rule is not effective immediately until the rule is approved.
In order to avoid the fault of the adjusted routing rule in operation, a reset function can be set, so that the routing rule before adjustment can be quickly restored, and the efficiency of message processing is improved.
The message processing method, the device, the equipment and the storage medium provided by the embodiment of the specification convert the received multi-channel original message into the message in the target format, and then match the attribute information of the message in the target format with the attribute information of the received message, thereby rapidly realizing the sorting processing of the multi-channel original message.
Based on the same inventive concept, an embodiment of the present specification further provides a message processing apparatus, as shown in fig. 12, the apparatus includes;
a message receiving apparatus 100, configured to receive a multi-channel original message;
a message conversion module 200, configured to convert the multichannel original message into a target format according to a preset conversion rule, where the target format includes preset definitions corresponding to different attribute information;
the message sorting module 300 is configured to match the attribute information in the target format with the attribute information of the historical message according to the preset definition, so as to realize sorting processing on the multichannel original message.
The advantages obtained by the device are consistent with those obtained by the method, and are not described in detail in this specification.
As shown in fig. 13, for a computer device provided for embodiments herein, the computer device 1302 may include one or more processors 1304, such as one or more Central Processing Units (CPUs), each of which may implement one or more hardware threads. Computer device 1302 may also include any memory 1306 for storing any kind of information, such as code, settings, data, etc. For example, without limitation, memory 1306 may include any one or more of the following in combination: any type of RAM, any type of ROM, flash memory devices, hard disks, optical disks, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent fixed or removable components of computer device 1302. In one case, when processor 1304 executes associated instructions that are stored in any memory or combination of memories, computer device 1302 may perform any of the operations of the associated instructions. The computer device 1302 also includes one or more drive mechanisms 1308, such as a hard disk drive mechanism, an optical drive mechanism, etc., for interacting with any memory.
Computer device 1302 may also include an input/output module 1310(I/O) for receiving various inputs (via input device 1312) and for providing various outputs (via output device 1314)). One particular output mechanism may include a presentation device 1316 and an associated Graphical User Interface (GUI) 1318. In other embodiments, input/output module 1310(I/O), input device 1312, and output device 1314 may also not be included, as only one computer device in a network. Computer device 1302 may also include one or more network interfaces 1320 for exchanging data with other devices via one or more communication links 1322. One or more communication buses 1324 couple the above-described components together.
Communication link 1322 may be implemented in any manner, e.g., via a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 1322 may comprise any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
Corresponding to the methods in fig. 1-6, the embodiments herein also provide a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, performs the steps of the above-described method.
Embodiments herein also provide computer readable instructions, wherein when executed by a processor, a program thereof causes the processor to perform the method as shown in fig. 1-6.
It should be understood that, in various embodiments herein, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments herein.
It should also be understood that, in the embodiments herein, the term "and/or" is only one kind of association relation describing an associated object, meaning that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided herein, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments herein.
In addition, functional units in the embodiments herein may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present invention may be implemented in a form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The principles and embodiments of this document are explained herein using specific examples, which are presented only to aid in understanding the methods and their core concepts; meanwhile, for the general technical personnel in the field, according to the idea of this document, there may be changes in the concrete implementation and the application scope, in summary, this description should not be understood as the limitation of this document.

Claims (17)

1. A message processing method is suitable for processing multi-channel messages, and is characterized by comprising the following steps:
receiving a multi-channel original message;
converting the multi-channel original message into a target format according to a preset conversion rule, wherein the target format comprises preset definitions corresponding to different attribute information;
and matching the attribute information in the target format with the attribute information of the historical message through the preset definition so as to realize the sorting processing of the multi-channel original message.
2. The method of claim 1, wherein receiving the multi-channel raw message comprises:
acquiring a multi-channel message original format, wherein the multi-channel message original format comprises message domains corresponding to different attribute information;
determining a target format, wherein the target format comprises preset definitions corresponding to different attribute information;
and establishing a conversion relation between the original multi-channel message format and the target format so as to obtain a preset conversion rule for converting the original multi-channel message format into the target format.
3. The method of claim 2, wherein said establishing a conversion relationship between said multichannel message original format and said target format further comprises:
acquiring the relation between different attribute information and message domains in the original format of the multi-channel message, and generating data in a data dictionary format;
acquiring preset definitions corresponding to different attribute information in a target format to form a data dictionary specification definition comprising the preset definitions;
and generating a data dictionary according to the data dictionary format data and the data dictionary specification definition.
4. The method of claim 2, wherein the attribute information comprises at least an entity object parameter and a business object parameter.
5. The method according to claim 4, wherein different attribute information in the target format is matched with attribute information of a history packet through the preset definition to implement the sorting processing of the multichannel original packet, further comprising:
determining an entity object parameter and a service object parameter according to preset definitions corresponding to different attribute information in the target format;
determining an entity object corresponding to the multi-channel original message according to the entity object parameter;
matching the service object parameter with at least one historical message in a historical message queue of the entity object according to a preset matching rule;
if the matching is successful, determining the historical message queue as a target historical message queue, and sorting the multi-channel original message into the target historical message queue; or
And if the matching is unsuccessful, performing sorting processing on the multi-channel original message according to a preset sorting rule until the multi-channel original message is sorted to a specific service queue.
6. The method of claim 5, wherein the historical message queues include a receipt historical message queue and a delivery historical message queue.
7. The method of claim 5, wherein the matching rules include a matching range, a matching message type, and a matching factor.
8. The method of claim 5,
the preset clearing rule comprises at least one routing group, and the routing group is used for representing all routing rules of each entity object;
each routing group comprises at least one routing set, and the routing set is used for representing all routing rules of each business object in a single entity object;
each routing set comprises a plurality of routing rules executed according to a preset sequence, and the converted target formats are sequentially routed through the routing rules.
9. The method of claim 8, wherein the routing rules include keywords, operators, and expected values;
the keywords correspond to preset definitions corresponding to different attribute information in the target format;
the operator is used for realizing the sorting processing of different attribute information according to the keywords;
and the expected value is used for determining the score clearing path according to the score clearing processing result of the operator.
10. The method according to claim 9, wherein if the matching is unsuccessful, performing a sorting process on the multichannel original packet according to a preset sorting rule until the multichannel original packet is sorted to a specific service queue, further comprising:
determining a routing set of the entity object according to the entity object corresponding to the multi-channel original message;
and according to the routing set of the entity object and the service object parameter, carrying out routing processing on the multi-channel original message through the routing rule until the multi-channel original message is classified to a specific service queue.
11. The method according to claim 10, wherein said routing said multi-channel original packet through said routing rule until said multi-channel original packet is sorted to a specific service queue, further comprising:
determining a plurality of routing rules executed in a preset sequence in the routing set according to the routing set of the entity object, wherein each routing rule comprises a corresponding keyword, an operator and an expected value;
determining a preset definition corresponding to the business object parameter in a target format according to the business object parameter;
and according to the preset sequence, taking the preset definition as a keyword, utilizing the operational character to judge the expected value of the service object parameter corresponding to the preset definition, and determining a routing path, thereby realizing the sorting of the multi-channel original message.
12. The method according to claim 10, wherein said routing said multi-channel original packet according to said routing set of entity object and service object parameters through said routing rule until said multi-channel original packet is sorted to specific service queues, and then comprising:
acquiring the quantity of multi-channel original messages received by each entity object, and sequencing according to the quantity;
determining a routing rule corresponding to an entity object with a large number of multi-channel original messages as a target routing rule, and adjusting the execution sequence of the target routing rule to enable the target routing rule to be executed preferentially.
13. The method according to claim 10, wherein said routing said multi-channel original packet according to said routing set of entity object and service object parameters through said routing rule until said multi-channel original packet is sorted to specific service queues, and thereafter further comprising:
acquiring the execution times of each routing rule in each entity object;
and adjusting the execution sequence of the routing rules with the higher execution times so as to enable the routing rules with the higher execution times to be executed preferentially.
14. The method of claim 1, wherein the multi-channel raw messages comprise external clearing system messages and inbound messages.
15. A message processing apparatus, the apparatus comprising:
the message receiving device is used for receiving the multi-channel original message;
the message conversion module is used for converting the multi-channel original message into a target format according to a preset conversion rule, wherein the target format comprises preset definitions corresponding to different attribute information;
and the message sorting module is used for matching the attribute information in the target format with the attribute information of the historical message through the preset definition so as to realize sorting processing of the multi-channel original message.
16. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method steps of any of claims 1 to 14 when executing the computer program.
17. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when being executed by a processor, carries out the method steps of any one of claims 1 to 14.
CN202110515480.5A 2021-05-12 2021-05-12 Message processing method, device, equipment and storage medium Pending CN113158650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110515480.5A CN113158650A (en) 2021-05-12 2021-05-12 Message processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110515480.5A CN113158650A (en) 2021-05-12 2021-05-12 Message processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113158650A true CN113158650A (en) 2021-07-23

Family

ID=76874545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110515480.5A Pending CN113158650A (en) 2021-05-12 2021-05-12 Message processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113158650A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584631A (en) * 2022-03-01 2022-06-03 中国农业银行股份有限公司 Message processing method and device, electronic equipment and storage medium
CN114697390A (en) * 2022-03-31 2022-07-01 中国工商银行股份有限公司 XML message processing method and device, storage medium and electronic equipment
CN114928658A (en) * 2022-06-08 2022-08-19 中国建设银行股份有限公司 Low code platform message data processing system, method and device
CN115134208A (en) * 2022-07-11 2022-09-30 中信百信银行股份有限公司 Message conversion method and device, electronic equipment and storage medium
CN115580571A (en) * 2022-09-26 2023-01-06 中国建设银行股份有限公司 Message sending method, device, computing equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584631A (en) * 2022-03-01 2022-06-03 中国农业银行股份有限公司 Message processing method and device, electronic equipment and storage medium
CN114584631B (en) * 2022-03-01 2024-04-12 中国农业银行股份有限公司 Message processing method and device, electronic equipment and storage medium
CN114697390A (en) * 2022-03-31 2022-07-01 中国工商银行股份有限公司 XML message processing method and device, storage medium and electronic equipment
CN114697390B (en) * 2022-03-31 2023-12-08 中国工商银行股份有限公司 XML message processing method and device, storage medium and electronic equipment
CN114928658A (en) * 2022-06-08 2022-08-19 中国建设银行股份有限公司 Low code platform message data processing system, method and device
CN115134208A (en) * 2022-07-11 2022-09-30 中信百信银行股份有限公司 Message conversion method and device, electronic equipment and storage medium
CN115580571A (en) * 2022-09-26 2023-01-06 中国建设银行股份有限公司 Message sending method, device, computing equipment and storage medium
CN115580571B (en) * 2022-09-26 2024-02-09 中国建设银行股份有限公司 Message sending method, device, computing equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113158650A (en) Message processing method, device, equipment and storage medium
US10296974B2 (en) Methods and systems for monitoring market data to identify user defined market conditions
US8117609B2 (en) System and method for optimizing changes of data sets
US7139844B2 (en) Method and system for processing financial data objects carried on broadcast data streams and delivering information to subscribing clients
US8386633B2 (en) Method and system for processing raw financial data streams to produce and distribute structured and validated product offering data to subscribing clients
US7958025B2 (en) Method and system for processing raw financial data streams to produce and distribute structured and validated product offering objects
US8892759B2 (en) Method and system for pacing, acking, timing, and handicapping (path) for simultaneous receipt of documents having trader markups
JP5070305B2 (en) Transaction relay method and transaction relay system
US8824687B2 (en) Method and system for pacing, acking, timing, and handicapping (path) for simultaneous receipt of documents employing encryption
CN112950381A (en) Block chain matching exchange
CN112351392B (en) Cloud communication short message service platform
JP4820408B2 (en) Attribute engine
WO2022090982A1 (en) Methods, systems, and devices for managing and processing trading activity and trading information
WO2002013091A1 (en) System for processing raw financial data to produce validated product offering information to subscribers
US8005902B2 (en) System and method for accelerated dynamic data message generation and transmission
CN116346662A (en) Test message generation method, device, equipment and storage medium
CN112491596B (en) Cloud-based fault processing method and device
US10552900B2 (en) Asset inventory system
CN112348515A (en) Business processing method and business service system
KR100699151B1 (en) Method For Managing Work Processing By Composing Documents
CN112910763B (en) Method, device, equipment and medium for providing real-time data interface service
CN117196812A (en) Service processing method, device and equipment
CN114842479A (en) Bill management method and device, electronic equipment and storage medium
CN115619543A (en) Online risk signal binding management method, device and system and storage medium
WO2011157901A1 (en) Method and system in a communication network for contacting suppliers

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