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

# TStateType

> Track FlexiCapture document states with TStateType: preprocessed, recognized, assembled, verified, exported, and layout flags in state change events.

## What it does

Types of document states. Used in the event [Document state changed](/flexi-capture/appendix/scripts/documentstate-change). The **ChangedState** parameter of this event can be used to get information on possible changes of each state type.

## Admissible values:

* ST\_Preprocessed = 0 - Whether the document is preprocessed. The value can be changed only from **false** to **true**.
* ST\_Analyzed = 1 - Whether the document is analyzed
* ST\_Recognized = 2 - Whether the document is recognized (a document is considered recognized if there is at least one recognized section in it)
* ST\_HasErrors = 3 - Whether the document has errors (including format errors)
* ST\_Assembled = 4 - Whether the document is assembled
* ST\_Verifyed = 5 - Whether the document is verified completely
* ST\_Exported = 6 - Whether the document is exported
* ST\_HasLayout = 7 - Whether the document has a layout. (In analyzed document a layout can also be missing, e.g., if the page has an unknown type.)
