Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Transaction Mediator can is used to provide transaction functionality for its child mediators.

...

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

...

UI configuration

Action:

...

The Action parameter is used to select a transaction action to be performed. Available values are as follows.

ActionDescription
Commit Transaction (commit)This marks the transaction as completed and ends the transaction.
Fault if no

...

Transaction (fault-if-no-tx)

...

This goes to the error handler if there is no transaction.
Initiate new

...

Transaction (new)

...

This provides the entry point for a new transaction.
Resume

...

Transaction (resume)

...

This resumes a paused transaction.
Suspend

...

Transaction (suspend)

...

This pauses a transaction.
Rollback

...

Transaction (rollback

...

This rolls back a transaction.
Use existing or

...

Initiate Transaction (use-existing-or new)

...

If a transaction already exists,

...

this value continues it. If no transaction already exists, a new transaction will be created.
Info
titleNote

You can configure the Mediator mediator using XML. Click on " switch to source view " in the "Mediator" window.

Image Modified

...

Example

For an example of using the Transaction mediator, see Transaction Mediator Example.

...