Locking and Unlocking an Artifact

An exclusive lock ensures that while you are modifying the artifact, no other user is able to edit or delete it.

When other user tries to save the edit done to the locked artifact, or lock the locked artifact, WebStudio displays an error stating that the artifact is already locked by a user. After completing work on the artifact, you can release the locks on the artifact so that other users can also work.

Prerequisites

Enable the artifact locking mechanism for WebStudio using the ws.scs.locking.enable property in the RMS.cdd file. See Source Control System (SCS) Property Group.

Procedure

  • To Lock the artifact - On the Workspace tab, in the Artifact Explorer pane, right-click the artifact you need to lock, and select Lock.
  • To Unlock the artifact - On the Workspace tab, in the Artifact Explorer pane, right-click the artifact you need to unlock, and select Unlock.

    Alternatively, you can also select the Auto Unlock on Approve/Reject property check box to release the lock on the artifact as soon as the commit on the artifact is approved or rejected. The property can be set on the Settings tab under the Personal Preference settings. See Personal Preferences Settings.

    You can also set up a timeout for locks by using the ws.scs.lock.timeout property in RMS.cdd, after which the locks are released. See Source Control System (SCS) Property Group.