You can get the data of a running Task via Public API:
- [ITask.getStartProcessData()][1]
- [ITask.getEndProcessData()][2]
To find running tasks from a case you can use the case API:
- [ICase.getActiveTasks()][3]
[1]: http://developer.axonivy.com/doc/latest/publicApi/ch/ivyteam/ivy/workflow/ITask.html#getStartProcessData--
[2]: http://developer.axonivy.com/doc/latest/publicApi/ch/ivyteam/ivy/workflow/ITask.html#getEndProcessData--http://developer.axonivy.com/doc/latest/publicApi/ch/ivyteam/ivy/workflow/ITask.html#getEndProcessData--
[3]: http://developer.axonivy.com/doc/latest/publicApi/ch/ivyteam/ivy/workflow/ICase.html#getActiveTasks--