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

# Integrating the verification stage

> Embed the ABBYY FlexiCapture Web Verification Station in a third-party system via an iframe, passing project, role, stage, task, and language URL parameters.

The instructions provided in this section assume that Windows authentication is used. Alternatively, you can use FlexiCapture or SAML authentication.

To load the Verification Station GUI and functionality into the `<iframe>` element, set the `src` attribute to:

```
<stationUrl>/WinAuth/Verify?projectId=[project identifier]&roleId=[role identifier]&stageId=[stage identifier]&disableSendToStage=false&hideTaskInfo=false&disableChangeDefinition=false&taskId=[task identifier]&loadInColor=true&returnTo=DeadEnd&mode=mini&language=en-Us
```

where:

<table width="100%" style={{tableLayout:"fixed"}}><colgroup><col style={{width:"30%"}} /><col style={{width:"15%"}} /><col style={{width:"55%"}} /></colgroup><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Required</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p><code>\<stationUrl></code></p></td><td><p>Yes</p></td><td><p>The address of the Verification Station to be accessed by the third-party system. The default value is <code>\<serverName>/FlexiCapture12/Verification</code>.</p></td></tr><tr><td><p><code>WinAuth</code></p></td><td><p>No</p></td><td><p>Windows authentication parameter.</p></td></tr><tr><td><p><code>projectId</code></p></td><td><p>Required if <code>taskId </code>is not specified</p></td><td><p>The ID of the project. If only project ID is specified, a random task will be taken from among the tasks available in this project.</p></td></tr><tr><td><p><code>roleId</code></p></td><td><p>No</p></td><td><p>The ID of the Operator’s role. This parameter is not dependent on any of the other parameters. If no role ID is specified, the top-most role allowed for the user will be used for the task.</p></td></tr><tr><td><p><code>stageId</code></p></td><td><p>No</p></td><td><p>The ID of the stage from which to take the task.</p></td></tr><tr><td><p><code>disableSendToStage</code></p></td><td><p>No</p></td><td><p>If this parameter is set to <code>true</code>, the user will not have the option to send tasks to processing of his choice stage. The default setting is <code>false</code>, i.e. the <strong>Send Task to Stage...</strong> button is displayed in the GUI.</p></td></tr><tr><td><p><code>hideTaskInfo</code></p></td><td><p>No</p></td><td><p>If this parameter is set to <code>true</code>, the user will not have the option to view the information about the current batch. The default setting is <code>false</code>, i.e. the <strong>Batch Information</strong> button is displayed in the GUI.</p></td></tr><tr><td><p><code>disableChangeDefinition</code></p></td><td><p>No</p></td><td><p>If this parameter is set to <code>true</code>, the user will not have the option to change page sections, Document Definitions, or recognition settings. The default setting is <code>false</code>, i.e. all the corresponding buttons are displayed in the GUI.</p></td></tr><tr><td><p><code>taskId</code></p></td><td><p>Required if <code>projectId </code>is not specified</p></td><td><p>The ID of the task that requires verification. If this parameter is not specified, a random task that meets the other parameters will open.</p></td></tr><tr><td><p><code>loadInColor</code></p></td><td><p>No</p></td><td><p>Determines the color scheme of the image that is being loaded. If this parameter is set to <code>true</code>, a color image will be loaded. If this parameter is set to <code>false</code>, a black-and-white image will be loaded.</p><p><strong>Note: </strong> If this parameter is not specified, the color scheme of the image will be determined by the settings of the Verification Station.</p></td></tr><tr><td><p><code>returnTo=DeadEnd</code></p></td><td><p>No</p></td><td><p>Directs the user to the final page once the task is processed. The user will not be able to continue working with the integrated Verification Station.</p></td></tr><tr><td><p><code>mode=mini</code></p></td><td><p>No</p></td><td><p>Switches the page to minimal mode (the station's header and footer will not be displayed).</p></td></tr><tr><td><p><code>language=en-Us</code></p></td><td><p>No</p></td><td><p>Sets the UI language for the Verification Station:</p><ul><li><code>en-Us</code> - English (USA)</li><li><code>en-GB</code> - English (United Kingdom)</li><li><code>ru</code> - Russian</li><li><code>de</code> - German</li><li><code>fr</code> - French</li><li><code>es</code> - Spanish</li><li><code>pt-BR</code> – Portuguese (Brazil)</li><li><code>ko</code> - Korean</li><li><code>ja</code> - Japanese</li><li><code>pl</code> - Polish</li><li><code>cs</code> - Czech</li><li><code>hu</code> - Hungarian</li><li><code>it</code> - Italian</li><li><code>zh-Hans</code> – Chinese (Simplified)</li><li><code>zh-Hant</code> – Chinese (Traditional)</li></ul><p><strong>Note: </strong>  This parameter can be used to change the UI language on the station. In this case, the link contains only the language parameter, e.g. <code>\<stationUrl>/WinAuth/Verify?language=\<language code></code>.</p><p><strong>Note: </strong>  If the language code is specified incorrectly, the current language settings will not be modified.</p></td></tr></tbody></table>

Users will interact with the integrated Verification Station in the same manner they interact with non-integrated Verification Stations in the standard processing scenario. A customized menu is used for forwarding tasks to the next stage and for exiting the integrated Verification Station.

You can set up the integrated Verification Station by editing the keys in the `<appSettings>` section of the `Web.config` file. To disable a menu item, set the corresponding key to `true`:

* `DisableSendToRescan` – sends a task to the Re-scanning stage
* `DisableTaskPostponement` – postpones a task
* `DisableSendToStage` – sends a task to a specific stage
* `DisableSendToExceptions` – sends a task to Exceptions

We recommend disabling the display of the Verification Station header and footer. This will ensure that the user can only access a specific batch and will not see the program features unrelated to the task at hand. This can be achieved by adding the suffix `?mode=mini` to the URL or by setting the `Headless` key to `true`.

When the user finishes processing the task and exits the integrated Verification Station, the `postMessage` method is used to pass one of the following messages to the parent element:

* `FC_Verification_TaskClosed` – The task was closed and sent to the Export stage.
* `FC_Verification_TaskSentToStage` – The task was sent to another stage.
* `FC_Verification_TaskSentToExceptions` – The task was sent to Exceptions.
* `FC_Verification_TaskPostponed` – The task was postponed.
* `FC_Verification_TaskSentToRescan` – The task was sent to the Re-scanning stage.
* `FC_Verification_CantGetTask` – The program failed to get the task for some reason.
* `FC_Verification_TaskRejected` – The task was rejected.

## Sample code for receiving a message from the parent element

```javascript theme={null}
window.addEventListener("message", receiveMessage, false);

function receiveMessage(event) {
  alert("Received event: " + event.data);
}
```

Once the message from the `<iframe>` element is processed, the integrated Verification Station can be closed down so that the user can resume his/her work with the third-party system.
