Skip to main content
The FlexiCaptureProject class is in the com.abbyy.connectors namespace. It inherits from the AutoCloseable class and provides methods for working with an FC 12 project. The methods of this class are described below.
Method Details
public List<String> getBatchTypeNames()
Gets a list of the names of all the batch types in a project. Returns:
  • A list of batch type names
Throws:
  • FlexiCaptureConnectorException – if an error occurs when getting a list of batch type names
public int create(BatchCreationJob job)
Creates a new batch of files on the FC 12 server and starts the processing of the batch. Parameters:
  • job – a job that creates a new batch on the FC 12 server
Returns:
  • The ID of the batch
Throws:
  • FlexiCaptureConnectorException – if an error occurs when creating a batch
    • NullPointerException – if the input parameter is 0
    • IllegalArgumentException – if the input parameter contains invalid property values
See also: BatchCreationJob
public Result getResult(int batchId)
Gets batch processing results from the FC 12 server. Parameters:
  • batchId – the ID of the batch
Returns:
  • An object containing batch processing results
Throws:
  • FlexiCaptureConnectorException – if an error occurs when getting batch processing results
    • IllegalArgumentException – if the input parameter is lass than or equals 0
See also: Result
public void close()
Closes the project.