Skip to main content



      Home
Home » Modeling » VIATRA » Scope uninitialized in Query Results
Scope uninitialized in Query Results [message #1836181] Wed, 23 December 2020 04:33 Go to next message
Eclipse UserFriend
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 248 times)
Re: Scope uninitialized in Query Results [message #1836192 is a reply to message #1836181] Wed, 23 December 2020 11:59 Go to previous messageGo to next message
Eclipse UserFriend
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 08:35 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 14:55:24 EDT 2025

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

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

Back to the top