How to getet Taskid in Task Listener

I want to get task id assigned to a global variable using Task Listener on task Create