Question
Accenture
US
Last activity: 7 Nov 2017 10:46 EST
Lock lost exception after 30 minutes
When users leave cases open and idle for 30 minutes and then attempt to submit they receive a lock lost exception.
Error Message:You have lost the ability to make this change because a change elsewhere has taken precedence over the change you made here.
STEPS TO REPRODUCE
- Create a interaction.
- Launch a service case.
- Leave it idle for some time.
- Update the service item and observe the error.
Attempted Solution:
1. updated the Release lock after 45 mins of opened case in Case Type rule.
2. restarted the server.
3. Case got locked after 30 mins only as default. so please let me know, if i have to change anything more.
Hi,
1. Have optimistic locking enabled for the work objects. For enabling this feature, navigate to case type rule and in Advanced tab, select "Locking". Now configure optimisitic as the case locking mechanism. Default case locking is something where when one user is working on the case, other user is not allowed to work on the same case in parallel and is provided with a message. And optimisitc locking is mechanism is where both users get a chance to work on the work object parallely and the user who clicks on "Submit" (finishes the assignment/commit is performed) first obtains the lock. Suppose userB has clicked on submit first and now user A clicks on submit, then user A is notified with a message.
2. Create or modify timeout/locktimeout DSS setting to set the value in minutes after which the lock has to be released.
Hi,
1. Have optimistic locking enabled for the work objects. For enabling this feature, navigate to case type rule and in Advanced tab, select "Locking". Now configure optimisitic as the case locking mechanism. Default case locking is something where when one user is working on the case, other user is not allowed to work on the same case in parallel and is provided with a message. And optimisitc locking is mechanism is where both users get a chance to work on the work object parallely and the user who clicks on "Submit" (finishes the assignment/commit is performed) first obtains the lock. Suppose userB has clicked on submit first and now user A clicks on submit, then user A is notified with a message.
2. Create or modify timeout/locktimeout DSS setting to set the value in minutes after which the lock has to be released.
You may refer https://community.pega.com/sites/default/files/help_v722/procomhelpmain.htm management/case-designer/case-wide-properties/locking/cm-setting-locking-strategy-for-case-type-tsk.htm for more details on the locking mechanism.
Also, I would like to understand on the attempted solution that you have made - . updated the Release lock after 45 mins of opened case in Case Type rule.
Are you referring to Default/optimistic locking?