std.StoreInWork

This job copies all specified documents to the work directory (derived from object type and object ID). If files with the specified object ID already exist there, they must first be deleted.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

0 = existing files are deleted
1 & Flags = existing files are not deleted (for StoreInWorkDirect)
2 & Flags = no hard links for files are created (for variant management)

dwObjectID

INT

Yes

ID of the object

dwObjectType

INT

Yes

Type of the object

FileCount

INT

Yes

Number of files

bAddFiles

INT

Yes

1 = new files are added instead of replacing the old ones

bAddFront

INT

Yes

1 = new files are added at the front

[DocFlagsNeeded]

INT

No

If present, the Flags column in the object table is set to this value.

2. Input Files

Name Description

File list

Name and path of the files to be written to the work directory

3. Return Value

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