Oracle WebCenter Content (MOSC)

MOSC Banner

Recognition Process customization in WEC 12.2.1.3

Hi,

Is there any way to stop the Processing of a batch if Recognition Processor fails to detect a Barcode in it?

I've tried the below script at Recognition Processor level, but it's not restricting the batches even if it fails to read a barcode.

load('nashorn:mozilla_compact.js');


//for logging purpose

function initialize(rpc){

logger = rpc.getLogger();

}

//endBatchProcess()


function batchItemAllValidBarcodes(rpc){

    // Obtain current batch item

    var batchItem = rpc.getBatchItem();

     

    // obtain bar code count.

    var count = batchItem.getBarcodeCount();

 

    // All barcodes on a batch item.

    var allBarcodes;

 

    // bar code of interest.

    var barcodeValue;

 

    // after parsed barcode value.

    var parsed;

var regex = "*";

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center