In addition to “ffdata”, the File Poller has two undocumented parameters which can be accessed by the processing service. “originalFileName” is the full name of the file polled - effectively Monitoring Directory + File Name. “fileName” is the full unique name of the renamed file which exists in the Working Directory when the service is invoked. (This can be seen in the server log at V2 logging level.) When the service completes, the File Poller moves the file to either the Completion or Error Directory (depending on the exit status), giving it a different unique name. So, during execution, the service could access the file by “fileName”, although I don’t know what would happen if it moved that file elsewhere - the File Poller might get upset.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods