After method execute() object doesn't create:
...........
IDfCopyOperation operation = getClientX().getCopyOperation();
operation.setDestinationFolderId(folderId);
operation.setDeepFolders(true);
IDfCopyNode copyNode = null;
// add the appropriate object to the operation
if (sysObj.isVirtualDocument()) {
IDfVirtualDocument vDoc = sysObj
.asVirtualDocument("CURRENT", false);
copyNode = (IDfCopyNode) operation.add(vDoc);
} else {
copyNode = (IDfCopyNode) operation.add(sysObj);
}
operation.execute();
IDfSysObject so = copyNode.getNewObject();
...........
Here so return null. operation.getErrors() return empty vector.
Whats wrong here? Why object doesn't created?