I am trying to use record locking feature in CUBA and have some questions with regards to pessimistic locking after I have activated pessimistic locking from Administration > Lock > Setup.
I understand when a record is opened in the Editor, CUBA system automatically locks the record and prohibits from being edited by any other user and the same time.
- How the second user is notified, at the moment when he clicks on the edit button from the browser screen or before saving? Is there any default setting that can be used or suggestion how we can achieve this?
- As setting timer is mandatory, what will happen when the first user is still in edit mode and he is already time-out, is there any way we can read the first user’s activity and extend the locking time beyond the default setting? This may happen in many different situations in real-life use of the software. Any option to set unlimited time say 0 for unlimited?
- When I have setup the locking in development environment, is it going to be part of deployment by default or I have to do the same in every production instances?
- Which mode is used and how can we change if needed i.e. PESSIMISTIC_READ, PESSIMISTIC_WRITE, PESSIMISTIC_FORCE_INCREMENT?