FNP8_Upload

Uploads the batch images to the FileNet® P8 repository.

Syntax

bool FNP8_Upload()

Parameters

None.

Returns

False if the upload is not successful, or the action was applied to the Field level. Otherwise, True. If successful, each page uploaded will have a variable Doc_ID set to the FileNet document identifier.
Attention: The action directs the Rulerunner task to finish with a status of Aborted.

Level

Batch, Document or Page level.

Details

Uploads image files from the Datacap batch to the specified destination folder in the FileNet library.

When called at the Batch or Document level, attempts to upload a multipage TIF image file named ObjID.tif, where ObjID is the DCO Object ID of the Batch or Document. If such a file does not exist, tries to upload all page images in the Batch or Document.

When called at the Page level, uploads the image file for that page. It is important that any required properties are set before calling FNP8_Upload such as FNP8_SetDocTitle otherwise an upload error could occur.

Example
FNP8_SetURL("http://server:port//wsi/FNCEWS40MTOM/")
FNP8_Login("user,password")
FNP8_SetLocale("en-us")
FNP8_SetDocClassId("MyFilenetDocClass")
FNP8_SetDocTitle("Document Title")
FNP8_SetProperty("CustomerName,@D.CustomerName")
FNP8_SetMultiValueProperty("InvoiceList,@D.InvoiceList")
FNP8_SetProperty("ScanStation,@STATION")
FNP8_SetProperty("ScanOperator,@OPERATOR")
FNP8_SetFileType("pdf")
FNP8_Upload()