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

# 文書処理設定の構成

> UiPath の検証シナリオ向けに高度な FlexiCapture workflow を構築します。Web Station を有効にし、script stage を追加して、WasVerified parameter にタグを付けます。

ABBYY FlexiCaptureのworkflowは、バッチタイプごとに個別に構成することも、"Default" バッチタイプに対して構成することもできます。workflowを構成するには、次の手順に従います。

1. Project Setup Stationで、**Project → Project Properties…** ("Default" バッチタイプを構成する場合) または **Project → Batch types → Edit...** (特定のバッチタイプを構成する場合) をクリックします。
2. **Project Name Properties** ダイアログの **Workflow** タブで、workflow schema を **Simple** から **Advanced** に変更します。
3. 同じタブでverification stageを選択し、**Edit...** ボタンをクリックして **Workflow Stage Properties** ダイアログを開きます。次に、**General** タブで **Enable web stations** オプションを選択します。変更を保存するには **OK** をクリックします。
4. **Project Name Properties** ダイアログの **Workflow** タブに戻り、**Stage...** ボタンをクリックして新しいstageを追加します。**Create Processing Stage** ダイアログで **Automatic** を選択し、**OK** をクリックします。
5. **Workflow Stage Properties** ダイアログで、新しいstageの名前を入力し、**Wait for all documents of a batch** オプションが選択されていることを確認して、**Linked to previous** オプションを選択します。
6. **Script** タブで、**Type** ドロップダウンリストから **Document processing** を選択します。
7. 同じタブで、**Edit script…** ボタンをクリックし、次のscript codeを入力します。
   Document.Properties.Set("WasVerified", bool.TrueString);
   このscriptは、処理済みの各documentに、そのdocumentがverification stageを通過したかどうかを示すregistration parameterを追加します。
8. **Entry Conditions** タブで、**Under these conditions** を選択し、**Rule...** ボタンをクリックして、documentsを新しく作成したstageに送る条件を指定します。
9. **Rule Settings** ダイアログで、**Name** field に新しいruleの名前を入力します。次に、**Condition type** ドロップダウンリストから **Script,** を選択し、**Script…** ボタンをクリックして、次のscript codeを入力します。
   Result.CheckSucceeded = (Document.StageInfo.StageName == "Verification Postprocessing" || Document.StageInfo.StageName == "Verification");
   このscriptは、新しいstageの入力条件を設定します。documentがverification stageから送られてきた場合、そのdocumentは新しいstageに受け入れられ、"WasVerified" registration parameter が付与されます。
10. 新しく構成したruleと新しいscript stageを保存します。
    **Important!** 新しいscript stageは、verification stageの直後に配置する必要があります。
