Prashant Daniel (danprashant)
Senior Consultant
danprashant Member since 2015 6 posts
Posted: June 21, 2020
Last activity: July 1, 2020
Posted: 21 Jun 2020 13:58 EDT
Last activity: 1 Jul 2020 1:58 EDT

Asynchronously call an Activity from a DataPage using Load-DataPage method



We have an activity which triggers a Connect-REST integration call. The response received from the other system is huge; The activity also process the response data and store the data in our database.

Currently, this activity is called synchronously - Users will hit the on-screen refresh button, the activity will be called, data will be received from the other system, processed and stored in the database, then the updated values will be displayed in the UI.

As said earlier, since the response received is huge, and post processing of data is also involved, because of which, UI timeout happens for the user session.

To avoid the timeout issue, we are invoking the same activity through a Data-Page, referring the data page from an asynchronous activity using Load-Datapage method. The activity runs properly, gets the response, processes the data and stores it in DB.

However, as this activity is running asynchronously on a different requestor, the updated data is not available in the UI, 

Do we have way to update the UI once the updated data is available in the DB?




Pega Platform 7.4 Data Integration Java and Activities Technology Services Senior System Architect
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.