Question

2
Replies
23
Views
Close popover
Paulina Velez (apvelez)
Anthem
Pega Developer Advisor
Anthem
US
apvelez Member since 2019 4 posts
Anthem
Posted: February 2, 2021
Last activity: February 3, 2021

How to read a file on demand

I have a file stored permanently in a directory.

This file contains a lookup list that the business users can update at any time.

My application needs to read the contents of the file and use them in processing.

How can I read the file only when a at the moment it is needed?

I don't think a File Listener would work because a listeners waits for a certain file to arrive and then processes it as soon as it finds it.

I need to be able to call 'something' from my activity to read the file only at the needed moment.

Is there any Pega capability to do this? I can't find anything similar on google.

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Platform Enterprise Application Development Data Integration Healthcare and Life Sciences System Architect