davsclaus opened a new pull request, #24996:
URL: https://github.com/apache/camel/pull/24996

   ## Summary
   
   _Claude Code on behalf of davsclaus_
   
   Fixes [CAMEL-24232](https://issues.apache.org/jira/browse/CAMEL-24232).
   
   `ProcessorTransformer.transform()` creates a copy of the exchange for the 
transform processor and copies exchange properties, but does not copy 
variables. If the transform processor references `${variable.xxx}`, it gets 
`null` instead of the actual value.
   
   Found while investigating 
[CAMEL-24231](https://issues.apache.org/jira/browse/CAMEL-24231) (same class of 
bug: incomplete data copy to a scratch exchange).
   
   **Changes:**
   - Copy variables from the source exchange to the transform exchange in 
`ProcessorTransformer.transform()`
   - Add test `ProcessorTransformerVariableTest` verifying both variables and 
properties are available in the transform processor
   
   ## Test plan
   - [x] New test `ProcessorTransformerVariableTest` — two cases: variables and 
exchange properties accessible in transform processor
   - [x] All existing transformer tests pass (`TransformerRouteTest`, 
`TransformerContractTest`, `TransformerBuilderTest`, 
`TransformDataTypeProcessorTest`)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to