Update a transaction, to either commit or roll back its operations.