Skip to main content
Version: 11.0

WaitForLock

note

This article is about the WaitForLockRules Engine property.

WaitForLock

The WaitForLock Rules Engine property can be used to override the Wait_For_Lock deployment configuration parameter setting for the current deployment context and for the duration of the current session.

tip

You can set deployment configuration parameters in USoft Authorizer for 3 different deployment contexts: Client/Server, RunBatch, and Rules Service.

This setting determines whether or not your application is to wait for locks in the database to be obtained:

  • If it is set to wait/True, every locking attempt will wait until it obtains the lock (or is timed out by the database).
  • If it is set to nowait/False, every locking attempt will return immediately when it fails.

Setting this property

You can reset this property by executing:

SELECT RulesEngine.SetProperty( 'WaitForLock', '*value*' )

*value* ::= { wait | nowait }

This entire statement is case-insensitive, including the property name and the values of value.

Getting this property

You can get the current value of this property by executing:

SELECT RulesEngine.GetProperty( 'WaitForLock' )

This entire statement is case-insensitive, including the property name.