Wasim
Here to go
publicstaticvoid myCustomMover(String docNumber)
{
try {
WTDocument doc=getWTDoc(docNumber);
WTContainer cont=doc.getContainer();//you give different container also
WTContainerRef containerRef = WTContainerRef.newWTContainerRef(cont);
String location="MyFolder//Documents/";
Folder folder = FolderHelper.service.getFolder("/Default/"+location, containerRef);
WTValuedHashMap map = new WTValuedHashMap();
map.put(doc,folder);
ContainerMoveHelper.service.moveAllVersions(map);
}
catch (WTException e) {
e.printStackTrace();
}
}
Thanks & Regards
Manikandan