Flush sql statements from cache to DB before calling a procedure

Hi @tomorrow,

please don’t flush the transaction by your own :skull_and_crossbones: This lead to problems in the engine.

You could use a TransactionListener to do stuff after the engine transaction is committed.

TransactionListener transactionListener = commandContext -> {
	// do stuff
};
Context.getCommandContext().getTransactionContext().addTransactionListener(TransactionState.COMMITTED, transactionListener);

Does this help you?

Best regards,
Philipp