[go: up one dir, main page]

CN115797062A - Method and device for selecting payment and remittance route based on rule engine - Google Patents

Method and device for selecting payment and remittance route based on rule engine Download PDF

Info

Publication number
CN115797062A
CN115797062A CN202211383658.6A CN202211383658A CN115797062A CN 115797062 A CN115797062 A CN 115797062A CN 202211383658 A CN202211383658 A CN 202211383658A CN 115797062 A CN115797062 A CN 115797062A
Authority
CN
China
Prior art keywords
transaction
rule
information
routing
cleared
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
CN202211383658.6A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211383658.6A priority Critical patent/CN115797062A/en
Publication of CN115797062A publication Critical patent/CN115797062A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a method and a device for selecting a payment and a remittance based on a rule engine, wherein the method comprises the steps of obtaining transaction information of a transaction to be cleared and a remittance business rule; the clearing business rule is a clearing business rule corresponding to the transaction type of the transaction to be cleared; utilizing a rule engine to perform rule calculation on the transaction information and the routing business rule to obtain first routing information; and checking the first routing information according to the routing business rule to obtain second routing information which indicates that the second routing information is used for clearing the transaction to be cleared. The scheme utilizes the rule engine to realize the automatic selection of the payment collection routes and improve the efficiency of selecting the payment collection routes.

Description

Rules engine-based payment and routing selection method and device
Technical Field
The invention relates to the technical field of rule engines, in particular to a method and a device for selecting a payment and remittance route based on a rule engine.
Background
Banking financial market transactions include foreign currency, bonds, funds, precious metals, derivatives, commodities, etc., which require confirmation of a payment sink before clearing.
At present, when banks deal with financial market business clearing, two parties involved in transaction account at a plurality of financial institutions, so that a plurality of payment routes exist in a system, and when the banks clear and deliver, a unique payment route needs to be selected from the payment routes. The existing payment routing selection usually adopts a manual mode, and payment routing is selected one by one for each transaction, so that the mode has the conditions of low efficiency and easy error. Cannot deal with the rapid development of the growing financial market business, and is difficult to ensure the correctness and the accuracy of the payment and remittance.
Disclosure of Invention
In view of the above disadvantages of the prior art, the present invention provides a method and an apparatus for selecting an overpass based on a rule engine, so as to improve the efficiency of selecting an overpass.
The first aspect of the present application provides a payment routing method based on a rule engine, including:
acquiring transaction information and a collection service rule of a transaction to be cleared; the clearing business rule is a clearing business rule corresponding to the transaction type of the transaction to be cleared;
utilizing a rule engine to perform rule calculation on the transaction information and the routing business rule to obtain first routing information;
and checking the first routing information according to the routing business rule to obtain second routing information which indicates that the transaction to be cleared is cleared.
Optionally, the obtaining transaction information and a forwarding service rule of a transaction to be cleared includes:
acquiring transaction information of a transaction to be cleared;
identifying a transaction type parameter related to the transaction type in the transaction information to determine the transaction type of the transaction to be cleared;
and inquiring in multiple preset converging service rules according to the transaction type of the transaction to be cleared to obtain a service rule corresponding to the transaction type of the transaction to be cleared.
Optionally, before the performing rule calculation on the transaction information and the routing service rule by using a rule engine to obtain the first routing information, the method further includes:
verifying the transaction information;
if the transaction information does not pass the verification, outputting a transaction information error prompt;
the utilizing a rule engine to perform rule calculation on the transaction information and the route converging service rule to obtain first route converging information includes:
and after the transaction information passes the verification, a rule engine is used for carrying out rule calculation on the transaction information and the routing business rule to obtain first routing information.
Optionally, the verifying the transaction information includes:
checking whether each field contained in the transaction information meets a preset field rule or not; wherein the field rules include at least a field length rule and a field type rule.
Optionally, the performing, by using a rule engine, rule calculation on the transaction information and the routing service rule to obtain first routing information includes:
pre-coding the converging service rule by using a rule engine to obtain a rule judgment code corresponding to the transaction type of the transaction to be cleared;
and processing the transaction information according to the rule judgment code to obtain first routing information.
A second aspect of the present application provides a rules engine-based payment routing apparatus, comprising:
the acquisition unit is used for acquiring transaction information and a converging business rule of a transaction to be cleared; the clearing business rule is a clearing business rule corresponding to the transaction type of the transaction to be cleared;
the calculation unit is used for carrying out rule calculation on the transaction information and the routing business rule by using a rule engine to obtain first routing information;
and the checking unit is used for checking the first routing information according to the routing business rule to obtain second routing information which indicates that the transaction to be cleared is cleared.
Optionally, when the obtaining unit obtains the transaction information of a transaction to be cleared and the routing business rule, the obtaining unit is specifically configured to:
acquiring transaction information of a transaction to be cleared;
identifying transaction type parameters related to the transaction types in the transaction information so as to determine the transaction types of the transactions to be cleared;
and inquiring in multiple preset routing business rules according to the transaction type of the transaction to be cleared to obtain the business rule corresponding to the transaction type of the transaction to be cleared.
Optionally, the verification unit is further configured to:
verifying the transaction information;
if the transaction information does not pass the verification, outputting a transaction information error prompt;
the calculation unit performs rule calculation on the transaction information and the routing service rule by using a rule engine, and when first routing information is obtained, the calculation unit is specifically configured to:
and after the transaction information passes the verification, a rule engine is utilized to carry out rule calculation on the transaction information and the route converging service rule, and first route converging information is obtained.
Optionally, when the verification unit verifies the transaction information, the verification unit is specifically configured to:
checking whether each field contained in the transaction information meets a preset field rule or not; wherein the field rules include at least a field length rule and a field type rule.
Optionally, the calculation unit performs rule calculation on the transaction information and the routing service rule by using a rule engine, and when first routing information is obtained, the calculation unit is specifically configured to:
utilizing a rule engine to perform pre-coding processing on the converging service rule to obtain a rule judgment code corresponding to the transaction type of the transaction to be cleared;
and processing the transaction information according to the rule judgment code to obtain first routing information.
The application provides a method and a device for selecting a payment and a remittance based on a rule engine, wherein the method comprises the steps of obtaining transaction information of a transaction to be cleared and a remittance business rule; the clearing business rule is a clearing business rule corresponding to the transaction type of the transaction to be cleared; utilizing a rule engine to perform rule calculation on the transaction information and the routing business rule to obtain first routing information; and checking the first transfer information according to the transfer service rule to obtain second transfer information which indicates that the transaction to be cleared is cleared. The scheme utilizes the rule engine to realize the automatic selection of the payment collection routes and improve the efficiency of selecting the payment collection routes.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for selecting a payment routing based on a rules engine according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an operating principle of a rules engine according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another rules engine-based payment routing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a payment routing apparatus based on a rules engine according to an embodiment of the present application.
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 given herein without making any creative effort, shall fall within the protection scope of the present invention.
To facilitate understanding of the technical solutions of the present application, some terms that may be referred to in the present application will be described first.
A rule engine: the rule engine is developed by an inference engine, is a component embedded in an application program, and realizes the separation of business decisions from application program codes and the writing of the business decisions by using a predefined semantic module. And receiving data input, explaining the business rules, and making business decisions according to the business rules.
Supporting and converging roads: the payment remittance route is a remittance route and mainly comprises an account number, account opening bank information and account information of a middle bank, and a user financial institution pays or receives funds aiming at a specific service scene.
Clearing and delivering: clearing and dealing means that after the securities are bought and sold by the securities buyer and seller at the securities exchange, the number and the amount of the securities bought and sold between the securities traders are respectively offset through the securities exchange, and after the difference is confirmed by the securities trader, the actions of receiving and paying the securities and the price are carried out within the preset time.
The existing main way of selecting a payment route is manual selection. The related personnel of the transaction confirms the information of each payment remittance one by one, thereby selecting one payment remittance among the payment remittances according to experience. This method has a problem of inefficiency.
In order to solve the above problems, the present invention provides a method and an apparatus for selecting a payment route based on a rule engine, so as to improve the flexibility of configuring key route information parameters and parameter priorities in the route selection of transactions by developers and business personnel, form a code for inquiring route information suitable for the transaction of the type through the rule engine for different transaction types, and complete the inquiry of the route information under different transactions through automatically searching and matching the route information. If the business logic rules need to be expanded and modified, only the rules and parameters need to be modified, and flexible dynamic configuration is realized.
Referring to fig. 1, a flowchart of a rules engine-based payment routing method according to an embodiment of the present application may include the following steps.
In order to implement the method provided by the embodiment, the following transaction routing information elements and engine basic rules may be defined in advance, and these two items of content are registered in the rule engine in advance.
The transaction routing information element is used for specifying which parameters in the transaction information are related to the routing information, that is, for indicating which parameters in the transaction information of a transaction need to be used when determining the routing information of the transaction. The registered transaction routing information elements are recorded in a rule configuration parameter pool of the rule engine.
The engine base rule refers to a general rule that is not relevant to a specific transaction in the rule engine, and includes, but is not limited to, a condition judgment rule, an inclusion relationship rule, and the like.
S101, acquiring transaction information and a converging business rule of a transaction to be cleared.
The remittance service rule is a remittance service rule corresponding to the transaction type of the transaction to be cleared.
Optionally, the obtaining transaction information and the routing business rule of the transaction to be cleared includes:
acquiring transaction information of a transaction to be cleared;
identifying a transaction type parameter in the transaction information, which is related to the transaction type, so as to determine the transaction type of the transaction to be cleared;
and inquiring the preset multiple converging service rules according to the transaction type of the transaction to be cleared to obtain the service rule corresponding to the transaction type of the transaction to be cleared.
The transaction type parameter is one or more parameters which are pre-designated in the transaction information and can indicate the transaction type to which the corresponding transaction belongs.
For example, the transaction types may be classified into any one of foreign exchange, bond, fund, precious metal, derivative, and commodity according to the subject matter to be traded. Therefore, the transaction type parameter may be a parameter of a transaction object (i.e., a traded object) in the transaction information, and which transaction type the corresponding transaction belongs to may be determined according to a parameter value of the parameter.
The routing business rule is used for indicating which parameters are extracted from the transaction information of the transaction when the routing information of the transaction of a specific transaction type is determined, and what operation is performed on the parameters, wherein the operation can be a logic operation or a numerical operation.
Specifically, the various routing business rules may be configured in advance by the relevant personnel through the specific business rule configuration module. For each transaction type, combining the pre-registered transaction routing information elements and the engine basic rules according to the parameter requirements of the transaction type to form the routing business rules of the transaction type.
S102, the rule engine is used for carrying out rule calculation on the transaction information and the routing business rule to obtain first routing information.
The rule engine can strip the business rules from the business codes and use the predefined semantic specifications to realize the stripped business rules; the rule engine evaluates and processes the data input by the transaction information according to the routing information rule and makes a routing information service decision so as to determine routing information corresponding to the transaction. The rule engine can be specifically operated by a rule engine operation module, transaction data acquired by the rule engine operation module is combined with transaction information according to the specific service rule configuration condition, relevant rules are called, and the transaction data is processed by the rule engine to acquire the corresponding routing information of the transaction.
Referring to fig. 2, which is a schematic view of an operating principle of a rule engine provided in the embodiment of the present application, it can be seen that when the rule engine is operated, a routing service rule and transaction information of a transaction to be cleared are input to the rule engine, and the rule engine outputs routing information after performing an operation.
Route information may be understood as information that is relevant to describing a payment route, or may be considered as a representation of a payment route in a computer system. As described above, the payment routing mainly includes an account number, an account opening bank, an account of an intermediate bank, and the like, and thus routing information corresponding to a payment routing may specifically include account number information, account opening bank information, and account information of an intermediate bank of the payment routing.
In step S102, the rules engine may calculate route information for at least one paid route, which is collectively referred to as first route information.
Optionally, the rule engine is used to perform rule calculation on the transaction information and the routing service rule to obtain the first routing information, where the rule calculation includes:
a1, pre-coding a converging service rule by using a rule engine to obtain a rule judgment code corresponding to a transaction type of a transaction to be cleared;
and A2, processing the transaction information according to the rule judgment code to obtain first routing information.
In step A1, according to the sink service rule, a code segment corresponding to the operation indicated by the sink service rule is extracted, and then the parameters required to be extracted and indicated by the sink service rule are filled in the code segments, thereby forming a rule judgment code.
For example, the routing business rule indicates that the parameter A1 and the parameter A2 need to be extracted from the transaction information, and indicates that the logical operation 1 is performed on the parameter A1 and the parameter A2 (for example, the maximum value of the two parameters may be compared), then in step A1, a code segment written in advance for implementing the logical operation 1 may be extracted, and then parameter names of the parameter A1 and the parameter A2 (for example, A1 and A2) are filled in the code segment, thereby forming a rule judgment code.
In the step A2, a function definition of an operator in the transaction information is obtained according to a preset operation action set, and then the rule judgment code obtained in the step A1 is executed by using the function definition of the operator and the transaction information in the transaction information, so as to obtain a plurality of pieces of first routing information, wherein each piece of first routing information corresponds to a branch and payment routing.
S103, the first routing information is verified according to the routing business rule, and second routing information which is used for clearing the transaction to be cleared is obtained.
The second forwarding information may include forwarding information corresponding to one or more payment forwarding routes.
When the second remittance information only has one piece, namely only corresponds to one payment remittance, the clearing link of the transaction to be cleared can be directly carried out according to the payment remittance.
When there are multiple pieces of second information, that is, multiple pieces of payment information, the multiple pieces of second information may be displayed to the relevant user, and the user is prompted to select one of the multiple pieces of second information, and then the payment information corresponding to the selected one piece of second information is cleared.
In step S103, each piece of first routing information may be checked one by one, if the check is passed, the first routing information is retained, if the check is not passed, the first routing information is deleted, and finally, one or more pieces of first routing information retained are used as second routing information corresponding to the transaction to be cleared.
The specific way of checking each piece of first bus information may be:
the first aspect checks the format of the first routing information, for example, whether fields that the routing information should include are included, whether field values of the fields conform to certain rules, including but not limited to whether the type of the field values is a specified type (for example, whether the type is a numeric type), whether the length of the field values is within a certain interval (for example, the number of characters included in a character string is not greater than a certain value), whether the field values are within a certain value range (for example, the field values of the numeric type are less than a certain upper limit), and the like. If the above rules are all met, the check of the first aspect is passed, and if at least one rule is not met, the check of the first aspect is not passed.
The second aspect may check whether field values of some fields in the first routing information belong to a white list, for example, check whether an issuer of the first routing information belongs to a bank recorded in the white list, if the issuer belongs to the bank recorded in the white list, the second aspect passes the check, and if the issuer does not belong to the bank recorded in the white list, the second aspect does not pass the check.
Further optionally, the checking of the first routing information may further include checking whether a field value of a specific field in the first routing information is consistent with an expected field value, if so, the first routing information passes the checking, and if not, the first routing information does not pass the checking.
The application provides a method for selecting a payment and remittance route based on a rule engine, which comprises the steps of obtaining transaction information of a transaction to be cleared and a remittance business rule; the remittance service rule is a remittance service rule corresponding to the transaction type of the transaction to be cleared; utilizing a rule engine to perform rule calculation on the transaction information and the route converging service rule to obtain first route converging information; and checking the first routing information according to the routing business rule to obtain second routing information which indicates that the second routing information is used for clearing the transaction to be cleared. The scheme utilizes the rule engine to realize the automatic selection of the payment collection routes and improve the efficiency of selecting the payment collection routes.
In addition, the embodiment also has the following advantages:
the payment routing selection method based on the rule engine disclosed by the embodiment can be used for flexibly customizing transaction information to obtain a routing information rule engine, registering transaction routing information elements, performing dynamic authority management of rule configuration on related parameters according to service types, generating rule judgment codes according to types and configuration when calling the rule engine, judging and verifying results, and finally feeding back the results to a transaction foreground.
If the rule engine is lacked and the parameter configuration and the configuration of the business rule logic are not taken as the basis of the routing query judgment, the logic coding on the code is required to be carried out according to the existing business rule during development. Once the business or the business rule needs to be expanded and the parameter rule changes, the basic routing information query code needs to be rewritten, which does not support quick response, and meanwhile, the original logic is easily changed greatly, thereby causing a series of risks.
In the rule engine execution, if the correctness check of the transaction information acquisition and the check of the rule engine execution result are lacked, the efficiency and the correctness of the engine execution can not be guaranteed at a system level, and rule errors and structural errors can be caused. In the execution process, the type is basically judged, and then a rule code is formed according to rule configuration and preset basic logic, so that the parallel pressure in the execution of a rule engine is reduced, and the consistency and the stability of system configuration and motion are improved.
By the method and the device disclosed by the invention, the following beneficial effects can be achieved:
firstly, in the authority configuration process, the system can add and modify corresponding rules at any time according to business changes of transactions, dynamically adjust business rules and parameter requirements of routing inquiry, better assist transactions to be carried out, ensure matching of transaction information routing information and improve correctness of the routing information.
Secondly, from the system design perspective, the transaction information obtains the element definition of the transaction route, the rule configuration information can be defined by the user, code hard coding is not needed to be realized, communication with developers is not needed, and development and maintenance cost is reduced.
Referring to fig. 3, a flowchart of another rules engine based payment routing method provided in the embodiment of the present application may include the following steps.
S301, acquiring transaction information and a converging business rule of a transaction to be cleared.
The remittance service rule is a remittance service rule corresponding to the transaction type of the transaction to be cleared.
The specific implementation of step S301 is the same as step S101 in the embodiment corresponding to fig. 1, and is not described again.
S302, the transaction information is verified.
If the transaction information passes the verification, step S303 is executed, and if the transaction information does not pass the verification, step S305 is executed.
Optionally, the verifying the transaction information includes:
checking whether each field contained in the transaction information meets a preset field rule or not; wherein the field rules include at least a field length rule and a field type rule.
For example, when the transaction information is checked, it may be checked whether the length of the character string in the field containing the character string in the transaction information conforms to a field length rule (e.g., whether the length is smaller than a specified length or larger than the specified length), and the length of the character string, i.e., the number of characters contained in the character string.
It is also possible to check whether the field value of a specific field in the transaction information belongs to a specified type of value. Such as checking whether the field value of the transaction amount field in the transaction message is of integer type (i.e., int type).
And if the fields in the transaction information do not accord with the corresponding field rules, determining that the transaction information passes the verification, otherwise, if at least one field does not accord with at least one field rule, determining that the transaction information does not pass the verification.
In some alternative embodiments, step S302 may also be performed after the transaction information is obtained and before the routing business rule is obtained. That is to say, the implementation of steps S301 and S302 may also be that the transaction information of the transaction to be cleared is obtained first, then the transaction information is verified (S302), and after the verification is passed, the transaction type is determined according to the transaction information that is verified, and then the routing business rule corresponding to the transaction type is obtained. S303, the rule engine is used for carrying out rule calculation on the transaction information and the routing business rule to obtain first routing information.
S304, the first collection information is verified according to the collection service rule, and second collection information which indicates that the transaction to be cleared is obtained.
The specific implementation of steps S303 and S304 is the same as steps S102 and S103 in the embodiment corresponding to fig. 1, and is not described again.
S305, outputting a transaction information error prompt.
The transaction information error prompt may specifically include a reason why the transaction information fails to be verified, that is, the transaction information error prompt includes fields that do not meet corresponding field rules in the transaction information, so that a related user can correct the transaction information in time according to the transaction information error prompt.
According to the payment and routing method based on the rule engine provided in the embodiment of the present application, an payment and routing device based on the rule engine is further provided in the embodiment of the present application, please refer to fig. 4, which is a schematic structural diagram of the device, and the device may include the following units.
The obtaining unit 401 is configured to obtain transaction information and a routing rule of a transaction to be cleared.
The remittance service rule is a remittance service rule corresponding to the transaction type of the transaction to be cleared.
A calculating unit 402, configured to perform rule calculation on the transaction information and the forwarding service rule by using a rule engine, to obtain first forwarding information.
The checking unit 403 is configured to check the first aggregate information according to the aggregate service rule, and obtain second aggregate information indicating that the transaction to be cleared is cleared.
Optionally, when the obtaining unit 401 obtains the transaction information and the routing rule of a transaction to be cleared, it is specifically configured to:
acquiring transaction information of a transaction to be cleared;
identifying a transaction type parameter in the transaction information, which is related to the transaction type, so as to determine the transaction type of the transaction to be cleared;
and inquiring in a plurality of preset routing business rules according to the transaction type of the transaction to be cleared to obtain the business rule corresponding to the transaction type of the transaction to be cleared.
Optionally, the checking unit 403 is further configured to:
verifying the transaction information;
if the transaction information does not pass the verification, outputting a transaction information error prompt;
the calculation unit performs rule calculation on the transaction information and the route service rule by using the rule engine, and when the first route information is obtained, the calculation unit is specifically configured to:
and after the transaction information passes the verification, performing rule calculation on the transaction information and the routing service rule by using a rule engine to obtain first routing information.
Optionally, when the verification unit 403 verifies the transaction information, the verification unit is specifically configured to:
checking whether each field contained in the transaction information accords with a preset field rule or not; wherein the field rules include at least a field length rule and a field type rule.
Optionally, the calculating unit 402 performs rule calculation on the transaction information and the route service rule by using a rule engine, and when the first route information is obtained, the calculating unit is specifically configured to:
pre-coding the converging service rule by using a rule engine to obtain a rule judgment code corresponding to the transaction type of the transaction to be cleared;
and processing the transaction information according to the rule judgment code to obtain first routing information.
For the detailed working principle of the apparatus for selecting an offset and a forward route based on a rule engine provided in the embodiments of the present application, reference may be made to relevant steps of the method for selecting an offset and a forward route based on a rule engine provided in any embodiment of the present application, and details are not described here again.
The application provides a payment routing selection device based on a rule engine, which comprises an acquisition unit 401 for acquiring transaction information of a transaction to be cleared and routing business rules; the remittance service rule is a remittance service rule corresponding to the transaction type of the transaction to be cleared; the calculating unit 402 performs rule calculation on the transaction information and the routing service rule by using a rule engine to obtain first routing information; the checking unit 403 checks the first summary information according to the summary service rule, and obtains second summary information indicating that the transaction to be cleared is cleared. The scheme utilizes the rule engine to realize the automatic selection of the payment collection routes and improve the efficiency of selecting the payment collection routes.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
A person skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A payment routing method based on a rule engine is characterized by comprising the following steps:
acquiring transaction information and a collection service rule of a transaction to be cleared; the clearing business rule is a clearing business rule corresponding to the transaction type of the transaction to be cleared;
utilizing a rule engine to perform rule calculation on the transaction information and the routing business rule to obtain first routing information;
and checking the first routing information according to the routing business rule to obtain second routing information which indicates that the transaction to be cleared is cleared.
2. The method of claim 1, wherein obtaining transaction information and routing rules for a transaction to be cleared comprises:
acquiring transaction information of a transaction to be cleared;
identifying transaction type parameters related to the transaction types in the transaction information so as to determine the transaction types of the transactions to be cleared;
and inquiring in multiple preset routing business rules according to the transaction type of the transaction to be cleared to obtain the business rule corresponding to the transaction type of the transaction to be cleared.
3. The method of claim 1, wherein before the performing a rule calculation on the transaction information and the routing service rule using a rule engine to obtain the first routing information, further comprising:
verifying the transaction information;
if the transaction information does not pass the verification, outputting a transaction information error prompt;
the utilizing a rule engine to perform rule calculation on the transaction information and the route converging service rule to obtain first route converging information includes:
and after the transaction information passes the verification, a rule engine is used for carrying out rule calculation on the transaction information and the routing business rule to obtain first routing information.
4. The method of claim 3, wherein said verifying said transaction information comprises:
checking whether each field contained in the transaction information meets a preset field rule or not; wherein the field rules include at least a field length rule and a field type rule.
5. The method of claim 1, wherein performing a rule calculation on the transaction information and the routing business rule using a rule engine to obtain first routing information comprises:
utilizing a rule engine to perform pre-coding processing on the converging service rule to obtain a rule judgment code corresponding to the transaction type of the transaction to be cleared;
and processing the transaction information according to the rule judgment code to obtain first routing information.
6. A rules engine based payment routing apparatus, comprising:
the acquisition unit is used for acquiring transaction information and a converging business rule of a transaction to be cleared; the clearing business rule is a clearing business rule corresponding to the transaction type of the transaction to be cleared;
the calculation unit is used for carrying out rule calculation on the transaction information and the routing business rule by using a rule engine to obtain first routing information;
and the checking unit is used for checking the first routing information according to the routing business rule to obtain second routing information which indicates that the transaction to be cleared is cleared.
7. The apparatus according to claim 6, wherein the obtaining unit, when obtaining the transaction information and the routing rule of the transaction to be cleared, is specifically configured to:
acquiring transaction information of a transaction to be cleared;
identifying a transaction type parameter related to the transaction type in the transaction information to determine the transaction type of the transaction to be cleared;
and inquiring in multiple preset routing business rules according to the transaction type of the transaction to be cleared to obtain the business rule corresponding to the transaction type of the transaction to be cleared.
8. The apparatus of claim 6, wherein the verification unit is further configured to:
verifying the transaction information;
if the transaction information does not pass the verification, outputting a transaction information error prompt;
the calculation unit performs rule calculation on the transaction information and the routing service rule by using a rule engine, and when first routing information is obtained, the calculation unit is specifically configured to:
and after the transaction information passes the verification, a rule engine is used for carrying out rule calculation on the transaction information and the routing business rule to obtain first routing information.
9. The apparatus according to claim 8, wherein the verifying unit, when verifying the transaction information, is specifically configured to:
checking whether each field contained in the transaction information meets a preset field rule or not; wherein the field rules include at least a field length rule and a field type rule.
10. The apparatus according to claim 6, wherein the calculating unit performs rule calculation on the transaction information and the routing service rule by using a rule engine, and when obtaining the first routing information, is specifically configured to:
utilizing a rule engine to perform pre-coding processing on the converging service rule to obtain a rule judgment code corresponding to the transaction type of the transaction to be cleared;
and processing the transaction information according to the rule judgment code to obtain first routing information.
CN202211383658.6A 2022-11-07 2022-11-07 Method and device for selecting payment and remittance route based on rule engine Pending CN115797062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211383658.6A CN115797062A (en) 2022-11-07 2022-11-07 Method and device for selecting payment and remittance route based on rule engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211383658.6A CN115797062A (en) 2022-11-07 2022-11-07 Method and device for selecting payment and remittance route based on rule engine

Publications (1)

Publication Number Publication Date
CN115797062A true CN115797062A (en) 2023-03-14

Family

ID=85435787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211383658.6A Pending CN115797062A (en) 2022-11-07 2022-11-07 Method and device for selecting payment and remittance route based on rule engine

Country Status (1)

Country Link
CN (1) CN115797062A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119741107A (en) * 2024-12-25 2025-04-01 中国工商银行股份有限公司 Transaction exchange matching method and device based on natural language processing, and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119741107A (en) * 2024-12-25 2025-04-01 中国工商银行股份有限公司 Transaction exchange matching method and device based on natural language processing, and electronic device

Similar Documents

Publication Publication Date Title
CN107103462B (en) Method and device for processing snapshot data of cross-border remittance of bank
CN113554509B (en) Processing method, device, medium and electronic equipment for online payment service
US10621665B2 (en) Systems and methods of conducting financial transactions
US20140114821A1 (en) Apparatus for consolidating financial transaction information
EP1164519A2 (en) A computer apparatus for monitoring and updating accountancy records
CN107784574A (en) Reconciliation processing method and processing device
US20150235186A1 (en) Ach payment processing
CN112651733A (en) Channel route selection method, device, equipment and storage medium
CN112819473B (en) Order processing method, server, equipment and medium based on digital dictionary
CN114169989A (en) Multi-type financial flow water treatment method and system
CN110070437A (en) Prop up pay road selection method and device
CN112950203A (en) Bill financing method, system, equipment and medium based on intelligent matching platform
CN115797062A (en) Method and device for selecting payment and remittance route based on rule engine
CN111161077A (en) Bank transaction processing method and device
JP2009301412A (en) Debt management system, debt management method and program
CN112199360A (en) Data processing method, device, equipment and medium
US20020083015A1 (en) Settlement device and method
JP2005533308A (en) Method and system for conducting payment card transactions
CN113298511B (en) Order information processing method and device and electronic equipment
JP2003132220A (en) Electronic bill management system and method
CN114202408A (en) Pledge type buyback approval processing method, system and device
WO2021040879A1 (en) Transaction system management
CN110807703A (en) Order processing method and device, electronic equipment and computer readable storage medium
JP4548120B2 (en) Claim data management method and management system
CN115082207A (en) Ledger sorting method, system and computer equipment

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