Hi!
I have some code that query history of process instances like this:
List<HistoricProcessInstance> historicProcessInstances = historyService.createHistoricProcessInstanceQuery()
.startedAfter(cal.getTime())
.finished()
.processDefinitionKey("Aml_executor")
.orderByProcessInstanceBusinessKey()
.desc()
.list();
And in this list BusinessKey of all my instances in null. I try to check it by REST API and
IN aml executor i set Business key by listner on start event like this:
String Businesskey =request.getRequestSource().getSourceTable().getName();
((ExecutionEntity)execution).setBusinessKey(Businesskey);
it is intresting that evrything was fine, when i use h2 DB. But today i switch to postgresql and get this.
Can somebody fugure out whats going on?