Re: Simple Language

2023-06-03 Thread Claus Ibsen
What camel version do you use, and what do you have as input and get as output On Thu, May 25, 2023 at 8:23 AM Michael Rambichler wrote: > Hi all, > > I am struggling with a simple "Simple" Language OGNL use: > > I would like to replace a String with a regex via simple > Please see the following

Re: Simple language

2021-11-26 Thread ski n
elCreatedTimestamp} > headerName="wUnixTimeStamp">${header.wTimeStamp.getTime()/1000} > > > > Hope it's help! > > > Daniel Langevin > > > -Message d'origine- > De : ski n > Envoyé : 26 novembre 2021 09:48 > À : users@camel.apache.org

RE: Simple language

2021-11-26 Thread Daniel Langevin
gouv.qc.ca>: > Sorry to fast for time, > > Here is: ${date:now:-MM-dd' à 'HH:mm:ss.fff' > ('yyy'.'D')'} > > > > Daniel > > -Message d'origine- > De : Daniel Langevin Envoyé : 26 > novembre 2021 08:37 À : users

Re: Simple language

2021-11-26 Thread ski n
orry to fast for time, > > Here is: ${date:now:-MM-dd' à 'HH:mm:ss.fff' > ('yyy'.'D')'} > > > > Daniel > > -Message d'origine- > De : Daniel Langevin > Envoyé : 26 novembre 2021 08:37 > À : users@camel.apa

RE: Simple language

2021-11-26 Thread Daniel Langevin
Sorry to fast for time, Here is: ${date:now:-MM-dd' à 'HH:mm:ss.fff' ('yyy'.'D')'} Daniel -Message d'origine- De : Daniel Langevin Envoyé : 26 novembre 2021 08:37 À : users@camel.apache.org Objet : RE: Simple language Hi Raymond,

RE: Simple language

2021-11-26 Thread Daniel Langevin
Hi Raymond, For date: ${date:now:-MM-dd' à 'HH:mm:ss' ('yyy'.'D')'} For addition 1 to value of Var1 ${header.Var}++ Regards Daniel Langevin -Message d'origine- De : ski n Envoyé : 26 novembre 2021 07:18 À : users@camel.apache.org Objet : Simple language Hi all, I have two que

Re: simple language date offset

2020-12-16 Thread Daniel Johansson
Hi I used the solution you provided Claus with string concat, I just didnt see it. Thanks for The help! All the best /Daniel Den ons 7 okt. 2020 07:06Claus Ibsen skrev: > 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 num

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: simple language bodyOneLine throws error

2020-06-16 Thread Alex Dettinger
Hi Shiva, bodyOneLine was introduced since camel 3 onward, https://issues.apache.org/jira/browse/CAMEL-13674. Maybe it's time to get a ride at camel 3 https://camel.apache.org/manual/latest/camel-3-migration-guide.html ;) Alex On Tue, Jun 16, 2020 at 9:57 AM Gv, Shivakumar wrote: > Hi team,

Re: Simple language evaluation camel 3.0.1

2020-05-01 Thread Claus Ibsen
Hi See the migration guide, you should use ${xxx} around the simple tokens, such as header etc. On Sat, May 2, 2020 at 5:28 AM Vikas Jaiswal wrote: > > I am trying to use simple and have the following in spring xml: > > "header? contains 'HeaderName' and header.HeaderName = > 'TEST'" > > This a

Re: Simple language evaluation camel 3.0.1

2020-05-01 Thread Gerald Kallas - mailbox.org
Hi Victor, the parameter has been changed to „name“ in Camel 3.x. Sent by my mobile device - Gerald Kallas > Am 02.05.2020 um 05:28 schrieb Vikas Jaiswal : > > I am trying to use simple and have the following in spring xml: > > "header? contains 'HeaderName' and header.HeaderName = > 'TEST'"

Re: Simple language in 3.1.0

2020-04-23 Thread Claus Ibsen
Hi Thanks, fixing that doc page On Thu, Apr 23, 2020 at 4:22 PM Remco Schoen wrote: > > At the URL I posted: > > https://camel.apache.org/components/latest/languages/simple-language.html > > And Google found it for me… > > > Op 23 apr. 2020, om 16:20 heeft Claus Ibsen > mailto:claus.ib...@gmail

Re: Simple language in 3.1.0

2020-04-23 Thread Remco Schoen
At the URL I posted: https://camel.apache.org/components/latest/languages/simple-language.html And Google found it for me… Op 23 apr. 2020, om 16:20 heeft Claus Ibsen mailto:claus.ib...@gmail.com>> het volgende geschreven: On Thu, Apr 23, 2020 at 4:19 PM Remco Schoen mailto:r.sch...@topdesk.

Re: Simple language in 3.1.0

2020-04-23 Thread Claus Ibsen
On Thu, Apr 23, 2020 at 4:19 PM Remco Schoen wrote: > > Hi, > > I checked the docs for 2.x and there it says it is deprecated, thanks. > > But my next question would be, is the documentation still up-to-date: > > “The simple language uses ${body} placeholders for complex expressions where > the e

Re: Simple language in 3.1.0

2020-04-23 Thread Remco Schoen
Hi, I checked the docs for 2.x and there it says it is deprecated, thanks. But my next question would be, is the documentation still up-to-date: “The simple language uses ${body} placeholders for complex expressions where the expression contains constant literals. The $\{ } placeholders can be

Re: Simple language in 3.1.0

2020-04-23 Thread Guillaume Nodet
The syntax without placeholders had been deprecated in the 2.x branch since a long time. You now need to use simple('${headers.entityMap.sourceTableName}') Le jeu. 23 avr. 2020 à 15:42, Remco Schoen a écrit : > Hi, > > I have a question about the Simple language and the use of ${}. > > Before Ca

RE: Simple language starts with ignore case

2017-11-14 Thread Pakarinen, Jari
Hi, Thanks, found it: .when().simple(“${header.CamelFileNameOnly?.toLowerCase()} start with ‘myservice’) -- Jari -Original Message- From: Onder SEZGIN [mailto:ondersez...@gmail.com] Sent: 13. marraskuuta 2017 21:10 To: users@camel.apache.org Subject: Re: Simple language starts with

Re: Simple language starts with ignore case

2017-11-13 Thread Onder SEZGIN
ti > Lähettäjä: Claus Ibsen > Päivämäärä: 13.11.2017 17.04 (GMT+02:00) > Saaja: users@camel.apache.org > Aihe: Re: Simple language starts with ignore case > > Hi > > No its not possible, we have too many operators already - to add > starts with ignorecase (would be

Re: Simple language starts with ignore case

2017-11-13 Thread Pakarinen, Jari
Hi, Thanks. I understand. How do I go about lowercasing the filename value? Jari Lähetetty Samsung Galaxy -älypuhelimesta. Alkuperäinen viesti Lähettäjä: Claus Ibsen Päivämäärä: 13.11.2017 17.04 (GMT+02:00) Saaja: users@camel.apache.org Aihe: Re: Simple language starts with

Re: Simple language starts with ignore case

2017-11-13 Thread Claus Ibsen
Hi No its not possible, we have too many operators already - to add starts with ignorecase (would be too verbose and ugly) You can use reg-exp or you can lower-case/upper-case the value and then use starts with in that case only. On Mon, Nov 13, 2017 at 2:59 PM, Pakarinen, Jari wrote: > Hi, > >

Re: simple language nullsafe expression fails on empty array

2016-10-13 Thread Claus Ibsen
Hi Yeah sure we love contributions http://camel.apache.org/contributing On Thu, Oct 13, 2016 at 6:33 PM, dmitriyC300 wrote: > I may have found a limitation w/ simple language on the 1st index of an empty > array with a nullsafe expression. Making sure list.size() > 0 in > BeanExpression line 38

RE: simple language Unix timestamp

2014-03-27 Thread Olaf
thanks! it works producing java currentTimeMillis. What I need is currentTimeMillis / 1000L Can simple evaluate it? -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-Unix-timestamp-tp5749433p5749439.html Sent from the Camel - Users mailing list archive at Nabble

RE: simple language Unix timestamp

2014-03-27 Thread Siano, Stephan
Hi, I haven't actually tried it out, but simple("${bean:java.lang.System?method=currentTimeMillis}") might help you. Best regards Stephan -Original Message- From: Olaf [mailto:omgolafg...@gmail.com] Sent: Donnerstag, 27. März 2014 13:25 To: users@camel.apache.org Subject: simple languag

RE: Simple Language Question

2013-09-16 Thread Gershaw, Geoffrey A. (KFFC 223)
sen [mailto:claus.ib...@gmail.com] Sent: Saturday, September 14, 2013 6:42 AM To: users@camel.apache.org Subject: Re: Simple Language Question Hi You need to use getCurrentQueueSize to get the current size. The size is for the max size of the queue. I added unit test to demonstrate how to do

Re: Simple Language Question

2013-09-14 Thread Claus Ibsen
aus.ib...@gmail.com] > Sent: Friday, September 13, 2013 8:49 AM > To: users@camel.apache.org > Subject: Re: Simple Language Question > > What Camel version do you use? > > On Thu, Sep 12, 2013 at 6:03 PM, Gershaw, Geoffrey A. (KFFC 223) > wrote: >> Hello, >&g

Re: Simple Language Question

2013-09-13 Thread Claus Ibsen
What Camel version do you use? On Thu, Sep 12, 2013 at 6:03 PM, Gershaw, Geoffrey A. (KFFC 223) wrote: > Hello, > > > I am trying to print the size of a seda queue in a log statement. See my > attempt below. I need to get hold of the Context so I can lookup the seda > endpoint. I thought I coul

RE: Simple Language Question

2013-09-13 Thread Gershaw, Geoffrey A. (KFFC 223)
Sorry, I should have said this 2.11 Geoffrey A Gershaw Credit eTrading Development +1 919 994 6412 (*102 6412) -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Friday, September 13, 2013 8:49 AM To: users@camel.apache.org Subject: Re: Simple Language Question

Re: Simple language question

2012-06-19 Thread Willem Jiang
Ibsen [mailto:claus.ib...@gmail.com] Sent: Monday, June 18, 2012 11:35 PM To: users@camel.apache.org Subject: Re: Simple language question On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey< geoffrey.gers...@credit-suisse.com> wrote: Hello all, I am using the Spring DSL with the Filt

Re: Simple language question

2012-06-19 Thread Claus Ibsen
.com] > Sent: Monday, June 18, 2012 11:35 PM > To: users@camel.apache.org > Subject: Re: Simple language question > > On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey < > geoffrey.gers...@credit-suisse.com> wrote: > >> Hello all, >> >> >> >&g

Re: Simple language question

2012-06-19 Thread Christian Schneider
How about using setHeader to store the result? Christian Am 19.06.2012 14:19, schrieb Gershaw, Geoffrey: Thanks for reply Claus, I see your point. I was trying to avoid writing a nested filter. ${body} != null I guess I am looking for a lo

RE: Simple language question

2012-06-19 Thread Gershaw, Geoffrey
012 11:35 PM To: users@camel.apache.org Subject: Re: Simple language question On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey < geoffrey.gers...@credit-suisse.com> wrote: > Hello all, > > > > I am using the Spring DSL with the Filter EIP. The below snippet works, > but

Re: Simple language question

2012-06-18 Thread Claus Ibsen
On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey < geoffrey.gers...@credit-suisse.com> wrote: > Hello all, > > > > I am using the Spring DSL with the Filter EIP. The below snippet works, > but its confusing. I am trying to include a msg with a non-null body > the outcome of bean:CXRefDataCache

Re: simple language in http endpoint?

2012-03-14 Thread asd09
thank, but i couldn't make what you said. i solve my question by set CamelHttpQuery header earlier I tried to set HTTP_QUERY, but it didn't work. -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564955.html Sent from the Camel - Use

Re: simple language in http endpoint?

2012-03-14 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Wed, Mar 14, 2012 at 12:53 PM, asd09 wrote: > how can i do something like this >  https://somehost/index.php?$header.params222 /> > i try many combinations, but i not found worked version. > any suggestions? > > --

Re: simple language in http endpoint?

2012-03-14 Thread asd09
i started to find this because of update to apache-servicemix-4.4.1-fuse-02-05 . In older versions fuse this url worked fine https://somehost/report.php?df_start_day=12&df_start_month=3&df_start_year=2012&df_start_hour=0&df_start_minute=0&df_end_day=13&df_end_month=3&df_end_year=2012&df_end_hour=23

Re: Simple language checks failing after split

2009-07-29 Thread Claus Ibsen
In 2.0m2 try without the ' ' around the left hand side value. That should work too. On Wed, Jul 29, 2009 at 7:15 PM, msjwhite wrote: > > Thanks, Claus. > > It does indeed work when using 2.0-M3.  My only problem now is that the XSD > for 2.0-M3 is still missing, so we can't test our routes 100% a

Re: Simple language checks failing after split

2009-07-29 Thread msjwhite
Thanks, Claus. It does indeed work when using 2.0-M3. My only problem now is that the XSD for 2.0-M3 is still missing, so we can't test our routes 100% accurately with M3 yet (which is why I was still testing against M2 originally). Thanks Mark INFO [RouteTest ] - Expected

Re: Simple language checks failing after split

2009-07-29 Thread Claus Ibsen
Hi Could you try with 2.0m3 there was a fix in the simple language in relation to use ' ' in the left hand side. You can also try other combos ${in.header.type} == TYPE1 ${out.header.type} == TYPE1 Just to see if you get a match. If still an issue let me know and if you can create a sample / u