Document |
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).
public static void Create( Stream stream, DocumentTaskSettings taskSettings, string archiveDDAPath )
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.