One question, Do you have a header where you store the date and you want to use that, or do you want to access the simple language to access current date?
If I am not misstaken if it is the former, it should be ${headers.date} and for the latter it should be ${date:now:yyyyMMdd} to include year, month and date. On Mon, May 8, 2017 at 4:04 PM, geppo [via Camel] < ml+s465427n5799105...@n5.nabble.com> wrote: > Thank you Claus, > if I understood right then my route should change like this: > > from("direct:myRoute") > .transacted() > .id("MyRoute") > > .pollEnrich().simple("file://folder?fileName=filename_${header:date}.txt") > > .process(new MyProcessor()) > > But nothing changed really. > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/Dynamic-from-and- > pollEnrich-tp5799032p5799105.html > To start a new topic under Camel - Users, email ml+s465427n465428h31@n5. > nabble.com > To unsubscribe from Camel - Users, click here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-from-and-pollEnrich-tp5799032p5799106.html Sent from the Camel - Users mailing list archive at Nabble.com.