Documentum TBO

Documentum TBO


public class CustomDocTBO extends DfDocument implements IDfBusinessObject {

@Override
protected synchronized void doSave(boolean saveLock, String versionLabel,
Object[] extendedArgs) throws DfException {
logger.info(" ");logger.info("........Enter doSave ...............");

try {
// super.doSave(saveLock, versionLabel, extendedArgs);
IDfSession session = getSession();
IDfId objectId = getObjectId();
logger.debug("doSave , Current Document objId =" + objectId);
IDfDocument documentObject = (IDfDocument) session.getObject(objectId);

//............................do your code ...

} catch (DfException e) {
logger.error(e.getMessage() + e.getCause());
throw e;
}
}

}

No comments:

Post a Comment