|
|
|
BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions |
Closes the transaction and commits any changes.
Sub CloseRepository ([Commit As String])
Name | Description |
---|---|
Commit |
Default is True. Use False to revoke any changes made during the transaction. |
This method should be called for any transaction that starts with OpenRepository method or Clone method. Until the transaction is closed, any changes to information in the vault will not be visible from other transactions.
Objects stored in the vault are always accessed from a transaction. During the transaction, objects (like AMDocument) will be launched to access information.
Before the transaction is closed, the code must release all references to these objects. If any references still exist, the server will return an error.
A transaction can be revoked at any time (without closing the transaction). If a transaction has been revoked (see AMDocumentRepository.IsRevoked), the Close method will return an error on an attempt to commit the transaction.
Note The server may implicitly revoke a transaction when some operation fails. The operation will return an error in this case.
Related information
Copyright © 2000-2012 BlueCielo ECM Solutions |