Perform DB Transaction
This handler (com.rierino.handler.JDBCTransactionEventHandler) executes multiple state manipulation journals as a single database transaction.
Handler Parameters
transaction.timeout
Seconds to consider a transaction timed out
60
20
This handler requires the following dependency added to deployment contents:
Actions
ExecuteTransaction
Executes database statements on target JDBC state managers as a single transaction, using array of journals provided in "journals" path of the event payload.
StartTransaction
Starts a database transaction on current local thread, which can be used as part of a local saga flow for multiple database operations.
CommitTransaction
Commits current database transaction started on local thread, which must be called after a "StartTransaction" action.
RollbackTransaction
Cancels and rollsback current database transaction started on local thread, which must be called after a "StartTransaction" action.
This event handler can only be used on JDBC state managers.
Last updated