A method, system, and computer program product provides automatic and
consistent resolution of in doubt branches of a transaction, and which
will provide reduced cost of operating the system and improved overall
performance of the system. A method of managing transaction branches
comprises the steps of beginning execution of a transaction, storing
information relating to branches of the transaction in a data structure,
iterating over the data structure to identify branches of the transaction
that are eligible for an action, executing a first action for at least
some branches of the transaction identified as eligible for an action,
and changing a state of the transaction and applying a second action to
branches of the transaction, if the first action returns an error.