Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » VIATRA » Scope uninitialized in Query Results
Scope uninitialized in Query Results [message #1836181] Wed, 23 December 2020 09:33 Go to next message
Thuy Nguyen is currently offline Thuy NguyenFriend
Messages: 4
Registered: December 2020
Junior Member
I am applying the guide in the "GETTING STARTED WITH VIATRA" tutorial (https://www.eclipse.org/viatra/documentation/tutorial.html) to writing a query for my model instances.

About my model: I created a metamodel in metamodel.ecore file, generated some instances, and save these instances in a model.xmi file.

At step 3.1.2. Evaluate Queries in the Query Results View, I cannot load models and queries using the Query Results View because the scope is uninitialized. [1]: index.php/fa/39598/0/

I would like to ask how to initialize the Query Scope in my case.
  • Attachment: Capture.PNG
    (Size: 18.93KB, Downloaded 190 times)
Re: Scope uninitialized in Query Results [message #1836192 is a reply to message #1836181] Wed, 23 December 2020 16:59 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hi Thuy,

loading queries into the Query Results view requires two separate steps: at first, you have to initialize the query scope (by selecting a model file) and then can the queries be loaded. In section 3.1.2 the required steps are documented as follows:

Quote:

1. Open our example instance model (/org.eclipse.viatra.examples.cps.instances/example.cyberphysicalsystem)
2. Make sure "ReteEngine" is selected in the toolbar of the Query Results view
3. then press the 'Load model from active editor' (first button on the toolbar)
4. Open the query specification (vql file)
5. then press the 'Load queries from the active editor' button


Here steps 1-3 are responsible for initializing the scope, and 4-5 for loading the queries. Based on your screenshot my guess is that you have not executed successfully step 1-3.

Best regards,
Zoltán
Re: Scope uninitialized in Query Results [message #1836477 is a reply to message #1836192] Tue, 05 January 2021 13:35 Go to previous message
Thuy Nguyen is currently offline Thuy NguyenFriend
Messages: 4
Registered: December 2020
Junior Member
Dear Zoltán,

Sorry for not carefully checking the document. Thank you, I could initialize the query scope now.
Previous Topic:Some questions regarding performance
Next Topic:Viatra to execute java on events
Goto Forum:
  


Current Time: Fri Dec 06 19:06:13 GMT 2024

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

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

Back to the top