Transaction Mediator

Transaction mediator can provide transaction facility for a set of mediators defined as its child mediators. A transaction mediator with the action "new" indicates the entry point for the transaction. A transaction is marked completed by a transaction mediator with the action "commit". The suspend and resume actions are used to pause a transaction at some point and start it again later. Additionally, the transaction mediator supports three other actions, i.e. use-existing-or-new, fault-if-no-tx, rollback.

Syntax

 <syn:transaction action="commit|fault-if-no-tx|new|resume|suspend|rollback|use-existing-or-new" />

UI Configuration

Transaction Mediator

Action

  • Commit transaction: End the transaction
  • Fault if no transaction: Go to error handler if no transaction
  • Initiate new transaction: Entry point for new transaction
  • Resume transaction: Resume a puased transaction
  • Suspend transaction: Puase a transaction
  • Rollback transaction: Rollback a transaction
  • Use existing or initiate transaction: If a transaction already exists continue it or create a new transaction