I can find a way to get the state of an HistoricTaskInfo. I know I can filter during the query with finished() or unfinished(), but I really would like a single query an then process the tasks according the state.
@bvedam in order to query for all activities within a BPMN process you would need to use the HistoricActivityInstanceQuery. You can get an instance of it via HistoryService#createHistoricActivityInstanceQuery
Thanks Filip. I haven’t tried the API yet as the Admin Web UI never lists automated tasks in the tasks tab. Will try and follow-up if I have questions.
Thanks Filip for your response. I am using the REST API and don’t have any custom java code. There is this REST API to get historic task instance detail but like I said earlier it is returning only the manual tasks and doesn’t provide any info on the 2 HTTP task. The Admin app has this same problem. In the “Process Engine->Instances” tab, I see only 2 tasks while the diagram shows the manual and HTTP tasks. Any way I can get ALL the tasks executed? Thx
Thank you. That is exactly what I was looking for. I was searching by the “task” term, as they were historic task instances. Totally overlooked the section on activity. Thanks again
It returns me the details of user task just before it, even though the end date is populated in user task. Does that mean a user task is not counted as finished until it reached the next wait state?