rajalakshmys-27 opened a new issue, #2318:
URL: https://github.com/apache/incubator-kie-issues/issues/2318

   ### Summary
   When a task or sub-process is deleted in the BPMN Editor, its attached 
boundary events are left behind as orphaned elements on the canvas and in the 
underlying XML.
   
   ### Description
   According to the BPMN 2.0 specification, boundary events are structurally 
dependent on their host activity via the `attachedToRef` attribute. Deleting 
the host activity should cascade and remove all associated boundary events. 
Currently, this cascade deletion does not occur, resulting in invalid BPMN XML 
with dangling `attachedToRef` references.
   
   ### Steps to Reproduce
   1. Open the BPMN Editor
   2. Create a Task or Sub-Process
   3. Attach one or more Boundary Events to the task
   4. Delete the Task or Sub-Process
   5. Observe the canvas and inspect the underlying XML
   
   ### Expected Behavior
   - All boundary events attached to the deleted task are automatically removed 
from the canvas
   - The underlying XML contains no orphaned boundary event elements 
referencing the deleted task
   
   ### Actual Behavior
   - Boundary events remain on the canvas as orphaned elements
   - The XML retains boundary event entries with an unresolvable 
`attachedToRef` pointing to 
     the deleted task, producing invalid BPMN
   


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