Description of Exchange Item and extraction of 'ownedElements'

Hello Community,

I have an issue with the extraction of ExchangeItem’s description .

When i use the interpreter , it seems working but when i put it in my Template it dosn’t work.

For the name of ExchangeItem, it works , but not for the description

The same issue for ownedElements

rr

r

rrr

Any help is welcome

Thx

Youness

The EClass AbstractExchangeItem doesn’t have any feature named description nor ownedElements. I think you are not using an AbstractExchangeItem in the interpreter but an ExchangeItem. You probably need to cast the result of your expression:

CE1.convoyedInformations->filter(information::ExchangeItem)

The EReference convoyedInformations type’s is AbstractExchangeItem and not ExchangeItem, that’s why AQL (and M2Doc) shows this error.