[ 
https://issues.apache.org/jira/browse/CAMEL-20815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen reopened CAMEL-20815:
---------------------------------
      Assignee: Claus Ibsen

The doc was wrong, but lets make it possible via exchange anyway since then it 
better fits the docs and makes it possible to work with variables both global 
and exchange scoped everywhere

> exchange.getVariable does not get Global variables in custom processor
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-20815
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20815
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 4.6.0
>            Reporter: Marat Gubaidullin
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> This one does not work in custom processor:
> {code:java}
> Object val1 = exchange.getVariable("global:testVar"); {code}
> This one works fine:
> {code:java}
> Object val2 = exchange.getContext().getVariable("testVar"); {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to