Starting and Stopping Transaction Tracing

Transaction tracing is started and stopped by calls to the startTransactionTrace and stopTransactionTrace methods, respectively, for the current Process instance. The methods can be called regardless of the current transaction state.

If transaction tracing is started while a transaction is active, only objects updated, created, and deleted after tracing is initiated are recorded. Exceptions are raised if the startTransactionTrace method is called when transaction tracing has already been started or the stopTransactionTrace method is called when transaction tracing has not been started.

The following code fragments start and stop transaction tracing.

process.startTransactionTrace;

process.stopTransactionTrace;