cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Instance

masarrat
Champ in-the-making
Champ in-the-making
Can two user access same process and and work on same task at a time in a web environment?
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
If two users complete the same task at the same time, one of the users will get an exception stating that the entity was already updated in another transaction. Activiti does optimistic locking on it's entities.

masarrat
Champ in-the-making
Champ in-the-making
Thanks for suggestion,

If they use processInstanceId for querying task, there will be no exception. Thanks to tijs.

  List taskList=   taskService.createTaskQuery().processInstanceId(processId).list();

Every user will get his own set of task,


Thanks and Regards