Document constructor

The document constructor is a plug-in that retrieves documents or document components from a repository and returns them to the Content Manager OnDemand server for further processing. For example, the document constructor can retrieve a document from Db2® and return it to the Content Manager OnDemand server.

Using the document constructor to submit documents to Content Manager OnDemand can be more efficient than sending entire documents to the client API, especially when preprocessing threads are distributed across multiple computers. In addition, the constructor API supports additional use cases such as combining multiple document components (possibly binary) into a single XML file by either concatenating them or as separate textual fields.

For example, the constructor can perform the following actions:
  1. Retrieve body text and attachments from an email in Db2 or Content Manager OnDemand.
  2. Extract the text by using the text filter that is provided with Content Manager OnDemand.
  3. Compose an XML file that contains the email body and attachment text.
  4. Return the XML file to the Content Manager OnDemand server for further processing.