Spring datasource selection

Hello,

I have multiple spring datasources configured.
And I want flowable to connect with a specific one, not the @Primary

Is there a way to configure this?

Kind regards,
B;

Yes,

You can define EngineConfigurationConfigurer for each of the engine configurations.

    @Bean
    public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> customProcessEngineConfigurer(@Qualifier("flowable-mysql") DataSource flowableDataSource) {
        return engineConfiguration -> {
            engineConfiguration.setDataSource(flowableDataSource);
        };
    }

Thank you ! That did the trick indeed ! :slight_smile:

B;