CN110503385A - Method for processing business, device, computer equipment and storage medium - Google Patents

Method for processing business, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110503385A
CN110503385A CN201910636007.5A CN201910636007A CN110503385A CN 110503385 A CN110503385 A CN 110503385A CN 201910636007 A CN201910636007 A CN 201910636007A CN 110503385 A CN110503385 A CN 110503385A
Authority
CN
China
Prior art keywords
data
call chain
business
node
processing
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.)
Granted
Application number
CN201910636007.5A
Other languages
Chinese (zh)
Other versions
CN110503385B (en
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.)
Zhaolian Consumer Finance Co ltd
Original Assignee
Merchants Union Consumer Finance Co Ltd
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 Merchants Union Consumer Finance Co Ltd filed Critical Merchants Union Consumer Finance Co Ltd
Priority to CN201910636007.5A priority Critical patent/CN110503385B/en
Publication of CN110503385A publication Critical patent/CN110503385A/en
Application granted granted Critical
Publication of CN110503385B publication Critical patent/CN110503385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/25Integrating or interfacing systems involving database management systems
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

This application involves a kind of method for processing business, device, computer equipment and storage medium, wherein, method includes: to obtain the corresponding call chain configuration data of business datum, call chain is generated for the instantiated nodes in operation flow based on call chain configuration data, flexibly to construct call chain for business datum, processing node is avoided to repeat, expend meaningless business processing resources, each node in call chain is successively executed again, for the node of abnormal interrupt link, wait asynchronous task pull-up abnormal interrupt link again, for the node for handling normal and processing failure, the data of generation are saved to result data pond, obtain business object result template, data in result data pond are filled to business object result template, obtain service processing result, feedback traffic processing result is to business object, to realize the spirit of business datum Living and efficient process.

Description

Method for processing business, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of method for processing business, device, computer equipment and Storage medium.
Background technique
With the development of internet technology, more and more people's selection carries out online business handling in the network platform, relates to And the type of business handling and quantity it is more and more, almost cover production, scene demand most in life, give people's life Bring great convenience.
Traditional business processing flow all data preceding processing stages generally all include data receiver, data cleansing, The pretreatment processes such as authentication, when the multi-application or different user similar traffic for being directed to same subscriber are handled, pole It is possible that multinomial business has carried out identical preposition processing respectively, such as user identity identification, user basic information are read and record Enter.
As it can be seen that there are biggish operation flow repeatability, business processings for traditional business processing mode in real life Process solidification causes a large amount of the same or similar business datums to repeat generation and processing, occupies a large number of services process resource, seriously Influence business processing efficiency.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of flexible and efficient method for processing business, device, Computer equipment and storage medium.
A kind of method for processing business, which comprises
Business datum is received, the corresponding call chain configuration data of the business datum is obtained;
To node instantiated in the corresponding operation flow of the business datum according to the call chain configuration data Generate call chain;
Successively execute each node in the call chain;
For the node of abnormal interrupt link, asynchronous task abnormal interrupt link described in pull-up again is waited, for processing Normal and processing failure node, the data of generation are saved to result data pond;
Business object result template is obtained, data in the result data pond are filled to the business object result mould Plate obtains service processing result, feeds back the service processing result to business object.
The reception business datum in one of the embodiments, obtains the corresponding call chain configuration of the business datum Data include:
Receive business datum;
Standard Structured processing is carried out to the business datum, obtains the business datum of normal structure;
The business datum of the normal structure is pre-processed, data needed for generating call chain;
According to data needed for the call chain, call chain configuration data is generated.
It is described in one of the embodiments, that standard Structured processing is carried out to the business datum, obtain normal structure Business datum include:
Obtain preset data conversion allocation list;
Standard Structured processing is carried out to the business datum according to the data conversion allocation list, obtains normal structure Business datum.
The data according to needed for the call chain in one of the embodiments, generating call chain configuration data includes:
Obtain the corresponding business timeliness of the business datum;
If the business timeliness is low, according to data needed for the call chain, asynchronous call chain configuration data is generated;
If the business timeliness is high, according to data needed for the call chain, synchronization call chain configuration data is generated.
The node for being directed to abnormal interrupt link in one of the embodiments, waits asynchronous task pull-up institute again Abnormal interrupt link is stated, for processing is normal and the node of processing failure, the data of generation are saved to result data pond includes:
For end node non-in the call chain, next node is continued to execute if normal, then is generated present node Data are stored to result data pond, and enter next node processing step;If unsuccessfully exiting, the number that present node is generated According to storing to result data pond;If abnormal interrupt link, asynchronous task abnormal interrupt link described in pull-up again is waited.
The node for being directed to abnormal interrupt link in one of the embodiments, waits asynchronous task pull-up institute again Abnormal interrupt link is stated, for processing is normal and the node of processing failure, the data of generation are saved to result data pond includes:
For end node in the call chain, when normally to exit call chain or unsuccessfully exiting call chain, identification is returned The mode of returning, the echo plex mode include synchronous return or asynchronous return;
If synchronous the step of returning, being then directly entered the acquisition business object result template;
If asynchronous return, then the notice pull-up of the result notice or asynchronous task of interconnected system is waited, described in entrance The step of obtaining business object result template.
Above-mentioned method for processing business in one of the embodiments, further include:
When receiving business datum, instantiated nodes task is executed, by the business number in the form of Spring bean It instantiates out according to corresponding operation flow interior joint.
A kind of business processing device, described device include:
Configuration data obtains module, for receiving business datum, obtains the corresponding call chain configuration number of the business datum According to;
Call chain generation module, for node instantiated in the corresponding operation flow of the business datum according to The call chain configuration data generates call chain;
Execution module, for successively executing each node in the call chain;
Processing module waits asynchronous task abnormal interrupt described in pull-up again for being directed to the node of abnormal interrupt link Link saves the data of generation to result data pond for the node for handling normal and processing failure;
Feedback module fills data in the result data pond to the industry for obtaining business object result template Business object result template, obtains service processing result, feeds back the service processing result to business object.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device is realized when executing the computer program such as the step of the above method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It realizes when row such as the step of above-mentioned method.
Above-mentioned method for processing business, device, computer equipment and storage medium obtain the corresponding calling of the business datum Chain configuration data generates call chain for the instantiated nodes in operation flow based on call chain configuration data, to be directed to business Data flexibly construct call chain, avoid processing node from repeating, expend meaningless business processing resources, then successively execute the tune With node each in chain, for the node of abnormal interrupt link, asynchronous task abnormal interrupt link described in pull-up again, needle are waited Normal to processing and processing failure node, the data of generation are saved to result data pond, business object result template is obtained, Data in the result data pond are filled to the business object result template, service processing result is obtained, feeds back the industry Processing result of being engaged in is to business object, to realize the flexible and efficient process of business datum.
Detailed description of the invention
Fig. 1 is the applied environment figure of method for processing business in one embodiment;
Fig. 2 is the flow diagram of method for processing business in one embodiment;
Fig. 3 is the flow diagram of method for processing business in another embodiment;
Fig. 4 is the flow diagram of method for processing business in one of application example;
Fig. 5 is the structural block diagram of business processing device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Method for processing business provided by the present application can be applied in application environment as shown in Figure 1.Wherein, terminal 102 It is communicated with server 104 by network by network.Terminal 102 uploads business datum to server 104, server 104 Business datum is received, the corresponding call chain configuration data of business datum is obtained;To in the corresponding operation flow of business datum The node of instantiation generates call chain according to call chain configuration data;Successively execute each node in call chain;For in exception The node on chain rupture road waits asynchronous task pull-up abnormal interrupt link again, will for the node for handling normal and processing failure The data of generation are saved to result data pond;Business object result template is obtained, data in result data pond are filled to business Object result template obtains service processing result, feedback traffic processing result to terminal 102.Wherein, terminal 102 can with but not It is limited to be various personal computers, laptop, smart phone, tablet computer and portable wearable device, server 104 It can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of method for processing business, it is applied in Fig. 1 in this way It is illustrated for server, comprising the following steps:
S100: receiving business datum, obtains the corresponding call chain configuration data of business datum.
Business datum is uploaded to server by terminal, and business datum can specifically include applying type business datum, processing Type service data, access type business datum etc..Such as when being directed to trade company's credit application application scenarios, trade company operates trade company Trade company's credit application is sent to server by terminal, which is business datum, and server will be directed to the trade company Credit application executes follow-up business processing operation.The corresponding call chain configuration data of business datum can be from default call chain It obtains in configuration database, or is obtained according to the business datum in-time generatin received.Specifically, it is configured from default call chain It obtains and specifically includes in database, extracting from business datum includes that business object identifies (trade company number), channel mark (channel Code), type of service (business scenario code) and entrance mark etc. characteristic informations, be stored in default call chain configuration database Characteristic information and corresponding call chain configuration data are stated, when receiving business datum, it is corresponding to extract current service data Characteristic information searches corresponding call chain configuration data in default call chain configuration database by the characteristic information of extraction.
S200: node instantiated in the corresponding operation flow of business datum is generated according to call chain configuration data Call chain.
Server executes node instance task, obtains instantiated node after receiving business datum, then Call chain is generated according to call chain configuration data to node instantiated in the corresponding operation flow of business datum.
S300: each node in call chain is successively executed.
It include multiple nodes in call chain, node can be mainly divided into non-end node and end node, work as execution When complete end node, then show that entire call chain successful execution finishes, it can be with execution result back.Node more than end node It is non-end node, in call chain implementation procedure, may occurs executing failure or abnormal interrupt in some non-end node The case where, server needs to be further processed in view of these situations.
S400: for the node of abnormal interrupt link, asynchronous task pull-up abnormal interrupt link again is waited, for processing Normal and processing failure node, the data of generation are saved to result data pond.
There is abnormal interrupt situation, then the X node is when going to some node (such as X node) in call chain The node of abnormal interrupt link needs to wait asynchronous task pull-up abnormal interrupt link again for this kind of node, that is, need be The pull-up broken link continues to execute again for system or related system.The node of abnormal interrupt may be to cause due to being operating abnormally, Operation exception, which includes that running environment is abnormal such as common outside the exception and server of server internal processing hardware aspect, to break Electricity, suspension etc..For the node for handling normal and processing failure, need to save the long-living data of node to result data pond, Result data pond can be understood as the database of similar node running log, and record has each node health and right wherein The data that should be generated, the subsequent data generation processing result that can extract directly from the result data pond feed back to business object.
S500: business object result template is obtained, data in result data pond are filled to business object result template, are obtained To service processing result, feedback traffic processing result to business object.
Business object result template can be obtained from default result template database, and the result template and business object are closed Connection, the data that a node in entire call chain executes generation are collected in result data pond, data therein are filled out It is charged to corresponding position in business object result template, obtains service processing result, which is fed back into business pair As completing entire business processing flow.Specifically, some specific needs will record in result data pond and has been written to object As a result the data in template, such as in the register node of some business, customer ID can be generated, this kind of data are to need to fill to industry In object result template of being engaged in, which specific data need to be written, and can be generated based on setting or historical experience mode, node processing Data in add corresponding filling label, which needs to fill to business object result for characterizing this partial data Template, further, being filled into the corresponding label of business object result template different location can be different, to realize efficiently And accurately data filling.
Above-mentioned method for processing business obtains the corresponding call chain configuration data of business datum, is based on call chain configuration data Call chain is generated for the instantiated nodes in operation flow, flexibly to construct call chain for business datum, processing is avoided to save Point repetition, expends meaningless business processing resources, then successively executes each node in call chain, for abnormal interrupt link Node waits asynchronous task pull-up abnormal interrupt link again, for the node for handling normal and processing failure, by the number of generation According to saving to result data pond, business object result template is obtained, data in result data pond are filled to business object result Template obtains service processing result, feedback traffic processing result to business object, thus realize business datum it is flexible with it is efficient Processing.
As shown in figure 3, step S100 includes: in one of the embodiments,
S120: business datum is received.
S140: standard Structured processing is carried out to business datum, obtains the business datum of normal structure.
S160: pre-processing the business datum of normal structure, data needed for generating call chain.
S180: the data according to needed for call chain generate call chain configuration data.
In the present embodiment, call chain configuration number is generated by the way of in-time generatin for the business datum newly received According to.Standard Structured processing is carried out for the business datum received, the business datum of normal structure is obtained, to normal structure Business datum is pre-processed, data needed for generating call chain, generates call chain configuration data further according to data needed for call chain. Specific Ah leopard cat says that carrying out standard Structured processing can be the preset data conversion allocation list of acquisition;It is configured according to data conversion Table carries out standard Structured processing to business datum, obtains the business datum of normal structure.Pretreated purpose is to generate Data needed for call chain, basic data, Internal Transfer needed for data needed for call chain specifically include business processing corresponding product User data and database persistence object data.
The data according to needed for call chain in one of the embodiments, generating call chain configuration data includes: acquisition business The corresponding business timeliness of data;If business timeliness is low, the data according to needed for call chain generate asynchronous call chain and configure number According to;If business timeliness is high, the data according to needed for call chain generate synchronization call chain configuration data.
It for the low business of timeliness, takes a long time, it is often necessary to which many-sided data feedback collects, to ensure operation flow It can continue to be normally carried out, be then arranged into line asynchronous calling, generate asynchronous call chain configuration data.For the high business of timeliness, Its time-consuming is short, in business procession, can collect required data with the short time, progress can be synchronized, to ensure Business Stream Journey has been handled as early as possible, then generates synchronization call chain configuration data.In practical applications, with the application scenarios of trade company's credit, credit Process time-consuming is very long, and timeliness class requirement is low, can then generate asynchronous call chain configuration data with asynchronous execution;And registration flow Cheng Shixiao high, it is synchronous to execute
It is directed to the node of abnormal interrupt link in one of the embodiments, waiting asynchronous task is again in pull-up exception The data of generation are saved to result data pond for processing is normal and the node of processing failure and include: by chain rupture road
For end non-in call chain node, next node is continued to execute if normal, then the data generated present node It stores to result data pond, and enters next node processing step;If unsuccessfully exiting, the data that present node generates are deposited It stores up to result data pond;If abnormal interrupt link, asynchronous task pull-up abnormal interrupt link again is waited.
It in simple terms, include two class nodes in the node of entire call chain, one is end nodes;Another kind be in addition to Node except the node of end, i.e., non-end node.For end non-in call chain node, if the current node can normally be held It has been gone that, then according to the process of call chain, stored into next node processing, and by the data that present node generates to number of results The data that present node generates are stored to result data pond, if present node execution is unsuccessfully exited if present node according to pond There is abnormal interrupt to executing in respective operations, determines that current call chain for abnormal interrupt link, waits asynchronous task to draw again Play abnormal interrupt link.
It is directed to the node of abnormal interrupt link in one of the embodiments, waiting asynchronous task is again in pull-up exception The data of generation are saved to result data pond for processing is normal and the node of processing failure and include: by chain rupture road
For end node in call chain, when normally to exit call chain or unsuccessfully exiting call chain, return side is identified Formula, echo plex mode include synchronous return or asynchronous return;It is returned if synchronous, is then directly entered and obtains business object result template The step of;If asynchronous return, then the notice pull-up of the result notice or asynchronous task of interconnected system is waited, obtains industry to enter The step of object result template of being engaged in.
It takes different modes to enter for asynchronous return and synchronous return situation for end node in call chain and obtains The step of taking business object result template returns if synchronous, illustrates to need to be included in next processing stage immediately, be then directly entered The step of obtaining business object result template;If asynchronous return, illustrate also to need to wait other associated tasks, interconnected system The notice pull-up of notice or asynchronous task, into the step of obtaining business object result template.
Above-mentioned method for processing business in one of the embodiments, further include:
When receiving business datum, instantiated nodes task is executed, by business datum pair in the form of Spring bean The operation flow interior joint answered instantiates out.
It can be efficient and convenient by the corresponding operation flow interior joint example of business datum using the form of Spring bean It dissolves and.
It, below will be with FCP (Financial for the technical solution for further explaining in detail the application method for processing business Cooperation Platform, financial cooperation platform) apply for that access system is used as specific example to the processing of trade company's giving credit, And Fig. 4 is combined, whole process is described in detail, specifically include the following steps:
1, trade company is passed to data to server;
2, merchant data is converted to the data of reference format by server in the way of data conversion allocation list.
3, the data of reference format are pre-processed, generating includes basic data, the user data of Internal Transfer, data Data needed for call chain including the data such as library persistence object;
4, server needs synchronous execution according to this business timeliness, it is desired nonetheless to asynchronous execution, if synchronous execute, Generate synchronization call chain configuration data;If asynchronous execution, asynchronous execution call chain configuration data is generated;
5, the call chain configuration data that server read step 4 generates executes call chain configuration operation, generates call chain;
6, each node in calling successively is executed;
7, three kinds of returns are contained in non-end node, normal processing then continues next node, unsuccessfully exits execution chain Road, abnormal then broken link wait asynchronous task pull-up link again.Normal and processing failure node is handled by generation Data are put into data pool.End node includes three kinds and returns, and the abnormal then middle chain rupture of link is exited in normal processing and unsuccessfully execution Road waits asynchronous task pull-up link again.It normally exits and calls link or unsuccessfully exit calling link, returned comprising synchronizing Return mode and asynchronous echo plex mode.Synchronous echo plex mode directly acquires the result template of trade company, according to the result template of trade company Trade company is returned to after filling data.Asynchronous echo plex mode waits the notice pull-up of the result notice or asynchronous task of interconnected system, Trade company is returned to after filling data according to the result template of trade company.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
As shown in figure 5, a kind of business processing device, device include:
Configuration data obtains module 100, for receiving business datum, obtains the corresponding call chain of business datum and configures number According to;
Call chain generation module 200, for node instantiated in the corresponding operation flow of business datum according to Call chain configuration data generates call chain;
Execution module 300, for successively executing each node in call chain;
Processing module 400 waits asynchronous task pull-up abnormal interrupt chain again for being directed to the node of abnormal interrupt link Road saves the data of generation to result data pond for the node for handling normal and processing failure;
Feedback module 500 fills data in result data pond to business object for obtaining business object result template As a result template obtains service processing result, feedback traffic processing result to business object.
Above-mentioned business processing device obtains the corresponding call chain configuration data of business datum, is based on call chain configuration data Call chain is generated for the instantiated nodes in operation flow, flexibly to construct call chain for business datum, processing is avoided to save Point repetition, expends meaningless business processing resources, then successively executes each node in call chain, for abnormal interrupt link Node waits asynchronous task pull-up abnormal interrupt link again, for the node for handling normal and processing failure, by the number of generation According to saving to result data pond, business object result template is obtained, data in result data pond are filled to business object result Template obtains service processing result, feedback traffic processing result to business object, thus realize business datum it is flexible with it is efficient Processing.
Configuration data obtains module 100 and is also used to receive business datum in one of the embodiments,;To business datum into The standard Structured processing of row, obtains the business datum of normal structure;The business datum of normal structure is pre-processed, generates and adjusts The data needed for chain;The data according to needed for call chain generate call chain configuration data.
Configuration data obtains module 100 and is also used to obtain preset data conversion allocation list in one of the embodiments,; Standard Structured processing is carried out to business datum according to data conversion allocation list, obtains the business datum of normal structure.
When configuration data obtains module 100 and is also used to obtain business datum corresponding business in one of the embodiments, Effect;If business timeliness is low, the data according to needed for call chain generate asynchronous call chain configuration data;If business timeliness is Gao Shi, then the data according to needed for call chain, generate synchronization call chain configuration data.
Processing module 400 in one of the embodiments, for continuing if normal for non-end node in call chain Next node is executed, then is stored the data that present node generates to result data pond, and enters next node processing step;If It unsuccessfully exits, then, the data that present node generates is stored to result data pond;If abnormal interrupt link waits asynchronous Business pull-up abnormal interrupt link again.
Processing module 400 in one of the embodiments, for for end node in call chain, when normally to exit Call chain or when unsuccessfully exiting call chain, identifies echo plex mode, and echo plex mode includes synchronous returns or asynchronous return;If synchronization It returns, is then directly entered the operation for obtaining business object result template;If asynchronous return, then wait the result of interconnected system logical Know or the notice pull-up of asynchronous task, to enter the operation for obtaining business object result template.
Above-mentioned business processing device further includes instantiation module in one of the embodiments, receives business for working as When data, instantiated nodes task is executed, it is in the form of Spring bean that the corresponding operation flow interior joint of business datum is real Example, which dissolves, to be come.
Specific about business processing device limits the restriction that may refer to above for method for processing business, herein not It repeats again.Modules in above-mentioned business processing device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing presetting database data or historical record data.The network interface of the computer equipment is used for It is communicated with external terminal by network connection.To realize a kind of business processing side when the computer program is executed by processor Method.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of when executing computer program
Business datum is received, the corresponding call chain configuration data of business datum is obtained;
Node instantiated in the corresponding operation flow of business datum is generated according to call chain configuration data and is called Chain;
Successively execute each node in call chain;
For the node of abnormal interrupt link, asynchronous task pull-up abnormal interrupt link again is waited, it is normal for processing With the node of processing failure, the data of generation are saved to result data pond;
Business object result template is obtained, data in result data pond are filled to business object result template, industry is obtained Business processing result, feedback traffic processing result to business object.
In one embodiment, it is also performed the steps of when processor executes computer program
Receive business datum;Standard Structured processing is carried out to business datum, obtains the business datum of normal structure;To mark The business datum of quasi- structure is pre-processed, data needed for generating call chain;The data according to needed for call chain generate call chain and match Set data.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain preset data conversion allocation list;Standard Structured place is carried out to business datum according to data conversion allocation list Reason, obtains the business datum of normal structure.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain the corresponding business timeliness of business datum;If business timeliness is low, the data according to needed for call chain are generated Asynchronous call chain configuration data;If business timeliness is high, the data according to needed for call chain generate synchronization call chain and configure number According to.
In one embodiment, it is also performed the steps of when processor executes computer program
For end non-in call chain node, next node is continued to execute if normal, then the data generated present node It stores to result data pond, and enters next node processing step;If unsuccessfully exiting, the data that present node generates are deposited It stores up to result data pond;If abnormal interrupt link, asynchronous task pull-up abnormal interrupt link again is waited.
In one embodiment, it is also performed the steps of when processor executes computer program
For end node in call chain, when normally to exit call chain or unsuccessfully exiting call chain, return side is identified Formula, echo plex mode include synchronous return or asynchronous return;It is returned if synchronous, is then directly entered and obtains business object result template The step of;If asynchronous return, then the notice pull-up of the result notice or asynchronous task of interconnected system is waited, obtains industry to enter The step of object result template of being engaged in.
In one embodiment, it is also performed the steps of when processor executes computer program
When receiving business datum, instantiated nodes task is executed, by business datum pair in the form of Spring bean The operation flow interior joint answered instantiates out.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Business datum is received, the corresponding call chain configuration data of business datum is obtained;
Node instantiated in the corresponding operation flow of business datum is generated according to call chain configuration data and is called Chain;
Successively execute each node in call chain;
For the node of abnormal interrupt link, asynchronous task pull-up abnormal interrupt link again is waited, it is normal for processing With the node of processing failure, the data of generation are saved to result data pond;
Business object result template is obtained, data in result data pond are filled to business object result template, industry is obtained Business processing result, feedback traffic processing result to business object.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Receive business datum;Standard Structured processing is carried out to business datum, obtains the business datum of normal structure;To mark The business datum of quasi- structure is pre-processed, data needed for generating call chain;The data according to needed for call chain generate call chain and match Set data.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain preset data conversion allocation list;Standard Structured place is carried out to business datum according to data conversion allocation list Reason, obtains the business datum of normal structure.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain the corresponding business timeliness of business datum;If business timeliness is low, the data according to needed for call chain are generated Asynchronous call chain configuration data;If business timeliness is high, the data according to needed for call chain generate synchronization call chain and configure number According to.
In one embodiment, it is also performed the steps of when computer program is executed by processor
For end non-in call chain node, next node is continued to execute if normal, then the data generated present node It stores to result data pond, and enters next node processing step;If unsuccessfully exiting, the data that present node generates are deposited It stores up to result data pond;If abnormal interrupt link, asynchronous task pull-up abnormal interrupt link again is waited.
In one embodiment, it is also performed the steps of when computer program is executed by processor
For end node in call chain, when normally to exit call chain or unsuccessfully exiting call chain, return side is identified Formula, echo plex mode include synchronous return or asynchronous return;It is returned if synchronous, is then directly entered and obtains business object result template The step of;If asynchronous return, then the notice pull-up of the result notice or asynchronous task of interconnected system is waited, obtains industry to enter The step of object result template of being engaged in.
In one embodiment, it is also performed the steps of when computer program is executed by processor
When receiving business datum, instantiated nodes task is executed, by business datum pair in the form of Spring bean The operation flow interior joint answered instantiates out.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of method for processing business, which comprises
Business datum is received, the corresponding call chain configuration data of the business datum is obtained;
Node instantiated in the corresponding operation flow of the business datum is generated according to the call chain configuration data Call chain;
Successively execute each node in the call chain;
For the node of abnormal interrupt link, asynchronous task abnormal interrupt link described in pull-up again is waited, it is normal for processing With the node of processing failure, the data of generation are saved to result data pond;
Business object result template is obtained, data in the result data pond are filled to the business object result template, are obtained To service processing result, the service processing result is fed back to business object.
2. the method according to claim 1, wherein the reception business datum, obtains the business datum pair The call chain configuration data answered includes:
Receive business datum;
Standard Structured processing is carried out to the business datum, obtains the business datum of normal structure;
The business datum of the normal structure is pre-processed, data needed for generating call chain;
According to data needed for the call chain, call chain configuration data is generated.
3. according to the method described in claim 2, it is characterized in that, described carry out standard Structured place to the business datum Reason, the business datum for obtaining normal structure includes:
Obtain preset data conversion allocation list;
Standard Structured processing is carried out to the business datum according to the data conversion allocation list, obtains the business of normal structure Data.
4. according to the method described in claim 2, it is characterized in that, the data according to needed for the call chain, generate and call Chain configuration data includes:
Obtain the corresponding business timeliness of the business datum;
If the business timeliness is low, according to data needed for the call chain, asynchronous call chain configuration data is generated;
If the business timeliness is high, according to data needed for the call chain, synchronization call chain configuration data is generated.
5. the method according to claim 1, wherein the node for abnormal interrupt link, waits asynchronous Task abnormal interrupt link described in pull-up again, for processing is normal and the node of processing failure, by the data of generation save to Result data pond includes:
For end node non-in the call chain, next node is continued to execute if normal, then the data generated present node It stores to result data pond, and enters next node processing step;If unsuccessfully exiting, the data that present node generates are deposited It stores up to result data pond;If abnormal interrupt link, asynchronous task abnormal interrupt link described in pull-up again is waited.
6. according to the method described in claim 5, it is characterized in that, the node for abnormal interrupt link, waits asynchronous Task abnormal interrupt link described in pull-up again, for processing is normal and the node of processing failure, by the data of generation save to Result data pond includes:
For end node in the call chain, when normally to exit call chain or unsuccessfully exiting call chain, return side is identified Formula, the echo plex mode include synchronous return or asynchronous return;
If synchronous the step of returning, being then directly entered the acquisition business object result template;
If asynchronous return, then the notice pull-up of the result notice or asynchronous task of interconnected system is waited, to enter the acquisition The step of business object result template.
7. the method according to claim 1, wherein further include:
When receiving business datum, instantiated nodes task is executed, by the business datum pair in the form of Spring bean The operation flow interior joint answered instantiates out.
8. a kind of business processing device, which is characterized in that described device includes:
Configuration data obtains module and obtains the corresponding call chain configuration data of the business datum for receiving business datum;
Call chain generation module, for node instantiated in the corresponding operation flow of the business datum according to described Call chain configuration data generates call chain;
Execution module, for successively executing each node in the call chain;
Processing module waits asynchronous task abnormal interrupt link described in pull-up again for being directed to the node of abnormal interrupt link, For the node for handling normal and processing failure, the data of generation are saved to result data pond;
Feedback module fills data in the result data pond to the business pair for obtaining business object result template As result template, service processing result is obtained, feeds back the service processing result to business object.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910636007.5A 2019-07-15 2019-07-15 Service processing method, device, computer equipment and storage medium Active CN110503385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910636007.5A CN110503385B (en) 2019-07-15 2019-07-15 Service processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910636007.5A CN110503385B (en) 2019-07-15 2019-07-15 Service processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110503385A true CN110503385A (en) 2019-11-26
CN110503385B CN110503385B (en) 2022-08-12

Family

ID=68585600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910636007.5A Active CN110503385B (en) 2019-07-15 2019-07-15 Service processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110503385B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580896A (en) * 2020-05-04 2020-08-25 武汉众邦银行股份有限公司 Link calling method based on atomization service
CN112668998A (en) * 2020-12-23 2021-04-16 树根互联技术有限公司 Flow implementation method, device, system, electronic equipment and readable storage medium
CN112948207A (en) * 2021-02-23 2021-06-11 中国工商银行股份有限公司 Information transfer method, information transfer device, electronic apparatus, and medium
CN113052696A (en) * 2021-03-08 2021-06-29 招联消费金融有限公司 Financial business task processing method and device, computer equipment and storage medium
CN113157405A (en) * 2020-01-22 2021-07-23 北京京东振世信息技术有限公司 Method and device for retrying breakpoint of business process
CN115545353A (en) * 2022-11-29 2022-12-30 支付宝(杭州)信息技术有限公司 Method and device for business wind control, storage medium and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10334086A (en) * 1997-06-04 1998-12-18 Nippon Telegr & Teleph Corp <Ntt> Information disclosure system
CN101650650A (en) * 2009-08-17 2010-02-17 金蝶软件(中国)有限公司 Realization method of application system
CN103597786A (en) * 2011-06-10 2014-02-19 瑞典爱立信有限公司 Method of and apparatus for configuring quality of service
CN104216912A (en) * 2013-06-04 2014-12-17 广州中国科学院软件应用技术研究所 Method and device for achieving non-intrusive service form workflow
CN105718601A (en) * 2016-03-09 2016-06-29 浪潮通信信息系统有限公司 Dynamic business integrating model and application method thereof
CN106031100A (en) * 2014-12-19 2016-10-12 华为技术有限公司 Service link deployment method and device
US10042722B1 (en) * 2015-06-23 2018-08-07 Juniper Networks, Inc. Service-chain fault tolerance in service virtualized environments
CN108665125A (en) * 2017-03-30 2018-10-16 北大方正集团有限公司 The method and system of harmful influence supervision are realized based on flow dynamic configuration
CN108900640A (en) * 2018-08-13 2018-11-27 平安普惠企业管理有限公司 Node calls link generation method, device, computer equipment and storage medium
CN109669690A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Vocational work stream generating method, device, equipment and computer readable storage medium
CN109873717A (en) * 2019-01-18 2019-06-11 深圳壹账通智能科技有限公司 Monitoring method, device, computer equipment and storage medium
CN109886689A (en) * 2019-03-05 2019-06-14 阿里巴巴集团控股有限公司 Data based on block chain deposit card, evidence collecting method and device
CN109976724A (en) * 2019-03-16 2019-07-05 平安城市建设科技(深圳)有限公司 Development approach, device, equipment and the computer readable storage medium of leasing system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10334086A (en) * 1997-06-04 1998-12-18 Nippon Telegr & Teleph Corp <Ntt> Information disclosure system
CN101650650A (en) * 2009-08-17 2010-02-17 金蝶软件(中国)有限公司 Realization method of application system
CN103597786A (en) * 2011-06-10 2014-02-19 瑞典爱立信有限公司 Method of and apparatus for configuring quality of service
CN104216912A (en) * 2013-06-04 2014-12-17 广州中国科学院软件应用技术研究所 Method and device for achieving non-intrusive service form workflow
CN106031100A (en) * 2014-12-19 2016-10-12 华为技术有限公司 Service link deployment method and device
US10042722B1 (en) * 2015-06-23 2018-08-07 Juniper Networks, Inc. Service-chain fault tolerance in service virtualized environments
CN105718601A (en) * 2016-03-09 2016-06-29 浪潮通信信息系统有限公司 Dynamic business integrating model and application method thereof
CN108665125A (en) * 2017-03-30 2018-10-16 北大方正集团有限公司 The method and system of harmful influence supervision are realized based on flow dynamic configuration
CN108900640A (en) * 2018-08-13 2018-11-27 平安普惠企业管理有限公司 Node calls link generation method, device, computer equipment and storage medium
CN109669690A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Vocational work stream generating method, device, equipment and computer readable storage medium
CN109873717A (en) * 2019-01-18 2019-06-11 深圳壹账通智能科技有限公司 Monitoring method, device, computer equipment and storage medium
CN109886689A (en) * 2019-03-05 2019-06-14 阿里巴巴集团控股有限公司 Data based on block chain deposit card, evidence collecting method and device
CN109976724A (en) * 2019-03-16 2019-07-05 平安城市建设科技(深圳)有限公司 Development approach, device, equipment and the computer readable storage medium of leasing system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157405A (en) * 2020-01-22 2021-07-23 北京京东振世信息技术有限公司 Method and device for retrying breakpoint of business process
CN111580896A (en) * 2020-05-04 2020-08-25 武汉众邦银行股份有限公司 Link calling method based on atomization service
CN111580896B (en) * 2020-05-04 2023-07-07 武汉众邦银行股份有限公司 Link calling method based on atomization service
CN112668998A (en) * 2020-12-23 2021-04-16 树根互联技术有限公司 Flow implementation method, device, system, electronic equipment and readable storage medium
CN112668998B (en) * 2020-12-23 2023-12-19 树根互联股份有限公司 Flow implementation method, device, system, electronic equipment and readable storage medium
CN112948207A (en) * 2021-02-23 2021-06-11 中国工商银行股份有限公司 Information transfer method, information transfer device, electronic apparatus, and medium
CN113052696A (en) * 2021-03-08 2021-06-29 招联消费金融有限公司 Financial business task processing method and device, computer equipment and storage medium
CN115545353A (en) * 2022-11-29 2022-12-30 支付宝(杭州)信息技术有限公司 Method and device for business wind control, storage medium and electronic equipment
CN115545353B (en) * 2022-11-29 2023-04-18 支付宝(杭州)信息技术有限公司 Business wind control method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110503385B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN110503385A (en) Method for processing business, device, computer equipment and storage medium
CN109522218A (en) Interface test method, device, computer equipment and storage medium
CN110209652A (en) Tables of data moving method, device, computer equipment and storage medium
CN109711802A (en) Item information processing method, device, computer equipment and storage medium
CN109447411A (en) Business Process Control method, apparatus, computer equipment and storage medium
CN109726983A (en) Examine method for allocating tasks, device, computer equipment and storage medium
CN111061463A (en) Micro-service combination application method and device, computer equipment and storage medium
CN109816503A (en) Financial details data creation method, device, computer equipment and storage medium
CN109246235B (en) Method and device for receiving monitoring data and data monitoring system
CN110109712A (en) Service Component loading method, device, computer equipment and storage medium
CN112491659B (en) Flow playback test method and device, computer equipment and storage medium
CN112465615B (en) Method, device and system for processing bill data
CN111142933A (en) Workflow generation method and device, computer equipment and storage medium
CN109885310A (en) A kind of method and device reducing mobile phone games Shader module EMS memory occupation
CN111208992A (en) System scheduling workflow generation method and system
CN110109656A (en) Interface analogy method, device, computer equipment and storage medium
CN115344533A (en) Microservice log retrieval method, microservice log retrieval system, microservice log retrieval control device, and storage medium
CN109785047A (en) Order method for pushing, device, computer equipment and the storage medium of financial product
CN110245125A (en) Data migration method, device, computer equipment and storage medium
CN112487163B (en) Execution method of automatic flow and method and device for acquiring interface data of execution method
CN109783606A (en) Data processing method, device, computer equipment and storage medium
CN110377292A (en) Service configuration method, apparatus, computer equipment and storage medium
CN116204307A (en) Federal learning method and federal learning system compatible with different computing frameworks
CN110213078A (en) Business platform building method, device, computer equipment and storage medium
CN109783377A (en) Test data acquisition methods, tool, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Zhaolian Consumer Finance Co.,Ltd.

Country or region after: China

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: MERCHANTS UNION CONSUMER FINANCE Co.,Ltd.

Country or region before: China