transaction_id Property
Specifies the Id of the transaction that outgoing messages are associated with.
Syntax
def get_transaction_id() -> str: ... def set_transaction_id(value: str) -> None: ...
transaction_id = property(get_transaction_id, set_transaction_id)
Default Value
""
Remarks
This property, if not empty, is used to specify which transaction outgoing messages sent using send_message or send_data are associated with.
This property must either be empty, or set to the Id of a currently open transaction. The OpenTransactions configuration setting can be queried at any time to retrieve a comma-separated list of currently open transactions' Ids.
Note that this property only affects outgoing messages. It is also possible to send a message acknowledgment as part of a transaction by setting the AckTransactionId configuration setting during the on_message_in event handler.
Refer to begin_transaction for more information about transactions.