Configuring the Data Integration Service
The Maven artifact com.decisionbrain.gene:data-integration-base provides a Spring service DataIntegrationService to read and write data from and to scenarios using data sources and data source consumers.
This service can be used to implement custom data integration logic in the backend extension of a Platform application or in a worker.
To add the default implementation of the data integration service into the Spring context of a microservice, you need to annotate its Spring Boot application class or a Spring configuration with the @EnableDataIntegration decorator, as in the example below:
@EnableOptimServerWorker
@EnableDataIntegration
@SpringBootApplication
public class DataIntegrationWorker {
public static void main(String[] args) {
SpringApplication.run(DataIntegrationWorker.class, args);
}
}