I guess you are trying to get activity name?! If so you could try HistoryActivityInstance and query related to that object.
Yes, I guess !
But I need task name, assignee, createdTime, endedTime and status...
How to link HistoryTask to HistoryActivityInstance, there are no access to a common id !
I have the same Problem, I think the HistoryTaskImpl is missing some stuff:
* the name of the task is not used or persisted at all
* the due date exists in the java class but there is no database field for storing it
* there is no reference to the process instance
When you query for HistoryActivityInstance and the instance is of type task it will return HistoryTaskInstanceImpl which has a method getHistoryTask.
That (in theory) should do what you expect, but I have not tried that if it works properly or not. Let us know the result of your test.
Michael, if you think there are missing parts for it please file an jira issue for it.
Effectivelly, but it is not really simple way !
I need only completed tasks, the other activities and not complete tasks are not shown to users...
Unfortunatly, with historyActivityInstanceQuery I can't have the same criteria than HistoryTask
So I need to use hibernate directly to access to the right data...
Perhaps it needs an enhancement to HistoryService or to HistoryActivityInstanceQuery ?