FileNet Image Services Connector upload examples

The FileNet® Image Services Connector Upload actions configure the connection between the Datacap application and the FileNet Image Services library.

Upload a single page file

Use these actions to upload a single page file or a document that contains multiple pages from Datacap into the FileNet Image Services library.

The examples in the following tables show the sequence in which you must add the FileNet Image Services Connector actions to the Export ruleset for the upload scenarios.

Table 1. The sequence of actions for uploading a single page file into an FileNet Image Services library.
Action Description
Library_IS_Initialize
     (ISLibrary:Datacap:FileNet)
Initialize the previously defined FileNet Image Services library.
Library_Login("userid,password") Log in to FileNet Image Services library.
FileNetDB_ADOConnect() Establish an Active X Data Connection object (ADO) with the specified FileNet database.
NewDocument(1040EZtwo) Set up a new FileNet document and specify the FileNet Document Class to assign to the new document.
CreateFolder(IncomeTaxes_2011) Create a top-level FileNet folder in the FileNet Image Services library.
Upload() Import the document into the FileNet Image Services library.
SaveDocToFolder(IncomeTaxes_2011) Put the document in the specified folder in the FileNet Image Services library.

Upload a multiple page file

Table 2. The sequence of actions for uploading a multiple page file into an FileNet Image Services library.
Action Description
Library_IS_Initialize
     (ISLibrary:Datacap:FileNet)
Initialize the previously defined FileNet Image Services library.
Library_Login("userid,password") Log in to FileNet Image Services library.
FileNetDB_ADOConnect() Establish an Active X Data Connection object (ADO) with the specified FileNet database.
NewDocument(1040EZtwo) Set up a new FileNet document and specify the FileNet Document Class to assign to the new document.
AddAllImagesToDocument() Assigns all of the images that are associated within the Document object of the Document Hierarchy to the new document.
CreateFolder(IncomeTaxes_2011) Create a top-level FileNet folder in the FileNet Image Services library.
Upload() Import the document into the FileNet Image Services library.
SaveDocToFolder(IncomeTaxes_2011) Put the document in the specified folder in the FileNet Image Services library.