Question

Can anybody give me a suggestion on how to display list of historicTaskInstances on JSP page? I wanted to get completed tasks between two dates and this question helped me to do that: Query for task start and end dates in Activiti Now I need table with columns that represent parameters of this tasks, like "assignee" or "completionDate". I'm a newbie in Alfresco and I would appreciate any advice or link where I can find something similar! Thanks in advance!

Was it helpful?

Solution

If you are using current versions of aciviti then you can solve your problem by following these approaches:

1 - JAVA API

historyService.createHistoricProcessInstanceQuery()
.finished()
.processDefinitionId("XXX")
.orderByProcessInstanceDuration().desc()
.listPage(0, 10);

2 - REST API

GET history/historic-process-instances

For more details you can follow : activiti user guide

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top