[
https://issues.apache.org/jira/browse/CAMEL-13534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-13534.
---------------------------------
Resolution: Fixed
Assignee: Claus Ibsen
Fix Version/s: 3.0.0-M3
3.0.0
> Simple language - Add colon as alternative syntax style
> -------------------------------------------------------
>
> Key: CAMEL-13534
> URL: https://issues.apache.org/jira/browse/CAMEL-13534
> Project: Camel
> Issue Type: Improvement
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.0.0, 3.0.0-M3
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The simple syntax can maybe be improved a bit when its a function such as env
> or sysenv or other functions vs OGNL method calls on body, headers etc that
> uses dot style.
> Eg
> {code}
> ${sysenv.FOO}
> {code}
> vs
> {code}
> ${env:FOO}
> {code}
> It may feel a bit more natural to use colon in these situations, and dot when
> using
> {code}
> ${body.someGetter}
> {code}
> And to refer to a header you can use both
> {code}
> ${header.foo}
> {code}
> {code}
> ${header:foo}
> {code}
> https://github.com/apache/camel/blob/master/core/camel-core/src/main/docs/simple-language.adoc
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)