[ https://issues.apache.org/jira/browse/CAMEL-4169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058236#comment-13058236 ]
Claus Ibsen commented on CAMEL-4169: ------------------------------------ We may consider adding support for other math operators such as - + (plus) - - (minus) - * (multiply) - / (division) - % (modulus) The trick is that the parser is currently reg exp based, so it takes a trained reg exp eye to add those. Likewise the ++ and -- operators or used as uni operator (eg it work on the left hand side only) and this as well makes the reg exp parser a bit more complicated. And the right hand side / left hand side values must be converter to numeric values, of course. > simple calculations in route > ---------------------------- > > Key: CAMEL-4169 > URL: https://issues.apache.org/jira/browse/CAMEL-4169 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.7.2 > Reporter: Marco Westermann > Priority: Minor > Fix For: Future > > > 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 is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira