TaskFactory.pred