Thank you very much Henryk!
Since each route has its own moveFailed and move settings, I followed your
advice in this way:
Original route:
<route id="inbound-standard">
<from
uri="file://c:/folder/inbound?move=.done/${header.breadcrumbId}_${file:onlyname}&moveFailed=.error/${header.breadcrumbId}_${file:onlyname}&readLock=changed&readLockCheckInterval=5000&readLockTimeout=0"/>
...
</route>
Modified route:
<route id="inbound-standard">
<from
uri="file://c:/folder/inbound?move=${header.moveExpr}&moveFailed=${header.moveFailedExpr}&readLock=changed&readLockCheckInterval=5000&readLockTimeout=0"/>
<setHeader
headerName="moveExpr"><simple>.done/${header.breadcrumbId}_${file:onlyname}</simple></setHeader>
<setHeader
headerName="moveFailedExpr"><simple>.error/${header.breadcrumbId}_${file:onlyname}</simple></setHeader>
...
</route>
In this way I can manage these expressions on a per route basis.
Bye,
Stefano
--
View this message in context:
http://camel.465427.n5.nabble.com/Retrieve-computed-filename-according-to-move-or-moveFailed-tp5713669p5713686.html
Sent from the Camel - Users mailing list archive at Nabble.com.