Jyrki Ruuskanen created CAMEL-10339:
---------------------------------------
Summary: Allow date offsets and timezones with Simple language
Key: CAMEL-10339
URL: https://issues.apache.org/jira/browse/CAMEL-10339
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Jyrki Ruuskanen
Priority: Minor
Case 1:
Customer wants us to drop the files with the following naming scheme:
prefix-<datetime in UTC>.data. Wouldn't it be nice if we could just say:
{noformat}
fileName=prefix-$simple{date:now:UTC:yyyyMMddHHmmss}.data
{noformat}
in the producer URI?
Case 2:
Customer wants us to clean up files from a destination that are more than 24
hours old. With the File component's new filterFile feature we should be able
to say:
{noformat}
filterFile=${file:modified} < ${date:now-24h}
{noformat}
in the consumer URI and pull them off the disk.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)