Skip to main content
The FetchingCapturedData activity retrieves the captured data from ABBYY FlexiCapture as JSON and applies the data transform that maps it to the case fields. 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 condition, 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.jsonData to @ABBYY.FetchingCapturedData(.BatchId) and Param.executionMode to DESERIALIZE.
Screenshot of the Jump conditions dialog for Step 2 in Pega, showing the StepStatusFail condition jumping to label ERR if true and to label OK if false, with the on-exception label set to ERR.
3

Post the error message

For more information, see unescapeHTML.Add the following Jump condition:
Screenshot of the FetchingCapturedData activity in Pega, showing Step 3 labeled ERR with the Page-Set-Messages method and the Message parameter set to @unescapeHTML(@getWorstMessageName(tools)).
Screenshot of the Jump conditions dialog for Step 3 in Pega, showing a When condition of true set to Exit Activity.
4

Apply the data transform

For more information, see Create the data transform for a single-document processing case.
Screenshot of the FetchingCapturedData activity in Pega, showing Step 4 labeled OK with the Apply-DataTransform method, the DataTransform parameter set to JsonToInvoiceWithVerificationFields, and PassParameterPage selected.