Getting all the children of the root of the tree can be done using two methods, “code” and “design”, which is given below the related description.

bpmAppService.BPMSServices.DomainObjectService.GetAllTreeNodeFromRootObject (input1, input2, input3);
input1: Child object
input2: Parent Foreign Key
input3: Foreign Key to itself
Output: List Node