IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Enterprise Service Bus programming > Invocation of Services > Dynamic invocation > Dynamic endpoint selection
Service Level Agreement Endpoint Lookup mediation primitive
Use the Service Level Agreement (SLA) Endpoint Lookup mediation primitive to look up endpoints referenced from an active service level agreement (SLA) between a service consumer and a service provider.
If you use WebSphere ESB to integrate and model your business in WSRR, using its Governance Enablement Profile (GEP), you can select dynamic endpoints based on a number of factors modelled in that profile.
For example:
- Whether the consumer of the endpoint has a valid SLA for the endpoint.
- Whether the particular SLA is active.
- Whether the endpoint is online.
- Whether the endpoint has a certain required classification; for example, whether it is Production or Development.
- The Service Level Definition of the provider is in the subscribable state.
This factor applies to WSRR Version 8.0 only.
Example scenario
The fictional company Personal Holidays is making an internal service available to external clients using a mediation flow. They want to use the WSRR GEP to ensure that only consumers with a valid SLA can access the internal service.
The scenario is implemented in a similar way to the Example scenario, using an SLA Endpoint Lookup mediation primitive in place of the Endpoint Lookup mediation primitive. The SLA Endpoint Lookup primitive is configured to retrieve a consumer ID from the SMO and to relay that information to WSRR. WSRR returns endpoint information only for services that have an SLA and the SLA consumer matches the provided consumer ID, as shown in Figure 1.
Figure 1. SLA Endpoint Lookup