AndreyCurious opened a new pull request, #4042: URL: https://github.com/apache/incubator-kie-tools/pull/4042
Fixes apache/incubator-kie-issues#2414 ## What When a Message is renamed or deleted, the editor updates / clears the message reference (`drools:msgref`, `messageRef`) on message events. The visited event types listed `endEvent`, `intermediateThrowEvent`, `startEvent` and `intermediateCatchEvent` but omitted `boundaryEvent`. As a result a boundary message event kept a stale `drools:msgref` after rename, or a dangling `messageRef` to the removed root `message` after delete — the latter producing a file that fails to parse on reopen. ## Change Add `boundaryEvent` to that condition in `renameMessage.ts` and `deleteMessage.ts`, so boundary message events are handled like the other message events. ## How to verify 1. Create a process with a Message and a boundary message event referencing it. 2. Rename the message → the boundary event now gets the updated `drools:msgref`. 3. Delete the message → the boundary event message refs are cleared; the file still parses on reopen. -- 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]
