I want to find how to say it hm final state of the finished processes i.e. want to find rejected requests.
I can see that history service can query for process instances and returns list of HistoricProcessInstanceEntity which contain field endActivitiId
But there's no api I canquery this field and it seems this field is deprecated.
So the only way is to use unique variables like REJECTED_ON_STEP1 REJECTED_ON_STEP2 as outcome of my user tasks to distinguish where the request was rejected ?