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

# For Each Document アクティビティ

> For Each Document アクティビティを使用すると、内部のアクティビティをトランザクション内のドキュメント1件ずつに対して実行できます。

For Each Document アクティビティは、内部のアクティビティをトランザクション内のドキュメント1件ずつに対して実行するコンテナーです。この中には次のいずれかのアクティビティを配置できます:

* [Extract アクティビティ](/ja/vantage/documentation/skill-designer/process/extract-activity)
* [Classify アクティビティ](/ja/vantage/documentation/skill-designer/process/classify-activity)
* [OCR アクティビティ](/ja/vantage/documentation/skill-designer/process/ocr-activity)
* [カスタム アクティビティ](/ja/vantage/documentation/skill-designer/process/custom-activity/custom-activity)
* [Condition アクティビティ](/ja/vantage/documentation/skill-designer/process/condition-activity/condition-activity)

<Note>
  For Each Document アクティビティ内に他の種類のアクティビティを配置することはできず、For Each Document アクティビティを入れ子にすることもできません。
</Note>

<Frame caption="Condition アクティビティ と、その下流にある Extract アクティビティ および カスタム アクティビティ を含む For Each Document アクティビティ">
  <img src="https://mintcdn.com/abbyy/vsKEkGDuRLNqo_T3/images/vantage/skill-designer/screen_procskill_activity_foreach.png?fit=max&auto=format&n=vsKEkGDuRLNqo_T3&q=85&s=e94f3eee2901fd5dea4e354cdca3f952" alt="Process skill エディター内の For Each Document アクティビティ" width="953" height="254" data-path="images/vantage/skill-designer/screen_procskill_activity_foreach.png" />
</Frame>

通常の Process skill のワークフローでは、各トランザクションに対して1つの documents コレクションが存在します。For Each Document アクティビティ内では、そのコレクションはドキュメントごとに1つのコレクションに分割され、コンテナーはそれらを順に処理します。上記の例では、各トランザクションのドキュメントは Condition アクティビティ によって個別に評価され、その後 Extract アクティビティ または カスタム アクティビティ のいずれかに振り分けられます。

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

* [Extract アクティビティ](/ja/vantage/documentation/skill-designer/process/extract-activity)
* [Classify アクティビティ](/ja/vantage/documentation/skill-designer/process/classify-activity)
* [OCR アクティビティ](/ja/vantage/documentation/skill-designer/process/ocr-activity)
* [カスタム アクティビティ](/ja/vantage/documentation/skill-designer/process/custom-activity/custom-activity)
* [Condition アクティビティ](/ja/vantage/documentation/skill-designer/process/condition-activity/condition-activity)
* [Process skill を設定する](/ja/vantage/documentation/skill-designer/process/set-up)
