[jira] [Commented] (CAMEL-4169) simple calculations in route

2020-09-29 Thread Claus Ibsen (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-4169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17204164#comment-17204164
 ] 

Claus Ibsen commented on CAMEL-4169:


You can use 3rd party languages like groovy, or mvel (that is java) that is 
more powerful.

But the simple parser has since this JIRA been rewritten and it can potentially 
be improved to have more operators. But lets create a new JIRA ticket for this 
and we can look at what the community asks for, to add in simple language.

> simple calculations in route
> 
>
> Key: CAMEL-4169
> URL: https://issues.apache.org/jira/browse/CAMEL-4169
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core
>Affects Versions: 2.7.2
>Reporter: Marco Westermann
>Assignee: Claus Ibsen
>Priority: Minor
> Fix For: 2.9.0
>
>
> create calculation possibilities in simple language. For example to increment 
> a header property: ${header.counter}++
> example:
> from("direct:getLastValueFromCache")
> .transform().simple("${header.lastProcessedOrder}++")
> .to("direct:createNewOrderWithNewProcessingNumber");



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CAMEL-4169) simple calculations in route

2020-09-29 Thread Luca Ferrari (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-4169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17204111#comment-17204111
 ] 

Luca Ferrari commented on CAMEL-4169:
-

are other math operators tracked in other JIRAs? I feel this is an important 
requirement especially if you want to manipulate the payload for quick math 
expressions

> simple calculations in route
> 
>
> Key: CAMEL-4169
> URL: https://issues.apache.org/jira/browse/CAMEL-4169
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core
>Affects Versions: 2.7.2
>Reporter: Marco Westermann
>Assignee: Claus Ibsen
>Priority: Minor
> Fix For: 2.9.0
>
>
> create calculation possibilities in simple language. For example to increment 
> a header property: ${header.counter}++
> example:
> from("direct:getLastValueFromCache")
> .transform().simple("${header.lastProcessedOrder}++")
> .to("direct:createNewOrderWithNewProcessingNumber");



--
This message was sent by Atlassian Jira
(v8.3.4#803005)