cancel
Showing results for 
Search instead for 
Did you mean: 

Resource Locking Support in Activiti

sakumar1
Champ in-the-making
Champ in-the-making
Hi,

Is there any built in resource locking support available in Activiti ? Resource Can be ID/Collection of IDs. Basically we want to avoid concurrent operation on resource or List of resources,However we don't want to fail the operation Hence require a Async Lock Support.  Can we use Activiti instead of going to other distributed locking framework support ?

Regards,
Sampath
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Activiti doesn't have any resource locking mechanism built-in, no. What's the use case you're trying to solve?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I had the similar problem.

The use case:

Process model:

Start -> Deploy new version to the testing env. -> end

Issue description:
In the case when another process uses testing env. (e.g. tests for previous version are still in the progress) we can not continue in the deployment (because we can harm another process instance execution)

Solution proposal:
Create new embedded "subprocess" component which will describe resource (testing env). In the case when resource is occupied we should use one of the strategies to handle the situation.

Regards
Martin