WaitForLock

Previous Next

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

You can set deployment parameters in USoft Authorizer for 3 different deployment contexts: Client/Server, RunBatch, and Rules Service. See the Authorizer Guide. One way to access the Authorizer Guide is to press CTRL + F1 in USoft Authorizer.

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.

 

See also

Rules Engine properties

RulesEngine.GetProperty

RulesEngine.SetProperty