> ## 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 を取得し、対応するデータトランスフォームに分岐します。

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

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

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

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

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

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

Step 1:

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

**Stepページ**: Case.

**InstanceHandle**: Param.caseId.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega148.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=edf58a44aef0a09546dfa10358449c35" alt="Case の Stepページで Obj-Open-By-Handle メソッドを使用し、InstanceHandle を Param.caseId に設定した、Pega の FetchingCapturedData アクティビティの Step 1 のスクリーンショット。" width="1098" height="324" data-path="images/flexi-capture/connectors/Pega148.png" />
</Frame>

Step 2:

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

| **プロパティ名**          | **プロパティ値**                                                |
| ------------------- | --------------------------------------------------------- |
| Param.executionMode | DESERIALIZE                                               |
| Param.jsonData      | @ABBYY.FetchingCapturedData(.BatchId, Param.templateName) |

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

**ジャンプ**:

| **条件**                              | **true の場合** | **true パラメーター** | **false の場合** | **false パラメーター** |
| ----------------------------------- | ------------ | --------------- | ------------- | ---------------- |
| StepStatusFail                      | 後続のStepにジャンプ | ERR             | When の評価を続行   |                  |
| Param.templateName=="Invoice\_eng"  | 後続のStepにジャンプ | INVOICE         | When の評価を続行   |                  |
| Param.templateName=="Banking\_eng"  | 後続のStepにジャンプ | BANKING         | When の評価を続行   |                  |
| Param.templateName=="Contract\_eng" | 後続のStepにジャンプ | CONTRACT        | When の評価を続行   |                  |
| Param.templateName=="Letter\_eng"   | 後続のStepにジャンプ | LETTER          | When の評価を続行   |                  |
| Param.templateName=="Price\_eng"    | 後続のStepにジャンプ | PRICE           | Exit Activity |                  |

**例外時にジャンプする後続Stepのラベル**: ERR.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega149.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=28e65ccdd575fd32da470cb286bc4e45" alt="Param.executionMode を DESERIALIZE に、Param.jsonData を @ABBYY.FetchingCapturedData(.BatchId, Param.templateName) に設定した Property-Set メソッドを示す、Pega の FetchingCapturedData アクティビティの Step 2 のスクリーンショット。" width="1105" height="247" data-path="images/flexi-capture/connectors/Pega149.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega150.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=aa466bb5c6ef65b6056e1bcf2c0ef3b9" alt="StepStatusFail の場合は ERR ラベルへ、Param.templateName の値に応じて INVOICE、BANKING、CONTRACT、LETTER、PRICE の各ラベルへ振り分ける条件を示した、Pega の Step 2 のジャンプ条件ダイアログのスクリーンショット。" width="989" height="451" data-path="images/flexi-capture/connectors/Pega150.png" />
</Frame>

Step 3:

**ラベル**: INVOICE.

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

| **Name**          | **Value**     |
| ----------------- | ------------- |
| DataTransform     | jsonToInvoice |
| PassParameterPage | true          |

詳細については、[jsonToInvoice](/ja/flexi-capture/connectors/pega/pega-dt-many-docs#jsontoinvoice)を参照してください。

**ジャンプ**:

| **条件** | **true の場合**  | **true パラメーター** | **false の場合** | **false パラメーター** |
| ------ | ------------- | --------------- | ------------- | ---------------- |
| true   | Exit Activity |                 |               |                  |

**例外時にジャンプする後続Stepのラベル**: ERR.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega151.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=201c65905a310364d529b907a47d0c80" alt="INVOICE というラベルの付いた Step 3 で、Apply-DataTransform メソッド、jsonToInvoice に設定された DataTransform パラメーター、および選択された PassParameterPage を示す、Pega の FetchingCapturedData アクティビティのスクリーンショット。" width="1097" height="205" data-path="images/flexi-capture/connectors/Pega151.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega152.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=ed5d0dc273bc37635d92f5b0ca463b89" alt="When 条件 true が Exit Activity に設定され、例外時ラベルが ERR に設定されていることを示す、Pega の Step 3 のジャンプ条件ダイアログのスクリーンショット。" width="991" height="276" data-path="images/flexi-capture/connectors/Pega152.png" />
</Frame>

Step 4:

**ラベル**: BANKING.

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

| **Name**          | **Value**     |
| ----------------- | ------------- |
| DataTransform     | jsonToBanking |
| PassParameterPage | true          |

詳細については、[jsonToInvoice](/ja/flexi-capture/connectors/pega/pega-dt-many-docs#jsontoinvoice)を参照してください。

**ジャンプ**:

| **条件** | **true の場合**  | **true パラメーター** | **false の場合** | **false パラメーター** |
| ------ | ------------- | --------------- | ------------- | ---------------- |
| true   | Exit Activity |                 |               |                  |

**例外時にジャンプする後続Stepのラベル**: ERR.

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

<Frame>
  <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega154.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=92f565029dd24f1608b27687190ed15d" alt="Pega のステップ 4 の ジャンプ conditions dialog のスクリーンショット。条件が true に設定されており、Exit Activity が指定され、on-exception ラベルが ERR に設定されています。" width="989" height="271" data-path="images/flexi-capture/connectors/Pega154.png" />
</Frame>

ステップ 5:

**ラベル**: CONTRACT.

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

| **Name**          | **Value**      |
| ----------------- | -------------- |
| DataTransform     | jsonToContract |
| PassParameterPage | true           |

詳細は、[jsonToContract](/ja/flexi-capture/connectors/pega/pega-dt-many-docs#jsontocontract)を参照してください。

**ジャンプ**:

| **条件** | **if true**   | **true param** | **if false** | **false param** |
| ------ | ------------- | -------------- | ------------ | --------------- |
| true   | Exit Activity |                |              |                 |

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

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

<Frame>
  <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega156.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=2795ce2c38a5dafbf3e1db76eead3a29" alt="Pega のステップ 5 の ジャンプ conditions dialog のスクリーンショット。条件が true に設定されており、Exit Activity が指定され、on-exception ラベルが ERR に設定されています。" width="998" height="274" data-path="images/flexi-capture/connectors/Pega156.png" />
</Frame>

ステップ 6:

**ラベル**: LETTER.

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

| **Name**          | **Value**    |
| ----------------- | ------------ |
| DataTransform     | jsonToLetter |
| PassParameterPage | True         |

詳細は、[jsonToLetter](/ja/flexi-capture/connectors/pega/pega-dt-many-docs#jsontoletter)を参照してください。

**ジャンプ**:

| **条件** | **if true**   | **true param** | **if false** | **false param** |
| ------ | ------------- | -------------- | ------------ | --------------- |
| true   | Exit Activity |                |              |                 |

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

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

<Frame>
  <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega158.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=c7d9fe5bdd3ab0464d78f11f3c8b09d5" alt="Pega のステップ 6 の ジャンプ conditions dialog のスクリーンショット。条件が true に設定されており、Exit Activity が指定され、on-exception ラベルが ERR に設定されています。" width="994" height="285" data-path="images/flexi-capture/connectors/Pega158.png" />
</Frame>

ステップ 7:

**ラベル**: PRICE.

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

| **Name**          | **Value**   |
| ----------------- | ----------- |
| DataTransform     | jsonToPrice |
| PassParameterPage | True        |

詳細は、[jsonToPrice](/ja/flexi-capture/connectors/pega/pega-dt-many-docs#jsontoprice)を参照してください。

**ジャンプ**:

| **条件** | **if true**   | **true param** | **if false** | **false param** |
| ------ | ------------- | -------------- | ------------ | --------------- |
| true   | Exit Activity |                |              |                 |

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

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

<Frame>
  <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega160.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=9880110d6d5f21129cabfb77772104ba" alt="Pega のステップ 7 の ジャンプ conditions dialog のスクリーンショット。条件が true に設定されており、Exit Activity が指定され、on-exception ラベルが ERR に設定されています。" width="998" height="277" data-path="images/flexi-capture/connectors/Pega160.png" />
</Frame>

ステップ 8:

**ラベル**: ERR.

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

**メッセージ**: @unescapeHTML(@getWorstMessageName(tools)).

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

<Frame>
  <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega161.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=bb91fc2004a8297aa26a886002fc20f1" alt="Pega の FetchingCapturedData アクティビティのスクリーンショット。ERR というラベルの Step 8 が表示され、Page-Set-Messages メソッドと、Message パラメーターに @unescapeHTML(@getWorstMessageName(tools)) が設定されていることが示されています。" width="1130" height="238" data-path="images/flexi-capture/connectors/Pega161.png" />
</Frame>
