BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions

CloseRepository method

Closes the transaction and commits any changes.

Syntax
Sub CloseRepository ([Commit As String])
Parameters
Name Description

Commit

Default is True. Use False to revoke any changes made during the transaction.

Remarks

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

AMDocumentRepository object

OpenRepository method

ReOpen method


Copyright © 2000-2012 BlueCielo ECM Solutions

www.bluecieloecm.com