[ 
https://issues.apache.org/jira/browse/CAMEL-10339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jyrki Ruuskanen updated CAMEL-10339:
------------------------------------
    Description: 
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-with-timezone: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.


  was:
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.



> 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-with-timezone: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)

Reply via email to