History data on running process instances

I create a process that contain only a long serviceTask
I configured historyService with level audit
I though that when I started a process definition a record is created in the table ACT_HI_PROCINST to indicate that there is a running process with start time but not end time.
Instead the record is inserted only when the process complete.
I read from the documentation that the history contains also the running process instances and not only the completed process instances
I don’t know if there is a problem in myconfiguration or if this is a normal behaviour

Cany you help me?

Luca Chiesa

Hello I think to understand the problem
Flowable close a transaction only in WAIT STATE
Here the transaction management of flowable

Therefore now I try to define service task as async


I solved with asynch