Skip to main content



      Home
Home » Modeling » VIATRA » No matches found while there is an expected result
No matches found while there is an expected result [message #1836618] Sat, 09 January 2021 10:13 Go to next message
Eclipse UserFriend
I am trying to write some queries for my models. However, in all of my queries, there are no matches while there are expected results.

The attached screenshot shows an example of my query. Could you please help me check it?

Thank you so much,
Thuy
Re: No matches found while there is an expected result [message #1836622 is a reply to message #1836618] Sat, 09 January 2021 14:04 Go to previous messageGo to next message
Eclipse UserFriend
Dear Thuy,

thank you for you interest in Viatra Query.

It is clear from your screenshot that your instance model is a dynamic EMF instance, rather than a regular instance model that is to be expected in most use cases.

In case you have to work with dynamic EMF models, you must enable dynamic EMF support in Viatra. When using the Viatra GUI ( "Query Results" view), please turn on the dynamic EMF support in your Eclipse Preferences (it is not turned on right now, hence the line "Dynamic EMF mode: false"). If you have to interact with dynamic EMF programmatically (this is less likely), enable the same thing via your EMFScope.
Re: No matches found while there is an expected result [message #1836633 is a reply to message #1836622] Sun, 10 January 2021 09:00 Go to previous message
Eclipse UserFriend
Dear Gabor,

Thank you so much for your reply. After enabling Dynamic EMF mode, I got the expected result.
Previous Topic:Viatra to execute java on events
Next Topic:Viatra Documentation Example not working
Goto Forum:
  


Current Time: Sat Jul 12 09:43:24 EDT 2025

Powered by FUDForum. Page generated in 0.06789 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top