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

# Rule Settings ダイアログ

> ABBYY FlexiCapture の Rule Settings ダイアログでルーティング rule を設定し、標準 rule または script を使用して終了ルートと開始条件を定義します。

[Workflow setup](/ja/flexi-capture/project-settings/workflow-project-settings) の Advanced モードでは、rule を使用して、ステージの終了ルートと開始条件を指定できます。

タスクが後続のステージに送られる条件と、documents がそのステージに受け入れられる条件の両方を指定できます。

送信 rule は、[Workflow Stage Properties](/ja/flexi-capture/project-settings/stage-settings) の Exit Routes tab でステージを追加または編集したときに表示される Next Stage ダイアログで設定します。

documents がそのステージに受け入れられる条件を指定する rule は、[Workflow Stage Properties](/ja/flexi-capture/project-settings/stage-settings) の Entry Conditions tab で設定します。

終了ルートと開始条件は、標準 rule または [Stage rule](/ja/flexi-capture/appendix/scripts/script-routing) script のいずれかで指定できます。

新しい rule を追加するには、Rule... ボタンをクリックします。rule を編集するには、Edit... をクリックします。

Rule Settings ダイアログには、次の field があります。

<table width="100%">
  <thead>
    <tr>
      <th>
        <p>
          <strong>field</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>説明</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>Name</p>
      </td>

      <td>
        <p>rule の名前です。</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>条件の型</p>
      </td>

      <td>
        <p>次の型のいずれかを選択できます。</p>

        <ul>
          <li>標準 rule</li>
          <li>Script</li>
        </ul>
      </td>
    </tr>

    <tr>
      <td colspan="2">
        <p>
          <em>Standard rule</em><em> 条件の型の場合:</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>次の場合に rule を適用</p>
      </td>

      <td>
        <p>次のいずれかを選択します。</p>

        <ul>
          <li>条件が満たされる</li>
          <li>条件が満たされない</li>
        </ul>
      </td>
    </tr>

    <tr>
      <td>
        <p>条件</p>
      </td>

      <td>
        <p>次の条件のいずれかを選択します。</p>

        <ul>
          <li>task が正常に処理された</li>
          <li>Verification 対象の文字数が式を満たす</li>
          <li>Verification 対象の文字の割合が式を満たす</li>
          <li>必須 Verification 対象の field 数が式を満たす</li>
          <li>二重 Verification 対象の文字数が式を満たす</li>
          <li>rule errors がある</li>
          <li>assembly errors がある</li>
          <li>batch integrity errors がある</li>
          <li>field 値が式を満たす</li>
        </ul>

        <p>
          式を含む条件では、基準値を入力し、確認対象の値が入力した値と比べて、等しい、等しくない、より小さい、以下、より大きい、以上のいずれであるかを選択します。
        </p>

        <p>
          \[field 値が式を満たす] 条件では、値を基準値と比較する field も選択します。これを行うには、Choose... ボタンをクリックし、一覧から field を選択します。
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="2">
        <p>
          <em>Script</em><em> 条件の型の場合:</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>Script...</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/interface/script-editor">スクリプト エディター ウィンドウ</a>を開き、そこで<a href="/ja/flexi-capture/appendix/scripts/script-routing">stage rule</a> を編集できます。スクリプト エディターを閉じると、保存された script コードが Rule Settings ウィンドウ内の Script... ボタンの左側に表示されます。
        </p>
      </td>
    </tr>
  </tbody>
</table>
