我正在编写一些代码来从 IBM Content Manager 5.3 AKA VI400 中删除文档。我写了一个查询来查找一个项目,但我无法删除已检索到的项目。我可以列出属性等。
当我尝试删除该项目时,我收到以下错误:
SimLibDeleteItem[FRN=6052,ExtRC=0]
SimLibDeleteItem
FRN=6052
ExtRC=0
我怎样才能克服错误?
CMBQueryService queryService = connection.getQueryService();
CMBSearchResults searchResults = new CMBSearchResults();
searchResults.setConnection(connection);
CMBDataManagement dataManagement = connection.getDataManagement();
String queryString = createQueryString(entity, condition);
short queryType = CMBBaseConstant.CMB_QS_TYPE_PARAMETRIC;
queryService.setQueryString(queryString, queryType);
queryService.setAsynchSearch(false);
queryService.runQuery();
searchResults.newResults(queryService.getResults());
for (CMBItem item : searchResults.getItems()) {
dataManagement.setDataObject(item);
//This is where the delete occurs. SimLibDeleteItem[FRN=6052,ExtRC=0] happens when this is called.
dataManagement.deleteItem();
}