Hi Alejandro,
What do you define your element as?
- If it is an attribute then it is
[attr1 != empty]
- If it is an association then it is
[MyFirstModule.EntityA_EntityB/MyFirstModule.EntityB]
(to find where the association is empty then it is
[not(MyFirstModule.EntityA_EntityB/MyFirstModule.EntityB)])
- If it is an entity in general, you can simply retrieve the first object (no XPath needed)
To obtain the “first” you can apply the relevant sorting with your retrieve action