Hi All,
Is there any way to write web service for upgrading category for particular number of dataid which I will provide as input?
String otauth = getAuthenticationToken(USERNAME,PASSWORD);
DocumentManagement dm = getDMService(otauth);
ChunkedOperationContext upgradePatentCategoryContext = new ChunkedOperationContext();
upgradePatentCategoryContext = dm.upgradeCategoryItemsContext(mycatid,mycatvers
,false);
CategoryItemsUpgradeInfo info = new CategoryItemsUpgradeInfo();
do
{
try
{
info = dm.upgradeCategoryItems(upgradePatentCategoryContext);
System.out.println("Number of items upgraded are "+info.getUpgradedCount());
System.out.println("Skipped document num is : " +info.getSkippedCount());
}
catch(Exception e)
{
e.getMessage();
e.getStackTrace();
}
} while (upgradePatentCategoryContext.isFinished());
I wrote like this which is calling _Upgrade() function in oscript which has cursor for all dataid which has category applied.
Please help..
Thanks,
Alok