ENV: Camunda 7.5
Approach: Single Process Engine With Tenant-Identifiers with Transparent Access Restrictions for Tenants
Given: 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 (startXXX
or 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!