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

# Document

> The Document object — properties of the document being processed in a Condition activity, including fields, pages, classification results, and source files.

`Document` represents the document currently being processed in a Condition activity.

<Note>
  Depending on which processing stages have completed, some properties may return empty values. For example, only `DocumentId` and `SourceFiles` are populated before any skill is applied. `ResultClass` is populated after a Classification skill runs. `Fields` is populated after extraction.
</Note>

## Properties

| Name                       | Type                                                                                                 | Access    | Description                                                                                                               |
| :------------------------- | :--------------------------------------------------------------------------------------------------- | :-------- | :------------------------------------------------------------------------------------------------------------------------ |
| **ClassConfidences**       | [ClassConfidence](/vantage/documentation/skill-designer/process/condition-activity/class-confidence) | Read-only | The confidence values for each class. `null` if the document wasn't classified.                                           |
| **DocumentId**             | string                                                                                               | Read-only | The unique document identifier.                                                                                           |
| **DocumentSkillId**        | string                                                                                               | Read-only | The identifier of the skill applied to the document. If several stages have run, this is the most recently applied skill. |
| **DocumentSkillName**      | string                                                                                               | Read-only | The name of the skill applied to the document. If several stages have run, this is the most recently applied skill.       |
| **Fields**                 | [Field](/vantage/documentation/skill-designer/process/condition-activity/field)\[]                   | Read-only | Fields detected on the document. Populated only after a Document skill runs.                                              |
| **HasSuspiciousSymbols**   | bool                                                                                                 | Read-only | `true` if the document contains at least one field with characters recognized with low confidence.                        |
| **IsResultClassConfident** | bool                                                                                                 | Read-only | `true` if the document's class was determined with confidence.                                                            |
| **IsUnknownSkill**         | bool                                                                                                 | Read-only | Whether the document class (and therefore the Document skill) has been determined.                                        |
| **Pages**                  | [Page](/vantage/documentation/skill-designer/process/condition-activity/page)\[]                     | Read-only | The pages of the document.                                                                                                |
| **ResultClass**            | string                                                                                               | Read-only | The class assigned by the Classification skill. `null` if the document wasn't classified.                                 |
| **ResultClassId**          | string                                                                                               | Read-only | The identifier of the class assigned by the Classification skill. `null` if not classified.                               |
| **RuleErrors**             | [RuleError](/vantage/documentation/skill-designer/process/condition-activity/rule-error)\[]          | Read-only | Field extraction validation rule errors.                                                                                  |
| **SourceFiles**            | [SourceFile](/vantage/documentation/skill-designer/process/condition-activity/source-file)\[]        | Read-only | Document source files.                                                                                                    |

<Note>
  `ClassConfidences` and `IsResultClassConfident` are populated only when a Classification skill has been applied.
</Note>

## Related topics

<CardGroup cols={3}>
  <Card title="Transaction" icon="exchange" href="/vantage/documentation/skill-designer/process/condition-activity/transaction">
    The current processing transaction and its documents.
  </Card>

  <Card title="Field" icon="font" href="/vantage/documentation/skill-designer/process/condition-activity/field">
    Properties for reading a document field's value, type, and OCR metadata.
  </Card>

  <Card title="Page" icon="file" href="/vantage/documentation/skill-designer/process/condition-activity/page">
    Properties of a single document page.
  </Card>

  <Card title="SourceFile" icon="file-import" href="/vantage/documentation/skill-designer/process/condition-activity/source-file">
    Represents a source file of the document being processed.
  </Card>

  <Card title="ClassConfidence" icon="gauge" href="/vantage/documentation/skill-designer/process/condition-activity/class-confidence">
    A class-confidence pair returned after a Classification skill runs.
  </Card>

  <Card title="Object model" icon="diagram-project" href="/vantage/documentation/skill-designer/process/condition-activity/object-model">
    Full JavaScript object reference for Condition activity scripts.
  </Card>
</CardGroup>
