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

# FetchingCapturedData

> 単一文書のケース向けに FetchingCapturedData Pega アクティビティを設定し、抽出された JSON を取得するために FlexiCapture を呼び出して、データ変換を適用します。

アクティビティの作成の詳細については、[Pega アクティビティの作成](/ja/flexi-capture/connectors/pega/pega-activity-create)を参照してください。

<div id="pages-classes">
  ## ページとクラス
</div>

| **ページ名** | **クラス** |
| -------- | ------- |
| Case     | Work-   |

<div id="parameters">
  ## パラメーター
</div>

| **名前**        | **データ型** | **必須** |
| ------------- | -------- | ------ |
| CaseId        | String   | はい     |
| jsonData      | String   | いいえ    |
| executionMode | String   | いいえ    |

<div id="steps">
  ## 手順
</div>

ステップ 1:

**メソッド**: Obj-Open-By-Handle.

**Step page**: Case.

**InstanceHandle**: Param.CaseId.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega119.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=cc4fd913220489bd1eb8e02cbcc261a1" alt="Pega の FetchingCapturedData アクティビティ のスクリーンショット。Case の Step page で Obj-Open-By-Handle メソッドを使用し、InstanceHandle が Param.CaseId に設定されているステップ 1 を示しています。" width="1122" height="331" data-path="images/flexi-capture/connectors/Pega119.png" />
</Frame>

ステップ 2:

**メソッド**: Property-Set.

| **PropertiesName**  | **PropertiesValue**                   |
| ------------------- | ------------------------------------- |
| Param.jsonData      | @ABBYY.FetchingCapturedData(.BatchId) |
| Param.executionMode | DESERIALIZE                           |

詳細は、[FetchingCapturedData](/ja/flexi-capture/connectors/pega/pega-func-one-doc#fetchingcaptureddata)を参照してください。

**Jump**:

| **When**       | **if true**        | **true param** | **if false**       | **false param** |
| -------------- | ------------------ | -------------- | ------------------ | --------------- |
| StepStatusFail | Jump to Later Step | ERR            | Jump to Later Step | OK              |

**On exception, jump to later step label**: ERR.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega120.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=e97dbc72a5667595760607cc8da34084" alt="Pega の FetchingCapturedData アクティビティ のスクリーンショット。Property-Set メソッドを使用し、Param.jsonData を @ABBYY.FetchingCapturedData(.BatchId) に、Param.executionMode を DESERIALIZE に設定しているステップ 2 を示しています。" width="1123" height="240" data-path="images/flexi-capture/connectors/Pega120.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega121.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=eb7140b9d8fe23a95fa01f458c4d0cee" alt="Pega のステップ 2 の Jump Conditions dialog のスクリーンショット。StepStatusFail 条件で、true の場合はラベル ERR に、false の場合はラベル OK にジャンプし、例外時のラベルが ERR に設定されていることを示しています。" width="1021" height="298" data-path="images/flexi-capture/connectors/Pega121.png" />
</Frame>

ステップ 3:

**Label**: ERR.

**メソッド**: Page-Set-Messages.

**Message**: @unescapeHTML(@getWorstMessageName(tools)).

**Jump**:

| **When** | **if true**   | **true param** | **if false** | **false param** |
| -------- | ------------- | -------------- | ------------ | --------------- |
| true     | Exit Activity |                |              |                 |

詳細は、[unescapeHTML](/ja/flexi-capture/connectors/pega/pega-func-other)を参照してください。

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega122.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=3b441e05344815afc6aa9c1d8c3e8d6c" alt="Pega の FetchingCapturedData アクティビティ のスクリーンショット。ERR というラベルが付いたステップ 3 で、Page-Set-Messages メソッドが使用され、Message パラメーターが @unescapeHTML(@getWorstMessageName(tools)) に設定されていることを示しています。" width="869" height="190" data-path="images/flexi-capture/connectors/Pega122.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega123.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=d9e866ee0a04e7250377cad6d0546da7" alt="Pega のステップ 3 の Jump Conditions dialog のスクリーンショット。When 条件 true が Exit Activity に設定されていることを示しています。" width="1000" height="296" data-path="images/flexi-capture/connectors/Pega123.png" />
</Frame>

ステップ 4:

**Label**: OK.

**メソッド**: Apply-DataTransform.

**DataTransform**: JsonToInvoiceWithVerificationFields.

**PassParameterPage**: true.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega124.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=6ef1fadf242e41298a3d1a097c0efd45" alt="Pega の FetchingCapturedData アクティビティ のスクリーンショット。OK というラベルが付いたステップ 4 で、Apply-DataTransform メソッド、JsonToInvoiceWithVerificationFields に設定された DataTransform パラメーター、および選択された PassParameterPage を示しています。" width="1116" height="203" data-path="images/flexi-capture/connectors/Pega124.png" />
</Frame>

データ変換の作成について詳しくは、[単一文書処理 Case 用データ変換の作成](/ja/flexi-capture/connectors/pega/pega-dt-one-doc)を参照してください。
