cancel
Showing results for 
Search instead for 
Did you mean: 

how could i publish a document in a specific folder

german_
Champ on-the-rise
Champ on-the-rise

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.

http://doc.nuxeo.com/pages/viewpage.action?pageId=2392665

2 REPLIES 2

Fred_Vadon
Star Contributor
Star Contributor

Hi

It looks like you're really asking the question :

http://answers.nuxeo.com/questions/5020/how-can-i-do-a-workflow-to-publish-a-document-in-some-folder...

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:

http://doc.nuxeo.com/x/eQE7

Fred

thanks a lot