cancel
Showing results for 
Search instead for 
Did you mean: 

Gather multiple files according to file name

Former Member
0 Kudos

Hi experts,

I have a question about the file sender adapter.

Is it possible to gather multiple files from a directory according to file name. For example, I have 3 files:

- 10000-20120827.DAT

- 10000-20120826.DAT

- 10001-20120827.DAT

Can I configure the interface in a way it bundle all the files starting with the same 5 first characters? (So it bundles the first two files)

I hope the question is clear enough. If not, let me know.

Thanks,

Koen

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Koen,

this is not possible in PI standard,

You can

- create an adapter module. The adapter has to read files with same starting file name into one message.

- create a Business Process and make use of ASMA header field "FileName" in mapping time.

- create a operation system command before processing. The script will bundle the files with same first file name characters. Assumedly the most easy solution.

Regards,

Udo

Former Member
0 Kudos

Thanks for the explanation guys.

Learn a bit more every day

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

     From what I understand, you want to package all files which start with the same name sequence into a single message in PI.

This is only possible using BPM. The file adapter will always create one message per file.

You can give multiple file names to retrieve in the sender adapter, but each file will always create a single message.

Regards

Former Member
0 Kudos

Thanks for the help .

Do you know if there is an example available for this BPM scenario?