3.3.5.2.2.5.2 Receiving a TXUSER_IMPORT2_MTAG_SINK_ERROR Message

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

  • If the connection state is Awaiting Import Response:

    • If the Error field in the message is set to TRUN_TXIMPORT_ERROR_IMPORT_TX_NOT_FOUND:

      • Return a failure result to the higher-layer business logic.

      • Set the connection state to Ended.

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

  • If the connection state is Awaiting Abort Response:

    • If the Error field in the message is set to TRUN_TXIMPORT_ERROR_IMPORT_TX_NOT_FOUND:

      • Return a failure result to the higher-layer business logic.

      • Set the connection state to Ended.

    • Otherwise, if the Error field in the message is set to TRUN_TXBEGIN_ERROR_NOTIFY_ABORTED, TRUN_TXBEGIN_ERROR_NOTIFY_COMMITTED, or TRUN_TXBEGIN_ERROR_NOTIFY_INDOUBT:

      • Return the respective transaction outcome as a result to the higher-layer business logic.

      • Set the connection state to Ended.

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

  • If the connection state is Transaction Import Successful:

    • If the Error field in the message is set to TRUN_TXBEGIN_ERROR_NOTIFY_COMMITTED, TRUN_TXBEGIN_ERROR_NOTIFY_ABORTED, or TRUN_TXBEGIN_ERROR_NOTIFY_INDOUBT:

      • Notify the higher-layer business logic of the outcome of the transaction.

      • Set the connection state to Ended.

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

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