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

# ProcessingStage

> Reference for the ProcessingStage table in the ABBYY FlexiCapture reports database: columns defining workflow stages, their order, type, and batch settings.

## <a id="start" />Purpose

Contains a list of processing stages.

[Diagram of relationships between routing tables](/flexi-capture/reports/database/routing)

[Diagram of relationships between access control tables](/flexi-capture/reports/database/users-reports-database)

## List of columns

<table width="100%"><tbody><tr><td><p><strong>Key</strong></p></td><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Required</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>PK</p></td><td><p><a id="id" />Id</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Identifier of a processing stage.</p></td></tr><tr><td rowspan="14"> </td><td><p>BatchTypeId</p></td><td><p>int</p></td><td><p>no</p></td><td><p>Batch type identifier. Corresponds to the entry identifier in the <a href="/flexi-capture/reports/database/batch-type">BatchType</a> table.</p></td></tr><tr><td><p>CleanupDocuments</p></td><td><p>bit</p></td><td><p>yes</p></td><td><p>Indicates that documents have been automatically deleted during the "Processed" stage.</p></td></tr><tr><td><p>CleanupDocumentsDelay</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Delay (in hours) before documents are automatically deleted during the "Processed" stage.</p></td></tr><tr><td><p>DocumentsPerTask</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Maximum amount of documents in a task created for the stage.</p></td></tr><tr><td><p>Enabled</p></td><td><p>bit</p></td><td><p>yes</p></td><td><p>Indicates that the stage was included in the workflow.</p></td></tr><tr><td><p><a id="externalid" />ExternalId</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Stage identifier for synchronization with client applications. Unique in a batch type.</p></td></tr><tr><td><p>IsExceptionStage</p></td><td><p>bit</p></td><td><p>yes</p></td><td><p>Indicator of the <strong>Exceptions</strong> stage. The default value is 0.</p></td></tr><tr><td><p>Name</p></td><td><p>nvarchar</p></td><td><p>yes</p></td><td><p>Name of processing stage.</p></td></tr><tr><td><p>ParentId</p></td><td><p>int</p></td><td><p>no</p></td><td><p>Identifier of the parent processing stage.</p></td></tr><tr><td><p><a id="predefinedtype" />PredefinedType</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>The base type of a processing stage. Matches the processing stage type for predefined processing stages. For custom stage types, describes the predefined stage type that was used as a template during their creation.</p></td></tr><tr><td><p>ProjectId</p></td><td><p>int</p></td><td><p>no</p></td><td><p>Project identifier. Corresponds to the entry identifier in the <a href="/flexi-capture/reports/database/project-reports-database">Project</a> table.</p></td></tr><tr><td><p>StageOrder</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>The stage's processing order number.</p></td></tr><tr><td><p>Type</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Type of processing stage. Values for standard stage types are listed in <a href="/flexi-capture/reports/database/stage-type-enum">Processing stage types</a>.</p></td></tr><tr><td><p>WaitAllBatchDocs</p></td><td><p>bit</p></td><td><p>yes</p></td><td><p>Indicates that a batch must be processed completely during a certain stage before being transferred to the next stage.</p></td></tr></tbody></table>

[Back to top](/flexi-capture/reports/database/processing-stage-reports-database#start)
