Hi all, i'm new for Documentum world, and trying to write some simple code to manipolate objects via dfc.
I'm devolopping a method to get all my custom type documents from a folder in my docbase in repository,
so i'm using a IDfQuery and IDfCollection to get info table of these files..
[...]
IDfCollection resultSet =q.execute(session, DfQuery.DF_READ_QUERY);
while(resultSet.next())
{
IDfId id=resultSet.getId("r_object_id");
String name=resultSet.getString("object_name");
IDfSysobject obj=(IDfSysObject) session.getObject(id);
obj.setObjectName(name+"Processed via Dfc");
obj.setInt("myAttr", myIntValue);
obj.setPath("/docbase/Documents/Processed","txt",0,null);
obj.save();
}
is it right? i just want to append "Processed via Dfc" to object_name for every txt file in my folder docbase/Documents and move them to the subfolder /Processed
what is the different of the method obj.link(PathString) and obj.setPath(pathString) ??
is it correct way to do it?
thanks