Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Brain teaser with file adapter

$
0
0

Hi, all.

 

Here is the requirement:

1) PI will browse in a fixed directory: /interfaces/in and look for all files with a specific pattern as file name. They are all text files.

2) Once it sees the file, it will look for a specific pattern NNN inside that file. The file will only have one line with pattern NNN.

3) If the file doesn't have that pattern, PI will ignore the file and no processing is happening

4) In the next loop, if it finds a file with pattern NNN, remove the line with pattern NNN from the file but remember the content of that line. Ftp the new file into a FTP directory with file name of that line.

 

Is it achievable by standard file adapter? Even with shell script with the command line, I still cannot quite get the result I want. Your input would be greatly appreciated.

Thanks,

Jonathan.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>