CN109542428A - 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
CN109542428A
CN109542428A CN201811203675.0A CN201811203675A CN109542428A CN 109542428 A CN109542428 A CN 109542428A CN 201811203675 A CN201811203675 A CN 201811203675A CN 109542428 A CN109542428 A CN 109542428A
Authority
CN
China
Prior art keywords
task
pending
business
goal
tasks
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
CN201811203675.0A
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.)
Beijing Shenzhou Digital Cloud Information Technology Co ltd
Shenzhou Kuntai Xiamen Information Technology Co ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201811203675.0A priority Critical patent/CN109542428A/en
Publication of CN109542428A publication Critical patent/CN109542428A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application involves a kind of method for processing business, device, computer equipment and storage mediums.The described method includes: receiving business processing request;The business processing request carries Data Identification and target service mark;Obtain business datum corresponding with the Data Identification;Obtain goal task set corresponding with target service mark;The goal task set includes multiple pending tasks;The multiple pending task is successively executed based on the business datum, respectively obtains task processing result;Summarize the corresponding task processing result of each pending task, obtains service processing result.Business layer identification code can efficiently be utilized using this method, business procession is optimized.

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 diversified development of type of business, there are service details differences between many business.It is connect by same In the case where mouth processing different business, it usually needs develop different business layer identification codes, for different business demands to realize The function of differentiation.Since business layer identification code iteration is frequent in traditional approach, the degree of coupling is higher, what each business layer identification code was realized Subfunction can not be multiplexed in other business layer identification codes, lead to that a large amount of redundant code, operation layer code size can be generated Gradually become very huge.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can efficiently utilize at the business of business layer identification code Manage method, apparatus, computer equipment and storage medium.
A kind of method for processing business, which comprises receive business processing request;The business processing request carries number According to mark and target service mark;Obtain business datum corresponding with the Data Identification;It obtains and is identified with the target service Corresponding goal task set;The goal task set includes multiple pending tasks;It is successively held based on the business datum The multiple pending task of row, respectively obtains task processing result;Summarize the corresponding task processing knot of each pending task Fruit obtains service processing result.
In one of the embodiments, before reception business processing request, further includes: creation multiple pending Business;Each pending task has corresponding task identification;Obtain multiple service identifications to be configured and multiple to be configured Task identification;Based on detect business configuration operation, according to the multiple service identification to be configured and it is the multiple to The task identification of configuration generates configuration mapping table;According to the configuration mapping table, will identify with identical services has mapping relations Task identification corresponding to pending task as set of tasks.
In one of the embodiments, the method also includes: according to the configuration mapping table, count each described wait hold The subnumber amount of set of tasks belonging to row task and the total quantity of statistics task set;According to the subnumber amount and described total The standard that quantity calculates corresponding pending task executes probability;It is multiple pending according to include in the goal task set The corresponding standard of task executes probability, determines the abnormality of the business processing.
It is described corresponding according to the multiple pending tasks for including in the goal task set in one of the embodiments, Standard execute probability, determine the abnormality of the business processing, comprising: monitoring preset duration in the goal task set In each pending task practical execution duration;According to the practical execution duration and the preset duration, the mesh is calculated Mark the practical execution probability of each pending task in set of tasks;It is executed according to the corresponding standard of each pending task Probability and practical execution probability, calculate the probable error of corresponding pending task;When existing probability error is greater than error threshold When pending task, determine that there are business processing exceptions.
The multiple pending task is successively executed based on the business datum described in one of the embodiments, After respectively obtaining task processing result, further includes: monitor actually accounting for for each pending task in the goal task set With sub- capacity;When the practical sub- capacity of occupancy is greater than the first capacity threshold, then stop executing corresponding pending task;When every When the sub- capacity of practical occupancy of a pending task is less than the first capacity threshold, then it is multiple wait hold to calculate goal task set The sum of the sub- capacity of practical occupancy of row task respectively, obtains practical occupancy total capacity;When the practical sub- capacity of occupancy is greater than institute When stating target service and identifying corresponding second memory threshold, then stops handling the target service and identify corresponding business processing and ask It asks.
It is described in one of the embodiments, that the multiple pending task is successively executed based on the business datum, point Task processing result is not obtained, comprising: searches pending task from the goal task set;Detect found wait hold The status indicator of row task;When the status indicator is to open mark, then described searched is executed based on the business datum The pending task arrived, obtains task processing result;When the pending task found is deposited in the goal task set In next pending task, the status indicator for the pending task that detection is found is returned.
In one of the embodiments, the method also includes: receive the newly-increased request of task;The newly-increased request of the task is taken Band set identification and goal task describe text;Task description document is obtained, the goal task is described into text and described Business description document is matched;Text is described comprising multiple historic tasks in the task description document;When presence and the mesh When the historic task of mark task description text matches describes text, then it is corresponding pending text to be described into matched historic task Task is added in the corresponding goal task set of the set identification;When there is no describe text matches with the goal task Historic task when describing text, then the goal task is described the corresponding pending task of text and is added to the set to mark Know in corresponding goal task set.
A kind of business processing device, described device include: receiving module, for receiving business processing request;The business Processing request carries Data Identification and target service mark;Module is obtained, for obtaining business corresponding with the Data Identification Data;Obtain goal task set corresponding with target service mark;The goal task set includes multiple pending Task;Execution module respectively obtains task processing for successively executing the multiple pending task based on the business datum As a result;Summarizing module obtains service processing result for summarizing the corresponding task processing result of each pending task.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes above-mentioned each method for processing business as described in the examples when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above-mentioned each method for processing business as described in the examples is realized when row.
Above-mentioned method for processing business, device, computer equipment and storage medium, server, which receives, carries Data Identification and mesh The business processing request of service identification is marked, server can obtain business datum corresponding with Data Identification, can also obtain and target Service identification corresponding goal task set includes multiple pending tasks in goal task set.Server can be based on business Data successively execute multiple pending tasks, respectively obtain task processing result.Server can summarize all task processing knots Fruit obtains service processing result.For different business scenarios, business processing is carried out by specific set of tasks.Pass through By it is common it is pending be multiplexed, improve the flexibility of the demand adjustment for different business scene, it is superfluous to reduce code It is remaining, business layer identification code is efficiently utilized.
Detailed description of the invention
Fig. 1 is the application scenario diagram 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 schematic diagram of tree construction set of tasks in one embodiment;
Fig. 4 is the flow diagram of method for processing business in another embodiment;
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.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements are not limited by these terms.These terms are only used to distinguish the first element from the other element.Citing For, without departing from the scope of the invention, the first capacity threshold can be known as the second capacity threshold, and similar Second capacity threshold can be known as the first capacity threshold by ground.First capacity threshold and the second capacity threshold both capacity threshold Value, but it is not same capacity threshold.
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.Wherein, terminal 102 can be, but not limited to be various personal computers, notebook electricity Brain, smart phone, tablet computer and portable wearable device, server 104 can be either multiple with independent server The server cluster of server composition is realized.Server 104 receives the carrying Data Identification and target service that terminal 102 is sent The business processing of mark is requested, and server 104 can obtain business datum corresponding with Data Identification.Server 104 can also obtain Goal task set corresponding with target service mark includes multiple pending tasks in goal task set, and server 104 can Multiple pending tasks are successively executed based on business datum, respectively obtain task processing result.Server 104 can summarize all Task processing result, obtains service processing result.
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 104, comprising the following steps:
Step 202, business processing request is received;Business processing request carries Data Identification and target service mark.
Business processing request refers to the request for being used to carry out business processing that terminal is sent.Data Identification refers to for obtaining The mark of business datum.Data Identification can be the address for obtaining business datum.For example Data Identification can be business datum URL (Uniform Resource Locator, uniform resource locator).Data Identification can also be for by letter, number, punctuate The character string that at least one of symbol is constituted.For example Data Identification can be the number of business datum, server can pass through business The number of data goes in preset database to obtain corresponding business datum.The target service that business processing request carries identifies The mark of the target service handled needed for finger.Target service can be credit operation, vehicle borrows business, unsecured loan industry The loan transactions such as business, collateral loan business, can also be the other kinds of industry such as insurance business, fund business and stock exchange transaction Business.
In one embodiment, server can provide the processing function of a plurality of types of business by an interface.It is connecing When receiving business processing request, different business is distinguished by different service identifications, so that server can be according to difference Service identification different business processings is carried out by the same interface.
Step 204, business datum corresponding with Data Identification is obtained.
Business datum refers to the data for needing to carry out business processing.Such as when user needs to carry out loan transaction, industry Data of being engaged in include but is not limited to provide a loan channel, loan product, loan interest rate, user credit data, user account data etc..Business Data can store in preset database, can be in the database of terminal, be also possible in the database of server.
In one embodiment, terminal can provide data upload interface, may include in data upload interface text box, by The input controls such as button, combobox, user can pass through input control incoming traffic data to terminal.It is acted on really when terminal detects When recognizing the clicking operation of control, the business datum that user inputs can be summarized packing, and the business datum of packing is sent to clothes It is engaged in device.Server can also acquire in a network required business datum by web crawlers, and business datum is stored to default Database in so that server can be obtained from database business datum carry out business processing.
Step 206, goal task set corresponding with target service mark is obtained;Goal task set includes multiple wait hold Row task.
Set of tasks refers to the set for being stored with multiple pending tasks.Goal task collection is combined into and target service mark pair The set of tasks of execution answer, current desired.Can be stored with multiple pending tasks in goal task set, and for it is multiple to Execution task can be preset with and execute sequence.Due to may be present identical pending task between different business, it is same to Execution task can be at multiple tasks set, realize the multiplexing of task, improve the utilization rate that pending task corresponds to code.
Step 208, multiple pending tasks are successively executed based on business datum, respectively obtain task processing result.
Task execution sequence, which can be, successively to be executed, and is also possible to execute side by side, be can also be selective execution.Such as It says, it, can be by preset execution comprising three pending tasks, respectively task 1, task 2 and task 3 in goal task set Sequence successively executes three tasks, can also execute three tasks side by side, can also be after executing task 1, according to task 1 Implementing result selectively executes task 2 or task 3.For example with loan transaction, pending task includes but is not limited to credit It is worth more new task, project process assigns task, parameter coding convert task, application flow verification task, additional credit value calculate Task, account information request task and finance company's code correct task dispatching.
In one embodiment, pending task can be realized by TASK class.Each TASK method realizes that ApsTask connects The doTask method of mouth, each TASK can be used as a subclass object, be called accordingly by interface according to TASK name parameter TASK subclass object after, can pass through subclass object realize parent method.
In one embodiment, as shown in figure 3, being the schematic diagram of tree construction set of tasks.It may include multilayer in tree construction Secondary Task node, each Task node correspond to a pending task.Task-set is successively executed according to the execution sequence of configuration Pending task in conjunction, comprising: determine the root node Task in set of tasks first, execute the corresponding Task1 of root node, root Corresponding child node is determined according to implementing result.Such as when implementing result is A, then next Task node is Task1.1;When executing knot When fruit is B, then next Task node is Task1.2.And so on, next to be executed is determined according to the implementing result of father node Task child node, until a level does not search child node still further below when child node is leaf node.Tree is executed according to preset order Task in the set of tasks of structure type can be avoided the pending task for executing unnecessary execution, saves and executes task-set The time of pending task in conjunction.
Step 210, summarize the corresponding task processing result of each pending task, obtain service processing result.
After executing each pending task, task processing result can be respectively obtained, by summarizing multiple tasks processing knot Service processing result can be obtained in fruit.For loan transaction, account can be obtained by executing account information request task Information obtains updated credit value by executing credit value more new task, is obtained by executing additional credit value calculating task Loan limit, loan account can be obtained by summarizing account information, updated credit value, additional credit value in additional credit value The service processing results such as credit grade or loan transaction processing progress.
In above-mentioned method for processing business, server receives carrying Data Identification and the business processing of target service mark is asked It asks, server can obtain business datum corresponding with Data Identification, can also obtain goal task corresponding with target service mark Gather, includes multiple pending tasks in goal task set.Server can successively be executed multiple pending based on business datum Task respectively obtains task processing result.Server can summarize all task processing results, obtain service processing result.Needle To different business scenarios, business processing is carried out by specific set of tasks.By by it is common it is pending be multiplexed, The flexibility adjusted for the demand of different business scene is improved, reduces code redundancy, business layer identification code is efficiently utilized.
In one embodiment, before receiving business processing request, further includes: the multiple pending tasks of creation;Each Pending task has corresponding task identification;Obtain multiple service identifications to be configured and multiple task identifications to be configured; It is generated based on the business configuration operation detected according to multiple service identifications to be configured and multiple task identifications to be configured Configure mapping table;According to configuration mapping table, will have corresponding to the task identification of mapping relations with identical services mark wait hold Row task is as set of tasks.
TASK (class for indicating an asynchronous operation) pending task of Object Creation can be called.Each pending task is One TASK method.Each TASK method can be realized by Similar integral mode, reduced the multiplexing of code, reduced code redundancy.It can Task identification is distributed automatically for each pending task, and user personalized can also define task identification, pass through task identification pair Multiple pending tasks distinguish, in order to business configuration.Business configuration operate but be not limited to clicking operation, drag operation, Release operation etc..Server can identify service identification to be configured and task to be configured based on the business configuration operation detected With the mapping relations postponed between mark, each service identification can be corresponding with one or more task identifications, each task identification It can also be corresponding with one or more service identifications.It can be based on reflecting between the multiple service identifications postponed and multiple tasks mark Relationship is penetrated, configuration mapping table is generated.Set of tasks refers to the task identification of corresponding identical services mark pending task accordingly Set.
Table 1
Select product interface Service identification Task identification
choiceProduct 0201 getIBTCycleSwitchTask
choiceProduct 0202 getIBTCycleSwitchTask
choiceProduct 0203 apsAgreementSignTask
choiceProduct 0203 reloanCheckTask
choiceProduct 0201 getBankCreditInfoTask
choiceProduct 0202 getBankCreditInfoTask
choiceProduct 0203 queryCustMoveInfoTask
choiceProduct 0203 saveApplIloanMigrateTask
It is as shown in Table 1 the configuration mapping table in one embodiment, is directed to 0201,0202,0,203 3 kind of business Mark.Based on the mapping relations in configuration mapping table between service identification and task identification, the industry for being 0201 for service identification It is engaged in, include in set of tasks: " getIBTCycleSwitchTask " and " getBankCreditInfoTask " two is pending Task;For the business of service identification 0202, include in set of tasks: " getIBTCycleSwitchTask " and " getBankCreditInfoTask " two pending tasks;And it is directed to the business of business scenario 0203, it is wrapped in set of tasks Contain: " apsAgreementSignTask ", " reloanCheckTask ", " queryCustMoveInfoTask " and " saveApplIloanMigrateTask " three pending tasks.Service identification is 0201 and service identification 0202 is currently corresponding Set of tasks be although identical, but still configure corresponding set of tasks, can be right when in order to the change of follow-up business demand The additions and deletions of corresponding set of tasks change.
In one embodiment, this method further include: according to configuration mapping table, count and appoint belonging to each pending task The subnumber amount of set of being engaged in and the total quantity of statistics task set;It is calculated according to subnumber amount and total quantity pending corresponding The standard of business executes probability;Probability is executed according to the corresponding standard of multiple pending tasks for including in goal task set, really Determine the abnormality of business processing.
For all settable corresponding set of tasks of every kind of business, therefore multiple tasks set can be stored in database. Standard executes probability and refers to the execution probability of pending task in the ideal case.Executing probability based on standard can be to pending The case where task normally executes is estimated, so as to analyze the abnormality of business procession.
In one embodiment, it is executed according to the corresponding standard of multiple pending tasks for including in goal task set general Rate determines the abnormality of business processing, comprising: monitors the reality of each pending task in goal task set in preset duration Border executes duration;Duration and preset duration are executed according to practical, calculates the reality of each pending task in goal task set Execute probability;According to each pending corresponding standard execution probability of task and practical execution probability, accordingly pending is calculated The probable error of business;When existing probability error is greater than the pending task of error threshold, determine that there are business processing exceptions.
For example, there are three being total to set of tasks " Task1, Task2, Task3 ", " Task2, Task4 ", " Task3, Task4 ", and a length of t1, t2, t3, t4 when the practical execution of each pending task in preset duration T, then the subnumber amount of Task1 Subnumber amount for 1, Task2 is 2, and total quantity is 3, then the standard of Task1 executes probability P1For 1/3, practical execution probability P1’ For t1/T, probable error W1Formula can be passed throughIt is calculated.Correspondingly, the standard of Task2 executes probability P2For 2/3, practical to execute probability P2' it is t2/T, probable error W2Formula can be passed throughIt is calculated.For first Set of tasks, as probable error W1With probable error W2And at least one probable error in the probable error of pending task task 3 When greater than preset error threshold, illustrate to execute the situation that time-out occurs in pending task, there are at business for service processing result Reason is abnormal.By analyzing business processing abnormal conditions, task execution exception can be found, in time so as to right in time Exception is repaired, and is avoided by the extremely generated risk of the extremely caused service processing result of business processing.
In one embodiment, multiple pending tasks are successively being executed based on business datum, is respectively obtaining task processing As a result after, further includes: the sub- capacity of practical occupancy of each pending task in monitoring objective set of tasks;It is sub when actually occupying When capacity is greater than the first capacity threshold, then stop executing corresponding pending task;When practical occupancy of each pending task When capacity is less than the first capacity threshold, then calculate the sub- capacity of practical occupancy of the multiple pending tasks of goal task set respectively it With obtain practical occupancy total capacity;When actually occupying sub- capacity greater than target service corresponding second memory threshold of mark, then Stop the corresponding business processing request of processing target service identification.
The sub- capacity of practical occupancy of each pending task consumption, holds when actually occupying son in detection actual moving process When amount is greater than the first capacity threshold, then illustrate that the memory usage of the current pending task is excessively high, then no longer by business datum It is sent to the pending task and carries out execution processing;When the sub- capacity of practical occupancy of each pending task is less than the first capacity threshold When value, practical occupancy total capacity of the statistics for the set of tasks of each service identification;When the practical occupancy of set of tasks is always held When amount is greater than corresponding service mark corresponding second memory threshold, then the corresponding business datum of the service identification is not reprocessed.It is logical The memory threshold for the setting of each service identification to be crossed, the control of priority can be carried out to different business, priority is higher, Corresponding memory threshold is bigger.Probability can be also executed by the standard of pending task to carry out the memory consumption of pending task Estimation executes the higher pending task of probability to standard in advance and distributes bigger memory size.
In one embodiment, multiple pending tasks are successively executed based on business datum, respectively obtain task processing knot Fruit, comprising: pending task is searched from goal task set;Detect the status indicator of the pending task found;When Status indicator is when opening mark, then to execute the pending task found based on business datum, obtain task processing result; In the presence of the pending task found is in goal task set when one pending task, return to what detection was found The status indicator of pending task.
Corresponding status indicator can be set for each pending task.Such as when status indicator be open mark, than When for example Y, the pending task can be performed;When status indicator is to close mark, for example when for N, can skip the pending task. Such as the business procession of loan transaction, different appoint, can be set for the loan transaction of different business channels Business set, and may include identical pending task in set of tasks, but the pending task in different task set is corresponding Status indicator can not be identical.For the business channel of webpage, need to verify when handling loan transaction name, identification card number, Cell-phone number, IP address;And it is directed to the business channel of application program, it can only need to verify name and identity when handling loan transaction The pending task for verifying cell-phone number and IP address can be then set off mark by card number.It is arranged by status indicator wait hold The switch state of row task, can more easily control increase and decrease set of tasks in pending task so as to it is distinctive to Execution task carries out independent configuration.
In one embodiment, this method further include: receive the newly-increased request of task;The newly-increased request of task carries set identification Text is described with goal task;Task description document is obtained, goal task is described into text and is matched with task description document; Text is described comprising multiple historic tasks in task description document;When in the presence of the historic task for describing text matches with goal task When describing text, then matched historic task is described into the corresponding pending task of text and be added to the corresponding target of set identification In set of tasks;When describing text there is no the historic task for describing text matches with goal task, then goal task is retouched The corresponding pending task of text is stated to be added in the corresponding goal task set of set identification.
It, can the pending task building task of task based access control set all history for including after creating multiple tasks set Document is described, can be and construct task description document for each set of tasks.Also one can be generated according to multiple tasks set Comprehensive task set can be directed to comprehensive task set comprising the pending task in all set of tasks in comprehensive task set Construct a unified task description document.There is corresponding historic task to describe text for the pending task of each history.It is logical Cross and goal task is described into text matched with task description document, can determine in task description document whether include and mesh Mark the pending task of the matched history of pending task.Text is described when there is the historic task for describing text matches with goal task This when, illustrates without adding the pending task of the target, and need to only increase the pending task of the history newly corresponding to set identifier In set of tasks.When describing text there is no the historic task for describing text matches with goal task, explanation can add target Pending task is added in comprehensive task set into the corresponding set of tasks of service identification, and by the pending task of target. It is matched by the way that goal task is described text with task description document, can avoid increasing duplicate pending task, improved The utilization rate of each pending task of history, to efficiently update the pending task in set of tasks.
In one embodiment, as shown in figure 4, providing another method for processing business, it is applied in Fig. 1 in this way Server 104 for be illustrated, comprising the following steps:
Step 402, multiple pending tasks are created;Each pending task has corresponding task identification.
Step 404, multiple service identifications to be configured and multiple task identifications to be configured are obtained.
Step 406, based on the business configuration operation detected, according to multiple service identifications to be configured and multiple to be configured Task identification, generate configuration mapping table.
Step 408, according to configuration mapping table, will have corresponding to the task identification of mapping relations with identical services mark Pending task is as set of tasks.
Step 410, business processing request is received;Business processing request carries Data Identification and target service mark.
Step 412, business datum corresponding with Data Identification is obtained.
Step 414, goal task set corresponding with target service mark is obtained;Goal task set includes multiple wait hold Row task.
Step 416, multiple pending tasks are successively executed based on business datum, respectively obtain task processing result.
Step 418, summarize the corresponding task processing result of each pending task, obtain service processing result.
Step 420, according to configuration mapping table, the subnumber amount of set of tasks belonging to each pending task is counted, and The total quantity of statistics task set.
Step 422, probability is executed according to the standard that subnumber amount and total quantity calculate corresponding pending task.
Step 424, probability is executed according to the corresponding standard of multiple pending tasks for including in goal task set, determined The abnormality of business processing.
In above-mentioned method for processing business, it is directed to by the way that multiple pending tasks are pre-created, and based on business configuration operation The corresponding set of tasks of every kind of service generation.Server receives carrying Data Identification and the business processing of target service mark is asked It asks, server can obtain business datum corresponding with Data Identification, can also obtain goal task corresponding with target service mark Gather, includes multiple pending tasks in goal task set.Server can successively be executed multiple pending based on business datum Task respectively obtains task processing result.Server can summarize all task processing results, obtain service processing result.Needle To different business scenarios, business processing is carried out by specific set of tasks.By by it is common it is pending be multiplexed, The flexibility adjusted for the demand of different business scene is improved, reduces code redundancy, business layer identification code is efficiently utilized. And by analyzing business processing abnormal conditions, task execution exception can be found, in time so as in time to exception It is repaired, is avoided by the extremely generated risk of the extremely caused service processing result of business processing.
It should be understood that although each step in the flow chart of Fig. 2 and 4 is successively shown according to the instruction of arrow, It is these steps is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, in Fig. 2 and 4 at least A part of step may include that perhaps these sub-steps of multiple stages or stage are not necessarily in same a period of time to multiple sub-steps Quarter executes completion, but can execute at different times, the execution in these sub-steps or stage be sequentially also not necessarily according to Secondary progress, but in turn or can replace at least part of the sub-step or stage of other steps or other steps Ground executes.
In one embodiment, as shown in figure 5, providing a kind of business processing device 500, comprising: receiving module 502, For receiving business processing request;Business processing request carries Data Identification and target service mark;Module 504 is obtained, is used for Obtain business datum corresponding with Data Identification;Obtain goal task set corresponding with target service mark;Goal task collection Closing includes multiple pending tasks;Execution module 506, for successively executing multiple pending tasks based on business datum, respectively Obtain task processing result;Summarizing module 508 obtains industry for summarizing the corresponding task processing result of each pending task Business processing result.
In one embodiment, which further includes configuration module, for creating multiple pending tasks;It is each pending Task has corresponding task identification;Obtain multiple service identifications to be configured and multiple task identifications to be configured;Based on inspection The business configuration operation measured generates configuration and reflects according to multiple service identifications to be configured and multiple task identifications to be configured Firing table;According to configuration mapping table, will there is pending task corresponding to the task identification of mapping relations with identical services mark As set of tasks.
In one embodiment, which further includes abnormal judgment module, for according to configuration mapping table, statistics each to The subnumber amount of set of tasks belonging to execution task and the total quantity of statistics task set;According to subnumber amount and total meter The standard for calculating corresponding pending task executes probability;It is corresponding according to the multiple pending tasks for including in goal task set Standard executes probability, determines the abnormality of business processing.
In one embodiment, abnormal judgment module is also used to monitor in preset duration in goal task set each wait hold The practical execution duration of row task;Duration and preset duration are executed according to practical, is calculated each pending in goal task set The practical execution probability of task;According to each pending corresponding standard execution probability of task and practical execution probability, phase is calculated Answer the probable error of pending task;When existing probability error is greater than the pending task of error threshold, determine that there are business Processing is abnormal.
In one embodiment, which further includes capacity monitoring module, in monitoring objective set of tasks each to The sub- capacity of practical occupancy of execution task;When actually occupying sub- capacity and being greater than the first capacity threshold, then stop executing accordingly to Execution task;When the sub- capacity of practical occupancy of each pending task is less than the first capacity threshold, then goal task collection is calculated The sum of the sub- capacity of practical occupancy of multiple pending tasks respectively is closed, practical occupancy total capacity is obtained;When reality occupies sub- capacity When identifying corresponding second memory threshold greater than target service, then stops the corresponding business processing of processing target service identification and ask It asks.
In one embodiment, execution module 506 is also used to search pending task from goal task set;Detection institute The status indicator of the pending task found;When status indicator is to open mark, then searched based on business datum execution The pending task arrived, obtains task processing result;In the presence of the pending task found is in goal task set When one pending task, the status indicator for the pending task that detection is found is returned.
In one embodiment, configuration module is also used to receive the newly-increased request of task;The newly-increased request of task carries set mark Know and goal task describes text;Task description document is obtained, goal task is described into text and the progress of task description document Match;Text is described comprising multiple historic tasks in task description document;When in the presence of the history for describing text matches with goal task When task description text, then matched historic task being described the corresponding pending task of text, to be added to set identification corresponding In goal task set;When describing text there is no the historic task for describing text matches with goal task, then target is appointed The corresponding pending task of business description text is added in the corresponding goal task set of set identification.
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 used for store tasks set.The network interface of the computer equipment is used to pass through network with external terminal Connection communication.To realize a kind of method for processing business when the computer program is executed by processor.
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, including memory and processor are provided, which is stored with The step of computer program, which realizes the method for processing business in above-mentioned each embodiment when executing computer program.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes the step of method for processing business in above-mentioned each embodiment when being executed by processor.
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
Receive business processing request;The business processing request carries Data Identification and target service mark;
Obtain business datum corresponding with the Data Identification;
Obtain goal task set corresponding with target service mark;The goal task set includes multiple pending Business;
The multiple pending task is successively executed based on the business datum, respectively obtains task processing result;
Summarize the corresponding task processing result of each pending task, obtains service processing result.
2. the method according to claim 1, wherein before reception business processing request, further includes:
Create multiple pending tasks;Each pending task has corresponding task identification;
Obtain multiple service identifications to be configured and multiple task identifications to be configured;
Based on the business configuration operation detected, according to the multiple service identification to be configured and the multiple times to be configured Business mark generates configuration mapping table;
According to the configuration mapping table, will there is corresponding to the task identification of mapping relations pending with identical services mark Business is used as set of tasks.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
According to the configuration mapping table, the subnumber amount of set of tasks belonging to each pending task, and statistics are counted The total quantity of set of tasks;
Probability is executed according to the standard that the subnumber amount and the total quantity calculate corresponding pending task;
Probability is executed according to the corresponding standard of multiple pending tasks for including in the goal task set, determines the business The abnormality of processing.
4. according to the method described in claim 3, it is characterized in that, described multiple according to include in the goal task set The corresponding standard of pending task executes probability, determines the abnormality of the business processing, comprising:
Monitor the practical execution duration of each pending task in the goal task set in preset duration;
According to the practical execution duration and the preset duration, each pending task in the goal task set is calculated It is practical to execute probability;
According to each pending corresponding standard execution probability of task and practical execution probability, accordingly pending task is calculated Probable error;
When existing probability error is greater than the pending task of error threshold, determine that there are business processing exceptions.
5. the method according to claim 1, wherein it is described based on the business datum successively execute it is described more A pending task, after respectively obtaining task processing result, further includes:
Monitor the sub- capacity of practical occupancy of each pending task in the goal task set;
When the practical sub- capacity of occupancy is greater than the first capacity threshold, then stop executing corresponding pending task;
When the sub- capacity of practical occupancy of each pending task is less than the first capacity threshold, then goal task set is calculated The sum of the sub- capacity of practical occupancy of multiple pending tasks respectively, obtains practical occupancy total capacity;
When the practical sub- capacity of occupancy, which is greater than the target service, identifies corresponding second memory threshold, then stop handling institute It states target service and identifies corresponding business processing request.
6. according to claim 1 to method described in 5 any one, which is characterized in that described to be based on the business datum successively The multiple pending task is executed, task processing result is respectively obtained, comprising:
Pending task is searched from the goal task set;
Detect the status indicator of the pending task found;
When the status indicator is to open mark, then described found pending is executed based on the business datum Business, obtains task processing result;
In the presence of the pending task found is in the goal task set when one pending task, detection institute is returned The status indicator of the pending task found.
7. the method according to claim 1, wherein the method also includes:
The newly-increased request of reception task;The newly-increased request of the task carries set identification and goal task describes text;
Task description document is obtained, the goal task is described into text and is matched with the task description document;Described Text is described comprising multiple historic tasks in business description document;
When describing text in the presence of the historic task for describing text matches with the goal task, then matched historic task is retouched The corresponding pending task of text is stated to be added in the corresponding goal task set of the set identification;
When describing text there is no the historic task for describing text matches with the goal task, then the goal task is retouched The corresponding pending task of text is stated to be added in the corresponding goal task set of the set identification.
8. a kind of business processing device, which is characterized in that described device includes:
Receiving module, for receiving business processing request;The business processing request carries Data Identification and target service mark;
Module is obtained, for obtaining business datum corresponding with the Data Identification;It obtains corresponding with target service mark Goal task set;The goal task set includes multiple pending tasks;
Execution module respectively obtains task processing for successively executing the multiple pending task based on the business datum As a result;
Summarizing module obtains service processing result for summarizing the corresponding task processing result of each pending task.
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.
CN201811203675.0A 2018-10-16 2018-10-16 Method for processing business, device, computer equipment and storage medium Pending CN109542428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811203675.0A CN109542428A (en) 2018-10-16 2018-10-16 Method for processing business, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811203675.0A CN109542428A (en) 2018-10-16 2018-10-16 Method for processing business, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109542428A true CN109542428A (en) 2019-03-29

Family

ID=65844202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811203675.0A Pending CN109542428A (en) 2018-10-16 2018-10-16 Method for processing business, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109542428A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119309A (en) * 2019-04-04 2019-08-13 中国平安人寿保险股份有限公司 Data processing method, device and storage medium
CN110334123A (en) * 2019-05-17 2019-10-15 平安科技(深圳)有限公司 Business datum switching method, device, computer equipment and storage medium
CN110502319A (en) * 2019-08-23 2019-11-26 腾讯科技(深圳)有限公司 Processing method, device, electronic equipment and the storage medium of distributed transaction
CN110618664A (en) * 2019-09-05 2019-12-27 清华大学 Decentralized distributed control system and control method thereof
CN110727526A (en) * 2019-09-09 2020-01-24 上海陆家嘴国际金融资产交易市场股份有限公司 Big data computing task processing method and system
CN110728455A (en) * 2019-10-17 2020-01-24 京东数字科技控股有限公司 Service processing method, service processing device, storage medium and electronic equipment
CN110928656A (en) * 2019-11-18 2020-03-27 浙江大搜车软件技术有限公司 Service processing method, device, computer equipment and storage medium
CN111031144A (en) * 2019-12-26 2020-04-17 广州鲁邦通物联网科技有限公司 Method and system for calling and inquiring distributed micro service
CN111352626A (en) * 2020-02-04 2020-06-30 北京三快在线科技有限公司 Service request processing method and device, electronic equipment and storage medium
CN111651555A (en) * 2020-04-17 2020-09-11 中汇信息技术(上海)有限公司 Service processing method, system and computer readable storage medium
CN112651842A (en) * 2020-12-29 2021-04-13 中国平安人寿保险股份有限公司 Project demonstration method and device, computer equipment and storage medium
CN112905314A (en) * 2021-01-27 2021-06-04 北京百度网讯科技有限公司 Asynchronous processing method and device, electronic equipment, storage medium and road side equipment
CN113282282A (en) * 2021-05-31 2021-08-20 平安国际智慧城市科技股份有限公司 Business demand form issuing method and device, electronic equipment and storage medium
CN114238286A (en) * 2022-02-28 2022-03-25 连连(杭州)信息技术有限公司 Data warehouse data processing method and device, electronic equipment and storage medium
CN115878352A (en) * 2023-03-08 2023-03-31 深圳市思为软件技术有限公司 Event delivery processing method and device based on pre-subscription
CN116723225A (en) * 2023-06-16 2023-09-08 广州银汉科技有限公司 Automatic allocation method and system for game tasks

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140280507A1 (en) * 2013-03-18 2014-09-18 Tencent Technology (Shenzhen) Company Limited Method, server and system for processing task data
CN104063268A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Task data processing method, server and task data processing system
US20160085584A1 (en) * 2014-09-18 2016-03-24 Robert D. Pedersen Distributed activity control systems and methods
CN105677323A (en) * 2015-12-31 2016-06-15 合肥大多数信息科技有限公司 Method for automatically generating database operation layer codes
CN106557307A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 The processing method and processing system of business datum
CN107908472A (en) * 2017-09-30 2018-04-13 平安科技(深圳)有限公司 Data synchronization unit, method and computer-readable recording medium
CN108446175A (en) * 2018-03-12 2018-08-24 平安普惠企业管理有限公司 Task processing method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140280507A1 (en) * 2013-03-18 2014-09-18 Tencent Technology (Shenzhen) Company Limited Method, server and system for processing task data
CN104063268A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Task data processing method, server and task data processing system
US20160085584A1 (en) * 2014-09-18 2016-03-24 Robert D. Pedersen Distributed activity control systems and methods
CN106557307A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 The processing method and processing system of business datum
CN105677323A (en) * 2015-12-31 2016-06-15 合肥大多数信息科技有限公司 Method for automatically generating database operation layer codes
CN107908472A (en) * 2017-09-30 2018-04-13 平安科技(深圳)有限公司 Data synchronization unit, method and computer-readable recording medium
CN108446175A (en) * 2018-03-12 2018-08-24 平安普惠企业管理有限公司 Task processing method, device, computer equipment and storage medium

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119309A (en) * 2019-04-04 2019-08-13 中国平安人寿保险股份有限公司 Data processing method, device and storage medium
CN110334123A (en) * 2019-05-17 2019-10-15 平安科技(深圳)有限公司 Business datum switching method, device, computer equipment and storage medium
CN110502319A (en) * 2019-08-23 2019-11-26 腾讯科技(深圳)有限公司 Processing method, device, electronic equipment and the storage medium of distributed transaction
CN110618664A (en) * 2019-09-05 2019-12-27 清华大学 Decentralized distributed control system and control method thereof
CN110727526A (en) * 2019-09-09 2020-01-24 上海陆家嘴国际金融资产交易市场股份有限公司 Big data computing task processing method and system
CN110728455A (en) * 2019-10-17 2020-01-24 京东数字科技控股有限公司 Service processing method, service processing device, storage medium and electronic equipment
CN110928656B (en) * 2019-11-18 2023-02-28 浙江大搜车软件技术有限公司 Service processing method, device, computer equipment and storage medium
CN110928656A (en) * 2019-11-18 2020-03-27 浙江大搜车软件技术有限公司 Service processing method, device, computer equipment and storage medium
CN111031144A (en) * 2019-12-26 2020-04-17 广州鲁邦通物联网科技有限公司 Method and system for calling and inquiring distributed micro service
CN111352626A (en) * 2020-02-04 2020-06-30 北京三快在线科技有限公司 Service request processing method and device, electronic equipment and storage medium
CN111651555B (en) * 2020-04-17 2023-11-03 中汇信息技术(上海)有限公司 Service processing method, system and computer readable storage medium
CN111651555A (en) * 2020-04-17 2020-09-11 中汇信息技术(上海)有限公司 Service processing method, system and computer readable storage medium
CN112651842A (en) * 2020-12-29 2021-04-13 中国平安人寿保险股份有限公司 Project demonstration method and device, computer equipment and storage medium
CN112905314A (en) * 2021-01-27 2021-06-04 北京百度网讯科技有限公司 Asynchronous processing method and device, electronic equipment, storage medium and road side equipment
CN113282282A (en) * 2021-05-31 2021-08-20 平安国际智慧城市科技股份有限公司 Business demand form issuing method and device, electronic equipment and storage medium
CN113282282B (en) * 2021-05-31 2022-05-06 深圳赛安特技术服务有限公司 Business requirement form publishing method and device, electronic equipment and storage medium
CN114238286A (en) * 2022-02-28 2022-03-25 连连(杭州)信息技术有限公司 Data warehouse data processing method and device, electronic equipment and storage medium
CN115878352A (en) * 2023-03-08 2023-03-31 深圳市思为软件技术有限公司 Event delivery processing method and device based on pre-subscription
CN116723225A (en) * 2023-06-16 2023-09-08 广州银汉科技有限公司 Automatic allocation method and system for game tasks
CN116723225B (en) * 2023-06-16 2024-05-17 广州银汉科技有限公司 Automatic allocation method and system for game tasks

Similar Documents

Publication Publication Date Title
CN109542428A (en) Method for processing business, device, computer equipment and storage medium
CN110399293B (en) System test method, device, computer equipment and storage medium
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
CN110290212B (en) Service call recording method, device, computer equipment and storage medium
CN108874926A (en) Mass data inquiry method, device, computer equipment and storage medium
CN109543942A (en) Data verification method, device, computer equipment and storage medium
CN109614262B (en) Service checking method, device and computer readable storage medium
US20170060546A1 (en) System and method for providing software build violation detection and self-healing
CN109582303A (en) General purpose module call method, device, computer equipment and storage medium
CN108304554A (en) File declustering method, apparatus, computer equipment and storage medium
CN111598575B (en) Business process control method, business process control device, electronic equipment and readable storage medium
CN109784703A (en) Business data processing method, device, computer equipment and storage medium
CN110490594A (en) Business data processing method, device, computer equipment and storage medium
CN109788031A (en) Business datum acquisition methods, device, computer equipment and storage medium
CN110717647A (en) Decision flow construction method and device, computer equipment and storage medium
CN109062925A (en) Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence
CN109039751A (en) Configure method, apparatus, computer equipment and the storage medium of routing
CN108921680A (en) Financial data accreditation method, apparatus, computer equipment and storage medium
CN108446175A (en) Task processing method, device, computer equipment and storage medium
CN110704095A (en) Workflow-based configuration processing method and device, computer equipment and storage medium
CN110413507A (en) System detection method, device, computer equipment and storage medium
CN111191079A (en) Document content acquisition method, device, equipment and storage medium
CN109492856A (en) Service request processing method, device, computer equipment and storage medium
CN110362478A (en) Application upgrade test method, device, computer equipment and storage medium
CN109785047A (en) Order method for pushing, device, computer equipment and the storage medium of financial product

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240423

Address after: Room 301, 3rd floor, 9 shangdijiu street, Haidian District, Beijing

Applicant after: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region after: China

Applicant after: Shenzhou Kuntai (Xiamen) Information Technology Co.,Ltd.

Address before: 518052 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Country or region before: China