Get all tasks for a process

How to get all the tasks (user and service tasks) that will be created by the process?
I need to get all the tasks irrespective of whether they are yet created or not.