Setup a tenant as the default for dmn deployment

Hi,

I’m trying to configure the engine to define a default tenant as shown in the snippet below. However, when the Spring Boot auto deployment deploys the DMN tables within the resources/dmn folder the deployment and the decisions tables have an empty tenant.
So, is it possible to set up a tenant as the default for deployment?

@Bean
public EngineConfigurationConfigurer<SpringDmnEngineConfiguration> customDmnConfigurer() {
    return configuration -> {
       configuration.setDefaultTenantValue(DEFAULT_TENANT);
        configuration.getDmnEngineConfiguration().setFallbackToDefaultTenant(true);

        if (configuration.getCustomFlowableFunctionDelegates() == null) {
            configuration.setCustomFlowableFunctionDelegates(CUSTOM_FUNCTIONS);
        } else {
            configuration.getCustomFlowableFunctionDelegates().addAll(CUSTOM_FUNCTIONS);
        }
    };
}

Hi,

The setDefaultTenantValue on the DmnEngineConfiguration is used to define a default tenant.
Models stored with this ‘default tenant id’ can be used to share across tenants.
It’s not used to set a default value on models when deploying.

(It was introduced in 6.4.1; Flowable 6.4.1 release – Flowable Blog)

1 Like