Hi,
sorry, I gave you wrong examples. It should be:
List<HistoryTask> history = historyService.createHistoryTaskQuery().executionId(processInstance.getId()).list();
Unfortunately there is no way to narrow down the search by activity name but you can either use task id or outcome.
In the worst case you will get all completed task for execution and the filter it manually.
Cheers,
Maciej