previousParentTask.markAllDependentTasksAsNeedingRecalculation(true); // flag this and dependent tasks as dirty
previousParentTask.setWbsChildrenNodes(taskOutlines.getDefaultOutline().getHierarchy().getChildren(previousParentNode));
}
// refresh the new parent's children
NodeHierarchy hierarchy=taskOutlines.getDefaultOutline().getHierarchy();
newParentNode = hierarchy.getParent(node);
newParentTask = null;
if (newParentNode!=hierarchy.getRoot()) {
newParentTask=(Task)newParentNode.getImpl();
newParentTask.setWbsChildrenNodes(taskOutlines.getDefaultOutline().getHierarchy().getChildren(newParentNode));
newParentTask.restrictToValidConstraintType();
// newParentTask.setParentDuration(); //hk
newParentTask.markAllDependentTasksAsNeedingRecalculation(true); // flag this and dependent tasks as dirty