Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13534

Simple language - Add colon as alternative syntax style

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-M3, 3.0.0
    • None
    • None
    • Unknown

    Description

      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

      ${sysenv.FOO}
      

      vs

      ${env:FOO}
      

      It may feel a bit more natural to use colon in these situations, and dot when using

      ${body.someGetter}
      

      And to refer to a header you can use both

      ${header.foo}
      
      ${header:foo}
      

      https://github.com/apache/camel/blob/master/core/camel-core/src/main/docs/simple-language.adoc

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m