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

# Configure your ABBYY FlexiCapture project for Pega

> Set up an ABBYY FlexiCapture project for the Pega connector: enable the service with verification and create an XML export profile for each Document Definition.

The Pega connector needs an ABBYY FlexiCapture project that has verification on web stations enabled and that exports each Document Definition to XML.

<Info>
  ABBYY FlexiCapture Distributed Edition and ABBYY FlexiCapture Cloud both require the ABBYY FlexiCapture 12 Project Setup Station.
</Info>

## Open or create the project

Open the project for which you need to set up XML data export. If you do not have one yet, create it.

Launch the Project Setup Station and, in the **Open Project** dialog box, click one of the following buttons:

* **Create New** – Creates a new project.
* **Browse** – Opens an existing project stored on your local drive.
* **Browse from Server** – Opens a project that you uploaded to the ABBYY FlexiCapture Application Server earlier.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/MF-10_open-project.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=a0c560b5566b858a1220c1f44360c950" alt="Screenshot of the ABBYY FlexiCapture Project Setup Station Open Project dialog with the Create New, Browse, and Browse from Server buttons for selecting a project to open." width="456" height="296" data-path="images/flexi-capture/connectors/MF-10_open-project.png" />
</Frame>

## Configure the project as a service with verification

<Steps>
  <Step title="Open the project properties">
    In the Project Setup Station, click **Project → Project Properties** and then click the **Workflow** tab.
  </Step>

  <Step title="Switch to the advanced schema">
    From the **Schema** drop-down list, select **Advanced**.
  </Step>

  <Step title="Open the verification stage">
    Select the **Verification** option and click **Edit**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega199.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=4a02bb161df892f09450728b31a60f1d" alt="Screenshot of the ABBYY FlexiCapture Project Setup Station Project Properties Workflow tab with the Advanced schema selected and the Verification stage highlighted in the list of workflow stages." width="525" height="481" data-path="images/flexi-capture/connectors/Pega199.png" />
    </Frame>
  </Step>

  <Step title="Enable the web stations">
    In the dialog box that opens, select the **Enable web stations** option on the **General** tab, and then click **OK**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/connectors/AA14.jpg?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=c76fd0a10fc68270f53f0c71caa3fa74" alt="Screenshot of the ABBYY FlexiCapture Workflow Stage Properties dialog for the Verification stage, with the Enable web stations option highlighted on the General tab." width="492" height="473" data-path="images/flexi-capture/connectors/AA14.jpg" />
    </Frame>
  </Step>

  <Step title="Clear the export root path">
    Make sure that the **Export root path** field on the **General** tab is empty, and then click **OK**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega200.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=e22ec2866cf17f448c2003125a9451bb" alt="Screenshot of the ABBYY FlexiCapture Project Setup Station Project Properties General tab with an empty Export root path field highlighted." width="519" height="507" data-path="images/flexi-capture/connectors/Pega200.png" />
    </Frame>
  </Step>
</Steps>

## Create an export profile for each Document Definition

<Steps>
  <Step title="Open the Document Definition">
    In the Project Setup Station, click **Project → Document Definitions** to open the list of Document Definitions available for the project. Select the Document Definition you want to specify new export settings for, and then click **Edit**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega201.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=63e622482df65366a8b6558461505369" alt="Screenshot of the ABBYY FlexiCapture Project Setup Station Document Definitions dialog listing the Banking, Contract, Invoice, Letter, and Price Document Definitions with the Edit button." width="408" height="405" data-path="images/flexi-capture/connectors/Pega201.png" />
    </Frame>
  </Step>

  <Step title="Start the export profile wizard">
    Click **Document Definition → Export Settings**, and then click **Add**.
  </Step>

  <Step title="Select the destination type">
    On the **Select the Type of Destination** step:

    1. Select **Export to data files** from the **Type** drop-down list.
    2. Select the **Critical** option.
    3. Select **Errors are irrelevant** in the **Document condition** field.
    4. Click **Next**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/connectors/BP27.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=03f1c8d286a498f4a76d115cf7e55ccd" alt="Screenshot of the ABBYY FlexiCapture Export Destination Wizard Select the Type of Destination step, with Export to data files chosen as the Type, the Critical option selected, and Errors are irrelevant chosen as the Documents condition." width="471" height="424" data-path="images/flexi-capture/connectors/BP27.png" />
    </Frame>
  </Step>

  <Step title="Set the export path and file name">
    On the **Export Data to Files** step, make sure the **Export path** field is empty, specify a file name template, and then click **Next**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/connectors/BP28.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=622a03cd2c06af50066232dcd30c1ca3" alt="Screenshot of the ABBYY FlexiCapture Export Destination Wizard Export Data to Files step, with an empty Export path field and a filename template based on the document identifier." width="471" height="424" data-path="images/flexi-capture/connectors/BP28.png" />
    </Frame>
  </Step>

  <Step title="Select the file format">
    On the **Data File Format** step, select **XML Document** in the **File type** field, and then click **Next**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega202.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=26662a40d60adc714885e53033733588" alt="Screenshot of the ABBYY FlexiCapture Export Destination Wizard Data File Format step, with XML Document selected as the File type and UTF8 chosen as the encoding." width="433" height="392" data-path="images/flexi-capture/connectors/Pega202.png" />
    </Frame>
  </Step>

  <Step title="Name the export profile">
    Provide a name for your new export profile and click **Finish**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega203.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=a4e6c0c1712fd23746a11f48750da248" alt="Screenshot of the ABBYY FlexiCapture Export Destination Wizard Select the Destination Name step, with Export to XML entered in the Name field." width="440" height="397" data-path="images/flexi-capture/connectors/Pega203.png" />
    </Frame>
  </Step>

  <Step title="Enable the export profile">
    In the **Export Settings** dialog box, select the box next to the new export profile in the **Enabled** column. Click **Apply**, and then click **OK**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega204.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=d5a2958b49863eb4dec21e01220b318c" alt="Screenshot of the ABBYY FlexiCapture Export Settings dialog with the Export to XML destination selected and its Enabled box checked, showing XML Document as the data format." width="520" height="508" data-path="images/flexi-capture/connectors/Pega204.png" />
    </Frame>
  </Step>

  <Step title="Publish the Document Definition">
    Save and publish your Document Definition.
  </Step>
</Steps>
