Document Data Archive CreatorCreate Method
Creates a document data archive (.dda) file using a supplied DocumentTaskSettings object that defines the processing collection (CollectionId), the collection's associated task (TaskId), and the document data to store (Documents). The Documents list must be a flat list of documents to save that have no child documents (i.e., ChildDocuments.Count is 0 for each document).
Definition
Assembly: OpenDiscoverSDK (in OpenDiscoverSDK.dll) Version: 2026.2.6.0 (2026.02.06)
public static void Create(
Stream stream,
DocumentTaskSettings taskSettings,
string archiveDDAPath
)Parameters
- stream Stream
- An newly created stream to write the document data archive (.dda).
- taskSettings DocumentTaskSettings
- A DocumentTaskSettings instance that defines the CollectionId, associated collection TaskId, and the Documents to store.
- archiveDDAPath String
- Full path to the .dda file without file name, this argument is only used by the DocumentDataArchiveCreator class and is used to create relative paths from location of .dda file to the location of the text/attachment flat file or data archive locations.
Remarks
NOTE: The file and extracted text associated with each document in Documents MUST be flat files on disk and TextFilePath and FilePath (file path to attachment) must be set for each.
This class is not used by the Open Discover DocumentTaskEngine class but is provided as a convenience class for users to create their own document data archive (.dda) files. Users can use the .dda files in custom document processing workflows to stage a document task that will be processed later by a DocumentTaskEngine instance as a subsequent task.
The use case for a user created document data archive (.dda) is to offer an alternative to using a database/document store table as a document data staging point for the next task in a sequence of document processing workflow tasks that needs to operate on these documents.