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

# ABBYY FlexiCapture as a service with verification

> Use the ABBYY FlexiCapture connector for Pega in service mode with a manual verification stage: architecture, setup, and Pega configuration.

In this scenario, Pega sends documents to ABBYY FlexiCapture for processing and an operator verifies the captured data before Pega retrieves it. The verification page is embedded in the Pega case interface.

Choose the roadmap that matches the number of documents a case handles.

## Single-document processing roadmap

| Step                                                                                                                  | What you do                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [Install the Pega connector for the verification scenario](/flexi-capture/connectors/pega/pega-installation-3)        | Import the JAR, create the library, and set up the functions.                                                              |
| [Create the functions for single-document processing](/flexi-capture/connectors/pega/pega-func-one-doc)               | Add `SendForProcessing`, `WaitFirstVerificationOrProcessed`, `FetchingCapturedData`, and `SingleDocumentBatchIsProcessed`. |
| [Create the general functions](/flexi-capture/connectors/pega/pega-func-other)                                        | Add the shared `unescapeHTML` function.                                                                                    |
| [Create a single-document processing case](/flexi-capture/connectors/pega/pega-one-doc-case)                          | Build the case and its workflow stages.                                                                                    |
| [Configure the user interface for a single-document case](/flexi-capture/connectors/pega/pega-config-ui-1)            | Embed the verification page and show the captured fields.                                                                  |
| [Create the activities for a single-document processing case](/flexi-capture/connectors/pega/pega-activities-one-doc) | Add the activities that call the functions.                                                                                |
| [Create the data transform for a single-document processing case](/flexi-capture/connectors/pega/pega-dt-one-doc)     | Map the returned JSON to the case fields.                                                                                  |
| [Create a flow action](/flexi-capture/connectors/pega/pega-flow-action)                                               | Add the verification and file collection sections.                                                                         |
| [Data types for a single-document processing case](/flexi-capture/connectors/pega/pega-one-doc-data-type)             | Add the custom data types the case needs.                                                                                  |

## Multi-document processing roadmap

| Step                                                                                                                   | What you do                                                                 |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [Install the Pega connector for the verification scenario](/flexi-capture/connectors/pega/pega-installation-3)         | Import the JAR, create the library, and set up the functions.               |
| [Create the functions for multi-document processing](/flexi-capture/connectors/pega/pega-func-multiple-docs)           | Add the functions that handle a batch of several documents.                 |
| [Create the general functions](/flexi-capture/connectors/pega/pega-func-other)                                         | Add the shared `unescapeHTML` function.                                     |
| [Create a multi-document processing case](/flexi-capture/connectors/pega/pega-many-docs-case)                          | Build the case and its workflow stages.                                     |
| [Create the HTML fragments](/flexi-capture/connectors/pega/pega-html)                                                  | Add the fragments that render the document list and the verification frame. |
| [Create the activities for a multi-document processing case](/flexi-capture/connectors/pega/pega-activities-many-docs) | Add the activities that call the functions.                                 |
| [Create the data transforms for a multi-document processing case](/flexi-capture/connectors/pega/pega-dt-many-docs)    | Map the returned JSON to the case fields.                                   |
| [Create a flow action](/flexi-capture/connectors/pega/pega-flow-action)                                                | Add the verification and file collection sections.                          |
| [Data types for a multi-document processing case](/flexi-capture/connectors/pega/pega-many-docs-data-types)            | Add the custom data types the case needs.                                   |

## Related topics

* [Architecture of the FlexiCapture as a service with verification scenario](/flexi-capture/connectors/pega/pega-architecture-3)
* [Configure your ABBYY FlexiCapture project for Pega](/flexi-capture/connectors/pega/pega-fc-config)
