Question

1
Replies
33
Views
Partha Dasgupta (ParthaD2)
Capgemini Technology Services India Pvt Ltd
Partha Dasgupta
Capgemini Technology Services India Pvt Ltd
SE
ParthaD2 Member since 2019 1 post
Capgemini Technology Services India Pvt Ltd
Posted: March 29, 2021
Last activity: April 2, 2021
Posted: 29 Mar 2021 13:30 EDT
Last activity: 2 Apr 2021 13:01 EDT

How to flush thread level Data Page from its Response Data Transform and recreate it on the fly?

We are calling series of REST API(s) of an External system in a transaction (mainly GET calls). To minimize the reauthentication overhead to that external system , we are using JSESSIONID once authenticated for the first time. This JSESSIONID remains valid for certain seconds. And we are calling JSON Web Token based authentication mechanism to get the valid JSESSIONID. The challenge is that if we receive 401 Authentication error and the session is suddenly expired, we need to expire that particular Data Page which encountered this issue, call the JWT Authentication module and then to retry again. We want to handle it in Response Data Transform of the affected Data Page(s). But unable to expire the DataPage and regenerate it by reference.  Wondering if there is any mechanism to flush the Data Page from response Data Transform of the Data Page.

Pega Platform 8.4.3 Project Delivery Financial Services Lead System Architect