02-20-2013 08:04 PM
i´d like to publish a new document when it is in the state of approve in the life cycle.
i´m following this example, am i right?? i know i need to change things, but i don´t know which ones.
02-21-2013 03:22 AM
Hi
It looks like you're really asking the question :
http://forum.nuxeo.com/index.php?t=rview&goto=19320&th=6101#msg_19320
We are very happy that people ask questions but please ask them only once 🙂
Anyway, I guess you are using studio and automation chains. In that case, there is an operation call publish Document :
http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewOperation/Document.Publish
This operation is used in the example you are following, so it's be a good entry point.
Basically, this operation will publish the document input to the parameter of the operation (might be a path or a doc id). You just need to determine what is the publishing target of your document and how to find it (several ways to do that, the operation fetch>query is one them).
Please also not that your use case in not trivial and probably requires to be familiar with Nuxeo Automation concepts:
Fred
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.