With DFC, how do I create a new XML content object in the docbase, and invoke my XML Application WITHOUT an actual file sitting on the server.
I have a very simple Struts web application that processes a form submission, serializes the input as XML, and stores it in my Documentum repository. I don't ever write a file to the server. This is fine, if I'm not going to leverage my XML Application... I can simply create a new object like this...
IDfSysObject obj = (IDfSysObject)sess.newObject("dm_document");obj.setContentType(
"xml");
ByteArrayOutputStream out =new ByteArrayOutputStream();out.write(xml.getBytes());
obj.setContent(out);
obj.save();But this does not invoke the XML Application processing.I could use an import operation. But that requires an actual file. I don't want the overhead of actually writing my output to a file.Questions...1. Is there a way to do an Import operation using a stream, instead of a physical file?2. Is there a way to invoke my XML Application processing on my newly created IDfSysObject?3. Any other suggestions?