Transaction Scope

Runs the activities inside it within a .NET transaction (System.Transactions). When the body finishes, the transaction completes (commit); the changes in the resources taking part in the transaction are committed or rolled back together.


⬅️INPUT

Parameter

Type

Required

Description

Timeout

TimeSpan

❌ No

Timeout of the transaction. Default: 1 minute (00:01:00). If the time runs out, the transaction is rolled back. In a nested scope it is used only if set explicitly.


⬇️MISC

Parameter

Type

Default

Description

AbortInstanceOnTransactionFailure

Boolean

True

If True, the workflow is stopped (abort) when the transaction fails. If False, the transaction error is passed to the workflow as an error. If it is set differently from the outer scope in a nested scope, the activity throws an error.

IsolationLevel

IsolationLevel

Serializable

Isolation level of the transaction: Serializable, RepeatableRead, ReadCommitted, ReadUncommitted, Snapshot, Chaos or Unspecified. In a nested scope it must be the same as the outer one; otherwise it throws an error.


Usage

  • The activities to run within the transaction are added to the Body field of the activity.

  • If a Transaction Scope is inside another Transaction Scope, no new transaction is opened; the body runs within the outer transaction.