cancel
Showing results for 
Search instead for 
Did you mean: 

Set tenantId for instance of shared process definition

joro
Champ in-the-making
Champ in-the-making

I am currently considering using Activiti or Camunda in my project. In Camunda I can set a tenantId later on using a so called TenantProvider that is registered upon creating the process engine. I use this to set a tenant to an instance of a shared process definition.

Is this possible in Activiti in one way or another? I found the following call does NOT set the tenant correctly but sets empty string (I believe this is the default tenantId in Activiti since null gives problems with some databases):

this.runtimeService.createProcessInstanceBuilder()
			.processDefinitionId(processDefinitionId)
			.tenantId(tenantId)
			.start();

 I use Activiti 6.0.0

PS: I should maybe add for clarification that the deployment and therefore the process definition does NOT have a tenantId because I want it to be used by all tenants.

3 REPLIES 3

joro
Champ in-the-making
Champ in-the-making
 

joro
Champ in-the-making
Champ in-the-making

Is there no way to achieve this?

abbask01
Star Collaborator
Star Collaborator

AFAIK, multi-tenancy is not supported by activiti community, you may need to opt for APS

Regards,
Abbas