reinstateTxnAsync Method @beta
Reinstate the most recently reversed transaction. This method will first attempt to re-acquire the required locks, if they were abandoned after the operation was reversed. Since at any time multiple transactions can be reversed, it may take multiple calls to this method to reinstate all reversed operations.
reinstateTxnAsync(args?: ReinstateTxnArgs): Promise<void>
@note If there are any outstanding unsaved changes, they are canceled before the Txn is reinstated. Unless ReinstateTxnArgs.retainLocks is true, the locks associated with the unsaved changes are also abandoned.
@returns A Promise that resolves to success if a reversed transaction was reinstated, or rejects with an IModelError otherwise.
| Parameter | Type | Description |
|---|---|---|
| args | ReinstateTxnArgs | Optional arguments to control the behavior of the reinstate operation, such as whether to retain locks when abandoning unsaved changes. |
Returns - Promise
A Promise that resolves to success if a reversed transaction was reinstated, or rejects with an IModelError otherwise.
Defined in
- backend/src/TxnManager.ts Line 1476
Last Updated: 05 May, 2026