|
|
|
Re: How to access other instances in Sirius while defining semantic constraint ? [message #1806670 is a reply to message #1806658] |
Mon, 13 May 2019 14:24 |
|
On the screenshot, the reference betwen System and Platform is multivalued but as I read again your initial message you said that " (by the way only and only if 1 Platform object can exist in the system)". I am not sure if you mean that there can only be only one Platform object in the model. If that the case, from the context of a Tag, to access the Platform, you should have an expression like aql:self.eContainer().eContents()->Filter(Platform) or aql:self.eContainer().oclAsType(System).platform. If you can have multiple Platform then you will need a reference between Tag and Platform otherwise you would not know which Platform element to choose.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03920 seconds