Hello,
I’m using M2DOC to generate documentation from my capella model and I’ve encountered an error when trying to extract interfaces from a CII “Contextual Internal Interface” diagram.
I’m using the following M2DOC command:
{m:let contenuDiagram = '[CII] Bilan des interfaces KPVA '. representationByName().eAllContents(viewpoint::DRepresentationElement).semanticElements}
{m:for interface|contenuDiagram->filter(cs::Interface)}
…
{endlet}
{endfor}
At the generation, I get the following error:
“Couldn’t find the ‘aqlFeatureAccess(org.eclipse.acceleo.query.runtime.impl.Nothing,java.lang.String)’ service” under the “let” command (as mentioned above)
I should note that the command “self.eAllContents(viewpoint::DRepresentationElement).semanticElements->filter(cs::Interface)” works correctly when plugged in the capella interpreter (self = clicking on the back of the CII diagram) and I get the interfaces in the CII diagram as an interpreter result.
Is this problem caused by missing nsURI packages (I already added the *capella and *sirius packages in my template properties) or is it a semantic problem?
Note:
I’m using capella 1.4.0 with M2DOC version 3.0.0
The same command works correctly for a LAB diagram with M2DOC ( for example with filter (la::LogicalComponent)).