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 = "*";