Home > DOCUMENTUM > How to invoke SBO from TBO ?

How to invoke SBO from TBO ?

May 9, 2010

One can invoke SBO from a TBO by using following code snippet in a method of a TBO class.

The method can be called from save(), checkInEx(…) method or in any custom methods
defined.

IDfSession session = getSession() ;
String docBaseName = session.getDocBaseName() ;

IDfSessionManager sMgr = session.getSessionManager() ;
IDfClient client = session.getClient();

ICreateFolderSBO folderSBO = (ICreateFolderSBO)
client.newService(ICreateFolderSBO.class.getName(),sMgr);

String documentId = session.getObjectId() ;
folderSBO.createFolder(documentId, docBaseName);

Categories: DOCUMENTUM Tags: , ,
%d bloggers like this: