Retrieving incoming links from activity

Hello,
I’m looking for a way to retrieve incoming Activity data, for instance for having the attached ReqIF:
image
I figure out that it might be possible to filter when relations are part of the object:
XXXXX.ownedRelations->filter(CapellaRequirements::CapellaIncomingRelation)

The OA doesn^'t have relations elements.
Is there an example somewhere?

Thanks,
Samuel

Hello,
I guess you could consider using “.eInverse()” :
XXX.eInverse()->filter(CapellaRequirements::CapellaIncomingRelation)

Dimitri

1 Like

Hi,
Thank you for reply, it works as expected:

Blockquote
element : oa::OperationalActivity
element.eInverse(‘target’)->filter(CapellaRequirements::CapellaIncomingRelation)

Samuel