When connecting a model to the tasks you need to have the tree sorted by element types to assign PILES to piles tasks and DOORS to doors task. The direct attribute NAME is actually the human readable unique name of the element (essentially = GLOBALID) and the type should be in the attribute OBJECTTYPE. There could be an option to build the tree by any attribute.