From c7c241f39a54181b2e6220c7875f15e8ce3ce2ba Mon Sep 17 00:00:00 2001 From: Stephan Pelikan Date: Fri, 7 Jun 2024 16:18:54 +0200 Subject: [PATCH] Fix wrong definition of tenant-id property --- .../camunda8/Camunda8VanillaBpProperties.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8VanillaBpProperties.java b/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8VanillaBpProperties.java index 1df3507..15928a7 100644 --- a/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8VanillaBpProperties.java +++ b/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8VanillaBpProperties.java @@ -1,11 +1,10 @@ package io.vanillabp.camunda8; import io.vanillabp.springboot.adapter.VanillaBpProperties; +import java.util.Map; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.util.StringUtils; -import java.util.Map; - @ConfigurationProperties(prefix = VanillaBpProperties.PREFIX, ignoreUnknownFields = true) public class Camunda8VanillaBpProperties { @@ -37,8 +36,8 @@ public String getTenantId( if (!configuration.isUseTenants()) { return null; } - if (StringUtils.hasText(configuration.getTenant())) { - return configuration.getTenant(); + if (StringUtils.hasText(configuration.getTenantId())) { + return configuration.getTenantId(); } return workflowModuleId; @@ -48,7 +47,7 @@ public static class AdapterConfiguration { private boolean useTenants = true; - private String tenant; + private String tenantId; public boolean isUseTenants() { return useTenants; @@ -58,12 +57,12 @@ public void setUseTenants(boolean useTenants) { this.useTenants = useTenants; } - public String getTenant() { - return tenant; + public String getTenantId() { + return tenantId; } - public void setTenant(String tenant) { - this.tenant = tenant; + public void setTenantId(String tenantId) { + this.tenantId = tenantId; } }