[
https://issues.apache.org/jira/browse/CAMEL-20815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-20815.
---------------------------------
Resolution: Not A Bug
> 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
> 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)