Engine Storing history Value

Hi,
Suppose I have set most detailed history level , Then when process engine store history value ?
After ending of process instance or after task completion or during the same DB transaction as the runtime values ?
Any help of document is appreciable,
Thanks
Avinash

Camunda internally publishes HistoricEvents that are collected by HistoryEventHandlers. By default, this happens in the same transaction, so runtime and history inserts happen together.

1 Like

See also History and Audit Event Log | docs.camunda.org

@jangalinski if I understand correctly the transaction commits to db when the process reach a wait state (user/receive task)… so can we say HistoricEvents too commits upon reaching a wait state? Please advise.

1 Like

Hi @Arjun1007,

yes, your understanding is correct.

Hope this helps, Ingo

2 Likes

Thank you @Ingo_Richtsmeier