Dear Experts,
As we need to do the custom validations on the attributes we have created the custom import container that is extending the
com.documentum.webcomponent.library.contenttransfer.importcontent.UcfImportContainer.
after all the validation we are calling the invoke service to complete the upload.
Now the problem is coming with multi files need to go in multiple folder structure.
On next of each document attributes selection i am creating the folder structure. Now the problem is coming with the invokemethod().
wher we can give only one folder id such that all documents are going into the same folder.
is there is any way to provide different folderid's for different documents.
I am attaching the invokeservice method. Please help me import multiple documents into multiple locations.
We are using Documentum Webtop 6.5 sp1
protected void invokeService() throws ContentTransferException
{
ContentTransferService service = createService();
invokeService(service);
}
protected void invokeService(ContentTransferService service) throws ContentTransferException
{
if(service instanceof ImportService)
{
importService = (ImportService)service;
importService.setDestinationFolderId(folderid); // setting the destinatin folder for operation
IContentTransport transport = createTransport();
if(transport instanceof UcfContentTransport)
setAcsWriteTransferPreferences(service);
service.setTransport(transport);
service.setServiceProcessors(getServiceProcessors());
JobAdapter job = new JobAdapter(service, getString("MSG_PROGRESS_TITLE"), getNlsClass(), LocaleService.getLocale());
long maxinactive = getPageContext().getSession().getMaxInactiveInterval() * 1000;
if(maxinactive < 1L)
maxinactive = 0x1b7740L;
job.setRequestInputTimeout(maxinactive);
setServiceJobWrapper(job);
job.submit(getPageContext().getSession());
callJobProgressMonitor();
}
}