My Oracle Support Banner

How To Access the DocumentNumber Property in a WEC Recognition Processor Script (Doc ID 2576956.1)

Last updated on APRIL 18, 2024

Applies to:

Oracle WebCenter Enterprise Capture - Version and later
Information in this document applies to any platform.


The WebCenter Enterprise Capture Scripting guide (section 8.1.10) states that the document class has a property called DocumentNumber, which is "The document's position within the batch."

See link:

Using the following format "rpc.getDocument().getDocumentNumber()" returns the below error:

Error: rpc.getDocument().getDocumentNumber is not a function

The goal is to set an index field with the value of DocumentNumber so during commit processing, the metadata field can be populated, both as part of the file name and as a value in an index file generated by the commit processor.

In other words, the goal is to have image files committed from Capture named in the format:

<BatchName>_<DocumentNumber>_<ScanDate>  where DocumentNumber is the sequence of the document in the batch.

How can this property be accessed in a Recognition Processor script?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.