Optimistic locking is configured for our case type. We are displaying list of active cases on a user portal in a repeating grid. When user click on any particular row, a modal window opens up and displays the details.
On Submit button we are calling an activity to open the WO and perform a validation, if validation is successful, resuming a flow.
The problem is, when user clicks on the link in the repeating grid, a lock is getting created in pr_sys_locks. This is causing other users from submitting changes through modal window.