|
Hi This is a very basic question, I have started to work with EOL and EGX and for testing queries in UML models I tried to use the Acceleo EOL interpreter. I am able to execute queries selecting the elements in the UML editor and I get the types of the model elements, even I am able to filter the elements using the name of the types for example, self.select(element | element.type.name = "Class"). But if try to filter using an UML model type, self.select( element | element.isTypeOf(Class) or self.select( element | element.isTypeOf(UML!Class) I am only getting an error that Class or UML is not recognized as a model, variable or type. What is the error? Thanks Jose |
Replies: 10 comments 3 replies
|
On a related note, If you have multiple metamodels containing a In this case you can specify that you are referring to the UML |
|
Hi Dimitri I kept with my tests and I found that the issue is related with the model used as selected input. In the same eclipse configuration I have repeated the test with my model that has several profiles applied and with the one that comes as an UML programming example, as getting started. I get the error with my model but works fine with the example, the same query, "return self.ownedElement.select(element | element.isTypeOf(uml::Class));" applied to the Model element of each of them. With the interpreter open and changing the selection between the 2 models. The tests are done with the last stable version of the Papyrus Designer, 7.1, base on eclipse 2025-06, installing the epsilon 2.8. Best regards |
|
I downloaded Papyrus Desktop 2025-26 and installed Acceleo and Epsilon on top of it but I'm not sure how to create a "HelloWorldOO example of a C++ code generation". If you could provide step-by-step instructions or a zipped copy of your project, that'd be very helpful. |
|
This seems to be due to a mismatch between the way the tree-based UML editor loads the model and the assumptions that Epsilon's InMemoryEmfModel makes. If you open the UML model with Exeed instead (right click on the model -> Open With -> Other... -> Exeed Editor) it should work as expected (see below).
|
|
I have tried with my model and Exeed and I got the same error. I will keep on investigating the error scenario. The thing that I know is that sometimes works fine with the UML editor, but I could not find exactly what is the steps required to make it work. It has to be related with the load of the model. |
|
I've pushed a fix for the underlying issue so if you try with the latest interim version it should work.
|
|
Thank you, Dimitri, it is fixed. I am using the framework case developing a C code generator for embedded system with RTOS to developped a real commercial product.. I have seen another issue in the debugger but I have to reproduce the issue properly. |







I've pushed a fix for the underlying issue so if you try with the latest interim version it should work.