> Is it possible to retrieve the name of the file renamed/moved according to
> the move and moveFailed expression at the end of the route

As far as I know File component doesn't provide information about path
of the moved file.

However you can evaluate move directory using the interceptor and set
it on the header before you hit the File component. Then use that
header value to configure the move parameter of File component:

intercept().setHeader("movePath",simple(".myMoveDirectory/${header.breadcrumbId}"));
from("file:/tmp/files?move=${header.movePath}").to("log:out");

Regards.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com

Reply via email to