You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "angelo.rlcosta" <an...@gmail.com> on 2015/03/26 11:09:26 UTC

Math operations with simple expression

hi guys, anyone know if in camel is possible to perform math operations like
sum and division with simple expression?

Thanks in advance



--
View this message in context: http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Math operations with simple expression

Posted by "angelo.rlcosta" <an...@gmail.com>.
Thanks Claus.

That worked!


Ângelo Costa

On Thu, Mar 26, 2015 at 1:27 PM, Claus Ibsen-2 [via Camel] <
ml-node+s465427n5764827h74@n5.nabble.com> wrote:

> If you use tokenizer to split then it has a group option
> http://camel.apache.org/splitter.html
>
> On Thu, Mar 26, 2015 at 12:45 PM, angelo.rlcosta
> <[hidden email] <http:///user/SendEmail.jtp?type=node&node=5764827&i=0>>
> wrote:
>
> > Thanks Claus.
> >
> > Another question, i am looking at http://camel.apache.org/splitter.html and
>
> > thinking if its possible to split for example 100 items in to smaller
> chunks
> > of 10 items?
> >
> > Any idea?
> >
> > Regards,
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819p5764822.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5764827&i=1>
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819p5764827.html
>  To unsubscribe from Math operations with simple expression, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5764819&code=YW5nZWxvLnJsY29zdGFAZ21haWwuY29tfDU3NjQ4MTl8OTY0MzQzODU=>
> .
> 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/Math-operations-with-simple-expression-tp5764819p5764898.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Math operations with simple expression

Posted by Claus Ibsen <cl...@gmail.com>.
If you use tokenizer to split then it has a group option
http://camel.apache.org/splitter.html

On Thu, Mar 26, 2015 at 12:45 PM, angelo.rlcosta
<an...@gmail.com> wrote:
> Thanks Claus.
>
> Another question, i am looking at http://camel.apache.org/splitter.html and
> thinking if its possible to split for example 100 items in to smaller chunks
> of 10 items?
>
> Any idea?
>
> Regards,
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819p5764822.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Re: Math operations with simple expression

Posted by "angelo.rlcosta" <an...@gmail.com>.
Ok Sure Morgan!


Ângelo Costa

On Thu, Mar 26, 2015 at 11:59 AM, Morgan.Hautman [via Camel] <
ml-node+s465427n5764823h50@n5.nabble.com> wrote:

> Hi Angelo,
>
> Could you split you're questions in different threads?
> This is easier to follow and each thread is so problem specific.
>
> Regards,
> Morgan
>
> On 26/03/2015 12:45, angelo.rlcosta wrote:
>
> > Thanks Claus.
> >
> > Another question, i am looking at http://camel.apache.org/splitter.html and
>
> > thinking if its possible to split for example 100 items in to smaller
> chunks
> > of 10 items?
> >
> > Any idea?
> >
> > Regards,
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819p5764822.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819p5764823.html
>  To unsubscribe from Math operations with simple expression, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5764819&code=YW5nZWxvLnJsY29zdGFAZ21haWwuY29tfDU3NjQ4MTl8OTY0MzQzODU=>
> .
> 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/Math-operations-with-simple-expression-tp5764819p5764825.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Math operations with simple expression

Posted by Morgan Hautman <mo...@gmail.com>.
Hi Angelo,

Could you split you're questions in different threads?
This is easier to follow and each thread is so problem specific.

Regards,
Morgan

On 26/03/2015 12:45, angelo.rlcosta wrote:
> Thanks Claus.
>
> Another question, i am looking at http://camel.apache.org/splitter.html and
> thinking if its possible to split for example 100 items in to smaller chunks
> of 10 items?
>
> Any idea?
>
> Regards,
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819p5764822.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Math operations with simple expression

Posted by "angelo.rlcosta" <an...@gmail.com>.
Thanks Claus.

Another question, i am looking at http://camel.apache.org/splitter.html and
thinking if its possible to split for example 100 items in to smaller chunks
of 10 items?

Any idea?

Regards,



--
View this message in context: http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819p5764822.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Math operations with simple expression

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

No this is not possible and not the goal of that language. You can use
groovy / javascript etc instead

On Thu, Mar 26, 2015 at 11:09 AM, angelo.rlcosta
<an...@gmail.com> wrote:
> hi guys, anyone know if in camel is possible to perform math operations like
> sum and division with simple expression?
>
> Thanks in advance
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/