AQL problem in "includes"/"excludes" functions? [message #1823276] |
Tue, 24 March 2020 05:51  |
Eclipse User |
|
|
|
Hi,
I suspect there is a bug in the "excludes"/"includes" function.
I would have imagined that if I choose a model element and apply:
aql: self. ancestors()->includes(self.ancestors())
this would result in "true".
However, it results in "false."
The same logic applies to .excludes(), with similar opposite result.
I used the above query only for demonstration, but I keep getting same opposite logic in similar less trivial implementations.
My real purpose was to find whether an object that an edge points to as source (self.source in my implementation) is a child of the target (self.target). I use:
aql: self.source.ancestors()->includes(self.target)
and keep getting "false" when the source is indeed an element contained within target.
Can you enlighten me? What am I doing wrong?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07779 seconds