isInLockState

isInLockState(): Boolean;

The isInLockState method of the Process class returns true if the process is currently in lock state; that is, it is between a pair of beginLock and endLock instructions.

The method receiver must be the current process.

The following example shows the use of the isInLockState method.

unload() updating;
begin
    beginTransaction;
        delete global.a;
    commitTransaction;
    if process.isInLockState then
        endLock;
    endif;
end;