kumaradityaraj opened a new pull request, #3391:
URL: https://github.com/apache/incubator-kie-tools/pull/3391

   ---
   Closes https://github.com/apache/incubator-kie-tools/issues/3324
   ---
   
   ## 🟢 Fix: Correct Node Coloring for `ForEachState` Using Metadata
   
   ### Context
   In Workflow (WF) diagrams, the `ForEachState` node is currently **not 
colored** in the diagram.
   While investigating, we identified that node coloring should be derived from 
**node definition metadata**, not only from the node instance itself.
   
   ---
   
   ### Problem
   The current coloring logic does not correctly handle `ForEachState` because:
   - `ForEachState` information is not available directly on the node instance
   - The coloring logic does not consider metadata from `nodeDefinitions`
   - As a result, `ForEachState` nodes appear uncolored in the diagram
   
   ---
   
   ## 🧪 How to Test
   Follow these steps to build and run the webapp locally:
   ```bash
   # From the project root
   cd incubator-kie-tools/
   pnpm -F runtime-tools-swf-enveloped-components... build:dev
   cd packages/sonataflow-deployment-webapp
   pnpm start:dev-webapp
   Navigate to - http://localhost:9023/#/runtime-tools/workflow-instances and 
click on forEach process name
   ```
   
   ---
   ## Preview
   <img width="1512" height="909" alt="Screenshot 2026-01-12 at 7 01 22 PM" 
src="https://github.com/user-attachments/assets/6c2b0ae0-6d63-49da-8507-821b141728fe";
 />
   
   
   ---


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to