AnsweredAssumed Answered

Multi-tenant Multi-schema in Spring Boot

Question asked by jlalwani on Sep 15, 2016
Latest reply on Sep 22, 2016 by nedumarans
I understand how the Activiti Process Engine is configured in Spring Boot. The SpringProcessEngineConfiguration extends ProcessEngineConfigurationImpl to provide the barebones configuration for Spring. Then you have various classes that extend AbstractProcessEngineAutoConfiguration that modify the SpringProcessEngineConfiguration to inject various beans into the configuration.

I read the documentation about how MultiTenant MultiSchemaMultiTenantProcessEngineConfiguration can be used to setup Activiti to use Multiple schema.

However, I don't understand how to do multi-schema in Spring Boot

Should I implement a MultiSchemaMultiTenantProcessEngineAutoConfiguration that extends AbstractProcessEngineAutoConfiguration and modifies the SpringProcessEngineConfiguration?  Perhaps it can be conditional on a bean of type TenantInfoHolder. Is there a similar AutoConfiguration in Activiti already that I can use?

Outcomes