Method, apparatus and system for processing composite service and replacing service and invoking service
Abstract
The present invention relates to a method for handling and replacing a service. The method for handling a composite service may include obtaining a concrete service corresponding to a service invocation segment description in a composite service logic, wherein the service invocation segment is an abstract service invocation segment or a service template invocation segment; triggering a service replacement, requesting to replace the service invocation segment with a concrete service invocation segment of the obtained concrete service; or, triggering a service invocation, requesting to generate a service invocation based on the concrete service. Accordingly, a concrete service can be dynamically selected when the composite service logic is being executed.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for invoking a concrete service, comprising the following steps:
acquiring service template information associated with a concrete service invocation segment description when a service described by the concrete service invocation segment is not able to provide service, wherein the step of acquiring service template information associated with a concrete service invocation segment description comprises:
sending a service template query request according to a concrete service description, wherein the service template query request comprises a service name of the concrete service description; and
obtaining the service template information corresponding to the service name;
obtaining a concrete service according to the service template information; and generating a service invocation based on the concrete service.
2 . The method of claim 1 , characterized in that, the service template information comprises one or more of a template name, a service category, a service operation, an input variable, and an output variable.
3 . The method of claim 2 , characterized in that, obtaining the concrete service according to the service template information comprises:
querying a template center according to the service template information and obtaining a service list which matches the service template; triggering a screen on the service list and obtaining a concrete service meeting the screening requirement.
4 . The method of claim 3 , characterized in that, querying the template center according to the service template information comprises:
querying the template center by the template name and obtaining the service list associated with the service template.
5 . The method of claim 4 , characterized in that, querying the template center according to the service query information comprises:
filtering the obtained service list according to a service extension portion and generating a service list which satisfies a query condition.
6 . The method of claim 1 , characterized in that, there is a mapping relationship between the concrete service and the service template and the concrete service or the service template is found according to the mapping relationship.
7 . An apparatus for invoking a concrete service, comprising:
a template information acquisition unit, configured to acquire service template information associated with a concrete service invocation segment description when a service described by the concrete service invocation segment is not able to provide service, wherein the step of acquiring service template information associated with a concrete service invocation segment description comprises: sending a service template query request according to a concrete service description, wherein the service template query request comprises a service name of the concrete service description; and obtaining the service template information corresponding to the service name; a concrete service acquisition unit, configured to obtain a concrete service according to the service template information; and a service invocation generation unit, configured to generate a service invocation based on the concrete service.
8 . The apparatus of claim 7 , characterized in that, the template information acquisition unit and an adaption trigger unit are integrated in a service composition engine, wherein the adaption trigger unit is configured to trigger a service composition adaptation and request to replace the concrete service invocation in a concrete composite service logic with the template information.
9 . The apparatus of claim 8 , characterized in further comprising: a composite service logic adaption unit, configured to replace the concrete service invocation in the concrete composite service logic with the template information when receiving the request for the adaption of the composite service logic from the adaption trigger unit.
10 . The apparatus of claim 9 , characterized in that, the composite service logic adaption unit comprises:
an addition subunit, configured to add a base description portion of the service abstract description into the concrete service invocation segment in the concrete composite service logic, and adds a template name or a corresponding template description in the base description; and a deletion subunit, configured to delete a corresponding concrete service description when the addition subunit completes the addition.
11 . The apparatus of claim 9 , characterized in that, the template information acquisition unit comprises:
a query request sending subunit, configured to send a service template query request according to a concrete service description, wherein the service template query request comprises a service name of the concrete service description; a template information receiving subunit, configured to receive service template information corresponding to the service name, wherein the service template information comprises a template name and a template description; and a template information feedback subunit, configured to feed back the service template information to the service composition engine.
12 . A system for composite service, comprising: a service registration center and a composite service sub-system, wherein
the registration center comprises: a service center, configured to store service information; and a template center, configured to store template information, and a mapping relationship between a service and a service template; the composite service sub-system comprises:
an apparatus according to claim 7 .
13 . The system of claim 12 , characterized in that, the composite service sub-system further comprises:
a service discovery unit, configured to generate a service discovery request based on the abstract service description and query the registration center according to the service discovery request and acquire a qualified service list and feed back the service list; a service screen unit, configured to screen the service list after receiving a service screening request so as to obtain a service list meeting the screening requirement and select a concrete service from the service list meeting the screening requirement and feed back the concrete service; and a composite service logic adaption unit, configured to replace, when receiving a request for adaption of the composite service logic, the abstract service invocation segment or the service template invocation segment with the concrete service invocation segment of the acquired concrete service.Join the waitlist — get patent alerts
Track US2014258494A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.