Implementation of predict function of complete current task