I am using optimistic locking across all my case types to allow multiple users to work on the same case/assignment concurrently.
Expected Behavior
- Multiple users should be able to open and edit the same assignment.
- When the first user submits, their changes should be committed.
- If a second user submits after that, they should get a conflict error (expected optimistic locking behavior).
Current Issue
- User A opens an assignment, makes changes, and clicks “Save for Later.”
- After this:
- The assignment appears to be locked by User A.
- When User B tries to open or work on the same assignment, they get an error like: “This case has been modified/locked by another user.”
- Because of this:
- Other users cannot modify or submit the assignment.
- This defeats the purpose of optimistic locking.
Requirement
- “Save for Later” should not lock the assignment permanently.
- Other users should still be able to:
- Open the assignment
- Make edits
- Submit (with conflict handled at submit time)
Questions
- Why is “Save for Later” causing a lock, even under optimistic locking?
- Is there a way to prevent the assignment from being locked after saving?
- What configuration or approach allows:
- Multiple users to edit
- Locking/conflict only during submission
Any suggestions or best practices would be appreciated.