/process-definition/key/{key}/tenant-id/{tenant-id}/start
Can Camunda start {tenant-id} project with {key}? If it is not found - just start shared project with {key}. Return error otherwise?
Let’s say I start a default process with a tenant-id variable set. And I want each Call Activity (BPMN/CMMN) or Business Rule Task (DMN) to use tenant-id definition or default definition (if tenant-id definition is not available).
Is setting Tenant Id to ${ calledElementTenantIdProvider.resolveTenantId(tenant-id) }" is the only solution here?
Yes, I think this is the way to go. If you want this to be the default behavior for each and every process definition, you can configure this programmatically via a parse listener as well, which saves the effort of editing the BPMN XML.
I still think it should be a default behavior for Camunda (to pick a default process or a tenant specific one if available).
Would you please point to a documentation/example/best practice how to substitute Call Activity (BPMN/CMMN/DMN) tenant-id from input variable tenant-id if specific definition (BPMN/CMMN/DMN) is available for tenant-id?