Navigation: ABC Library Reference > TransactionManager > TransactionManager Methods >====== Process (a virtual to process transaction) ====== | |
Process( ),BYTE,VIRTUAL
Process | Process any data during the transaction process. |
Process is a virtual placeholder method used to work with any tables affected by the transaction process, and can return the correct error level to control if the transaction should be completed or aborted (COMMIT or ROLLBACK respectively).
Return Value: BYTE
Implementation:
The Process method is a virtual method that will be called from the Run method only if the Start method first returns a Level:Benign error level. After that, if the Process method returns any error level other than Level:Benign, the transaction will rollback.
Example:
MyTransaction.Process PROCEDURE()
ReturnValue BYTE
CODE
ReturnValue = Level:Benign
!Work with the Tables and set the ReturnValue
!to Level:Fatal here if there are any errors.
RETURN ReturnValue