Transactions in Relativity

Hello,

My question of the day today is how to ‘invoke’ transaction in a Relativity based project?
I was looking at ‘Handling Transaction from client side’ post by MSoft and answered by elenap however this question dealt regarded project antecedent to Relativity, where you could write code right on the server (at least that’s what I understand), so a line of this sort:

Connection.BeginTransaction;

was all that was needed.

Working with Relativity however, I can’t see how to invoke the transaction. Is it that I need to drop TDAConnectionManager component, and call a transaction on one of its connections? ie. ConnectionManager.Connection[0].BeginTransaction?

Or can I instantiate IDataService via the ClassFactory and then call a transaction on that?

Or in what other way do I accomplish that?

Regards!

Hello,

You could only rollback transaction for one delta, that contain more then one changes in Relativity. In order to do this you should handle onProcessError event in Business Rules Script in the Schema. Read more here http://wiki.remobjects.com/wiki/Data_Access_FAQs_(Relativity_Server)#How_can_I_rollback_entire_data_update_transaction_if_one_of_provided_changes_cannot_be_applied.3F .

Best regards