Overview
Example Lab Details | |
Version | 6.14.0 |
Root Folder | Example Lab - Object Lock Service |
Modules | None |
Dependencies | None |
This project demonstrates how the Object Lock Service can be leveraged to prevent users from editing an object at the same time.
Explanation
In this example, a 'Edit Case' user action has been fitted with steps from the Object Lock Service to check if the target entity is locked. If it is locked, the flow tells the initiating user that they cannot edit the item because it is locked by [email_address]. If the object is locked by the initiating user, the lock is broken and then locked again to refresh the lock's duration. The user is then able to make their changes, and the lock is released. There is also a 'Break Lock' user action that is only shown to the owner of the lock when the object is locked or administrators.