Community
Participate
Working Groups
Created attachment 267607 [details] Example model with a redefined trigger guard When undo a re-inherit of redefined trigger guard, then the perstisted constrainedElement reference for the trigger guard constraints is lost after undo. Steps to reproduce: 1) Open the attached model 2) Check the .uml model file for the constrainedElement reference <ownedRule xmi:type="uml:Constraint" xmi:id="_H7hjohhpEeemJtomyNM8PA" constrainedElement="_7JKscBhdEeeSBZ9WSKr4Zg"> <specification xmi:type="uml:OpaqueExpression" xmi:id="_I7-7EBhpEeemJtomyNM8PA"> <language>C++</language> <body>// Redefined trigger guard for request</body> </specification> </ownedRule> 3) Re-inherit the redefined trigger guard in the state-machine of Capsule2 4) Save the model to persist it and reset the dirty indicator 5) Undo the re-inherit 6) Save the model after undo 7) Check the persisted result. The redefining trigger guard constraint does not have the constrainedElement reference. <ownedRule xmi:type="uml:Constraint" xmi:id="_H7hjohhpEeemJtomyNM8PA"> <specification xmi:type="uml:OpaqueExpression" xmi:id="_Z_PLQBhqEeeuSM-laWkO6A"> <language>C++</language> <body>// Redefined trigger guard for request</body> </specification> </ownedRule> If the model is closed and re-opened again, then the redefining trigger guard is lost in the subclass, and the trigger guard no longer have the redefined symbol in the diagram (and it is not shown in the model explorer).
New Gerrit change created: https://git.eclipse.org/r/94502
Gerrit change https://git.eclipse.org/r/94502 was merged to [master]. Commit: http://git.eclipse.org/c/papyrus-rt/org.eclipse.papyrus-rt.git/commit/?id=e9ad6bf3068052b7afd2a750c0dd71b8cc35a8f1
(In reply to Eclipse Genie from comment #2) > Gerrit change https://git.eclipse.org/r/94502 was merged to [master].
Verified to be fixed in the latest Papyrus-RT build (#551). The constrainedElement reference is now persisted correctly also after undo.
Closing as verified fixed.