CN103888495A - Execution method and system for combination service - Google Patents

Execution method and system for combination service Download PDF

Info

Publication number
CN103888495A
CN103888495A CN201210560460.0A CN201210560460A CN103888495A CN 103888495 A CN103888495 A CN 103888495A CN 201210560460 A CN201210560460 A CN 201210560460A CN 103888495 A CN103888495 A CN 103888495A
Authority
CN
China
Prior art keywords
service
execution
composite services
execution example
services
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
CN201210560460.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.)
China Mobile Group Liaoning Co Ltd
Original Assignee
China Mobile Group Liaoning 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 China Mobile Group Liaoning Co Ltd filed Critical China Mobile Group Liaoning Co Ltd
Priority to CN201210560460.0A priority Critical patent/CN103888495A/en
Publication of CN103888495A publication Critical patent/CN103888495A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an execution method and system for a combination service. The method comprises the following steps: analyzing a received combination service request into a service execution example; dispatching the service execution example; executing internal activities of the service execution example, and obtaining execution results; sending external activities of the service execution example to a service execution agent module and receiving and returning execution results; triggering and carrying out corresponding subsequent activities of the internal activities or external activities based on the execution results; executing the external activities, sent by an execution kernel module, of the service execution example and returning the execution results to the execution kernel module; monitoring the execution state of the service execution example; and when the execution state of the service execution example is abnormal, replacing the service execution example. The execution method and system for the combination service enable the execution of the combination service process to be adaptive to the occurrence of abnormity more flexibly.

Description

A kind of manner of execution of composite services and system
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of manner of execution, system and device of composite services.
Background technology
At present, Web service has been distributed widely in Internet, these services may derive from different ISPs, run on different hardware platform and operating system, dynamic issue, renewal, inefficacy and the deletion of serve individual, the dynamic change of the dynamic change of the qualitative attribute of serve individual and the network environment of service operation etc. all can have influence on the quality of composite services.Especially the dynamic change of service quality causes the difficult quality of composite services to obtain long-term and stable assurance, and initial composite services reliably quality may occur and reduce situation about even losing efficacy.Meanwhile, although the application system of many Web application as finance, ecommerce etc. operates in dynamic change, uncertain Internet environment, need to guarantee high credible.Can cause customer churn, economic loss etc. if high credibility can not be guaranteed, it is more and more important that this makes to have the high credible application guaranteeing.Therefore, need composite services can carry out self adaptation adjusting to adapt to the change of demand for services and the dynamic change of service quality, thereby guarantee the high reliability of composite services, meet constantly to greatest extent the requirement of client to composite services quality.
Guarantee that at present the adaptive execution link of composite services comprises service monitoring, service analysis, Service Matching and service adjustment etc., by in the process of execution composite services, monitor in real time composite services quality and adjust accordingly, guarantee the stability of composite services, make the composite services that provide for user can be more reliable.
Have a large amount of research in academia and industrial quarters for the execution of composite services at present, wherein most of composite Web services execution engines are all Business Process-oriented effective language (BPEL) designs.Because existing execution engine is mostly only supported static Services Composition, the binding, the sequencing of service execution etc. that form number, the service of the service of operation flow are all determined before flow performing, therefore existing BPEL carries out the engine dynamic evolution of supporting business process well, realizes adaptive Services Composition.
In addition, be subject to the impact of the factor such as the dynamic change of composite services execution environment and Web service autonomy, in composite services running, may face various abnormal conditions.For example, because the intrinsic software error of Web service causes the generation of abnormal results, and then affect composite services and carry out the true(-)running of example.
Summary of the invention
In order to solve technical problem of the prior art, the present invention proposes a kind of composite services manner of execution and executive system, the execution of the scheduling of flow process and service can be separated, and is the generation that the execution of composite services flow process adapts to abnormal conditions more flexibly.
One aspect of the present invention, provides a kind of composite services manner of execution, comprising: be service execution example by the composite services request analysis of reception; Dispatch described service execution example; Carry out the internal activity in described service execution example, obtain execution result, external activity in described service execution example is sent to service execution proxy module and receives and return to execution result, trigger the follow-up activities of corresponding internal activity or external activity and carry out according to described execution result; Carry out the external activity in the described service execution example that described execution kernel module sends, and execution result is returned to described execution kernel module; Monitor the executing state of described service execution example; When abnormal, described service execution example is replaced appears in the executing state of described service execution example.
Another aspect of the present invention, a kind of composite services executive system is provided, comprise flow process parsing module, workflow manager, execution kernel module, service execution proxy module, flow monitoring module and dynamic replacement module, wherein, described flow process parsing module, for being service execution example by the composite services request analysis of reception; Described workflow manager, for dispatching described service execution example, is sent to execution kernel module by described execution example; Described execution kernel module, for carrying out the internal activity of described service execution example, obtain execution result, external activity in described service execution example is sent to service execution proxy module and receives and return to execution result, trigger the follow-up activities of corresponding internal activity or external activity and carry out according to described execution result; Described service execution proxy module, for carrying out the external activity of the described service execution example that described execution kernel module sends, and returns to described execution kernel module by execution result.Described flow monitoring module, for monitoring the executing state of described service execution example; When the executing state of described service execution example occurs that when abnormal, described dynamic replacement module is replaced described service execution example.
Composite services manner of execution of the present invention and system, acted on behalf of the execution of the scheduling of flow process and service be separated by service execution, makes the adjustment of single service not affect the execution of composite services; By separating abnormality processing logic and service actuating logic, make the execution of composite services flow process can adapt to more flexibly the generation of abnormal conditions.In addition, composite services are carried out engine and are adopted service execution example exception catching method that these abnormal conditions are caught and processed, and according to abnormal feature, determine service substitution scope, adopt the alternative that dynamically generates composite services, make composite services carry out example and can continue operation, guarantee its adaptivity to dynamic and complicated execution environment.
Accompanying drawing explanation
Fig. 1 is the flow chart of composite services manner of execution embodiment of the present invention;
Fig. 2 is the schematic diagram of composite services representing with DAG figure in the inventive method embodiment;
Fig. 3 is the schematic diagram of composite services Substitution Rules one in the inventive method embodiment;
Fig. 4 is the schematic diagram of composite services Substitution Rules two in the inventive method embodiment;
Fig. 5 is the schematic diagram of composite services Substitution Rules three in the inventive method embodiment;
Fig. 6 is the schematic diagram of composite services Substitution Rules four in the inventive method embodiment;
Fig. 7 is the alternative combinations method schematic diagram that only comprises sequential organization combination process in the inventive method embodiment;
Fig. 8 is the flow chart of selecting to replace composite services scheme in the inventive method embodiment;
Fig. 9 is the structural representation of composite services executive system embodiment of the present invention;
Figure 10 is the structural representation of composite services executive system preferred embodiment of the present invention.
Embodiment
As shown in Figure 1, be the flow chart of a kind of composite services manner of execution of the present invention embodiment, comprising:
Step 101, be service execution example by the composite services request analysis of reception;
Step 102, dispatch described service execution example;
Step 103, carry out the internal activity in described service execution example, obtain execution result, external activity in described service execution example is sent to service execution proxy module and receives and return to execution result, trigger the follow-up activities of corresponding internal activity or external activity and carry out according to described execution result;
Step 104, carry out the external activity in the described service execution example that described execution kernel module sends, and execution result is returned to described execution kernel module;
Step 105, monitor the executing state of described service execution example;
Step 106, occur when abnormal, described service execution example being replaced when the executing state of described service execution example.
In the present embodiment, composite services request is divided into internal activity and external activity, act on behalf of the execution of the scheduling of flow process and service is separated by service execution, make the adjustment of single service not affect the execution of composite services, by separating abnormality processing logic and service actuating logic, make the execution of composite services flow process can adapt to more flexibly the generation of abnormal conditions simultaneously.
As one preferred embodiment, said method also comprises step:
By carrying out and provide the manual service monitor-interface of service-oriented flowage structure to monitor composite services for composite services.
In this embodiment, the composite services request of described reception comprises the wsdl document of the Web service of quoting in composite services flow process description document and composite services flow process.Dispatch described service execution example, the step that described execution example is sent to execution kernel module also comprises: activate product process example according to initial message, or finish described flow instance according to end or termination messages.The step of the executing state of the described service execution example of described monitoring further comprises: judge abnormal patterns according to the executing state of described service execution example; When the executing state of described service execution example occurs that when abnormal, the step that described service execution example is replaced further comprises: select corresponding preset rules generate the composite services of replacing and replace described service execution example according to described abnormal patterns.
A kind of specific embodiment of exception catching method of service execution example is provided below.
Due to dynamic and the complexity of the autonomy of serving in composite services, execution environment, service procedure can often occur abnormal in running.Therefore, engine is carried out in composite services will have dynamic self-adapting ability, adapts to the generation of various abnormal conditions in practical application.What service procedure ran into can be divided three classes extremely:
(1) system exception.This is sent by service execution environment of living in extremely.For example, because service needs, service A is rolled off the production line by its supplier.Now, if composite services flow process will be called A, there is not this service of combination of notifications service procedure in the home server of service A.
(2) dysfunction.This is extremely relevant with the incorrect Output rusults of service.For example, it is not abnormal by what client confirmed that the business A of telecom operators sends service order, and this result is not that expected result " is ordered successfully ".
(3) non-functional abnormal.This is because the qualitative restrain that the agreement of getting over is first run counter in service causes extremely.For example, service A is required in 5 seconds, to complete its function, but actual execution time is 8 seconds.
The a pair of above-mentioned abnormal class of form, reason and external manifestation are summed up.Due to abnormal different external manifestation, it is also different making these abnormal monitoring hand produce section.Abnormal monitoring means by the abnormal patterns of carrying out example according to composite services to extremely monitoring.
Figure BDA00002624548700051
Form one
For three kinds of abnormal patterns, provide respectively the method for exception catching below:
(1) catching of system exception
If lookup service calls the environmental abnormality information of returning, as " HTTP Status 404 " (file does not exist), there is system exception to carrying out engine report.
(2) parafunctional catching
Parafunctional catching needs artificial participation.In service procedure example implementation, when the user of composite services flow instance finds that returning results of certain service is incorrect, can submit abnormality alarming information to, prompting engine carries out abnormality processing; The manager of service procedure also can observe by flow performing daily record the implementation status of service, and while having incorrect returning results, prompting engine carries out abnormality processing.
(3) non-functional abnormal catching
Overtime abnormal for carrying out, an overtime threshold values is set, after call request is sent in service, start timer and carry out timing, still do not return results if exceed threshold values service, think that this service execution is overtime, occur abnormal; For other qualitative restrain information, can, by receiving while returning results, automatically find the ungratified unusual condition of qualitative restrain by returning results the mode comparing with user's qualitative restrain.
Service can need to be carried out dynamic replacement to abnormal service because service occurs abnormal in the process of implementation, is two core contents in the dynamic replacement strategy of serving as follows: the generating algorithm of service substitution method of determining range and alternative.
(1) service substitution method of determining range
When service generation is abnormal, need to determine the global quality of which service in composite services flow process being chosen to guarantee again composite services.The present invention represents composite services with a DAG figure, as shown in Figure 2, only has a start node and an end node in this figure.And beginning and end node are respectively two dummy nodes, by not bound any service.In this figure, service s1 and s2 are ordinal relations, and s3 and s8 belong to two different branches of parallel organization; S4 and s5 belong to the Liang Ge branch of choice structure.Service s2 and s11 are respectively forerunner and the follow-up service of parallel organization.If beginning and the degree of depth of end node in DAG figure are 1.The degree of depth of service node in each nested structure (parallel and branched structure) in DAG figure is that the degree of depth of its nested structure forerunner service adds 1.For example, the degree of depth of service s3 is 2; The degree of depth of service s4 is 3.
When occurring when abnormal, in order to guarantee the global quality of composite services, need to again to choose whole composite services in composite services implementation.But, because some service in composite services implementation is long period service, again choosing and carrying out and often need time of growing these services.Meanwhile, the service On The Choice guaranteeing towards global quality constraint is a np problem, and solving of this problem often needed to the long period.Like this, whole composite services being carried out to gravity treatment gets and will have higher cost.For this reason, need to determine the replacement scope of composite services.
As shown in Figures 3 to 6, be the schematic diagram of 4 composite services Substitution Rules in the embodiment of the present invention.
As shown in Figure 3, be the schematic diagram of rule one, if only comprise sequential organization in composite services, the scope of service substitution is made up of all follow-up of abnormal service and this service;
As shown in Figure 4, for the schematic diagram of rule two, if only comprise parallel organization in composite services and abnormal critical path of serving the QoS of residing branch in this parallel organization occurs, the scope that composite services are replaced is made up of the follow-up service of the follow-up and whole parallel organization of all these services in this service, this branch;
As shown in Figure 5, for the schematic diagram of rule three, if only comprise parallel organization in composite services and the non-critical path of abnormal service branch of living in this parallel organization occurs, the composite services scope of replacing is made up of the follow-up of all these services in this service, branch;
As shown in Figure 6, be the schematic diagram of rule four, if only comprise choice structure in composite services and occur extremely to serve in the branch of selecting to carry out, the scope that composite services are replaced is made up of all follow-up service of this service and this service.
Above-mentioned rule can nestedly be used.For example, abnormal if the service s5 in Fig. 2 occurs, and the branch of parallel organization { s8, s9, the critical path of s10} Shi Gai branch.By above-mentioned rule, the related business of service substitution comprises { s5, s6, s7}.
Formed composite services by all services within the scope of replacement, these composite services are parts of former composite services.Thereby, in order to guarantee the global quality of former composite services, in the time that the part composite services to new are replaced, also need to consider global quality.For this reason, the present invention gets the generation that realizes alternative by gravity treatment.
Have labyrinth owing to the being compared to composite services of (having two or more control structure), only have the optimization of the alternative of sequential organization composite services to choose and have higher efficiency.The efficiency generating in order to improve alternative, will be split as composite services multiple simple combination services of only having sequential organization.Thereby, choose by respectively multiple simple combination services being carried out to global optimization, with the efficiency that guarantees to choose.By the principle according to following, the composite services with labyrinth are carried out to abbreviation herein:
1), for the composite services of choice structure, only consider to carry out in historical record the branch that probability is larger;
2) for the composite services of parallel organization, will consider two kinds of situations: the branch that the response time is the longest, forerunner's service of itself and this parallel organization and composite services of follow-up service formation; The branch that response time is shorter, this branches into composite services.
As shown in Figure 7, for only comprising the alternative combinations method schematic diagram of sequential organization combination process.For the composite services that only comprise sequential organization, the replacement service that QoS drives is chosen and can be described with a network diagramming.In figure, beginning and end node are two dummy nodes, by not bound any service; Other node be alternative services node and for service sij, represent that it is the alternative services of active node Ai; Limit <sij in figure, si+1> represents that active node Ai is the direct precursor of Ai+1; Limit <sij in figure, the weights Q on si+1> represents to serve the QoS constraints of sij; All alternative services of active node Ai, have formed a level in figure.In this figure, any paths between from start node to end node be all one of combination process may assembled scheme, i.e. alternative combinations service.
Because the problems referred to above are that a multi-objective restriction meets problem, be a np problem to solving of this problem, the algorithm that solves this Optimum Solution may have exponential complexity.But in actual applications, the service of replacement is chosen should have the higher speed that solves, to reduce cost.Therefore, on the basis that guarantees solution efficiency, make as much as possible dynamic replacement scheme reach optimum.The present invention proposes one and solve the algorithm that service substitution scheme generates.In order to set forth the basic thought of this algorithm, provide following concept.
I layer segment assembled scheme: be part assembled scheme of combination process CP and for the movable Ai in CP and all forerunner's activities thereof if assign set P, in P, there is and only has an appointment, meanwhile, in P, there is no the appointment of Ai succeeding activity, claim that P is i layer segment assembled scheme.
The basic thought of service substitution scheme generating algorithm is: select most possibly to expand to the part assembled scheme of optimal case, and eliminate relatively poor part assembled scheme in current level.Specific algorithm as shown in Figure 8, for selecting to replace the flow chart of composite services scheme, comprising:
Step 801, according to the alternative combinations services set of default combination process,
Step 802, judge occur abnormal level whether be last one deck;
Step 803 if, export in all schemes of last one deck, determine optimum Services Composition scheme;
Step 804, if not, obtain all composite services schemes of place layer,
Step 805, more each composite services scheme also retain the part assembled scheme of preset number,
Step 806, current layer number is added to 1, continuing to judge whether is last one deck, until determine last Services Composition scheme.
Through above-mentioned Substitution Rules and replace Algorithm, occur when abnormal, can choose suitable replacement composite services according to the kind of abnormal patterns and replacing in composite services flow process, guarantee the smooth execution of composite services.
The composite services of initiating to describe take BPEL with client below, as example, are carried out the data flow in engine architecture in conjunction with Fig. 1 composite services, illustrate and support dynamic replacement composite services to carry out the concrete implementation of engine.
Step 1, the composite services flow definition of describing with BPEL forms flow process internal memory allocating object by flow process parsing module, forms service execution example;
Step 2, workflow manager is responsible for flow instance operation dispatching, according to the state variation of active instance, service execution example is given to execution kernel, so far indicates that flow instance starts to carry out;
Step 3, the flow scheduling device of carrying out in kernel carries out flow scheduling according to the definition of scheduling memory object, and pending activity is put into the movable queue of carrying out;
Step 4, the movable actuator of carrying out in kernel obtains activity from service execution queue, and calls this activity of carrying out;
Step 5, for external activity, sends to service execution agency, and the execution of serving is called, and execution result is returned to flow scheduling device.Service execution agent processes composite services flow performing engine calling Web service, composite services flow scheduling actuator is acted on behalf of and separated with service execution, decoupling zero flow performing and Web service are called, service call is carried out in the service call thread that is independent of flow processing thread, avoid flow instance thread block in outside service call activity, flow processing thread needn't wait for that service call thread returns results;
Step 6, flow scheduling device continues the scheduling of flow process according to the definition of movable execution result and flow process;
Step 7, in implementation, carries out kernel and carries out log tracks, the situation that catchs the exception, and generate service substitution scheme according to abnormal information, carry out dynamic Service replacement, service execution instance recovery is arrived to the state before extremely occurring, and notice is carried out kernel according to alternative continuation execution.
As shown in Figure 9, for the structural representation of a kind of composite services executive system of the present invention embodiment, comprise flow process parsing module 901, workflow manager 902, carry out kernel module 903, service execution proxy module 904, flow monitoring module 905 and dynamic replacement module 906, wherein, described flow process parsing module, for being service execution example by the composite services request analysis of reception; Described workflow manager, for dispatching described service execution example, is sent to execution kernel module by described execution example; Described execution kernel module, for carrying out the internal activity of described service execution example, obtain execution result, external activity in described service execution example is sent to service execution proxy module and receives and return to execution result, trigger the follow-up activities of corresponding internal activity or external activity and carry out according to described execution result; Described service execution proxy module, for carrying out the external activity of the described service execution example that described execution kernel module sends, and returns to described execution kernel module by execution result.Described flow monitoring module, for monitoring the executing state of described service execution example; When the executing state of described service execution example occurs that when abnormal, described dynamic replacement module is replaced described service execution example.
The composite services executive system that this embodiment provides, can act on behalf of the execution of the scheduling of flow process and service is separated to the execution that makes the adjustment of single service not affect composite services by service execution, make the execution of composite services flow process can adapt to more flexibly the generation of abnormal conditions by separating abnormality processing logic and service actuating logic.In addition, the present invention adopts service execution example exception catching method that abnormal conditions are caught and processed, and according to abnormal feature, determine service substitution scope, the dynamic alternative that generates composite services, make composite services carry out example and can continue operation, guarantee its adaptivity to dynamic and complicated execution environment.
As shown in figure 10, for the structural representation of composite services executive system preferred embodiment, comprise flow process parsing module 1001, workflow manager 1002, carry out kernel module 1003, service execution proxy module 1004, flow monitoring module 1005, dynamic replacement module 1006 and manual service container 1007, manual service container 1007, be used to composite services to carry out the manual service monitor-interface that service-oriented flowage structure is provided, other modules are identical with a upper system embodiment.
The effect of flow process parsing module is the memory object that becomes service execution kernel to identify the composite services request analysis from client.The input of flow process parsing module comprises two parts, a part is composite services flow process description document, this file is used for describing flow definition, another part is the wsdl document of the Web service of quoting in flow process, the abbreviation of Web Services Description Language, is one and is used for describing the XML language how Web service communicates by letter with Web service with explanation.For user provides detailed interface specification book, be used for describing the calling interface information of Web service.
Workflow manager is responsible for the life cycle management of flow definition and flow instance.For flow definition, workflow manager is in charge of activation and the inefficacy of flow definition; For flow instance, workflow manager is in charge of startup, time-out, recovery, termination of flow instance etc.Have multiple flow instances in the time moving when carrying out kernel, workflow manager need to get up management synchronous these flow instances, in the time receiving an initial message, should activate and generate a flow instance, in the time receiving end or termination messages, should process ends example, and reclaim resource.
Carrying out kernel module is the core of system, is mainly responsible for scheduling and concrete execution of active instance in flow process.Carrying out kernel is responsible for taking out the movable of preparation execution from ready activity queue and gives movable actuator and carry out.In kernel, activity is divided into two kinds of internal activity and external activities: after internal activity is carried out and finished, carry out kernel according to the structure of flow instance, trigger having completed movable follow-up activities and carry out; If external activity, carry out the movable actuator of kernel and activity can be given to service execution agency, external activity returns results after service execution Agency execution finishes, and execution kernel triggers the follow-up activities execution of this external activity equally according to flow instance structure.
Service execution proxy module is responsible for the execution of external activity.Service execution agency accepts the recalls information of kernel, carries out calling of Web service, and returning results that Web service is called passes to execution kernel.
Flow monitoring module is responsible for monitoring the executing state of flow instance, externally for user provides monitor-interface, makes keeper can obtain the execution state information of flow instance.Meanwhile, flow monitoring module provides the function of overtime detection, and in the time that the operation of certain active instance in flow process exceedes preset value, flow monitoring module is sent overtime warning information to keeper, reminds keeper to adjust flow instance.
Dynamic replacement module carry out to the structure of flow instance modify or flow instance in the Web service of calling the operation such as replace, after modification completes, move in new flow instance having completed movable state information in former flow instance, continue to carry out new flow instance.
Manual service container is the independent modular unit of setting up in order to realize the man-machine interaction under service-oriented flow process framework.In the task distribution basic function realizing based on role, manual service container can also help administrative staff to monitor in real time the performance of human task.
It should be noted that: above embodiment is only unrestricted in order to the present invention to be described, the present invention is also not limited in above-mentioned giving an example, and all do not depart from technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in claim scope of the present invention.

Claims (13)

1. a composite services manner of execution, comprising:
Be service execution example by the composite services request analysis of reception;
Dispatch described service execution example;
Carry out the internal activity in described service execution example, obtain execution result, external activity in described service execution example is sent to service execution proxy module and receives and return to execution result, trigger the follow-up activities of corresponding internal activity or external activity and carry out according to described execution result;
Carry out the external activity in the described service execution example that described execution kernel module sends, and execution result is returned to described execution kernel module;
Monitor the executing state of described service execution example;
When abnormal, described service execution example is replaced appears in the executing state of described service execution example.
2. method according to claim 1, is characterized in that, also comprises step:
By carrying out and provide the manual service monitor-interface of service-oriented flowage structure to monitor composite services for composite services.
3. method according to claim 1 and 2, is characterized in that,
The composite services request of described reception comprises the wsdl document of the Web service of quoting in composite services flow process description document and composite services flow process.
4. method according to claim 1 and 2, is characterized in that, dispatches described service execution example, and the step that described execution example is sent to execution kernel module also comprises:
Activate product process example according to initial message, or finish described flow instance according to end or termination messages.
5. method according to claim 1 and 2, is characterized in that,
The step of the executing state of the described service execution example of described monitoring further comprises: judge abnormal patterns according to the executing state of described service execution example;
When the executing state of described service execution example occurs that when abnormal, the step that described service execution example is replaced further comprises: select corresponding preset rules generate the composite services of replacing and replace described service execution example according to described abnormal patterns.
6. method according to claim 5, is characterized in that, described preset rules comprises:
If only comprise sequential organization in composite services, the scope of service substitution is made up of all follow-up of abnormal service and this service;
If only comprise parallel organization in composite services and abnormal critical path of serving the QoS of residing branch in this parallel organization occurs, the scope that composite services are replaced is made up of the follow-up service of the follow-up and whole parallel organization of all these services in this service, this branch;
If only comprise parallel organization in composite services and the non-critical path of abnormal service branch of living in this parallel organization occurs, the composite services scope of replacing is made up of the follow-up of all these services in this service, branch;
If only comprise choice structure in composite services and occur extremely to serve in the branch of selecting to carry out, the scope that composite services are replaced is made up of all follow-up service of this service and this service.
7. method according to claim 5, is characterized in that, describedly selects corresponding preset rules to generate the composite services of replacing and the step of replacing described service execution example further comprises according to described abnormal patterns:
According to the alternative combinations services set of default combination process, judge and occur whether abnormal level is last one deck;
If so, export in all schemes of last one deck, determine optimum Services Composition scheme;
If not, obtain all composite services schemes of place layer, more each composite services scheme also retains the part assembled scheme of preset number, and current layer number is added to 1, and continuing to judge whether is last one deck, until determine last Services Composition scheme.
8. a composite services executive system, is characterized in that, comprises flow process parsing module, workflow manager, execution kernel module, service execution proxy module, flow monitoring module and dynamic replacement module, wherein,
Described flow process parsing module, for being service execution example by the composite services request analysis of reception;
Described workflow manager, for dispatching described service execution example, is sent to execution kernel module by described execution example;
Described execution kernel module, for carrying out the internal activity of described service execution example, obtain execution result, external activity in described service execution example is sent to service execution proxy module and receives and return to execution result, trigger the follow-up activities of corresponding internal activity or external activity and carry out according to described execution result;
Described service execution proxy module, for carrying out the external activity of the described service execution example that described execution kernel module sends, and returns to described execution kernel module by execution result.
Described flow monitoring module, for monitoring the executing state of described service execution example;
When the executing state of described service execution example occurs that when abnormal, described dynamic replacement module is replaced described service execution example.
9. system according to claim 8, is characterized in that, also comprises manual service container, is used to composite services to carry out the manual service monitor-interface that service-oriented flowage structure is provided.
10. system according to claim 8 or claim 9, is characterized in that, the composite services request that described flow process parsing module receives comprises the wsdl document of the Web service of quoting in composite services flow process description document and composite services flow process.
11. systems according to claim 8 or claim 9, is characterized in that, described workflow manager is used for, and activate product process example according to initial message, or according to finishing or termination messages finishes described flow instance.
12. systems according to claim 8 or claim 9, is characterized in that,
Described flow monitoring module is further used for, and judges abnormal patterns according to the executing state of described service execution example, and notifies dynamic replacement module;
Described dynamic replacement module is further used for, and selects corresponding preset rules generate the composite services of replacing and replace described service execution example according to described abnormal patterns.
13. systems according to claim 12, is characterized in that, described preset rules comprises:
If only comprise sequential organization in composite services, the scope of service substitution is made up of all follow-up of abnormal service and this service;
If only comprise parallel organization in composite services and abnormal critical path of serving the QoS of residing branch in this parallel organization occurs, the scope that composite services are replaced is made up of the follow-up service of the follow-up and whole parallel organization of all these services in this service, this branch;
If only comprise parallel organization in composite services and the non-critical path of abnormal service branch of living in this parallel organization occurs, the composite services scope of replacing is made up of the follow-up of all these services in this service, branch;
If only comprise choice structure in composite services and occur extremely to serve in the branch of selecting to carry out, the scope that composite services are replaced is made up of all follow-up service of this service and this service.
CN201210560460.0A 2012-12-20 2012-12-20 Execution method and system for combination service Pending CN103888495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210560460.0A CN103888495A (en) 2012-12-20 2012-12-20 Execution method and system for combination service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210560460.0A CN103888495A (en) 2012-12-20 2012-12-20 Execution method and system for combination service

Publications (1)

Publication Number Publication Date
CN103888495A true CN103888495A (en) 2014-06-25

Family

ID=50957213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210560460.0A Pending CN103888495A (en) 2012-12-20 2012-12-20 Execution method and system for combination service

Country Status (1)

Country Link
CN (1) CN103888495A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933137A (en) * 2015-12-21 2016-09-07 ***股份有限公司 Resource management method, device and system
CN106708630A (en) * 2015-11-16 2017-05-24 北京国双科技有限公司 Method and device for processing service in service-oriented architecture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820365A (en) * 2010-01-04 2010-09-01 北京航空航天大学 Service bus supporting dynamic optimization of QoS of composite service
CN101860564A (en) * 2010-04-22 2010-10-13 北京航空航天大学 Protocol-based service combination system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820365A (en) * 2010-01-04 2010-09-01 北京航空航天大学 Service bus supporting dynamic optimization of QoS of composite service
CN101860564A (en) * 2010-04-22 2010-10-13 北京航空航天大学 Protocol-based service combination system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨雷: "《服务组合中基于执行性能评价模型的人工任务调度方法》", 《东南大学学报》 *
杨雷: "《面向自适应的组合服务动态调整方法》", 《东南大学学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708630A (en) * 2015-11-16 2017-05-24 北京国双科技有限公司 Method and device for processing service in service-oriented architecture
CN105933137A (en) * 2015-12-21 2016-09-07 ***股份有限公司 Resource management method, device and system

Similar Documents

Publication Publication Date Title
CN112162865B (en) Scheduling method and device of server and server
CN109347974B (en) Hybrid scheduling system for improving online service quality and cluster resource utilization rate
Jayadivya et al. Fault tolerant workflow scheduling based on replication and resubmission of tasks in Cloud Computing
CN109788315A (en) video transcoding method, device and system
US10628766B2 (en) Method and system for enabling dynamic capacity planning
CN110611707A (en) Task scheduling method and device
CN111190732A (en) Timed task processing system and method, storage medium and electronic device
Saxena et al. A high availability management model based on VM significance ranking and resource estimation for cloud applications
Kalim et al. Henge: Intent-driven multi-tenant stream processing
US11416379B1 (en) Creation of software tests matching production personas
US10122602B1 (en) Distributed system infrastructure testing
Demirbaga et al. Autodiagn: An automated real-time diagnosis framework for big data systems
GB2516357A (en) Methods and apparatus for monitoring conditions prevailing in a distributed system
CN117311937A (en) Distributed task scheduling method and device, electronic equipment and storage medium
CN113391911B (en) Dynamic scheduling method, device and equipment for big data resources
CN103888495A (en) Execution method and system for combination service
Solomon et al. A real-time adaptive control of autonomic computing environments
Tsenos et al. Amesos: a scalable and elastic framework for latency sensitive streaming pipelines
Tretola et al. Autonomic internet-scale workflows
Quattrocchi et al. Autoscaling Solutions for Cloud Applications under Dynamic Workloads
Candra et al. Modeling elasticity trade-offs in adaptive mixed systems
Shuo et al. Research on the application of service choreography in the intelligent customer service system
US20240070012A1 (en) Self-healing in container orchestration systems
WO2024020743A1 (en) Master-slave cluster task scheduling method for data production, and application thereof
Latchoumy et al. Reliable job execution with process failure recovery in computational grid

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140625