AnsweredAssumed Answered

How to deploy Multi-tenant processes?

Question asked by razorblade on Jun 16, 2016
Latest reply on Jun 27, 2016 by jbarrez
Hi,

I have a number of tenants who share the same process definition, say "myProcessDefinition". However I get this error when i try to start a process by process key and Tenant ID.

<pre>
Caused by: org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key 'myProcessDefinition' for tenant identifier 'someTenant'
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedLatestProcessDefinitionByKeyAndTenantId(DeploymentManager.java:157) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:84) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47) ~[activiti-spring-5.21.0.jar:5.21.0]
   at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[spring-tx-4.2.4.RELEASE.jar:4.2.4.RELEASE]
   at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45) ~[activiti-spring-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35) ~[activiti-engine-5.21.0.jar:5.21.0]
   at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKeyAndTenantId(RuntimeServiceImpl.java:98) ~[activiti-engine-5.21.0.jar:5.21.0]
</pre>
I saw that multi-tenant process definitions are supported since version 5.19.00, according to the release notes. However the Jira Issue is still open:
https://activiti.atlassian.net/browse/ACT-4045

Is this possible in the latest version?

Outcomes