Open
Conversation
Contributor
Author
dukesphere
commented
Oct 20, 2022
| == Managing Transactions | ||
|
|
||
| The Try scope treats child operations as a transaction when the Transactional Action (`transactionalAction`) is set to `ALWAYS_BEGIN` or `BEGIN_OR_JOIN`. It can be configured in the following ways: | ||
| //TODO: DO WE HAVE A LIST OF COMPONENTS AND OPERATIONS THAT SUPPORT TRANSACTIONS |
Contributor
Author
There was a problem hiding this comment.
yes, sort of, see "The only components that can define the transaction type are message sources (For example, jms:listener and vm:listener) and the Try scope." in https://docs.mulesoft.com/mule-runtime/4.4/transaction-management#transaction-types
| The Try scope (`<try />`) sequentially executes one or more connector operations or Mule components (processors) that you add to the scope. | ||
|
|
||
| == Error Handling with the Try Scope | ||
| The Try scope enables transaction management and error handling for processing within the scope. xref:transaction-management.adoc[Transactions] force a group of processors to succeed or fail as a unit. The scope accepts xref:xa-transactions.adoc[Extended Architecture (XA)] and, by default, xref:single-resource-transaction.adoc[Local (LOCAL)] transactions. |
Contributor
Author
There was a problem hiding this comment.
TODO: move and consolidate details about the transaction types into the Transaction section.
| Rolls back any transactions, then executes and uses that result to re-throw the existing error, causing its container Try scope's execution to fail. | ||
| [source,xml,linenums] | ||
| ---- | ||
| <try> |
Contributor
Author
There was a problem hiding this comment.
With implicit defaults for the transaction type and action (minus doc:id attribute):
With the attributes...
dukesphere
commented
Nov 7, 2022
| @@ -1,92 +0,0 @@ | |||
| = Try Scope XML Reference | |||
Contributor
Author
There was a problem hiding this comment.
Moved to main page since it's so short.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Writer's Quality Checklist
Before merging your PR, did you: