Question
promoting a Object to Released state the previous released iteration is not autoset to Obsolete
Hi, I want to automatically set the previous "Released" document to "Obsolete" when a newer revision is promoted to "Released". This is to avoid having older revisions still having their life cycle state remaining "Released". I have this code from CS153831 which is just what I think will do the trick, but cannot correctly add it to the workflow. I tried adding it to the approval transitions to no avail.
Thanks, Mark
wt.doc.WTDocument predecessor = (wt.doc.WTDocument) wt.vc.VersionControlHelper.service.predecessorOf((wt.doc.WTDocument) primaryBusinessObject);
if (predecessor != null)
predecessor=(wt.doc.WTDocument) wt.lifecycle.LifeCycleHelper.service.setLifeCycleState(predecessor, wt.lifecycle.State.toState("Obsolete") );

