I am trying to work with IDfSysObjects in Documentum via jython, but I can't figure out how to call the methods appropriately from the interperter. The code below illustrates what I'd like to call with jython.
String docId= getDocId();
IDfSysObject doc = (IDfSysObject)session.getObject(new DfId(docId));
ByteArrayInputStream stream = doc.getContent();
from this post:
I don't know how to reconcile an IDfSysObject with the session. I have tried calling
session.getObject([r_object_id])
but I get
TypeError: 1st arg can't be coerced to com.documentum.fc.common.IDfId
My primary question is, does anyone know how to convert the following line of code into jython?
IDfSysObject doc = (IDfSysObject)session.getObject(new DfId(docId));
Try this code, it does what you want: