Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I'm looking for a method to relocate a document from a product to a library automatically. Current workflow sets the state after receiving management review, but I would like it to automatically relocate the document to a common library for others to review. Also, a method to convert MS office documents to pdf would be ideal. any examples?
This should get you started with moving an object from one container to another:
WTDocument doc = null; //get document
Folder folder = null; //get folder in new container
WTValuedHashMap map = new WTValuedHashMap();
map.put(doc,folder);
wt.dataops.containermove.ContainerMoveHelper.service.moveAllVersions(map);
And for saving docs as PDF, look into Aspose. It's a pretty awesome library. http://www.aspose.com/java/word-component.aspx
Hi Joseph,
Matthew's example covers the api to call in the workflow. In order to trigger Matthew's code
In your workflow :