Get all Usertasks from specific workflow

Hi, I’m trying to retrieve all the usertask from a started workflow. As parameter I have the workflow context but I’m unable to retrieve the tasks linked to it.   Any idea on how to do this? The current user shoud not be used as it shows it to everyone.
1 answers

Are you retrieving workflow user tasks that are already completed? In that case you indeed wont see them since I believe they are deleted once complete, see:

‘After a workflow user task is completed it is automatically deleted from System.WorkflowUserTask’


In that case I think you can retrieve the workflow commons entity UserTaskView.