> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FlexiCaptureProject class

> Reference for the FlexiCaptureProject class: list batch types, create and run a batch, and retrieve batch processing results from FC 12.

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:***

<img src="https://mintcdn.com/abbyy/jk6a9TGm7KRcVxRI/images/flexi-capture/connectors/see_also.gif?s=f438656d29ffb293fe967e6dd184b256" alt="" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="11" height="12" data-path="images/flexi-capture/connectors/see_also.gif" />[BatchCreationJob](/flexi-capture/connectors/pega/pega-class-batch-creation-job)

```
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 less than or equals 0

***See also:***

<img src="https://mintcdn.com/abbyy/jk6a9TGm7KRcVxRI/images/flexi-capture/connectors/see_also.gif?s=f438656d29ffb293fe967e6dd184b256" alt="" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="11" height="12" data-path="images/flexi-capture/connectors/see_also.gif" />[Result](/flexi-capture/connectors/pega/pega-class-result)

```
public void close()
```

Closes the project.
