Hi @tomorrow,
please don’t flush the transaction by your own 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