Nuclos locking logic: lock/unlock records, owner attribute, Lockable API (lock/unlock/unlockAfterCommit), lock and unlock modes, Nuclet import. |
Language: Deutsch · English
Lock and unlock individual records via rules – with an owner attribute and the Lockable interface.
On this page |
The locking logic locks individual records via rules and unlocks them either manually or by rule. When enabled, the business object automatically gets the system attribute owner.
A locked record with owner display.
Enabled in the BO wizard (step Rights & locking).

Locking in the BO wizard.
Lock mode: OWNER API ONLY – lock by setting the owner via a rule.
Owner display: user ID, „last, first“, „first last“ or e-mail.
Unlock mode: API ONLY (rule only) or ALL USERS MANUALLY (rule or manual).
BOs with locking implement the Lockable interface. Calls do not increase the version number and are immediately visible:
| Method | Effect |
|---|---|
.lock() | lock now; only the current user can edit |
.lock(UID ownerId) | lock now for the given user |
.unlock() | unlock now |
.unlockAfterCommit() | unlock only after a successful commit (e.g. long-running jobs) |
Once an owner is set, edit/delete/status change are allowed only for the owner; the toolbar shows the owner plus an unlock button.
The Nuclet import enables locking once but never removes or changes an existing locking configuration – otherwise dependent rules would stop compiling. |