Getting all the child’s parents and inserting it in the third parameter input can be done using both the “code” and “design” method, which is given below with related explanations.

bpmAppService.BPMSServices.DomainObjectService.GetRootObject (input1, input2, input3);
input1: The object of the child’s Entity
input2: Foreign Key to itself
input3: Parent Foreign Key
Output: List Node