Pupose of Locking checking Inside Data Classes

Hi,

What is the purpose of Allow locking checkbox inside Locking TAB of Data classes.

@AbhishekC1725

** corrected the typo with class, abstract will not be associated with a table.

  1. With ‘allow locking: enabled’

Since your class is concrete class, having associated to a table and to modify/update a record, you need to get the lock of that particular record.

If you successfully manage to get the lock by the OOTB methods, you’ll be able to update and save it otherwise it means someone has already has the lock and updating the record.

The lock behaviour is same as normal case locking.

  1. With ‘allow locking: disabled’

When you want to update the record of a particular class with above option disabled, then before updating the record, you don’t have to get the lock of that record. You can just update and save it.

The lock behaviour is same as optimistic case locking.

For the 2nd example, you can check ‘Rule-Ruleset-Name’ class and try to open the record with open by handle (lock checkbox enabled). You’ll get a message in tracer that locking is not enabled for this class.

@Sangeeth Hi,

Thanks for response.

What if class type = Concrete

@AbhishekC1725 locking option is only applicable for concrete classes(not applicable for abstract classes), as only concrete classes will have instances.

This allow locking setting is done in class group rule form and this applies to all the concrete classes associated to this class group.

@Anoop Krishna Thanks for response