Re: simple language date offset

2020-10-06 Thread Claus Ibsen
And btw since you use java dsl, then its all java code and you can use string concat / string format to put in the ugly number from a variable or use Camel's property placeholders On Wed, Oct 7, 2020 at 7:05 AM Claus Ibsen wrote: > > Hi > > You cannot do that, the function only supports hours. >

Re: simple language date offset

2020-10-06 Thread Claus Ibsen
Hi You cannot do that, the function only supports hours. 1 month is also not a fixed value, e.g. each month varies in days. On Tue, Oct 6, 2020 at 2:23 PM Daniel Johansson wrote: > > Hi Users > > When i use the file component i want to filter on files that are older then > one month and only

Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-06 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/jira/browse/CAMEL-15646 On Mon, Oct 5, 2020 at 7:01 PM Site Register wrote: > > Can somebody help to create a jira for this because I don't have the > permission? > Please use below codes to reproduce. > > @Named("ConvertType") > @Log4j2 > public

Re: Set error_handled to false

2020-10-06 Thread Claus Ibsen
Hi What are you trying to do? And what Camel version are you using? In general you should not "mess around" with those properties - they are used by Camel internally. On Tue, Oct 6, 2020 at 3:37 PM Firas Khasawneh wrote: > > Hi all, > > I am trying to set error handled property on exchange to f

Set error_handled to false

2020-10-06 Thread Firas Khasawneh
Hi all, I am trying to set error handled property on exchange to false but it does not seem to be working. Below is the code I am using: exchange.setProperty(Exchange.EXCEPTION_HANDLED); Is there a way to do this? It seems it has not effect. Thanks, Firas

simple language date offset

2020-10-06 Thread Daniel Johansson
Hi Users When i use the file component i want to filter on files that are older then one month and only process those files. I have been experimenting with: filterFile=$simple{file:modified} < ${date:now} and: .filter(header("CamelFileLastModified").isLessThan("${date:now} - $simple{header.ONE_MO