Move File from one folder to another folder

Six Stars

Move File from one folder to another folder

Hi,

How to Move File from current folder in use to InProcess folder and once file is processed without error, move to Process folder and if error then move to Error Folder.

 

Thanks,

Dhara

Sixteen Stars

Re: Move File from one folder to another folder

Use the tFileCopy component and tick the "Remove source file" to move a file.

Employee Ram
Employee

Re: Move File from one folder to another folder

With tFileCopy component you can move to a directory inProgress. 

Process the file in a subjob , if the Sub job errors moved to error folder. 

In your job you need to control the move between folders & error handling

 

Another approach is to use a ESB Mediation Route component cFile  with options preMove, move & moveFailed

http://camel.apache.org/file2.html