Hello,
I am using capella version 6.1 with the extensions Requirment VP and M2DOC.
Now I try to extract the Rewquirments, allocated to capella artefacts.
The query is like
{m:for ocp|self.eAllContents(oa::OperationalCapabilityPkg)}
{m:if ocp.name=‘somename’}
{m:for opc|ocp.eAllContents() → filter(oa::OperationaCapability) → select(r|r.ownedExtensions → size() <>0)}
{m:for targ|opc.ownedExtensions → filter(CapellaRequirmens::CapellaOutgoingRelation)}
{m.targ.target.ReqIFPrefix}{m:targ.target.ReqIdentifier}
{m:endor}
{m:endfor}
{m:endif}
{m:endif}
{m:endfor}
The error message in the Valdidation report is
<—Expression “Req.ownedExtensions → filter(CapellaRequirements::CapellaOutgoingRelation)” is invalid: invalid type literal CapellaRequirements::CapellaOutgoingRelation
I used some similar expressions in former projects with capella v5.1, so I’m wondering if there is some resource missing in my template, or was the expression for the filters changed in M2DOC for capella 6.1?
Thanks for your help
BR
Carsten