How to rename a Batch automatically

Question

How to rename a Batch automatically? 

Answer

The batch name could be changed using a Processing script.

It can be added when creating an Automatic batch processing stage in the Advanced mode of the Workflow setup:

Image_003.png​​

In this stage, you can add the script to retrieve and replace the BatchName, for example:

using System;
using System.IO;

Batch.Name = Documents[0].DefinitionName + DateTime.Now.ToString(" HH-mm-ss");

Please check the batch processing stage properties (it should be placed below the Recognition stage):
 Image_005.png​​Image_006.png​​Image_007.png​​Image_008.png

According to this example, you will obtain the following result (Batch Name is equal to Document Definition Name used and the timestamp).

More information: https://help.abbyy.com/en-us/flexicapture/12/developer/scripts_handling#batchprocessingscript 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.