User Tools

Site Tools


process_a_virtual_to_process_transaction_.htm
Navigation:  ABC Library Reference > TransactionManager > TransactionManager Methods >====== Process (a virtual to process transaction) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Process( ),BYTE,VIRTUAL

blk2blue.jpg

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

process_a_virtual_to_process_transaction_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1