cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver file adapter archiving

Former Member
0 Kudos

Is there any mechanisam to archive the files at receiver file adapter?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi sekhar,

Can you explain Archiving data/payload that's being flowing through PI/XI ?

Former Member
0 Kudos

Hi suraj,

Can you explain the logic to achieve this?

former_member187339
Active Contributor
0 Kudos

Hi Praveen,

Use file adapter to put the file into the archive directory and use the above mentioned OS commands in "Execute OS commands after message processing" section of Receiver file adapter.. so your file will be placed in archive folder and then copied to actual folder.

This process is followed so as to make sure that you have the receiver file archived.. suppose you have a receiver process which will read the output of PI and delete the file .. then just to make sure we have a copy in the archive location we are first putting the file in archive directory and then copying it to the correct location

Regards

Suraj

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Praveen,

you need to select Run Operating System Command After Message Processing and specify the path in NFS directory where you want to copy,use UNIX command and specify the same like cp %F <NFS Directory> i am not sure this command check in google its correct or not.:)

Regards,

Raj

Former Member
0 Kudos

Hi Praveen Kumar,

If you are looking for Archiving data/payload that's being flowing through PI/XI then YES it's possible to flagg for Archiving your both receiver and sender interfaces. Thus, if you are looking for this then you can revert back if you need any instruction to achieve this.

Regards

Sekhar

former_member187339
Active Contributor
0 Kudos

Hi Praveen,

>>Is there any mechanisam to archive the files at receiver file adapter?

No..

But you can try OS commands (we are doing that in our project)... if XI is in windows system, try

>>CMD /C "COPY %f <targetfolder>""

Regards

Suraj