eclipse-viatra / org.eclipse.viatra

Main components of the VIATRA framework
https://eclipse.dev/viatra
Eclipse Public License 2.0
1 stars 1 forks source link

Support for automatically disposing transformations if underlying query engine is disposed #100

Open eclipse-viatra-bot opened 6 months ago

eclipse-viatra-bot commented 6 months ago

| --- | --- | | Bugzilla Link | 543789 | | Status | NEW | | Importance | P3 enhancement | | Reported | Jan 24, 2019 09:49 EDT | | Modified | Jan 24, 2019 09:49 EDT | | Version | 2.1.0 | | Reporter | Zoltan Ujhelyi |

Description

We have seen issues where query engines and event-driven transformations are managed by separate components; in such cases when query engines are stopped (e.g. because of model unloading) the transformation engine gets into an inconsistent state, e.g. the engine stops sending notifications, but the model update listeners are still active. An approach to handle this is to register a ViatraQueryEngineLifecycleListener to the engine, and dispose the transformation on the appropriate events.

This process could be made automatic: we could provide this support in a generic way, allowing transformation developers to use it. The question is what kind of transformations should rely on these. A first idea: