Skip to main content
The FetchingCapturedData activity retrieves the captured data for one Document Definition and applies the data transform that matches the template name it is given. For the general procedure, see Create a Pega activity.

Pages and classes

Parameters

Activity steps

1

Open the case

Screenshot of the FetchingCapturedData activity in Pega, showing Step 1 with the Obj-Open-By-Handle method on the Case step page and InstanceHandle set to Param.caseId.
2

Fetch the captured data

Set Method to Property-Set and the properties as follows:For more information, see FetchingCapturedData.Add the following Jump conditions, which route each template to its own data transform, and set On exception, jump to later step label to ERR:
Screenshot of the FetchingCapturedData activity in Pega, showing Step 2 with the Property-Set method setting Param.executionMode to DESERIALIZE and Param.jsonData to @ABBYY.FetchingCapturedData(.BatchId, Param.templateName).
Screenshot of the Jump conditions dialog for Step 2 in Pega, showing conditions that route to label ERR on StepStatusFail and to the INVOICE, BANKING, CONTRACT, LETTER, and PRICE labels based on the value of Param.templateName.
3

Apply the invoice data transform

For more information, see jsonToInvoice.Add the following Jump condition, and set On exception, jump to later step label to ERR:
Screenshot of the FetchingCapturedData activity in Pega, showing Step 3 labeled INVOICE with the Apply-DataTransform method, the DataTransform parameter set to jsonToInvoice, and PassParameterPage selected.
Screenshot of the Jump conditions dialog for Step 3 in Pega, showing a When condition of true set to Exit Activity, with the on-exception label set to ERR.
4

Apply the banking data transform

For more information, see jsonToBanking.Add the following Jump condition, and set On exception, jump to later step label to ERR:
Screenshot of the FetchingCapturedData activity in Pega, showing Step 4 labeled BANKING with the Apply-DataTransform method, the DataTransform parameter set to jsonToBanking, and PassParameterPage selected.
Screenshot of the Jump conditions dialog for Step 4 in Pega, showing a When condition of true set to Exit Activity, with the on-exception label set to ERR.
5

Apply the contract data transform

For more information, see jsonToContract.Add the following Jump condition, and set On exception, jump to later step label to ERR:
Screenshot of the FetchingCapturedData activity in Pega, showing Step 5 labeled CONTRACT with the Apply-DataTransform method, the DataTransform parameter set to jsonToContract, and PassParameterPage selected.
Screenshot of the Jump conditions dialog for Step 5 in Pega, showing a When condition of true set to Exit Activity, with the on-exception label set to ERR.
6

Apply the letter data transform

For more information, see jsonToLetter.Add the following Jump condition, and set On exception, jump to later step label to ERR:
Screenshot of the FetchingCapturedData activity in Pega, showing Step 6 labeled LETTER with the Apply-DataTransform method, the DataTransform parameter set to jsonToLetter, and PassParameterPage selected.
Screenshot of the Jump conditions dialog for Step 6 in Pega, showing a When condition of true set to Exit Activity, with the on-exception label set to ERR.
7

Apply the price data transform

For more information, see jsonToPrice.Add the following Jump condition, and set On exception, jump to later step label to ERR:
Screenshot of the FetchingCapturedData activity in Pega, showing Step 7 labeled PRICE with the Apply-DataTransform method, the DataTransform parameter set to jsonToPrice, and PassParameterPage selected.
Screenshot of the Jump conditions dialog for Step 7 in Pega, showing a When condition of true set to Exit Activity, with the on-exception label set to ERR.
8

Post the error message

For more information, see unescapeHTML.
Screenshot of the FetchingCapturedData activity in Pega, showing Step 8 labeled ERR with the Page-Set-Messages method and the Message parameter set to @unescapeHTML(@getWorstMessageName(tools)).