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

Claus Ibsen resolved CAMEL-24232.
---------------------------------
    Resolution: Fixed

> ProcessorTransformer does not copy variables to transform exchange
> ------------------------------------------------------------------
>
>                 Key: CAMEL-24232
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24232
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.22.0
>
>
> {{ProcessorTransformer.transform()}} creates a copy of the exchange for the 
> transform processor but does not copy variables from the original exchange.
> {code:java}
> Exchange transformExchange = new DefaultExchange(exchange);
> transformExchange.setIn(message);
> transformExchange.getExchangeExtension().setProperties(exchange.getProperties());
> processor.process(transformExchange);
> {code}
> It copies:
> * Headers: yes (via {{setIn(message)}})
> * Exchange properties: yes (via {{setProperties}})
> * Variables: *no*
> If the transform processor references {{$\{variable.xxx\}}}, it will get 
> {{null}} instead of the actual value.
> Found while investigating CAMEL-24231 (same class of bug: incomplete data 
> copy to a scratch exchange).



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

Reply via email to