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

# Configuring the ABBYY FlexiCapture workflow

> Configure the ABBYY FlexiCapture Advanced workflow for Blue Prism: enable web stations and add an automatic stage after verification that flags documents.

The ABBYY FlexiCapture workflow can be configured either for each batch type separately or for the "Default" batch type. To configure the workflow:

1. On the Project Setup Station, either click **Project → Project Properties…** (if you want to configure the "Default" batch type) or click **Project → Batch types → Edit...** (if you want to configure a particular batch type).
2. On the **Workflow** tab of the **Project Name Properties** dialog box, change the workflow schema from **Simple** to **Advanced**.
3. On the same tab, select the verification stage and click the **Edit...**. button to open the **Workflow Stage Properties** dialog box and on the **General** tab, select the **Enable web stations** option. Click **OK** to save the changes.
4. Return to the **Workflow** tab in the **Project Name Properties** dialog box and click the **Stage...** button to add a new stage. In the **Create Processing Stage** dialog box, select **Automatic** and click **OK**.
5. In the **Workflow Stage Properties** dialog box, provide a name for the new stage, make sure that the **Wait for all documents of a batch** option is selected, and select the **Linked to previous** option.
6. On the **Script** tab, select **Document processing** from the **Type** drop-down list.
7. On the same tab, click the **Edit script…** button and type in the following script code:\
   Document.Properties.Set("WasVerified", bool.TrueString);\
   This script adds a registration parameter to each processed document that indicates whether or not the given document has gone through the verification stage.
8. On the **Entry Conditions** tab, select **Under these conditions** and click the **Rule...** button to specify a condition when documents should be sent to the newly created stage.
9. In the **Rule Settings** dialog box, provide a name for the new rule in the **Name** field. Then from the **Condition type** drop-down list, select **Script,** click the **Script…** button and type in the following script code:\
   Result.CheckSucceeded = (Document.StageInfo.StageName == "Verification Postprocessing" || Document.StageInfo.StageName == "Verification");\
   This script sets the input condition for the new stage: If a document arrives from the verification stage, it will be admitted into the new stage and will be provided with a "WasVerified" registration parameter.
10. Save the newly configured rule and the new script stage.\
    **Important!** The new script stage must immediately follow the verification stage.

For a sample ABBYY FlexiCapture project configured for this scenario, see the "[Sample FlexiCapture project"](/flexi-capture/connectors/blue-prism/bp-proc-ver) section.
