How to reassign lifecycle in Windchill

WTContainerRef containerRef = ((WTContained) doc).getContainerReference();
LifeCycleHelper.service.reassign((LifeCycleManaged) doc, LifeCycleHelper.service.getLifeCycleTemplate(lifeCycleName, containerRef).getLifeCycleTemplateReference());

你可能感兴趣的:(How to reassign lifecycle in Windchill)