3.4.7.5 Begin Rollback

The Begin Rollback event MUST be signaled with the following arguments:

  • An Enlistment object.

If the Begin Rollback event is signaled, the transaction manager MUST perform the following actions:

  • If the enlistment's connection is of type CONNTYPE_TXUSER_IMPORT (section 2.2.8.2.2.4):

    • Set the connection state to Ended.

  • Otherwise, if the enlistment's connection is of type CONNTYPE_TXUSER_IMPORT2 (section 2.2.8.2.2.5) or CONNTYPE_TXUSER_ASSOCIATE (section 2.2.8.2.1.1):

    • If the connection state is Active or Too Late to Abort:

      • Send a TXUSER_IMPORT2_MTAG_SINK_ERROR (section 2.2.8.2.2.5.4) message:

        • The Error field MUST be set to TRUN_TXIMPORT_ERROR_NOTIFY_ABORTED.

    • Set the connection state to Ended.