cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid concurrent auto deployment by multiple developers in Activiti local

chockyc91
Champ in-the-making
Champ in-the-making
Hi,
When multiple developers perform concurrent auto deployment of the BPM process in Activiti, changes made by one user will be overridden by other user in local.

Can we use tenant_id to start process to show the processes to the user for the deployments made by his ID alone?
Is there any better approach to address this issue?
2 REPLIES 2

balsarori
Champ on-the-rise
Champ on-the-rise
Yes, you can use tenantId to deploy process definitions, start process instances, and to retrieve process instances. But note that using tenantId has implications that are mentioned in 18.4. Multitenancy section of the user guide

http://activiti.org/userguide/index.html

Another approach is to make each developer use a specific prefix for the process definition key. For example  developer1.myprocess, developer2.myprocess, and so on. Whether this is a better approach than using tenantId depends on you requirements.

jbarrez
Star Contributor
Star Contributor
> Is there any better approach to address this issue?

Or, not use a shared database for development.