I created a project that add document to UCM server using RIDC.
I am using CHECKIN_UNIVERSAL to checkin document to server.
But when i need to add attachments using RIDC, I can't find any API to do that.
I searched and somebody said that ZipRenditionManagement component can help, but i can't search anymore infomation.
Can anybody give me example?
I haven't got an example, but I can tell you how to create one of your own: you can turn on server-wide tracing for requestaudit, perform you use case in web GUI, and then check what services were called. The link how to do that is http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c03_processes.htm#CSMSP536
Sometimes this method does not show all parameters. Therefore, it might be advisable also to take a look at the component in Component Wizard. With standard components you will need one more trick (OOTB they cannot be opened): create your own custom component, which is a copy of ZipRenditionManagement.
I tried to read tracing output, but it not enought parameter to run services.
This line from tracing output:
EDIT_RENDITIONS [dID=xxx][dDocName=xxx][dDocTitle=xxx][dUser=xxx][dSecurityGroup=xxx][dDocAccount=xxx][xCollectionID=763566163607000215] 0.02619200013577938(secs)
Try the following code snippet and see if this works :
dataBinder.putLocal("dID", "<dID of the content>");
dataBinder.addFile("addRendition0.file", new File("test.txt"));
addRendition0 is the first attachment that can be added , like wise you can use addRendition1, addRendition2 , addRendition3 etc to add more number of attachments to the same content .
Hope this helps .
Edited by: Srinath Menon on Feb 4, 2013 12:15 PM