Event delivery timepoint of HISTORIC PROCESS INSTANCE CREATED

Hi,

I would like to use the HISTORIC_PROCESS_INSTANCE_CREATED event to implement some special logic after a process-instance is persisted to the act_hi_procinst table.

As it turns out, I receive the event before the transaction is committed to the database. In contrast the JOB_EXECUTION_SUCCESS event is delivered to me after a db commit.

So, is there a way, to receive an event after the commit of a db insert of a historic process instance?

Regards, Björn

seems that this issue is too special? really nobody?

I solved it by implementing the lifecycle methods of FlowableEventListener

@Override
public boolean isFireOnTransactionLifecycleEvent() {
     return true;
}

/**
 * Get this event after DB commit.
*/
@Override
public String getOnTransaction() {
     return TransactionState.COMMITTED.toString();
}