> ## 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.

# Result class

> Reference for the Result class: read FlexiCapture 12 batch processing results, including the stop stage, output files, and captured fields as JSON.

The `Result` class is in the `com.abbyy.connectors.models` namespace. It holds the processing results.

## Methods

### getStage

```java theme={null}
public Stage getStage()
```

Returns the ID of the stage where the batch processing stopped.

#### Return value

* The stage where the batch processing stopped, either `Verification (500)` or `Processed (900)`

### getFiles

```java theme={null}
public List<File> getFiles()
```

Returns a list of output files.

#### Return value

* A list of output files

The list is empty when the document does not go through the **Export** stage and stops at the `Verification (500)` stage. It is also empty when no **Export to data files** export profile is configured in the Document Definition.

### getFields

```java theme={null}
public String getFields()
```

Returns the recognition results as a JSON string.

#### Return value

* A JSON string holding the recognition results

The string holds the names of the captured fields and their values. It can be processed on the Pega side, where the field values can be extracted and written to their respective fields in the case.

The string is empty when no **Export to XML** export profile is configured in the Document Definition used by the ABBYY FlexiCapture project. It is also empty when the document does not go through the **Export** stage and stops at the `Verification (500)` stage.

## Related topics

* [Stage enum](/flexi-capture/connectors/pega/pega-enum-stage)
* [File class](/flexi-capture/connectors/pega/pega-class-file)
