cancel
Showing results for 
Search instead for 
Did you mean: 

API for process Instance history?

jonnyg
Confirmed Champ
Confirmed Champ
I know that the functionality exists to pull (who did what, when) – it exports on the PDF audit report.

Can there be a REST API for this as well, so that we can design our own view for this info?
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
I believe the PDF is based on the process instance log

(something like this:   

ProcessInstanceHistoryLog processInstanceHistoryLog = historyService
                .createProcessInstanceHistoryLogQuery(processInstanceId)
                .includeTasks()
                .includeActivities()
                .singleResult():smileywink:

It's indeed not yet exposed. Will add it to the backlog.

As a sidenote: if something isn't exposed (yet) or something is in a 'wrong' format, it's always possible to use a custom rest endpoint (https://docs.alfresco.com/activiti/docs/dev-guide/1.4.0/#_custom_rest_endpoints)

jonnyg
Confirmed Champ
Confirmed Champ
Got it, thanks, we'll probably do that.