I've had a listener for a long time but its not quite working in 9.1.
The listener advances the version identifier a letter if it meets
certain criteria on a pre-store event. This only occurs when the item is
being created. I was using this:
VersionControlHelper.incrementVersionId(doc);
But it errors out with this:
"Object revision does not match branch revision: Document -
XXXXXXXXXXX, A.1"
Here:
(wt.vc.vcResource/57) wt.vc.VersionControlException: Object revision
does not match branch revision: Document - F27-30000-002, A.1
at
wt.vc.StandardVersionControlService.checkVersionsValid(StandardVersionCo
ntrolService.java:8083)
at
wt.vc.StandardVersionControlService$3.notifyVetoableMultiObjectEvent(Sta
ndardVersionControlService.java:600)
I suspect its because the ControlBranch versioned is still at the
initial version letter and the check says they do not match. I checked
out current system and this is the case but it never cared before. I
also suspect that the ControlBranch object is persisted before document
so the prestore on the document missed it. Anyone have an idea how to
modify the ControlBranch version id?