Question:
Is there a way to set the tenant id in the applications.properties file?
Background:
I am using Camunda BPM Spring Boot Starter and am trying to set the Process Application properties. My goal is to use the application.properties file of the Spring Boot application and completely get rid of the processes.xml file. I found all property names to be used in the application.properties file which correspond to properties in the processes.xml file that I need to set. However, I was unable to find a way to set the tenant id.
After a lot of trial an error, I found some solution but it feels a bit crude.
I set the following in the application.properties file.
camunda.bpm.process-engine-name = myProcessEngine
Along with this I set the following in the processes.xml file.
<?xml version="1.0" encoding="UTF-8" ?>
<process-application xmlns="http://www.camunda.org/schema/1.0/ProcessApplication">
<process-archive tenantId="tenant-1">
<process-engine>myProcessEngine</process-engine>
<properties>
<property name="isDeleteUponUndeploy">false</property>
<property name="isScanForProcessDefinitions">true</property>
<property name="jobExecutorDeploymentAware">true</property>
</properties>
</process-archive>
</process-application>
In the above method, the tenant id gets set successfully, but I wonder if there was a simpler way to do this like having all configuration in the application.properties file itself.