Bug 563874 - Make it possible to throw a RollbackException in ModelChangeTrigger
Summary: Make it possible to throw a RollbackException in ModelChangeTrigger
Status: ASSIGNED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 6.3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: Next   Edit
Assignee: Florian Barbin CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-06-03 04:50 EDT by Florian Barbin CLA
Modified: 2020-06-10 13:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Barbin CLA 2020-06-03 04:50:54 EDT
In Sirius, we have the interface ModelChangeTrigger that allows to provide a pre-commit listener to the Sirius Session through the SessionEventBroker.

The SessionEventBroker is a ResourceSetListener and might then throw a RollbackException in transactionAboutToCommit method.

The ModelChangeTrigger does not allow to throw a RollbackException. It could be useful to have the possibility to rollback the whole transaction from a provided ModelChangeTrigger.
Comment 1 Eclipse Genie CLA 2020-06-03 04:56:29 EDT
New Gerrit change created: https://git.eclipse.org/r/164054
Comment 2 Florian Barbin CLA 2020-06-05 11:04:21 EDT
It's a technical issue without end-user validation steps
Comment 3 Maxime Porhel CLA 2020-06-10 13:35:18 EDT
Triaged as technical issue.