cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting a file from the XI server

Former Member
0 Kudos

Hello All,

I have a scenario RFC to XI

I collect the messages from RFC , process it using XI (BPM) and store the processed messages in a folder on the server using File Adapter.

Depending on a condition flag i have to move all the processed messages to a reciever comm channel.

All works fine, But i have a small problem, since all the processed messages go to the same output folder on the server. I want to delete the message(XML Files) from the o/p folder or move them to another folder as soon as it is send to a reciever comm channel.

I have a java class(called from a BPM) which reads the xml file from the o/p folder one by one and puts its content in a FileOutputStream, which forwards it to the reciever.

So i am trying to delete the file using the java.io.File.delete() method.

But i guess this cannot delete the file on the XI server.

Is there any other way for me to proceed?

Any pointers on this will be appreciated.

Thanks

Meghana

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

achieved

Former Member
0 Kudos

Hi Meghana !

Could you explain more clearly your scenario? is RFC-XI (BPM)-File?

Where do you check the condition flag?

Regards,

Matias.

former_member192892
Active Contributor
0 Kudos

Meghna, correct me if i'm wrong

You are writing your RFC response back to a file. You use this file for further processing and after that you want to delete this file.

Am i corret??