RollbackTransaction Method - Integration - Update 44 - Customization & Programming - Hexagon

SmartPlant Integration Customization

Language
English
Product
Integration
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

The RollbackTransaction method is called when a transaction needs to be rolled back, either because an error occurred after the transaction started but before the commit process was begun or because an error was detected during the first phase of the two phase commit.

If the application metadata container software has started a transaction against its persistent data store, then this method should rollback that transaction.

If the transaction has already been committed (due to the one-phase limitation of the metadata data store), then the RollbackTransaction method should call the GetUndoRedoContainers method (on interface IUndoRedo on the transaction manager), get the Undo container and use the instructions in this container to undo the already committed transaction.