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

Enable dynamic values in the headerName / propertyName

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.3
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: