add an interface to generate taskid with task object