Add getDelegationState() in DelegateTask.