|Re: SuperClass gets displayed with SubClass [message #1810280 is a reply to message #1810269]
||Tue, 06 August 2019 13:07
|| Steve Monnier
Registered: May 2011
Ok I think I have a better understanding with the screenshot. I hadn't noticed the first time, but with your expression you are trying to do two thing at once, identify candidates and filter by type so you should use oclAsType to cast, instead of oclIsTypeOf that returns a boolean.
If it is easier, you can do it in two steps. For your candidate expression, you can use only aql:self.classa, as it is the reference in your metamodel. Note that you can also use the expression "feature:classa" that is more performant. Then you want to filter by type, this can be done in the "Precondition Expression" field in the advance tab. Here the expression will be aql:self.oclIsTypeOf(exampleProject::ClassA) or SubClassA1 depending on the mapping.
Concerning the errors about the unaccessible types, can you check that in the Manifest.MF file of your project, you have a dependency to your metamodel? Also, in your .odesign, if you select your DiagramDescription "exampleDiagram", you can go to the metamodel tab and add your metamodel using the registry or the workspace. This should further check that you have access to your metamodel.
Steve Monnier - Obeo
Need training or professional services for Sirius?
Powered by FUDForum
. Page generated in 0.04868 seconds