---
name: "CosTransactions_Terminator"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:19.2.1+dfsg-2+deb9u3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/CosTransactions_Terminator"
---

# CosTransactions\_Terminator(3erl)

This module implements the OMG CosTransactions::Terminator interface.

## NAME

CosTransactions\_Terminator - This module implements the OMG CosTransactions::Terminator interface.

## DESCRIPTION

To get access to the record definitions for the structures use: \
 *-include\_lib("cosTransactions/include/CosTransactions.hrl").*

## EXPORTS

**commit(Terminator, ReportHeuristics) -\> Return**\

Types:

Terminator = #objref\
 ReportHeuristics = boolean()\
 Return = ok \| {'EXCEPTION', E}\
 E = #'CosTransactions\_HeuristicMixed'{} \| #'CosTransactions\_HeuristicHazrd'{} \| #'CosTransactions\_TransactionRolledBack'{}\

This operation initiates the two-phase commit protocol. If the transaction has not been marked *'rollback only'* and all the participants agree to commit, the operation terminates normally. Otherwise, the TransactionRolledBack is raised. If the parameter *ReportHeuristics* is true and inconsistent outcomes by raising an Heuristic Exception.

**rollback(Terminator) -\> Return**\

Types:

Terminator = #objref\
 Return = ok\

This operation roles back the transaction.
