Flow and service based connectors
Connectors that use both flows and services are created by referencing a project that contains Link flows, and a service defiition that defines REST endpoints.
Flows defined within the project become the operations of the adapter, and the flow variables of each flow become the properties of the connector. Endpoints defined in the service can be used to obtain enumeration values (as described in the Service based adapters documentation), and also to obtain schema definitions.
Connectors can be used in embedded scenarios.
- Create a project that contains flows that implement actions.
- Create or import a REST service using the service editor.
- From the connector wizard, create a new connector and select the type as A connector defined by a project and a service.
- Select the project and the service.
- Optionally edit the properties and operations in the connector wizard. By default, all flows defined in the project are listed as operations. Select and delete any operations that you do not want to expose in the connector.
- Click deploy to deploy the connector to the Link server, or any additional Link runtime servers.
Define enumerations for properties as described in the Service based adapters documentation.
A service endpoint can be called to obtain schema definitions for connectors which need to provide that information to the application in which they are embedded.
- In the endpoint definition in the service, define a schema response from the Advanced Options on the Success Response page.
- In the connector definition, select the endpoint in the Dynamic Field Endpoint of the schema mapping step.