gnodet commented on PR #22932:
URL: https://github.com/apache/camel/pull/22932#issuecomment-4377335265

   _Claude Code on behalf of Guillaume Nodet_
   
   To illustrate the impact on the structure dump, here's a before/after for a 
route with doTry + choice:
   
   **Before (when/otherwise flattened):**
   ```
     0: [route] route[dotry-choice]
       1: [from] from[timer://tryChoiceInside?repeatCount=1]
         2: [setHeader] setHeader[type]
         2: [doTry] doTry
           3: [choice] choice[when[{header(type) == A}]otherwise]
             4: [log] log[Type A]
             4: [log] log[Other type]
             4: [throwException] throwException[java.lang.Exception]
           3: [doCatch] doCatch[ [class java.lang.Exception]]
             4: [log] log[Err: ${exception.message}]
         2: [log] log[Do other processing...]
   ```
   
   **After (when/otherwise as proper tree nodes):**
   ```
     0: [route] route[dotry-choice]
       1: [from] from[timer://tryChoiceInside?repeatCount=1]
         2: [setHeader] setHeader[type]
         2: [doTry] doTry
           3: [choice] choice
             4: [when] when[{header(type) == A}]
               5: [log] log[Type A]
             4: [otherwise] otherwise
               5: [log] log[Other type]
               5: [throwException] throwException[java.lang.Exception]
           3: [doCatch] doCatch[ [class java.lang.Exception]]
             4: [log] log[Err: ${exception.message}]
         2: [log] log[Do other processing...]
   ```
   
   The structure is now consistent: choice/when mirrors doTry/doCatch. 
When/otherwise are visible as tree nodes rather than being flattened, and their 
body processors are properly indented underneath.


-- 
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