-
1. Re: How to get the name of a completed task ?
swiderski.maciej Jun 23, 2010 7:21 AM (in response to newbeewan)I guess you are trying to get activity name?! If so you could try HistoryActivityInstance and query related to that object.
HTH
-
2. Re: How to get the name of a completed task ?
newbeewan Jun 23, 2010 7:51 AM (in response to swiderski.maciej)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 !
Regards
-
3. Re: How to get the name of a completed task ?
mwohlf Jun 23, 2010 9:08 AM (in response to newbeewan)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
-
4. Re: How to get the name of a completed task ?
swiderski.maciej Jun 23, 2010 9:09 AM (in response to newbeewan)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.
-
5. Re: How to get the name of a completed task ?
swiderski.maciej Jun 23, 2010 9:37 AM (in response to mwohlf)Michael, if you think there are missing parts for it please file an jira issue for it.
-
6. Re: How to get the name of a completed task ?
newbeewan Jun 23, 2010 9:44 AM (in response to swiderski.maciej)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 ?
Regards
-
7. Re: How to get the name of a completed task ?
newbeewan Jun 23, 2010 10:49 AM (in response to swiderski.maciej)For me the only thing missing in HistoryTask is the name of the task
I create a feature request in the jira https://jira.jboss.org/browse/JBPM-2896
Regards