Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Enable and Disable Lock for Repository

  • Last UpdatedJun 25, 2024
  • 2 minute read

You can enable or disable the lock at repository level. Before you enable or disable a lock, we recommend that you understand how a lock affects the application.

Default Behavior of Repositories Created in AVEVA Work Tasks

In AVEVA Work Tasks, lock is enabled by default for a repository that is created. The Process Designer, List Designer, Forms Designer, and the User Defined Lists (if lock is enabled) gets locked while editing to ensure that other users do not modify or edit the list item.

How to Check Whether Lock is Enabled or Disabled for a Repository?

To check whether lock is enabled or disabled for a Repository, verify the Properties Column (properties collection) of SKRepository table in the Farm Database. If the value of the property key, "enablelock" is True, lock is enabled for the repository. If the value of the property key, "enablelock" is False, lock is disabled for the repository.

For example, the following code snippet shows the Properties column (properties collection) data for a repository:

<properties>

<property key="sourceelements">

<![CDATA[WORKFLOWELEMENTS\Default]]>

</property>

<property key="fromemail"><![CDATA[admin@domain.com]]></property>

<property key="toemail"><![CDATA[admin@domain.com]]></property>

<property key="alertuser"><![CDATA[False]]></property>

<property key="filewatcher"><![CDATA[]]></property>

<property key="enablelock"><![CDATA[True]]></property>

<property key="isadminconfigured"><![CDATA[True]]></property>

<property key="theme"><![CDATA[Default]]></property>

</properties>

The highlighted line is used to identify whether a lock is enabled or disabled for a repository. In this line, you can identify the following properties:

<property>

defines the property tag

key

Attribute of property tag which describes the property name. enablelock is name of the property.

<![CDATA[True]]>

Value of the property. True indicates that the lock is enabled.

</property>

Closing tag of property.

Enabling lock for a repository

In AVEVA Work Tasks, after you create a repository, lock is enabled by default for that repository.

If you want to enable lock for a repository, open the SKRepostiory table in the Farm Database. Locate the required repository entry or row. In the properties column data (properties collection) of the particular row, locate the enablelock key. Update the <![CDATA[False]]> to <![CDATA[True]]>.

If the enablelock key is not found for a repository entry in the properties column, then add the following line between <properties> and </properties> tags.

<property key="enablelock"><![CDATA[True]]></property>

The lock will be enabled for that repository.

Disabling lock for a repository

In AVEVA Work Tasks, after you create a repository, lock is enabled by default for that repository.

If you want to disable a lock for a repository, then open the SKRepostiory table in the Farm Database. Locate the required repository entry or row. In the properties column data (properties collection) of the particular row, locate the enablelock key. Update the <![CDATA[True]]> to <![CDATA[False]]>. 

If the enablelock key is not found for a repository entry in the properties column, then add the following line between <properties> and </properties> tags if you want to enable lock in future.

<property key="enablelock"><![CDATA[False]]></property>


In This Topic
TitleResults for “How to create a CRG?”Also Available in