Service based adapters

Service based adapters are created by referencing a service definition that defines REST endpoints. Endpoints defined in the service become operations of the adapter, and the parameters of the service and its endpoints become the properties of the adapter.

A service-based adapter can be used in these scenarios:
  • Invoked in input or output cards in Link maps.
  • Invoked in source, target or request nodes in Link flows.
  • Used in embedded applications.
To create a service-based adapter, follow these steps:
  1. Create or import a REST service using the service editor.
  2. Use the connector wizard to create a new connector, and then select the type as An adapter defined by a service.
  3. Select the service that defines the endpoints you want to expose as an adapter.
  4. Optionally, edit the properties and operations in the connector wizard. By default, all endpoints defined in the service are listed as operations. Select and delete any operations that you do not want to expose in the adapter.
  5. Click deploy to deploy the adapter to the Link server, or to any additional Link runtime servers.

Properties of an adapter can be defined to have values restricted by a list that is defined by the response of an endpoint call. For example, a property may be Object type and there is an endpoint in the service that provides the list of supported object types.

To make this association, follow these steps:
  1. In the endpoint definition in the service, define an enumeration response from the Advanced Options on the Success Response page.
  2. In the connector definition, select More Attributes for the property to which you want to associate an enumeration. You can then select the endpoint for which an enumeration response is defined in the Enumeration Endpoint attribute of the property.