check whether member is descendant of any parent in groovy
Summary:
how to find the the member is a descendant of any parent in groovy
Content (required):
How can we check whether selected member from pov is a descendant of any parent in groovy. we have hasChild() method, but i don't see hasDescendant() method. I tried pulling all descendants of the parent to a list and used contains method as below, but that doesn't work
goes to else part and get not found message
any thoughts on this?
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
/*RTPS: {ServiceLine}*/
Tagged:
0