Can Pega read a local file without importing it to the server?

Hi
Can Pega read a local file without importing it to the server?

@Karthik.MG

Could you maybe explain a bit more what you are trying to achieve and what action you are trying to do? Do you want to import a RAP file? Do you need to create a REST connection based on a result file, etc?

@BasM7674 No, I don’t have specific requirement. I Just want to know how to read Local system file using Pega rule without Importing the file. (exp: text file)

@Karthik.MG

You can use a file listener to read a local file (on the disk mounted to the machine). You can point it to a direction, let it read the file and define what you want to do with the file in the processing part.

A dataset can also read local files (in a repository). The dataset can be imported in a data flow to process the file further.

You could also use the Java api (both mounted to the machine as repositories) and build a custom piece of functionality, but that solution is non-rule related.