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

Enable dynamic values in the headerName / propertyName

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.3
    • 2.17.0
    • camel-core
    • None
    • Unknown

    Description

      It would be really helpful for me if exchange properties and headers would allow dynamic values to be set from the XML DSL, for example:

      <setProperty propertyName="$simple{type:my.domain.StringConstants.EXCHANGE_PROP_TX_FAILED}">
              <simple>${type:java.lang.Boolean.TRUE}</simple>
      </setProperty>
      
      StringConstants.EXCHANGE_PROP_TX_FAILED = "exchange_prop_tx_failed";
      

      See also this thread from camel-users.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            stephenhartley stephen hartley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: