The content of the invention
The embodiment of the present application provides insure flow generation method and device, it is intended to optimizes the generating process for flow of insuring, carries
Height is insured the scalability and maintainability of flow.
The embodiment of the present application also provides insure request processing method and device, it is intended to optimize the processing procedure for request of insuring,
Improve the scalability and maintainability for request processing procedure of insuring.
The embodiment of the present application uses following technical proposals:
Insured flow generation method in a first aspect, the embodiment of the present application provides one kind, including:
Obtain the business information for business of insuring;
According to the business information and Component Gallery of insuring, it is determined that corresponding with the business of insuring in the Component Gallery of insuring
Insure component and the component of insuring execution sequence;Be stored with least one default group of insuring in the Component Gallery of insuring
Part, the component of insuring be used for realize the service logic insured in business;
According to insure component and its execution sequence, the flow of insuring for business of insuring described in handling is generated;Wherein,
The flow of insuring is according to component of being insured described in execution sequence execution.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, in the component of insuring
Including required parameter information and/or processing result information, then insured according to described in component and its execution sequence are generated for handling
The business of insuring insure flow when, including:
Context class is preset in the flow of insuring;
Required parameter information and/or processing result information in the component of insuring is set up with the context class and associated
Relation, for transmitting the required parameter information and/or result in inter-module of respectively insuring when insuring flow described in execution
Information;
According to insure component and its execution sequence, the throwing according to component of being insured described in execution sequence execution is generated
Protect flow.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, in the component of insuring
Including dependency attribute, the dependency attribute includes strong dependence,
In the flow of insuring then generated according to insure component and its execution sequence, including:
When dependency attribute is that the component of insuring relied on by force performs failure or be abnormal, the flow termination of insuring, and return
Flow of insuring performs failure or performs abnormal result.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, the dependency attribute is also
Relied on including weak, then in the flow of insuring that insured according to described in component and its execution sequence are generated, in addition to:
When dependency attribute performs failure or be abnormal for the component of insuring of weak dependence, the flow of insuring is performed according to described
Order continues executing with next component of insuring.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, according to business letter
Cease and Component Gallery of insuring, it is determined that insure component and the group of insuring corresponding with the business of insuring in the Component Gallery of insuring
The execution sequence of part, including:
According to the business information and Component Gallery of insuring, it is determined that the industry for business of being insured described in being realized in the Component Gallery of insuring
Component of insuring needed for logic of being engaged in;
The dependence insured according to described between component, it is determined that the execution sequence of the component of insuring.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, the Component Gallery of insuring
Include following one or more components of insuring:
Preposition inspection component, user's securing component, product securing component, white list component, inquiry component, duration of insurance treatment group
Part, insurance kind processing assembly, price processing assembly, reward voucher processing assembly, extension process component, marketing component, income people component,
Warrantee's component, requestee's component, target component, invocation component of insuring.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, insured according to described in
Component and its execution sequence, are generated after the flow of insuring for handling the business of insuring, methods described also includes:
Acquisition is insured request, and the request of insuring includes asking the business information for the business of insuring insured;
According to the business information, it is determined that the flow of insuring for handling the business of insuring;
Using it is described insure to insure described in flow processing ask the business of insuring insured in request.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, in the component of insuring
Including required parameter information and/or processing result information, context class is preset with the flow of insuring,
Then using the business of insuring that request in request insures of being insured described in flow processing of insuring, including:
According to the request of insuring, initialize described in the contextual information insured in flow;
According to component of being insured described in the execution sequence execution in the flow of insuring, and the request of the component of insuring is joined
Number information and/or processing result information write the contextual information, so as in each inter-module transmission of insuring.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, according to the business
Information and insure Component Gallery, it is determined that corresponding with the business of insuring insure and described is insured at component in the Component Gallery of insuring
Before the execution sequence of component, methods described also includes:
Insured Component Gallery described in building;Wherein, be stored with least one default component of insuring in the Component Gallery of insuring,
The component of insuring be used for realize the service logic insured in business.
Preferably, in the flow production method of insuring for the first aspect that the embodiment of the present application is provided, group of being insured described in structure
Part storehouse, including:
According to the service logic for business of being insured described in presetting granularity fractionation, multiple subservice logics are determined;
Generate the component of insuring for realizing the subservice logic;
The storage component of insuring, Component Gallery of insuring described in composition.
Second aspect, the embodiment of the present application provides one kind and insured request processing method, including:
Acquisition is insured request, and the request of insuring includes asking the business information for the business of insuring insured;
According to the business information, it is determined that the flow of insuring for handling the business of insuring;Wherein, the flow of insuring
Include the component of insuring performed according to execution sequence, the business letter of component and its execution sequence according to business of insuring of insuring
Cease and Component Gallery determination of insuring, be stored with least one default component of insuring, the component of insuring in the Component Gallery of insuring
For realizing the service logic in business of insuring;
Using it is described insure to insure described in flow processing ask the business of insuring insured in request.
Preferably, in the request processing method of insuring for the second aspect that the embodiment of the present application is provided, in the component of insuring
Including required parameter information and/or processing result information, context class is preset with the flow of insuring,
Then using the business of insuring that request in request insures of being insured described in flow processing of insuring, including:
According to the request of insuring, initialize described in the contextual information insured in flow;
According to component of being insured described in the execution sequence execution in the flow of insuring, and the request of the component of insuring is joined
Number information and/or processing result information write the contextual information, so as in each inter-module transmission of insuring.
Preferably, in the request processing method of insuring for the second aspect that the embodiment of the present application is provided, in the request of insuring
Also include the insurance data insured of request, then according to the request of insuring, initialize described in the contextual information insured in flow,
Including:
The insurance data in the request of insuring is write into the contextual information, in the flow of insuring
Component of respectively insuring between transmit.
Preferably, in the request processing method of insuring for the second aspect that the embodiment of the present application is provided, in the component of insuring
Including dependency attribute, the dependency attribute includes strong dependence, then using the request in request of being insured described in flow processing of insuring
The business of insuring insured, including:
When dependency attribute is that the component of insuring relied on by force performs failure or be abnormal in the flow of insuring, the stream of insuring
Journey stops, and returns to insure flow execution failure or the abnormal result of execution.
Preferably, in the request processing method of insuring for the second aspect that the embodiment of the present application is provided, the dependency attribute is also
Relied on including weak, then using the business of insuring that request in request insures of being insured described in flow processing of insuring, in addition to:
When dependency attribute performs failure or is abnormal for the component of insuring of weak dependence in the flow of insuring, the stream of insuring
Journey continues executing with next component of insuring according to the execution sequence.
The third aspect, the embodiment of the present application provides one kind and insured flow generating means, including:
Business information obtaining module, obtains the business information for business of insuring;
Insure component determining module, according to the business information and Component Gallery of insuring, it is determined that in the Component Gallery of insuring with
The execution sequence of the business of insuring corresponding insure component and the component of insuring;It is stored with the Component Gallery of insuring pre-
If at least one component of insuring, the component of insuring be used for realize the service logic insured in business;
Flow of insuring generation module, insured according to described in component and its execution sequence are generated for handling the industry of insuring
The flow of insuring of business;Wherein, the flow of insuring is according to component of being insured described in execution sequence execution.
Fourth aspect, the embodiment of the present application provides a kind of electronic equipment, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device and perform following operate:
Obtain the business information for business of insuring;
According to the business information and Component Gallery of insuring, it is determined that corresponding with the business of insuring in the Component Gallery of insuring
Insure component and the component of insuring execution sequence;Be stored with least one default group of insuring in the Component Gallery of insuring
Part, the component of insuring be used for realize the service logic insured in business;
According to insure component and its execution sequence, the flow of insuring for business of insuring described in handling is generated;Wherein,
The flow of insuring is according to component of being insured described in execution sequence execution.
5th aspect, the embodiment of the present application provides one kind and insured request processing unit, including:
Acquisition request of insuring module, obtains request of insuring, and the request of insuring includes the business of insuring that request is insured
Business information;
Flow of insuring determining module, according to the business information, it is determined that the flow of insuring for handling the business of insuring;
Wherein, the flow of insuring includes the component of insuring performed according to execution sequence, it is described insure component and its execution sequence according to
Determined according to the business information and Component Gallery of insuring for the business of insuring, be stored with the Component Gallery of insuring it is default at least one insure
Component, the component of insuring be used for realize the service logic insured in business;
Insure request processing module, using the industry of insuring for insuring and being insured described in flow processing and asking in request to insure
Business.
6th aspect, the embodiment of the present application provides a kind of electronic equipment, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device and perform following operate:
Acquisition is insured request, and the request of insuring includes asking the business information for the business of insuring insured;
According to the business information, it is determined that the flow of insuring for handling the business of insuring;Wherein, the flow of insuring
Include the component of insuring performed according to execution sequence, the business letter of component and its execution sequence according to business of insuring of insuring
Cease and Component Gallery determination of insuring, be stored with least one default component of insuring, the component of insuring in the Component Gallery of insuring
For realizing the service logic in business of insuring;
Using it is described insure to insure described in flow processing ask the business of insuring insured in request.
7th aspect, the embodiment of the present application provides one kind and insured request processing method, including:
Acquisition is insured request, and the request of insuring includes asking the business information for the business of insuring insured;
According to the business information and Component Gallery of insuring, it is determined that corresponding with the business of insuring in the Component Gallery of insuring
Insure component and the component of insuring execution sequence;Be stored with least one default group of insuring in the Component Gallery of insuring
Part, the component of insuring be used for realize the service logic insured in business;
According to insure component and its execution sequence, the flow of insuring for business of insuring described in handling is generated;Wherein,
The flow of insuring is according to component of being insured described in execution sequence execution;
Using it is described insure to insure described in flow processing ask the business of insuring insured in request.
At least one above-mentioned technical scheme that the embodiment of the present application is used can reach following beneficial effect:
The embodiment that the application is provided is when flow is insured in generation, according to the business information for the business of insuring, from being pre-designed
Component Gallery of insuring in determine insure component and the execution sequence of these insure components corresponding with the business of insuring, and then
The flow of insuring that component of insuring is performed according to this execution sequence can be generated on this basis.Using the skill of the embodiment of the present application
Art scheme, when need to increase it is new insure business when, due to insuring, component can realize the service logic in the business of insuring, because
This, can choose appropriate component of insuring according to the service logic required for new business of insuring in Component Gallery of insuring, and can
With the execution sequence between component of being insured according to the determination of the service logic relation of new business of insuring, you can the new industry of insuring of generation
The corresponding flow of insuring of business.Using the technical scheme of the embodiment of the present application, when needs enter on the basis of original business of insuring
Row updates or when adding different branches, only need to be according to new business of insuring the need for, original can be both changed in Component Gallery of insuring
The component of insuring having, can also add new component of insuring, and new component of insuring can have both been chosen from Component Gallery of insuring, also may be used
To adjust the execution sequence for inter-module of insuring, so as to constitute the new flow of insuring being adapted with new business of insuring.Therefore, originally
The flow of insuring that application embodiment is provided has more preferable scalability and maintainability, so as to quickly support and meet
New business demand.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
Shown in Figure 1, the embodiment of the present application is insured flow generation method there is provided one kind, including:
S101:Obtain the business information for business of insuring;
S102:According to business information and Component Gallery of insuring, it is determined that corresponding with the business of insuring in Component Gallery of insuring insure
The execution sequence of component and component of insuring;Insure at least one the default component of insuring that is stored with Component Gallery, component of insuring is used
Service logic in business is insured in realization;
S103:According to insure component and its execution sequence, the flow of insuring for handling business of insuring is generated;Wherein, throw
Protect flow and perform component of insuring according to execution sequence.
Using the method generation of Fig. 1 examples insure flow when, can be according to the business information of the business of insuring, from being pre-designed
Component Gallery of insuring in determine insure component and the execution sequence of these insure components corresponding with the business of insuring, and then
The flow of insuring that component of insuring is performed according to this execution sequence can be generated on this basis.
Insured flow using above-described embodiment generation, when need to increase it is new insure business when, due to insuring, component can
The service logic in business of insuring is realized, be therefore, it can according to the service logic required for new business of insuring in component of insuring
Appropriate component of insuring is chosen in storehouse, it is possible to which the service logic relation determination according to new business of insuring is insured between component
Execution sequence, you can the new flow of insuring insured corresponding to business of generation.In addition, when needs are in original business of insuring
On the basis of when being updated or adding different branches, only need to be according to new business of insuring the need for, both can be in Component Gallery of insuring
The middle original component of insuring of modification, can also add new component of insuring, and new insure can have both been chosen from Component Gallery of insuring
Component, can also adjust the execution sequence for inter-module of insuring, so as to constitute the new stream of insuring being adapted with new business of insuring
Journey.Therefore, the flow of insuring that above-described embodiment is provided has more preferable scalability and maintainability, so as to quickly branch
Hold and meet new business demand.
Because the implementation of the embodiment of the present application is dependent on default component of insuring in Component Gallery of insuring, therefore, step is being performed
During rapid S102, the Component Gallery of insuring having had been built up both can have been called or loaded, can also have been performed before step S102 is performed
Step S100 builds Component Gallery of insuring, shown in Figure 2.Obviously, step S100 is performed before step S101 is performed to be thrown
It is also feasible to protect the structure of Component Gallery.
Perform in the Component Gallery of insuring that step S100 is built, be stored with least one default component of insuring, and these are insured
Component is used to realize the service logic in business of insuring, and is typically the partial service logic in the business of insuring.More specifically,
Step S100 builds Component Gallery of insuring, and can include procedure below:
The service logic for business of insuring is split according to presetting granularity, multiple subservice logics are determined;
Generate the component of insuring for realizing subservice logic;
Component of insuring is stored, Component Gallery of insuring is constituted.
In other words, when structure insures Component Gallery, the fractionation granularity to service logic can first be preset.It is alleged in the application
Fractionation granularity, it can be understood as the fractionation degree reached desired by being split to the service logic of the business of insuring.
It for example, the type of user is divided into personal user and enterprise customer, then can be split, will be thrown according to user type
The service logic of guarantor's business is split as being directed to the second subservice of enterprise customer for the first subservice logical sum of personal user
Logic, and then generate respectively for realizing that the individual of the first subservice logic insures component and for realizing the second subservice logic
Enterprise insure component.It is understood that the fractionation of this degree of citing above, it is larger to split granularity, and individual insures group
The insure process that implements of the second subservice logic in component of the first subservice logical AND enterprise in part there may be phase
Same link.For example, be required for first obtaining user's selection/input of insuring information (potentially include the information of user itself, it is selected
The information of insurance products, information of selected insurance institution etc.), then be that user's displaying insurance kind, price, inquiry etc. are selected for user,
Then prompting user fills in information of insurer and insurant etc..Now, first the second subservice of subservice logical AND is patrolled
The difference collected may be only in that the processing of information format, pricing system, price for personal user and for enterprise customer
Difference in terms of the marketing strategy such as mode, preferential.
In another example, the service logic of the general business of insuring carried out in online insurance platform frequently includes following link:Read
Insurance kind clause and relevant explanation are read, selects and carries out premium tentative calculation, fill in insurer and insurant's information, on-line payment, net
On insure successfully feedback etc. step.Accordingly it is also possible to carry out the fractionation of service logic according to the execution sequence of each link, it is possible to
Realize that the logic unit of a certain specific subfunction is defined as a sub- service logic.It is understood that this journey illustrated above
The fractionation of degree, fractionation granularity is smaller, and each subservice logic insured achieved by component is the overall service logic of business of insuring
In a part.
When implementing the embodiment of the present application, the implementation process for business of entirely insuring preferably is subjected to modularization fractionation and taken out
As the component of insuring determined is divided into general purpose module and personal module.General purpose module only handles the phase in all kinds of business of insuring
The general service logic to stablizing, for example, warrantee's component etc.;Personal module is used for handling certain class and insured the patrolling of service-specific
Volume, for example, business insurance inquiry component etc..
By taking the class figure shown in Fig. 3 as an example, be stored with multiple components of insuring in Component Gallery of insuring, including preposition inspection group
Part, user's securing component, product securing component, white list component, inquiry component, duration of insurance processing assembly, insurance kind processing assembly, valency
Lattice processing assembly, reward voucher processing assembly, extension process component, marketing component, income people component, warrantee's component, requestee
Component, target component and invocation component of insuring etc..Wherein, similar preposition inspection component, user's securing component etc. are insured all kinds of
The component of insuring used is required in business, it can be understood as general purpose module;Similar reward voucher processing assembly etc. is only being related to
The component of insuring that can be just used in the business of insuring of reward voucher, it can be understood as personal module.
More specifically, the embodiment of the present application defines general component interface (" Component " as shown in Figure 3
Interface) and flow of insuring processor interface (as shown in Figure 3 " Handler " interface).Component of insuring only performs group of insuring
The function that the subservice logic of part is realized, (flow that will can insure herein is abstract first-class to perform this for the processor for flow of insuring
The processor of journey) only perform the component of insuring that the flow of insuring included realized function is run according to execution sequence.
Insured in the embodiment of the present application except definition is abstract in addition to component, also define the interface for component of insuring, and expand
The method of parameter testing and service observation, so as to carry out logical check in each component internal of insuring, and according to throwing
Protect the different and different of component internal service logic.
When implementing the embodiment shown in Fig. 1, from the component of insuring preset, (these components of insuring, which are stored in, insures
In Component Gallery) middle selection the insure component corresponding with the business information for the business of insuring, to realize that the business for the business of insuring is patrolled
Volume.It is understood that the component of insuring stored in Component Gallery of insuring can realize some or all of business in the business of insuring
Logic, therefore, performing step S102 will determine that at least one insures component to realize the service logic for the business of insuring.
Insure Component Gallery and the independent component of insuring that is stored in Component Gallery of insuring taken out based on more than, performs step
Rapid S102 is according to business information and Component Gallery of insuring, it is determined that insure component and throwing corresponding with the business of insuring in Component Gallery of insuring
When protecting the execution sequence of component, it may particularly include:
According to business information and Component Gallery of insuring, it is determined that needed for realizing the service logic of business of insuring in Component Gallery of insuring
Insure component;
According to the dependence between component of insuring, it is determined that the execution sequence for component of insuring.
It should be noted that the business information for business of insuring, can be type identification information, the insurance products for the business of insuring
Number information etc., the service logic that this business information can reflect needed for the business of insuring, so as to according to business information
The component of insuring that realization is insured needed for the service logic of business is determined from Component Gallery of insuring.On this basis, thrown to realize
The linking and the coherent execution for flow of insuring protected between component, in addition it is also necessary to according to the need of the overall service logic of all kinds of business of insuring
Ask and layout is carried out to the component of insuring selected, that is, determine the execution sequence of these components of insuring.In the embodiment of the present application
In, can be according to the dependence between component of insuring, the component that will insure carries out chain type layout.Further, insure component
Between communication can be realized by context, so as to the new flow of insuring of quickly generation, support and meet new industry
Business demand.
When implementing, required parameter information and/or processing result information are potentially included in component of insuring, then is being performed
Step S103 according to insuring component and its execution sequence, generate for handle business of insuring insure flow when, it may include:
Preset context class in flow of insuring, the default context class of the application be used for constitute flow of insuring each
Insure transmission required parameter information and/or processing result information between component;
Required parameter information and/or processing result information in component of insuring and context class are set up into incidence relation, from
And when flow is insured in execution, can be by above and below the required parameter information of each component of insuring and/or processing result information write-in
Wen Zhong, to be transmitted in inter-module of respectively insuring;
According to insure component and its execution sequence, the flow of insuring that component of insuring is performed according to execution sequence is generated.
More specifically, can be it is determined that the execution sequence for insure component and the inter-module of respectively insuring insured included in flow
Afterwards, one the component list of generation (such as components in Fig. 3 examples class figure inside InsureHandler, as column of assemblies
Table list), the component of insuring that flow of insuring is included is included in the component list according to its execution sequence, then is performing this
During flow of insuring component of insuring is performed according to the order in the component list.In the class figure of Fig. 3 examples, by group of insuring
The selection of Jian Ku China National Investment & Guaranty Corp. component and its determination of execution sequence, having taken out three class processors is used to handle three classes difference respectively
The business of insuring of type, insurance card as shown in Figure 3 insure processor, give that processor is insured in danger and individual danger is insured processor.
In the embodiment of the present application in alleged component of insuring, dependency attribute can also be included, dependency attribute include it is strong according to
Rely, then in the flow of insuring generated according to insure component and its execution sequence, including:
When dependency attribute is that the component of insuring relied on by force performs failure or be abnormal, flow of insuring stops, and returns and insure
Flow performs failure or performs abnormal result.
Further, dependency attribute may also include weak dependence, then according to insure component and its execution sequence generation insure
In flow, in addition to:
When dependency attribute performs failure or be abnormal for the component of insuring of weak dependence, flow of insuring continues according to execution sequence
Perform next component of insuring.
The method provided using the embodiment of the present application, it is assumed that private insurance insure business flow processor of insuring in include
User's securing component, product securing component, mechanism securing component, white list component, inquiry component, duration of insurance processing assembly, insurance kind
The components of insuring such as processing assembly, price processing assembly, marketing component, insurer's component, warrantee's component, target component.With
The product type that family request is selected when insuring according to user, the personal guarantor that the flow processor processing user that insures can be used to propose
Insure business danger.And for business insurance insures business, its flow of insuring insures business substantially with private insurance, then
Part in the flow processor of insuring for business that only private insurance need to be insured is insured component, component of for example inquiring the price, price processing
Component etc., replaces with the component of insuring for business of being insured suitable for business insurance, you can generation is new to insure suitable for business insurance
The flow of insuring of business.
Therefore, when flow is insured in the method generation using the embodiment of the present application, group of insuring alleged in the application is utilized
Part and Component Gallery of insuring, can realize new son by renewal, adjustment, modification, additions and deletions to insure component and Component Gallery of insuring
Service logic, different can also insure component and/or the insure execution sequence of component of adjustment quickly forms new by choosing
Flow of insuring, funnel-shaped framework poor expandability in the prior art, the defect of maintainable difference are overcome, so as to quick
Support and meet new business demand.
After flow is insured in the flow generation method generation of insuring provided using the embodiment of the present application, it can directly invoke
The request of insuring that the flow of insuring (or processor of the flow of insuring taken out by flow of insuring) generated is proposed to user
Handled.
Shown in Figure 4, the embodiment of the present application additionally provides one kind and insured request processing method, and this method can be in generation
Independently carried out on the basis of flow of insuring, progress can also be continued after flow generation method of being insured shown in Fig. 1.Insure request
Processing procedure specifically may include:
S201:Acquisition is insured request, and request of insuring includes asking the business information for the business of insuring insured;
S202:According to business information, it is determined that the flow of insuring for handling business of insuring;Wherein, flow of insuring includes
The component of insuring performed according to execution sequence, the business information and group of insuring of component and its execution sequence according to business of insuring of insuring
Part storehouse determines that be stored with least one default component of insuring in Component Gallery of insuring, and component of insuring is insured for realization in business
Service logic;
S203:Insured using flow processing of insuring and ask the business of insuring insured in request.
In the above-described embodiments, the request of insuring that step S201 is obtained, is generally proposed by user, for flat to online insurance
Platform request is insured.Therefore, request of insuring includes the business information for the business of insuring that request is insured.Here business information, can
Be the numbering of insurance products or business of insuring type in terms of information.
In the present embodiment, before request is insured in processing, online insurance platform has been generated and the industry that saves and insure
The corresponding flow of insuring of business, therefore, it can perform step S202, corresponding flow of insuring is determined according to business information,
And then insured using flow processing of insuring and ask the business of insuring insured in request.
Under some application scenarios, it can also ask what is insured according to user after the request of insuring of user is got
Business of insuring carries out the insure selection and layout of component, and then generates the insure flow corresponding with the request of user.Specifically
It may include following steps:
Acquisition is insured request, and the request of insuring includes asking the business information for the business of insuring insured;
According to the business information and Component Gallery of insuring, it is determined that corresponding with the business of insuring in the Component Gallery of insuring
Insure component and the component of insuring execution sequence;Be stored with least one default group of insuring in the Component Gallery of insuring
Part, the component of insuring be used for realize the service logic insured in business;
According to insure component and its execution sequence, the flow of insuring for business of insuring described in handling is generated;Wherein,
The flow of insuring is according to component of being insured described in execution sequence execution;
Using it is described insure to insure described in flow processing ask the business of insuring insured in request.
In this way, the insurance products that online insurance platform is provided will be more flexible and changeable, preferably meet and throw
The individual demand at warranty family.
In the request processing method of insuring shown in Fig. 4, required parameter information and/or processing knot are may include in component of insuring
Fruit information, accordingly, will be preset with context class in flow of insuring, then will perform step S203 and insured using flow processing of insuring
In request request insure insure business when, may particularly include:
According to request of insuring, the contextual information in flow of insuring is initialized;
Perform and insure component according to the execution sequence in flow of insuring, and by the required parameter information for component of insuring and/or
Processing result information writes contextual information, so as in inter-module transmission of respectively insuring.
In the implementation procedure for insuring component, the execution of members has returning result (i.e. processing result information), then
After the component is finished, its processing result information can be placed directly onto in contextual information, to be passed to other components of insuring
Pass.
When implementing, the insurance data that request is insured is may also include in request of insuring, then according to request of insuring, initially
Change the contextual information in flow of insuring, including:
Insurance data in request of insuring is write into contextual information, between the component of respectively insuring in flow of insuring
Transmission.
Initialization conducted in above-described embodiment, the mainly data conversion of asking user are into flow processor of insuring
The contextual information that can be recognized, to insure, component is used upon execution.In addition, contextual information is write during initialization
Data are also possible that the part other information of server end, for example, the information such as ID logged in.
Further, insuring may include dependency attribute in component, and dependency attribute includes strong dependence, then performs step S203
Using flow processing of insuring insure request in request insure insure business when, may particularly include:
When dependency attribute is that the component of insuring relied on by force performs failure or be abnormal in flow of insuring, flow of insuring stops,
And return to the result that flow of insuring performs failure or execution exception.
In addition, dependency attribute may also include weak dependence, then insured using flow processing of insuring and ask to insure in asking
Business of insuring, in addition to:
When dependency attribute performs failure or be abnormal for the component of insuring of weak dependence in flow of insuring, flow of insuring is according to holding
Row order continues executing with next component of insuring.
In this application, dependency attribute is the component of insuring relied on by force, it can be understood as the son insured handled by component
It is essential in business that service logic is insured, and dependency attribute can be understood as the group of insuring for the component of insuring of weak dependence
Subservice logic handled by part is dispensable in the processing for the business of insuring.For example, in the business of insuring, insurer,
Warrantee's information etc. is the necessary information in the business of insuring, therefore, is related to acquisition insurer, the group of insuring by insurer's information
The dependency attribute of part just may be set to strong dependence, it is necessary to which follow-up component of insuring can just be continued executing with by running succeeded.If relying on category
Property perform failure or abnormal for the component of insuring that relies on by force, then flow processor of entirely insuring stops, and returns to flow of insuring and hold
Row failure performs abnormal result.And if bury a component it is this kind of to the business of insuring be normally carried out will not constitute essence
Its dependency attribute, can be set as weak dependence by the component of insuring of influence, then when this kind of component of insuring performs failure or be abnormal, throws
Protect flow and continue executing with next component of insuring according to execution sequence, the execution of overall flow of insuring is not influenceed.
Based on above description, the embodiment of the present application may also provide one kind and insure flow generating means, shown in Figure 5, bag
Include:
Business information obtaining module 101, obtains the business information for business of insuring;
Insure component determining module 102, according to business information and Component Gallery of insuring, it is determined that in Component Gallery of insuring with industry of insuring
The execution sequence of business corresponding insure component and component of insuring;Insure at least one the default group of insuring that is stored with Component Gallery
Part, component of insuring is used to realize the service logic in business of insuring;
Flow of insuring generation module 103, according to insure component and its execution sequence, generates the throwing for handling business of insuring
Protect flow;Wherein, flow of insuring performs component of insuring according to execution sequence.
Based on above description, the embodiment of the present application may also provide a kind of electronic equipment, shown in Figure 6, including:
Processor;And
It is arranged to store the memory of computer executable instructions, executable instruction makes computing device when executed
Operate below:
Obtain the business information for business of insuring;
According to business information and insure Component Gallery, it is determined that in Component Gallery of insuring it is corresponding with the business of insuring insure component and
Insure the execution sequence of component;Insure at least one the default component of insuring that is stored with Component Gallery, component of insuring is used to realize
Service logic in business of insuring;
According to insure component and its execution sequence, the flow of insuring for handling business of insuring is generated;Wherein, insure flow
Component of insuring is performed according to execution sequence.
Fig. 6 is the structural representation of one embodiment electronic equipment of the application.Fig. 6 is refer to, in hardware view, the electricity
Sub- equipment includes processor, alternatively also includes internal bus, network interface, memory.Wherein, memory may be comprising interior
Deposit, for example high-speed random access memory (Random-Access Memory, RAM), it is also possible to also including non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, the electronic equipment is also possible that other
Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, and the internal bus can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..For ease of representing, only represented in Fig. 6 with a four-headed arrow, it is not intended that only one bus or a type of
Bus.
Memory, for depositing program.Specifically, program can include program code, and described program code includes calculating
Machine operational order.Memory can include internal memory and nonvolatile memory, and provide instruction and data to processor.
Processor reads corresponding computer program into internal memory and then run from nonvolatile memory, in logical layer
Flow generating means of insuring are formed on face.Processor, performs the program that memory is deposited, and specifically for performing following grasp
Make:
Obtain the business information for business of insuring;
According to business information and insure Component Gallery, it is determined that in Component Gallery of insuring it is corresponding with the business of insuring insure component and
Insure the execution sequence of component;Insure at least one the default component of insuring that is stored with Component Gallery, component of insuring is used to realize
Service logic in business of insuring;
According to insure component and its execution sequence, the flow of insuring for handling business of insuring is generated;Wherein, insure flow
Component of insuring is performed according to execution sequence.
The method of flow generating means execution of insuring disclosed in the above-mentioned embodiment illustrated in fig. 1 such as the application can apply to place
Manage in device, or realized by processor.Processor is probably a kind of IC chip, the disposal ability with signal.In reality
During existing, each step of the above method can be by the integrated logic circuit or the finger of software form of the hardware in processor
Order is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processor, DSP), it is application specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
Field programmable gate array (Field-Programmable Gate Array, FPGA) or other PLDs, point
Vertical door or transistor logic, discrete hardware components.It can realize or perform and be in the embodiment of the present application disclosed each
Method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventional place
Manage device etc..The step of method with reference to disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and perform
Into, or with the hardware in decoding processor and software module combination perform completion.Software module can be located at random access memory,
This area such as flash memory, read-only storage, programmable read only memory or electrically erasable programmable memory, register maturation
In storage medium.The storage medium is located at memory, and processor reads the information in memory, and above-mentioned side is completed with reference to its hardware
The step of method.
The electronic equipment can also carry out the method that Fig. 1 China National Investment & Guaranty Corp. flow generating means are performed, and realize flow generation of insuring
Device is in the function of embodiment illustrated in fig. 1, and the embodiment of the present application will not be repeated here.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is held when the electronic equipment for being included multiple application programs
During row, the electronic equipment can be made to perform the method that five application page sectional drawing reporting device is performed in embodiment illustrated in fig. 1, and specifically
For performing:
Obtain the business information for business of insuring;
According to the business information and Component Gallery of insuring, it is determined that corresponding with the business of insuring in the Component Gallery of insuring
Insure component and the component of insuring execution sequence;Be stored with least one default group of insuring in the Component Gallery of insuring
Part, the component of insuring be used for realize the service logic insured in business;
According to insure component and its execution sequence, the flow of insuring for business of insuring described in handling is generated;Wherein,
The flow of insuring is according to component of being insured described in execution sequence execution.
Based on above description, the embodiment of the present application may also provide one kind and insure request processing unit, shown in Figure 7, bag
Include:
Acquisition request of insuring module 201, obtains request of insuring, and request of insuring includes the industry for the business of insuring that request is insured
Business information;
Flow of insuring determining module 202, according to business information, it is determined that the flow of insuring for handling business of insuring;Wherein,
Flow of insuring includes the component of insuring performed according to execution sequence, the industry of component and its execution sequence according to business of insuring of insuring
Be stored with least one default component of insuring in business information and Component Gallery determination of insuring, Component Gallery of insuring, and component of insuring is used for
Realize the service logic in business of insuring;
Request processing module of insuring 203, the business of insuring for asking to insure in asking of being insured using flow processing of insuring.
Based on above description, the embodiment of the present application may also provide a kind of electronic equipment, shown in Figure 8, including:
Processor;And
It is arranged to store the memory of computer executable instructions, executable instruction makes computing device when executed
Operate below:
Acquisition is insured request, and request of insuring includes asking the business information for the business of insuring insured;
According to business information, it is determined that the flow of insuring for handling business of insuring;Wherein, flow of insuring is included according to holding
The component of insuring that row order is performed, insure component and its execution sequence are true according to the business information and Component Gallery of insuring for business of insuring
Fixed, be stored with least one default component of insuring in Component Gallery of insuring, and component of insuring is used to realize the business in business of insuring
Logic;
Insured using flow processing of insuring and ask the business of insuring insured in request.
Fig. 8 is the structural representation of one embodiment electronic equipment of the application.Fig. 8 is refer to, in hardware view, the electricity
Sub- equipment includes processor, alternatively also includes internal bus, network interface, memory.Wherein, memory may be comprising interior
Deposit, for example high-speed random access memory (Random-Access Memory, RAM), it is also possible to also including non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, the electronic equipment is also possible that other
Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, and the internal bus can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..For ease of representing, only represented in Fig. 8 with a four-headed arrow, it is not intended that only one bus or a type of
Bus.
Memory, for depositing program.Specifically, program can include program code, and described program code includes calculating
Machine operational order.Memory can include internal memory and nonvolatile memory, and provide instruction and data to processor.
Processor reads corresponding computer program into internal memory and then run from nonvolatile memory, in logical layer
Request processing unit of insuring is formed on face.Processor, performs the program that memory is deposited, and specifically for performing following grasp
Make:
Acquisition is insured request, and request of insuring includes asking the business information for the business of insuring insured;
According to business information, it is determined that the flow of insuring for handling business of insuring;Wherein, flow of insuring is included according to holding
The component of insuring that row order is performed, insure component and its execution sequence are true according to the business information and Component Gallery of insuring for business of insuring
Fixed, be stored with least one default component of insuring in Component Gallery of insuring, and component of insuring is used to realize the business in business of insuring
Logic;
Insured using flow processing of insuring and ask the business of insuring insured in request.
The method that request processing unit of insuring disclosed in the above-mentioned embodiment illustrated in fig. 4 such as the application is performed can apply to place
Manage in device, or realized by processor.Processor is probably a kind of IC chip, the disposal ability with signal.In reality
During existing, each step of the above method can be by the integrated logic circuit or the finger of software form of the hardware in processor
Order is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processor, DSP), it is application specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
Field programmable gate array (Field-Programmable Gate Array, FPGA) or other PLDs, point
Vertical door or transistor logic, discrete hardware components.It can realize or perform and be in the embodiment of the present application disclosed each
Method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventional place
Manage device etc..The step of method with reference to disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and perform
Into, or with the hardware in decoding processor and software module combination perform completion.Software module can be located at random access memory,
This area such as flash memory, read-only storage, programmable read only memory or electrically erasable programmable memory, register maturation
In storage medium.The storage medium is located at memory, and processor reads the information in memory, and above-mentioned side is completed with reference to its hardware
The step of method.
The electronic equipment can also carry out the method that Fig. 4 China National Investment & Guaranty Corp. request processing unit is performed, and realize request processing of insuring
Device is in the function of embodiment illustrated in fig. 4, and the embodiment of the present application will not be repeated here.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is held when the electronic equipment for being included multiple application programs
During row, the electronic equipment can be made to perform the method that five application page sectional drawing reporting device is performed in embodiment illustrated in fig. 1, and specifically
For performing:
Acquisition is insured request, and the request of insuring includes asking the business information for the business of insuring insured;
According to the business information, it is determined that the flow of insuring for handling the business of insuring;Wherein, the flow of insuring
Include the component of insuring performed according to execution sequence, the business letter of component and its execution sequence according to business of insuring of insuring
Cease and Component Gallery determination of insuring, be stored with least one default component of insuring, the component of insuring in the Component Gallery of insuring
For realizing the service logic in business of insuring;
Using it is described insure to insure described in flow processing ask the business of insuring insured in request.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements are not only including those key elements, but also wrap
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., it should be included within the scope of claims hereof.