lic.LicGetLockCount

This job determines all active locks on a named resource. For each lock found, the server returns one Info output parameter with the lock details.

This job is not listed in the official enaio® licensing engine overview (lic). This description was reconstructed from the call code of the enaio® gateway (dms-enaio library).

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Reserved; always pass 0.

ResourceName

STRING

Yes

Name of the resource whose locks are to be determined.

2. Output Parameters

Name Type Dependency Description

Info<n>

STRING

per active lock

Lock details as semicolon-separated fields in the format <count>;<sessionGuid>;<instanceName>. Each parameter name begins with Info (e.g. Info0, Info1, …); the server returns exactly one entry per active lock.

2.1. Info Value Format

Field Index Type Description

count

0

INT

Number of lock entries this session holds on the resource.

sessionGuid

1

STRING

GUID of the working session that holds the lock.

instanceName

2

STRING

Name of the enaio® server instance on which the lock is recorded.

3. Return Value

(INT): 0 = job successful, otherwise error code. On error, no Info parameters are returned.

4. See Also