3.3.5.1.3.1 Receiving a TXUSER_BEGIN2_MTAG_SINK_BEGUN Message

When the application receives a TXUSER_BEGIN2_MTAG_SINK_BEGUN message, the application MUST perform the following actions:

  • If the connection state is Awaiting Promote Response (section 3.3.1.3.2), the application MUST:

    • Set the connection state to Processing Transaction (section 3.3.1.3.3).

    • Create a transaction object that is initialized as follows:

      • Set the transaction Transaction Object.Identifier field to the guidTx field from the message. The guidTx MUST be the same value as the guidTx field in TXUSER_BEGINNER_MTAG_PROMOTE (section 2.2.8.1.3.1) message that was sent to the transaction manager.

      • Set the transaction Root field to true.

    • Add the connection to the transaction connection list.

    • Set the transaction field of the connection to the transaction.

    • Return a success result and a reference to the transaction object to the higher-layer business logic.

  • Otherwise, the message MUST be processed as an invalid message as specified in section 3.1.6.