project BLF > class Transaction

business class
inherited from Business Component

Description

This component should be used when a client wants to combine the updates of multiple business components into a single transaction. In stead of running method DataSave in each component individidually, which would result in multiple transactions, it should add the component instances to a transaction.

Flow of calls:
- instantiate the transaction component
- run Transaction.InitTransaction
- instantiate the business components and run methods that prepare updates in the instance data
- release business components (keepdata = true)
- run Transaction.CommitTransaction
- release transaction (keepdata = false)

All business components should behave as black boxes, so if they start other business components themself, they should also add them to the transaction themself. If no transaction is started yet, they should start one themself.


public data items


other data items


API methods


public methods


other methods