Hi.
I wrote an process (simple for example). Camonda 7.15.0 spring boot / kotlin / postgress / history level = FULL
Process look like
start → service task (java class) → user task → end
In kotlin class i try to get processInstance from historyService
var historyService = execution?.processEngineServices?.historyService
context.initiator = historyService?.createHistoricProcessInstanceQuery()
?.processInstanceId(execution?.processInstanceId)
?.singleResult()?.startUserId
But at this moment instance not defined in historyList (and in postgres table also)
Also i try to get all instances and chek entire list.
This instance appears in the history service (and in the postgre table) only when it comes to a user task.
How can i force camunda to write instance every bpmn task/service stage?