std.GetDocumentDigest

This job delivers the digest value of the document files. The value is calculated in two stages over all files of the document — see Calculating the digest value.

1. Input Parameters

Name Type Required Description

dwObjectID

INT

Yes

ID of the object

dwObjectType

INT

Yes

Type of the document

[dwFlags]

INT

No

0 = digest value is read from DB
1 = digest value is calculated

[CheckSignature]

BOOL

No

1 = signature is also checked; returns Signature

2. Output Parameters

Name Type Dependency Description

TableDigest

STRING

—

Digest value stored in the database (for dwFlags = 0 or 1) — 64-character uppercase hex string

[LocalDigest]

STRING

Optional

Digest value recalculated from the current files (only for dwFlags = 1). If it matches TableDigest, the files are unchanged.

[Signature]

INT

Optional

0 = signature present and verified
1 = signature not present
2 = signature could not be verified due to technical error
3 = signature present but incorrect

3. Return Value

(INT): 0 = Job successful, otherwise error code.