This method is called once before any form handler property is set or handler method is called. It implements the following transactional steps:
If the form handler’s
useLocksAroundTransactions
property istrue
(the default), obtain a transaction lock before the transaction is created.This prevents a user from modifying an order in multiple concurrent threads. The lock name used defaults to the current profile ID. For more information, see
atg.commerce.util.TransactionLockFactory
. (Note that use of locking has a small performance impact.)Check for an existing transaction and, if no transaction exists, create one.