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

# Component interaction

> Follow how ABBYY FlexiCapture components interact during processing, from client upload through the Application Server, Processing Stations, and export.

When a user feeds some document images to FlexiCapture via a mobile application or any other client (web or local):

1. The user’s client application connects over HTTP/HTTPS to the Application Server asking for user authentication.
2. The user’s client application sends document images to the Application Server (sometimes together with additional information used by the Application Server to determine what processing settings should be applied).

<Frame>
  <img src="https://mintcdn.com/abbyy/mpS3pcxC_lkohQUS/images/flexi-capture/PG_Interaction1.png?fit=max&auto=format&n=mpS3pcxC_lkohQUS&q=85&s=f01c35ebed666784062327b0378478de" alt="Diagram of the client application sending document images to the Application Server, the second step of the FlexiCapture component-interaction flow." width="474" height="250" data-path="images/flexi-capture/PG_Interaction1.png" />
</Frame>

3. The Application Server saves these images to the FileStorage. In the Database, it creates a set of records:
   * A new document has arrived for processing
   * Current processing stage of this document
   * Processing settings to apply
   * A path to images of the document stored in the FileStorage

<Frame>
  <img src="https://mintcdn.com/abbyy/mpS3pcxC_lkohQUS/images/flexi-capture/PG_Interaction2.png?fit=max&auto=format&n=mpS3pcxC_lkohQUS&q=85&s=061ed5a98c296186da5e203f13302393" alt="Diagram of a client sending document images through the DMZ to the Application Server (Web Service), which saves the images to File Storage and creates the matching processing records in the Database, alongside the Licensing Server, Processing Server, and Processing Stations and the Customer's ERP system." width="473" height="250" data-path="images/flexi-capture/PG_Interaction2.png" />
</Frame>

4. The Processing Server regularly contacts the Application Server for new processing tasks. When it learns about a new document and settings to apply, it assigns a task to a free Processing Station.

<Frame>
  <img src="https://mintcdn.com/abbyy/mpS3pcxC_lkohQUS/images/flexi-capture/PG_Interaction3.png?fit=max&auto=format&n=mpS3pcxC_lkohQUS&q=85&s=2b2f30b1acca870223da435ccf3ca10c" alt="Diagram of the Processing Server assigning a new task to a free Processing Station, the fourth step of the FlexiCapture component-interaction flow." width="473" height="250" data-path="images/flexi-capture/PG_Interaction3.png" />
</Frame>

5. The Processing Station gets more task details from the Application Server, including:
   * Document images
   * A set of processing operations to perform
   * Processing settings to apply

<Frame>
  <img src="https://mintcdn.com/abbyy/mpS3pcxC_lkohQUS/images/flexi-capture/PG_Interaction4.png?fit=max&auto=format&n=mpS3pcxC_lkohQUS&q=85&s=3f2682e81c7fffd435f618bede6b24e3" alt="Diagram of the Processing Station retrieving task details from the Application Server, highlighting the flow from the Application Server out to the Processing Stations within the ABBYY FlexiCapture Servers in the DMZ, with the Database, File Storage, Licensing Server, and Processing Server also shown." width="473" height="250" data-path="images/flexi-capture/PG_Interaction4.png" />
</Frame>

6. Once processing is complete, the results arrive at the Application Server, where the corresponding data is modified in the FileStorage and the document status in the Database is updated.

<Frame>
  <img src="https://mintcdn.com/abbyy/mpS3pcxC_lkohQUS/images/flexi-capture/PG_Interaction5.png?fit=max&auto=format&n=mpS3pcxC_lkohQUS&q=85&s=77483ad9a7e2130778bdde8ebaa43aba" alt="Diagram of processing results returning to the Application Server, which updates File Storage and the document status in the Database, the sixth step of the FlexiCapture component-interaction flow." width="467" height="247" data-path="images/flexi-capture/PG_Interaction5.png" />
</Frame>

7. The processed document can be reviewed “manually” by human verifiers if:
   * Processing settings and automated checks allow this
   * These people have certain access rights
   * They can use a verification client – local, web or mobile – specifically installed for this task

This client connects to the Application Server and receives document images and extracted data for verification. The verified data arrive to the Application Server: it modifies the corresponding data in the FileStorage, and updates the document status in the Database.

<Frame>
  <img src="https://mintcdn.com/abbyy/mpS3pcxC_lkohQUS/images/flexi-capture/PG_Interaction6.png?fit=max&auto=format&n=mpS3pcxC_lkohQUS&q=85&s=329565ef459d7b36285abb9f1c0ff794" alt="Diagram of a verification client exchanging document images and extracted data with the Application Server during manual verification." width="471" height="249" data-path="images/flexi-capture/PG_Interaction6.png" />
</Frame>

8. A fully processed document goes back to its Processing Station, where images and data are converted into the required formats and exported to the customer’s ERP system, and the Application Server is notified that the job is done.

<Frame>
  <img src="https://mintcdn.com/abbyy/mpS3pcxC_lkohQUS/images/flexi-capture/PG_Interaction7.png?fit=max&auto=format&n=mpS3pcxC_lkohQUS&q=85&s=ebd709f1589aa7ed4202e8b5ddefa0e9" alt="Diagram of a Processing Station converting the processed document and exporting it to the customer's ERP system, the final step of the FlexiCapture component-interaction flow." width="468" height="247" data-path="images/flexi-capture/PG_Interaction7.png" />
</Frame>

9. The Application Server marks the document as processed:
   * It collects processing statistics for this document – for each stage it has passed through
   * And records them in tables for generating processing reports
10. The processed document goes to the FileStorage and remains there until the end of the storage time set by the customer. The Application Server then deletes its images from the FileStorage and erases all records in the Database.

Generally speaking, the FlexiCapture components interact for both document processing and service tasks – for example, license checks.

<Frame>
  <img src="https://mintcdn.com/abbyy/krz5RorXCXcZNXDM/images/flexi-capture/schema_9.png?fit=max&auto=format&n=krz5RorXCXcZNXDM&q=85&s=f209f4859437c51b0481c9cdb93447c7" alt="Diagram of how ABBYY FlexiCapture components interact, with the Application Server (IIS) on HTTP 80 / HTTPS 443 at the center linking to SQL Server on TCP 1433, the Processing Server on TCP 10024, the License Server on TCP 3020, File Storage, and Processing Stations on TCP 10025, and reaching web applications, remote stations, and setup tools such as the Project Setup Station, Verification Station, FlexiLayout Studio, and FormDesigner." width="1223" height="901" data-path="images/flexi-capture/schema_9.png" />
</Frame>
