Versioning Service Start Page

Created:7/24/2001
Description:

The Versioning Service Sample shows how you can write a "service" to routinely check when versions have been flagged as ready to be reconciled and posted and do it automatically. This allows the editor to start editing another version without having to do the reconcile and post themselves.

There are two parts to this sample.

The first part is called SubmitVersion. It is a command that runs within ArcMap. It flags a version as ready to be reconciled and posted by the ReconcileService.

The other part is called ReconcileService. It is an execuatable that loops through the versions flagged by SubmitVersion, reconciling and posting each one to it's parent version.


How to use:
  1. Install the files in the ReconcileService directory on one machine that will be running the service.
  2. Install the files in the SubmitVersion directory on one or more machine that will be used for editing with ArcMap.

Application:
ArcMap/ReconcileService.exe

Requires: Versioned GeoDatabase

Difficulty: Advanced


Visual Basic
File Description
SubmitVersion\SubmitVersionCmd.cls The Command that writes to the table that a version is ready to be reconciled/posted.
SubmitVersion\SubmitVersion.dll The project file for the Submit Version tool.
SubmitVersion\SubmitVersion.vbp The compiled project.


Visual Basic
File Description
ReconcileService\frmMain.frm The main form with all the logic for reconciling/posting.
ReconcileService\frmOptions.frm For for setting configurable parameters like how often to check for new versions to reconcile/post.
ReconcileService\ReconcileService.exe The project file for the Reconcile Service.
ReconcileService\ReconcileService.vbp The compiled project.


Key CoClasses: VersionedWorkspace
Key Interfaces: IVersionedWorkspace, IWorkspaceEdit, IVersionEdit, IEnumLockInfo, ILockInfo
Key Members: IVersionedWorkspace.FindVersion, IVersion.VersionInfo, IVersionEdit.Reconcile, IVersionEdit.Post, IVersion.VersionLocks