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

exchange.getVariable does not get Global variables in custom processor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.6.0
    • 4.7.0
    • camel-core
    • None
    • Unknown

    Description

      This one does not work in custom processor:

      Object val1 = exchange.getVariable("global:testVar"); 

      This one works fine:

      Object val2 = exchange.getContext().getVariable("testVar"); 

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            marat.gubaidullin@gmail.com Marat Gubaidullin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: