reinstateTxn Method
Reinstate the most recently reversed transaction. Since at any time multiple transactions can be reversed, it may take multiple calls to this method to reinstate all reversed operations.
reinstateTxn(): IModelStatus
@returns Success if a reversed transaction was reinstated, error status otherwise.
@note If there are any outstanding uncommitted changes, they are canceled before the Txn is reinstated.
@note This method will return IModelStatus.LockNotHeld and will not reinstate the Txn if the locks originally acquired by the Txn have been abandoned. Use reinstateTxnAsync to re-acquire the locks and reinstate the Txn in a single operation.
Returns - IModelStatus
Success if a reversed transaction was reinstated, error status otherwise.
Defined in
- backend/src/TxnManager.ts Line 1450
Last Updated: 07 May, 2026