Set tenantId for instance of shared process definition

cancel
Showing results for 
Search instead for 
Did you mean: 
joro
Member II

Set tenantId for instance of shared process definition

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
joro
Member II

Re: Set tenantId for instance of shared process definition

 
joro
Member II

Re: Set tenantId for instance of shared process definition

Is there no way to achieve this?

abbask01
Senior Member

Re: Set tenantId for instance of shared process definition

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

Regards,
Abbas