camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Orbaan <hans.orb...@docdata.eu>
Subject Re: PollEnrich with file language
Date Thu, 08 Sep 2016 19:27:46 GMT
Hi,


Can you try $simple{file:onlyname.noext}_$simple{date:now:yyyMMddHHmmssSSS}.$simple{file:name.ext}.
Not sure if it will work though.


With kind regards,


Hans Orbaan


________________________________
Van: souciance <souciance.eqdam.rashti@gmail.com>
Verzonden: donderdag 8 september 2016 20:16
Aan: users@camel.apache.org
Onderwerp: PollEnrich with file language

Hi,

Does pollEnrich work properly with the file language?

I have written a simple statement that moves the file after polling and adds
a timestamp to the file. However the output is that it creates a folder with
the timestamp name and ignores the filename and file extension.
This is my statement..

.pollEnrich("...&move=importArchive/${file:name.noext}-${date:now:yyyyMMddHHmmssSSS}.${file:ext}")

Instead it creates a folder inside importArchive with the name based on
-${date:now:yyyyMMddHHmmssSSS}

Best
Souciance



--
View this message in context: http://camel.465427.n5.nabble.com/PollEnrich-with-file-language-tp5787380.html
Camel - Users - PollEnrich with file language<http://camel.465427.n5.nabble.com/PollEnrich-with-file-language-tp5787380.html>
camel.465427.n5.nabble.com
PollEnrich with file language. Hi, Does pollEnrich work properly with the file language? I
have written a simple statement that moves the file after polling and adds a timestamp to
the file....



Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message