cancel
Showing results for 
Search instead for 
Did you mean: 

find completed instances

ra74
Champ in-the-making
Champ in-the-making
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 ?
3 REPLIES 3

ra74
Champ in-the-making
Champ in-the-making
ok I found I should use historyactivitiinstancequery. sorry for inconvenience

ps. it seems it useless. First I belive I have to query for process definitions for find the one I'm interested in because there's no processDefiniionKey condition. And then for each result item I've to query one by one to fetch process variables

ra74
Champ in-the-making
Champ in-the-making
I've problem with method HistoricProcessInstanceQuery.variableValueEquals(property, value) and query against process variable. It's working in the unit test but not when deployed on the server. I've checked the result of the query in the debugger without this condition and there are items with should satisfy the condition. Any hints ? am I doing sth wrong ?

vasile_dirla
Star Contributor
Star Contributor
you know that without seeing the code all I can do is to guess, but maybe your variable is not committed yet ? (maybe you're in the middle of a transaction.)

could you provide a process which fails in production ? or maybe to guide us to reproduce it ?