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

# オブジェクト モデル

> ABBYY Vantage におけるカスタム アクティビティ スクリプトの制限事項とオブジェクト モデル。

このページでは、カスタム アクティビティ スクリプトの制限事項を説明し、Vantage の JavaScript 環境で使用できるオブジェクトと列挙型を一覧で示します。

<div id="script-restrictions">
  ## スクリプトの制限
</div>

Vantage の JavaScript インタープリターは、ECMAScript 5.1 と、それ以降の一部機能をサポートしています。詳細については、[Jint ECMAScript features](https://github.com/sebastienros/jint#supported-features)を参照してください。

スクリプトでは、カスタム関数を定義し、`Context` インターフェイスを通じて Vantage のデータ カタログにアクセスし、`Context` インターフェイスを通じて外部サービスにリクエストを送信できます。

<Note>
  スクリプトでは、次のことはできません。

  * Vantage のデータ カタログ以外のデータベースにリクエストを送信すること。
  * jQuery などのサードパーティ ライブラリを使用すること。
</Note>

暴走するスクリプトを防ぐため、カスタム スクリプトにはメモリ、ランタイム、コマンド数、再帰の深さに関する制限があります。いずれかの制限を超えると、処理はエラーで中断されます。既定値はサーバー管理者が設定します。現在の既定値は次のとおりです。

| 制限             | 既定の上限                          |
| :------------- | :----------------------------- |
| メモリ            | 500 MB                         |
| スクリプトのランタイム    | トランザクション内の文書ページの総数 × 600 秒     |
| 式              | トランザクション内の文書ページの総数 × 1,000,000 |
| 最大再帰深度         | 100                            |
| 最大配列サイズ        | 50,000                         |
| 最大 HTTP リクエスト数 | トランザクション内の文書ページの総数 × 200       |

<div id="error-handling">
  ## エラー処理
</div>

* スクリプトで構文エラーが検出されると、カスタム アクティビティのトランザクションは中断されます。エラーは **Skill Monitor** に表示されます。
* スクリプトの実行中に例外がスローされると、スクリプトとトランザクションの両方が中断されます。エラーは **Skill Monitor** に表示されます。
* `try`/`catch` でプログラム例外をキャッチした場合、エラー処理はスクリプトの実装に委ねられます。

<Warning>
  スクリプトの制限を超過したことが原因のエラーは捕捉されません。このような場合、スクリプトとトランザクションの両方が中断されます。
</Warning>

<div id="object-reference">
  ## オブジェクト リファレンス
</div>

<div id="execution-context">
  ### 実行コンテキスト
</div>

* [Context](/ja/vantage/documentation/skill-designer/process/custom-activity/context)
* [トランザクション](/ja/vantage/documentation/skill-designer/process/custom-activity/transaction)
* [Parameter](/ja/vantage/documentation/skill-designer/process/custom-activity/parameter)

<div id="documents-and-fields">
  ### ドキュメントと field
</div>

* [Document](/ja/vantage/documentation/skill-designer/process/custom-activity/document)
* [Field](/ja/vantage/documentation/skill-designer/process/custom-activity/field)
* [ページ](/ja/vantage/documentation/skill-designer/process/custom-activity/page)
* [Region](/ja/vantage/documentation/skill-designer/process/custom-activity/region)
* [Rectangle](/ja/vantage/documentation/skill-designer/process/custom-activity/rectangle)
* [BinaryFile](/ja/vantage/documentation/skill-designer/process/custom-activity/binary-file)
* [DocumentExportResult](/ja/vantage/documentation/skill-designer/process/custom-activity/document-export-result)

<div id="classification-and-validation">
  ### 分類と検証
</div>

* [ClassConfidenceModel](/ja/vantage/documentation/skill-designer/process/custom-activity/class-confidence-model)
* [RuleError](/ja/vantage/documentation/skill-designer/process/custom-activity/rule-error)

<div id="http">
  ### HTTP
</div>

* [HttpRequest](/ja/vantage/documentation/skill-designer/process/custom-activity/http-request)
* [MultipartFormDataRequest](/ja/vantage/documentation/skill-designer/process/custom-activity/multi-part-form-data-request)

<div id="enumerators">
  ### 列挙型
</div>

* [DataType](/ja/vantage/documentation/skill-designer/process/custom-activity/data-type)
* [FieldOcrType](/ja/vantage/documentation/skill-designer/process/custom-activity/field-ocr-type)
* [ExportFormat](/ja/vantage/documentation/skill-designer/process/custom-activity/export-format)
* [ContentEncoding](/ja/vantage/documentation/skill-designer/process/custom-activity/content-encoding)

<div id="deprecated-interfaces-and-enumerators">
  ### 非推奨のインターフェイスと列挙型
</div>

| 非推奨                                                                                                | 置き換え先                                                                                                 |
| :------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------- |
| [InputData](/ja/vantage/documentation/skill-designer/process/custom-activity/input-data)           | [Transaction.Documents](/ja/vantage/documentation/skill-designer/process/custom-activity/transaction) |
| [OutputData](/ja/vantage/documentation/skill-designer/process/custom-activity/output-data)         | [Transaction.Documents](/ja/vantage/documentation/skill-designer/process/custom-activity/transaction) |
| [ExtractedData](/ja/vantage/documentation/skill-designer/process/custom-activity/extracted-data)   | [Document](/ja/vantage/documentation/skill-designer/process/custom-activity/document)                 |
| [ExtractedField](/ja/vantage/documentation/skill-designer/process/custom-activity/extracted-field) | [Field](/ja/vantage/documentation/skill-designer/process/custom-activity/field)                       |
| [FieldType](/ja/vantage/documentation/skill-designer/process/custom-activity/field-type)           | [FieldOcrType](/ja/vantage/documentation/skill-designer/process/custom-activity/field-ocr-type)       |

<div id="related-topics">
  ## 関連トピック
</div>

* [カスタム アクティビティ](/ja/vantage/documentation/skill-designer/process/custom-activity/custom-activity)
* [サンプルスクリプト](/ja/vantage/documentation/skill-designer/process/custom-activity/sample-scripts)
* [Context](/ja/vantage/documentation/skill-designer/process/custom-activity/context)
