Hi all, I have several routes like the following: <route id="inbound-standard"> <from uri="file://c:/folder/inbound?move=.done/${header.breadcrumbId}_${property.CamelSplitIndex}_${file:onlyname}&moveFailed=.error/${header.breadcrumbId}_${property.CamelSplitIndex}_${file:onlyname}&readLock=changed&readLockCheckInterval=5000&readLockTimeout=0"/> <onException> <exception>java.lang.Throwable</exception> <bean ref="errorDetailsWriter"/> <to uri="file://c:/folder/inbound?fileName=.error/${header.breadcrumbId}_${property.CamelSplitIndex}_${file:onlyname}.txt"/> </onException> <bean ref="fileClassifier"/> <split> <method beanType="..." method="split"/> <to uri="file://..." /> </split> </route>
as you can see the from file uri contains both move and moveFailed complex expressions (it can also contain date and time expressions). 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 or do I have to rename/move the file explicitly by adding <to uri="file://..." /> in the onException tag and at the end of the route and use CameFilenameProduced? Thanks Stefano -- View this message in context: http://camel.465427.n5.nabble.com/Retrieve-computed-filename-according-to-move-or-moveFailed-tp5713669.html Sent from the Camel - Users mailing list archive at Nabble.com.