ENV: Camunda 7.5
foo is a process definition key which is deployed without tenant ID, i.e. shared process among all tenants.
bar is the ID of a service task within foo.
The TenantIdProvider works well if one start process instances normally (
startXXXByMessage). For test cases which don’t start process instances this way, rather with:
runtimeService.createProcessInstanceByKey('foo') .startBeforeActivity('bar') .execute()
the tenant ID doesn’t get set. Maybe someone can point out why and how. Thanks!