Question
3
Replies
2106
Views
Asurion
Posted: November 18, 2017
Last activity: July 25, 2018
Closed
Optimistic Locking Vs Do not lock parent in a data propagation
Hi
In a parent/child relationship, I want to propagate some info from child to parent. Will the parent case lock gets acquired automatically when i update something on pyWorkCover irrespective of the parent case locking mode is optimistic OR child case has 'Do not Lock parent' checked?
Thanks
Ganesh
Hello,
Optimistic locking enables multiple the operators to open a case. No lock is obtained when the case is opened. The lock occurs when the user clicks Submit. When two operators are working on the same case, the changes to the case are made by whoever submits the case first. The second operator receives a message with the first operator’s name and the time of the change. Also there is a refresh button that allows the second operator to get the new changes made by the first operator. The second operator’s changes are not applied until they click refresh and submit their action after the refresh.
If the “Do not lock” option is selected, the parent case is not locked when the subcase is being worked on. The advantage of using the “Do not lock” option, both the parent and subcases can be processed simultaneously. The main disadvantage of using the “Do not lock’” option is that since the parent case is not locked, any properties related to the subcases, such as count of open subcases is not updated in the parent case. If this is not important and simultaneous processing is preferred, then select the “Do not lock” check box.
Thanks,
Gisela