How to configure Sharedschema&SharedEngine multitenant option either through property file or programmatically ?
Scenario 1 - Need to configure Mutli-tenant using same DB schema for all tenant-id
Scenario 2 - Need to configure Multi-tenant using different Schema for each tenant-id.
Note - If multi-tenant need to configured programmatically, where do we need to configure exactly ?
joram
December 4, 2020, 10:47pm
2
1 Like
tannth
April 20, 2021, 12:55pm
3
For Scenario 1: Has it impact to performance? Something like ExecutorPerTenantAsyncExecutor
mykeul
September 30, 2021, 12:59pm
4
Hi @joram
I implemented this solution and I see we have to pass the tenantId both when deploying:
repositoryService.createDeployment().addClasspathResource("pipelineFoo.bpmn20.xml")
.tenantId("Foo").deploy();
and when starting an instance:
runtimeService.createProcessInstanceBuilder()
.processDefinitionKey("pipelineFoo")
.tenantId("Foo");
Is this correct?
I thought that if we deploy a definition along with a specific tenantId, we could start a process instance without re-specifying the tenantId
What would be the advantage of passing the tenantId when deploying if we pass it when starting the process instance?
Cheers