[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/
Current behavior
The validation fails to find the service corresponding to an EOperation.
A work-around consists in forcing a cast right before calling the EOperation.
Minimal reproduction of the problem with instructions
Anywhere in one of the M2Doc templates for Capella's IFE model, add the following template:
{m:template myTemplate(myModelElement : modellingcore::ModelElement)}{m: myModelElement.getLabel()}{m:endtemplate}
The validation fails with:
<--- Couldn't find the 'getLabel(EClassifierLiteral=ModelElement)' service
on the second line.
The workaround is to have the second line force the cast:
{m: myModelElement->filter(modellingcore::ModelElement).getLabel()}
I'm submitting a...
Current behavior
The validation fails to find the service corresponding to an EOperation.
A work-around consists in forcing a cast right before calling the EOperation.
Minimal reproduction of the problem with instructions
Anywhere in one of the M2Doc templates for Capella's IFE model, add the following template:
{m:template myTemplate(myModelElement : modellingcore::ModelElement)}
{m: myModelElement.getLabel()}
{m:endtemplate}
The validation fails with:<--- Couldn't find the 'getLabel(EClassifierLiteral=ModelElement)' service
on the second line.The workaround is to have the second line force the cast:
{m: myModelElement->filter(modellingcore::ModelElement).getLabel()}
Environment