FileNet P8 Connector upload examples

The Datacap Connector for IBM® Content Manager Upload actions configure the connection between the Datacap application and the IBM Content Manager repository.

Start of changeYou can use these actions to upload the following items and their associated index values from Datacap into Content Engine:
  • A single page document
  • An image that contains multiple pages
End of change

The examples in the following tables describe the sequence in which you must add the actions to the Export To P8 ruleset for the upload scenarios.

Upload a single page document

Table 1. The sequence of actions for uploading a single page document into IBM FileNet Content Engine
Action Start of changeDCO objectEnd of change Start of changeDCO eventEnd of change Description

Start of changeStep 1: P8 connection informationEnd of change

     
FNP8_SetURL("http://MyServer:9080/wsd/FNCEWS40MTOM") Batch Open Set the URL for the FileNet® P8 web server.
FNP8_Login("admin,password") Batch Open Provide the Content Engine user login credentials: admin and password.

Start of changeStep 2: P8 repository attributesEnd of change

     
FNP8_SetTargetClassID("ObjectStore") Document Open Set the top-level repository type on Content Engine to ObjectStore.
FNP8_SetTargetObjectID("AP_ObjectStore") Document Open Specify the name of the object store in which to store the document as AP_ObjectStore.
FNP8_SetDestinationFolder("\TravelDocs") Document Open Identify the folder into which the document is uploaded in Content Engine as \TravelDocs.
FNP8_SetLocale("en_US") Document Open Specify en_us as the locale used by the IBM FileNet P8 web service.

Start of changeStep 3: Page propertiesEnd of change

     
FNP8_SetDocTitle("@ID") Page Close Set the title of the P8 document to be the page's ID, such as TM000001.
FNP8_SetDocType("TIF") Page Close Set the type property for the page to TIF.

Start of changeStep 4: Upload the document to P8End of change

     
FNP8_Upload() Document Close Upload the image file for the page to the previously specified destination folder on Content Engine.

Upload a multiple page document

Table 2. The sequence of actions for uploading a multiple page document into IBM FileNet Content Engine
Action Start of changeDCO objectEnd of change Start of changeDCO eventEnd of change Description

Start of changeStep 1: P8 connection informationEnd of change

     
FNP8_SetURL("http://MyServer:9080/wsd/FNCEWS40MTOM") Batch Open Establish the URL for the FileNet P8 web service.
FNP8_Login("admin,password") Batch Open Provide the Content Engine user login credentials: admin and password.

Start of changeStep 2: P8 repository attributesEnd of change

     
FNP8_SetTargetClassID("ObjectStore") Document Open Set the top-level repository type on Content Engine to ObjectStore.
FNP8_SetTargetObjectID("AP_ObjectStore") Document Open Specify the name of the object store in which to store the document as AP_ObjectStore.
FNP8_SetDestinationFolder("\TravelDocs") Document Open Identify the folder into which the document is uploaded in Content Engine as \TravelDocs.
FNP8_SetLocale("en_US") Document Open Specify the language to use on the IBM FileNet P8 Web Service. For example, enter en_US if you are using US English on the user interface.

Start of changeStep 3: Page propertiesEnd of change

     
FNP8_SetDocClassID("Document") Page Close Set the FileNet Document Class ID for the page to Document.
FNP8_SetProperty("IndexValue1, \IndexField1") Page Close Set the IndexValue1 property value of the P8 document to the value of the field that is named IndexField1 on this page.

Start of changeStep 4: Upload the document to P8End of change

     
FNP8_Upload() Document Close Upload the multiple page image file for this document to the specified destination folder on Content Engine.