AQL query works on Sirius interpreter, returns error on M2DOC

I had another example that wasn’t fixed by adding the Capella component on the template editor. What could be the problem?
Sirius interpreter:
aql:self.eAllContents(fa::ComponentExchange).source.orientation
List of Orientations of all ports in the ComponentExchanges (IN, OUT and INOUT)
My Template file:
{ m:for ce | self.eAllContents(fa::ComponentExchange) }
Component Exchange: { m:ce.name }
Source: { m:ce.source.eContainer().name }
Target: { m:ce.target.eContainer().name }
Orientation: { m:ce.source.orientation }
{ m:endfor }
Generated docx file:
Orientation: { m:ce.source.orientation } Invalid query statement: Feature orientation not found in EClass InformationsExchanger
When I use the Sirius interpreter in Capella I am able to access the ComponentExchange port and its orientation. In M2DOC it says the ‘feature orientation not found in EClass InformationExchanger’. I thought the ce.source (or self.eAllContents(fa::ComponentExchange).source) was of the type ComponentPort (so I could access the ‘orientation’ feature in it) but M2Doc says it is an EClass InformationExchanger…
What am I missing here?

1 Like