Community
Participate
Working Groups
In a VSM, if an expression corresponds to a java service call that throws an OperationCanceledException, it is currently not rollbacked. The command corresponding to this expression is executed till the OperationCanceledException and the model remains in an intermediate state. The goal of this issue is to hava a way to handle some specific case by waiting the resolution of more general bug 495036.
New Gerrit change created: https://git.eclipse.org/r/117891
The above gerrit is a proposition of fix with a specific key word "-RT-" to minimize the impact and only handled desired cases. Only OperationCanceledException containing this specific key word will be ReThrowed.
The "-RT-" code is available through org.eclipse.sirius.business.internal.logger.OCERuntimeLoggerSpy.RE_THROW_STATUS_MESSAGE_KEY. Warning: It is an internal Class. But use this constant will allow to automatically detect a future change of behavior through the bugzilla 495036 for example.
Gerrit change https://git.eclipse.org/r/117891 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=2de6aaf1d396d500704c9b3130325008ea43bc78
Created attachment 274177 [details] use case With the attached use case: Open the representation try to apply the tool New Class with xxx = > the class should be created try to apply the tool New Class with xxx with specific message => the class should not be created
Available in Sirius 6.0.0, see https://wiki.eclipse.org/Sirius/6.0.0 for details