Invention content
This specification one or more embodiment describes a kind of object, fund allocation and transfer method and device, can be more flexible
Ground carries out object to allot processing.
In a first aspect, providing a kind of object allots method, including:
It receives the object that transaction processing system is sent and allots request, it includes the business processing system that the object, which allots request,
The business information of the handled business of system;
According to the business information, corresponding at least one is obtained in the pond of path to be selected allot path from alloting;The tune
Path pond to be dialled to allot path by different business information corresponding one or more and constitute, the path of alloting includes multiple nodes,
The node is corresponding with one or more constraintss;
Obtain constraints corresponding with described at least one multiple nodes to be selected alloted in path;
According to the constraints, to be selected allot decision objective in path from described at least one and allot path;
Path is alloted according to the target, corresponding object is executed and allots processing.
Second aspect provides a kind of fund allocation and transfer method, including:
The fund allocation and transfer request that transaction processing system is sent is received, the fund allocation and transfer request includes the business processing system
The business information of the handled business of system;
According to the business information, corresponding at least one is obtained in the pond of path to be selected allot path from alloting;The tune
Path pond to be dialled to allot path by different business information corresponding one or more and constitute, the path of alloting includes multiple nodes,
The node is corresponding with one or more constraintss;
Obtain constraints corresponding with described at least one multiple nodes to be selected alloted in path;
According to the constraints, to be selected allot decision objective in path from described at least one and allot path;
Path is alloted according to the target, executes corresponding fund allocation and transfer processing.
The third aspect provides a kind of object and allots device, including:
Receiving unit, the object for receiving transaction processing system transmission allot request, and the object allots request and includes
The business information of business handled by the transaction processing system;
Acquiring unit obtains corresponding at least one and waits recruiting for according to the business information from alloting in the pond of path
Dial path;It is described allot path pond path alloted by different business information corresponding one or more constitute, it is described to allot path
Including multiple nodes, the node is corresponding with one or more constraintss;
The acquiring unit is additionally operable to obtain corresponding about with the described at least one multiple nodes to be selected alloted in path
Beam condition;
Decision package, the constraints for being obtained according to the acquiring unit, waits recruiting from described at least one
It dials decision objective in path and allots path;
Execution unit executes corresponding object tune for alloting path according to the target of the decision package decision
Dial processing.
Fourth aspect provides a kind of fund allocation and transfer device, including:
Receiving unit, the fund allocation and transfer request for receiving transaction processing system transmission, the fund allocation and transfer request include
The business information of business handled by the transaction processing system;
Acquiring unit obtains corresponding at least one and waits recruiting for according to the business information from alloting in the pond of path
Dial path;It is described allot path pond path alloted by different business information corresponding one or more constitute, it is described to allot path
Including multiple nodes, the node is corresponding with one or more constraintss;
The acquiring unit is additionally operable to obtain corresponding about with the described at least one multiple nodes to be selected alloted in path
Beam condition;
Decision package, the constraints for being obtained according to the acquiring unit, waits recruiting from described at least one
It dials decision objective in path and allots path;
Execution unit executes corresponding fund tune for alloting path according to the target of the decision package decision
Dial processing.
The object of this specification one or more embodiment offer, fund allocation and transfer method and device, receive business processing system
The object that system is sent allots request.According to object allot request in business information, from allot obtained in the pond of path it is corresponding to
Few one to be selected to allot path.Obtain constraints corresponding at least one multiple nodes to be selected alloted in path.According to
The constraints to be selected allot decision objective in path and allots path from least one.Path is alloted according to target, is executed corresponding
Object allot processing.Namely the scheme that provides of this specification is that carry out dynamic decision according to business information and constraints corresponding
Path is alloted, this can greatly improve the flexibility that object is alloted.
Specific implementation mode
Below in conjunction with the accompanying drawings, the scheme provided this specification is described.
The object method of alloting that this specification provides can be applied in scene as shown in Figure 2, in Fig. 2, business processing
System can be handled business, e.g., can be paid to user, the business of reimbursement is handled.It should be noted that in industry
When processing system processing business of being engaged in, it usually needs allot processing accordingly to object progress, object herein can refer to fund
Equal Internet resources.Such as, transaction processing system, can be by the account of buyer user when handling the transaction business of buyer user's payment
In the fund of the corresponding amount of money be transferred in Merchant Account.And producing and being transferred to for above-mentioned fund usually just needs between banking institution
Carry out fund allocation and transfer processing.In Fig. 2, when needing to carry out alloting processing to object, transaction processing system can be alloted to object
System sending object allots request.Object allots system after receiving object and alloting request, can be directed to the business and execute phase
The object answered allots processing.
Fig. 3 is that the object that this specification one embodiment provides allots method flow diagram.The executive agent of the method can
Think the equipment with processing capacity:Server either system or device, e.g., the object in Fig. 2 allots system.Such as Fig. 3 institutes
Show, the method can specifically include:
Step 310, it receives the object that transaction processing system is sent and allots request.
The object allots the business information that request may include business handled by transaction processing system.Business information herein
May include it is following any one or more:Type of service, amount and currency type etc..
It is with handled business:For for the transaction business of buyer user's payment, it is assumed that payment amount is 100 yuan.Then
Above-mentioned type of service can be:Payment;Amount can be:100;Currency type can be:RMB.It is with handled business again:With
For for the transaction business of family reimbursement, it is assumed that refund amount is 100 yuan.Then above-mentioned type of service can be:Reimbursement;Amount can
Think:100;Currency type can be:RMB.
Step 320, according to business information, corresponding at least one is obtained in the pond of path to be selected allot path from alloting.
Path pond of alloting herein can allot path by different business information corresponding one or more to constitute, every
It includes multiple nodes to allot path, and each node is corresponding with one or more constraintss.In one example, above-mentioned to allot
Path pond can be rendered as tree as shown in Figure 4.For by taking Fig. 1 as an example, alloting path and can be in Fig. 4:(A->
B), (A->B,B->E,E->G), (A->B,B->C) ..., (A->B,B->C,C->D), wherein A-G can be to allot in path
Node.Under fund allocation and transfer scene, above-mentioned node can refer to a specific banking institution.
Figure 4, it is seen that every is alloted path and can be made of several single sub paths again.It is to allot path:(A-
>B,B->E,E->G may include subpath for for):A->B,B->E and E->G.
The above-mentioned path of alloting alloted in the pond of path can be corresponding with business information.Such as, path is alloted:(A->B,B->
E,E->It G) can be with type of service:X types are corresponding namely this is alloted path and the object of X type services is only supported to allot.?
In a kind of realization method, when with one to allot the corresponding business information in path be multiple when, multiple business information may be constructed
Service attribute strategy group as shown in Figure 5.In Fig. 5, which meets one-to-many data relationship, i.e. a plan
Slightly group can map multiple specific atom strategies.Each atom strategy corresponds to a business information.For example, each atom
Strategy can be:Type of service is X types, amount more than 1,000,000 and currency type is RMB etc..
It allots system it should be noted that the service attribute strategy group in Fig. 5 can be object and allots road in initial selected
It is used when diameter.
In short, this specification sets optional path collection for different business, alloting for object is thus substantially increased
The switching capability in path.By setting above-mentioned optional path collection, can solve in the case where extraneous uncontrollable factor is intervened, cured list
A node occurs unavailable in one path, leads to the not available problem of entire business.
It should also be noted that, one or more constraints corresponding with each node may be constructed joint constraint strategy
Group.The schematic diagram of the joint constraint strategy group can also referring to Figure 5, unlike, each atom strategy can correspond to one
A constraints.For example, the atom strategy that joint constraint strategy group can map can be:Amount is no more than 100,000,000 people
Coin/day, date are working day etc..
As seen from the above, joint constraint strategy group and service attribute strategy group be there are essential distinction, the two be respectively from
Two different dimensions delimited.Service attribute strategy group closer in business, the constraints of node theoretically independently of business,
Such as above-mentioned amount constraint (amount is no more than 100,000,000 RMB/day), it is not related with specific business.
To sum up, in this specification embodiment, business, service attribute strategy group, joint constraint strategy group and path is alloted
Relationship between pond can be as shown in Figure 6.In Fig. 6, service attribute strategy group can be with specific business opening relationships, a kind of business
Multiple service attribute strategy groups can be corresponded to.Meanwhile joint constraint strategy group is a public resource, alloting path pond can tie up
Fixed multiple joint constraint strategy groups, individual node constraints policy group can also act on a variety of decisions for alloting path.
In this specification, by establishing service attribute strategy group and joint constraint strategy group, object can be formed and allot road
The dynamic decision ability of diameter, finally realize it is optimal allot path dynamic select, improve objects services ability.
It returns in step 320, in one implementation, step 320 is specifically as follows:Business information is identified, with determination
Start node and terminal node.From allot in the pond of path obtain with business information match, from start node to terminal node
At least one to be selected allot path.
For also by taking Fig. 1 as an example, it is assumed that determining start node and terminal node be respectively:A and G, and assume to allot road
Diameter:(A->B,B->E,E->G) corresponding business information is:Type of service is X types, amount more than 1,000,000 and currency type is behaved
People's coin.It is furthermore assumed that alloting path:(A->F,F->E,E->G) corresponding business information is:Type of service is X types, volume
Degree is less than 100,000 and currency type is RMB.Then the type of service of the business handled by transaction processing system is:X types;Amount
For:100;Currency type is:When RMB, path can be alloted by above-mentioned two and be retrieved as to be selected alloting path.
Step 330, constraints corresponding at least one multiple nodes to be selected alloted in path is obtained.
Such as previous example, treats to recruit and dial path:(A->B,B->E,E->G), can obtain node A, B, E and G to correspond to
Constraints.It treats to recruit and dials path:(A->F,F->E,E->G), can obtain the corresponding constraint item of node A, F, E and G
Part.
It should be noted that since this two part of nodes (A, E and G) to be selected alloted in path are identical, thus
The corresponding constraints of the part of nodes obtained is also identical.It can thus be seen that the constraint of the node in this specification
Condition belongs to public resource.
Step 340, it according to constraints, to be selected allot decision objective in path from least one and allots path.
The constraints of node in this specification can be corresponding with service parameter.It is with constraints:Amount does not surpass
It crosses for for 100,000,000 RMB/day, corresponding service parameter can be:Amount.It is with constraints again:Date is work
For for day, corresponding service parameter can be:Date.
When the constraints of node is corresponding with service parameter, the process of above-mentioned decision is to be:It determines and constrains
The parameter value of the corresponding service parameter of condition.Allot in path every to be selected at least one is to be selected to allot path, judges
Whether the parameter value of service parameter corresponding with the constraints of each node meets constraints.If it is satisfied, then will wait for
It is that target allots path to recruit and dial path decision.For the step of judging whether to meet constraints herein, can be exemplified below:
Assuming that the corresponding constraintss of node F are:Amount is no more than 100,000,000 RMB/day, and the corresponding service parameter of the constraints is:
Amount, then 1,000,000 RMB of having allocated and transferred funds on the day of, and the amount of business handled by transaction processing system is:At 100000 yuan,
The parameter value of the service parameter can be:The parameter value of the corresponding service parameter of constraints of 1100000, i.e. node F meets
The constraints (1,100,000<1 hundred million).Assume again that the corresponding constraintss of node B are:Date is working day, which corresponds to
Service parameter be:Date, then transaction processing system is when handling certain business festivals or holidays, due to the parameter value of above-mentioned service parameter
For:The parameter value of festivals or holidays, the i.e. corresponding service parameter of constraints of node B do not satisfy the constraint condition.
It is understood that being directed to every each node to be selected alloted in path, it is referred to the above method and judges it
Whether the parameter value of the corresponding service parameter of constraints meets the constraints.When certain any to be selected alloted in path
When the constraints of node is unsatisfactory for, abandons this and to be selected allot path.When certain pact to be selected for alloting each node in path
It is that target allots path by the path decision to be selected of alloting when beam condition is satisfied by.
Step 350, path is alloted according to target, executes corresponding object and allots processing.
Such as previous example, it is assumed that the target of decision allots path and is:(A->F,F->E,E->G), the mesh can be passed through later
Mark allots path to allocate and transfer funds.
Certainly, in practical applications, go out after target allots path in decision, path progress can also be alloted to the target
Correctness verifies.After verification passes through, then execute the step of above-mentioned object allots processing.Correctness verification herein can wrap
It includes:Whether the target of verification decision allots path consistent etc. with expected path of alloting.
To sum up, the object that this specification embodiment provides allots method, and the dynamic decision that object allots path may be implemented.
So as to solve the problems, such as that it is poor that object allots path solidification configuration availability, the autgmentability brought, promotes objects services and handle
Availability and robustness.
Fig. 7 is the fund allocation and transfer method schematic diagram that this specification provides.In Fig. 7, fund allocation and transfer method may include as follows
Step:Business identification, service attribute decision, joint constraint decision and the verification result of decision.Wherein, business, which identifies, includes:Money
Golden processing system is in the fund allocation and transfer request for receiving transaction processing system transmission, the business letter in being asked according to fund allocation and transfer
Breath, is identified business.Business information herein may include the information datas such as business identification code.Service attribute decision package
It includes:After identifying specific business, it can be selected according to service attribute decision group corresponding with business from alloting in the pond of path
Take all reachable paths (also referred to as to be selected to allot path) to match with current business it should be noted that above-mentioned selection is reachable
Path only meet business needs, when allot the node in path also have corresponding constraints when, due to these constraint item
Part would generally to subpath, allot path generate constraint.For example, the festivals or holidays constraints of certain node can make certain paths (packet
Enclosed tool path and allot path) do not support fund allocation and transfer, certain node is more than the roads constraints Hui Shimoutiao of odd-numbered day limit
Diameter does not support fund allocation and transfer.Therefore, the step of joint constraint decision can also be performed in the scheme that this specification provides.Joint constraint
Decision is aiming at all reachable paths of selection, further decision, obtains meeting the optimal of constraints and allots path.Verification
The result of decision is the last one link of decision, realizes result of decision verification, finally returns that optimal fund allocation and transfer path.
The fund allocation and transfer method that this specification provides may be implemented the mobilism selection in fund allocation and transfer path and configure, one
There is extraneous uncontrollable factor in denier when intervening, can switching at runtime allot path, finally within the extremely short time, ensure fund tune
The High Availabitity dialled is optimized with charge.
Method is alloted with above-mentioned object accordingly, a kind of object that this specification one embodiment also provides allots device,
As shown in figure 8, the device includes:
Receiving unit 801, the object for receiving transaction processing system transmission allot request, which allots request and include
The business information of business handled by transaction processing system.
Business information herein may include one or more of:Type of service, amount and currency type.
Acquiring unit 802 obtains corresponding at least one and to be selected allots for according to business information from alloting in the pond of path
Path;This, which is alloted path pond and allots path by different business information corresponding one or more, is constituted, and it includes more that this, which allots path,
A node, the node are corresponding with one or more constraintss.
Acquiring unit 802 specifically can be used for:
Business information is identified, to determine start node and terminal node.
From allot obtained in the pond of path it is matching with business information, at least one from start node to terminal node wait for
It recruits and dials path.
Acquiring unit 802 is additionally operable to obtain constraint item corresponding at least one multiple nodes to be selected alloted in path
Part.
Decision package 803 to be selected allots path for the constraints that is obtained according to acquiring unit 802 from least one
Middle decision objective allots path.
Above-mentioned constraints can be corresponding with service parameter.
Decision package 803 specifically can be used for:
Determine the parameter value of service parameter corresponding with constraints.
Any bar alloted in path to be selected at least one constraints to be selected alloted path, judge with each node
Whether the parameter value of corresponding service parameter meets the constraints.
If it is satisfied, then being that target allots path by path decision to be selected of alloting.
Execution unit 804 executes corresponding object and allots for alloting path according to the target of 803 decision of decision package
Processing.
The function of each function module of this specification above-described embodiment device can pass through each step of above method embodiment
Rapid to realize, therefore, the specific work process for the device that this specification one embodiment provides does not repeat again herein.
The object that this specification one embodiment provides allots device, and receiving unit 801 receives transaction processing system and sends
Object allot request.Acquiring unit 802 obtains corresponding at least one and waits recruiting according to business information from alloting in the pond of path
Dial path.Acquiring unit 802 obtains constraints corresponding at least one multiple nodes to be selected alloted in path.Decision list
Member 803 to be selected allot decision objective in path and allots path according to constraints from least one.Execution unit 804 is according to mesh
Mark allots path, executes corresponding object and allots processing.Thus, it is possible to promote the availability and robustness of objects services processing.
This specification embodiment provide object allot device can be Fig. 1 in object allot system a module or
Unit.
Accordingly with above-mentioned fund allocation and transfer method, a kind of fund allocation and transfer device that this specification one embodiment also provides,
As shown in figure 9, the device may include:
Receiving unit 901, the fund allocation and transfer request for receiving transaction processing system transmission, fund allocation and transfer request include
The business information of business handled by transaction processing system.
Acquiring unit 902 obtains corresponding at least one and to be selected allots for according to business information from alloting in the pond of path
Path;This, which is alloted path pond and allots path by different business information corresponding one or more, is constituted, and it includes more that this, which allots path,
A node, the node are corresponding with one or more constraintss.
Acquiring unit 902 is additionally operable to obtain constraint item corresponding at least one multiple nodes to be selected alloted in path
Part.
Decision package 903 to be selected allots path for the constraints that is obtained according to acquiring unit 902 from least one
Middle decision objective allots path.
Execution unit 904 executes corresponding fund allocation and transfer for alloting path according to the target of 903 decision of decision package
Processing.
The function of each function module of this specification above-described embodiment device can pass through each step of above method embodiment
Rapid to realize, therefore, the specific work process for the device that this specification one embodiment provides does not repeat again herein.
The mobilism selection and configuration in fund allocation and transfer path may be implemented in the fund allocation and transfer device that this specification provides, once
When there is extraneous uncontrollable factor and intervening, can switching at runtime allot path, finally within the extremely short time, ensure fund allocation and transfer
High Availabitity with charge optimize.
Those skilled in the art are it will be appreciated that in said one or multiple examples, described in this specification
Function can be realized with hardware, software, firmware or their arbitrary combination.It when implemented in software, can be by these work(
Can storage in computer-readable medium or as on computer-readable medium one or more instructions or code passed
It is defeated.
Above-described specific implementation mode has carried out into one the purpose, technical solution and advantageous effect of this specification
Step is described in detail, it should be understood that the foregoing is merely the specific implementation mode of this specification, is not used to limit this
The protection domain of specification, all any modifications on the basis of the technical solution of this specification, made, change equivalent replacement
Into etc., it should all be included within the protection domain of this specification.